Expand description
Parsers and serializers for Zcash Merkle trees.
Modules§
- testing
test-dependencies
Traits§
- HashSer
- A hashable node within a Merkle tree.
Functions§
- merkle_
path_ from_ slice - Reads a Merkle path from its serialized form.
- read_
address - read_
commitment_ tree - Reads a legacy
CommitmentTreefrom its serialized form. - read_
frontier_ v0 - read_
frontier_ v1 - read_
incremental_ witness - Reads an
IncrementalWitnessfrom its serialized form. - read_
leu64_ usize - Reads a usize value encoded as a u64 in little-endian order. Since usize is platform-dependent, we consistently represent it as u64 in serialized formats.
- read_
nonempty_ frontier_ v1 - read_
position - write_
address - write_
commitment_ tree - Serializes a legacy
CommitmentTreeas an array of bytes. - write_
frontier_ v1 - write_
incremental_ witness - Serializes an
IncrementalWitnessas an array of bytes. - write_
nonempty_ frontier_ v1 - write_
position - write_
usize_ leu64 - Writes a usize value encoded as a u64 in little-endian order. Since usize is platform-dependent, we consistently represent it as u64 in serialized formats.