Module zebra_consensus::primitives::groth16::params::parse_parameters
source ยท Expand description
Copied from zcash_proofs
v1.14.0 with minor modifications to the parse_parameters
function (renamed to parse_sapling_parameters
).
Sapling related constants: https://github.com/zcash/librustzcash/blob/zcash_proofs-0.14.0/zcash_proofs/src/lib.rs#L52-L58 Parse parameters: https://github.com/zcash/librustzcash/blob/zcash_proofs-0.14.0/zcash_proofs/src/lib.rs#L353 Hash reader: https://github.com/zcash/librustzcash/blob/zcash_proofs-0.14.0/zcash_proofs/src/hashreader.rs#L10 Verify hash: https://github.com/zcash/librustzcash/blob/zcash_proofs-0.14.0/zcash_proofs/src/lib.rs#L472
Structsยง
- Abstraction over a reader which hashes the data being read.
Constantsยง
- SAPLIN
G_ ๐OUTPU T_ BYTES - SAPLIN
G_ ๐OUTPU T_ HASH - SAPLIN
G_ ๐SPEN D_ BYTES - SAPLIN
G_ ๐SPEN D_ HASH
Functionsยง
- Parse Bls12 keys from bytes as serialized by
groth16::Parameters::write
. - verify_
hash ๐Check if the Blake2b hash fromhash_reader
matchesexpected_hash
, while streaming fromhash_reader
intosink
.