Expand description
fuchsia_merkle contains types and methods for building and working with merkle trees.
See https://fuchsia.dev/fuchsia-src/concepts/security/merkleroot for information on constructing merkle trees.
Structs§
- Buffered
Merkle Root Builder - Calculates the merkle root for a given set of data. The leaf hashes of the merkle tree can
optionally be collected for use with a
MerkleVerifier. - Merkle
Root Builder - Calculates the merkle root for a given set of data. The leaf hashes of the merkle tree can
optionally be collected for use with
crate::MerkleVerifier. - Merkle
Verifier - Verifies data against the leaf hashes of a merkle tree.
- Noop
Leaf Hash Collector - A
LeafHashCollectorthat doesn’t collect leaf hashes. - Read
Sized Merkle Verifier - Verifies reads against a merkle tree.
Constants§
- BLOCK_
SIZE - The size of a single block of data (or hashes), in bytes.
- HASH_
SIZE - The size of a hash in bytes.
Traits§
- Leaf
Hash Collector - A trait for collecting the leaf hashes of a merkle tree while constructing a merkle root.
Functions§
- root_
from_ reader - Computes the merkle root of the contents of a
std::io::Read. - root_
from_ slice - Computes the merkle root of in-memory data.
Type Aliases§
- Hash
- A digest created by the Fuchsia Merkle Tree hashing algorithm. https://fuchsia.dev/fuchsia-src/concepts/packages/merkleroot