Inputs:
path
to the serialized URS fileoffset
of binary URS within file
Outputs
TODO
Spec
Load with bin_prot
Inputs
path: String
to serialized verifier key fileURS: CamlPastaFpUrs
loaded
Outputs
TODO
Spec
- Open the serialized key
path
- Read and parse the
header
(see the serialized key format) - Compute the offset of the
body
- Validate the
header
against the metadata provided by O(1) Labs in the verifier key filenameheader.kind.type
header.kind.identifier
header.constraint_system_hash
- Load the
key
located atpath, offset
usingbin_prot
- Validate the
header
against the loaded key contentsconstraint_constants
constraint_system_hash
- Create the
VerifierIndex
structure containing theURS
andkey