Crate merkle_root

Source
Expand description

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

Structs§

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

Enums§

HashAlgorithm

Constants§

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

Functions§

hash_block
Compute the merkle hash of a block of data.
hash_hashes
Compute the merkle hash of a block of hashes.

Type Aliases§

Hash