Expand description
fuchsia_merkle contains types and methods for building and working with merkle trees.
Structs§
- 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.
Constants§
- BLOCK_
SIZE - The size of a single block of data (or hashes), in bytes.
- HASH_
SIZE - The size of a hash in bytes.
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