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ยง
- SAPLING_
OUTPUT_ ๐BYTES - SAPLING_
OUTPUT_ ๐HASH - SAPLING_
SPEND_ ๐BYTES - SAPLING_
SPEND_ ๐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
.