Expand description
fuchsia_merkle contains types and methods for building and working with 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
Tree - A
MerkleTreecontains levels of hashes that can be used to verify the integrity of data. - Merkle
Tree Builder - A
MerkleTreeBuildergenerates aMerkleTreefrom one or more write calls. - Merkle
Tree Writer - A
MerkleTreeWriterwraps aMerkleTreeBuilderand another type that implementsstd::io::Write. - 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§
- from_
async_ read - Compute a merkle tree from a
futures::io::AsyncRead. - from_
read - Compute a merkle tree from a
std::io::Read. - from_
slice - Compute a merkle tree from a
&[u8]. - hash_
block - Compute the merkle hash of a block of data.
Type Aliases§
- Hash
- A digest created by the Fuchsia Merkle Tree hashing algorithm. https://fuchsia.dev/fuchsia-src/concepts/packages/merkleroot