Crate fuchsia_merkle

source ·
Expand description

fuchsia_merkle contains types and methods for building and working with merkle trees.


A SHA-256 hash.
A MerkleTree contains levels of hashes that can be used to verify the integrity of data.
A MerkleTreeBuilder generates a MerkleTree from one or more write calls.
A MerkleTreeWriter wraps a MerkleTreeBuilder and another type that implements std::io::Write.


The size of a single block of data (or hashes), in bytes.
The size of a hash in bytes.


Compute a merkle tree from a futures::io::AsyncRead.
Compute a merkle tree from a std::io::Read.
Compute a merkle tree from a &[u8].
Compute the merkle hash of a block of data.