Crate fuchsia_merkle

source ·
Expand description

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

Structs

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.

Constants

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

Functions

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.