Expand description
Merkle Tree implementations.
This crate contains several Merkle Tree implementations that are a subset of each other.
Currently BalancedHashedMerkleTree
and UnbalancedHashedMerkleTree
are available, with
BalancedHashedMerkleTree
being an optimized special case of UnbalancedHashedMerkleTree
and both return the same results for identical inputs.
Modules§
Constants§
- INNER_
NODE_ DOMAIN_ SEPARATOR - Used as a key in keyed blake3 hash for inner nodes of Merkle Trees.
Functions§
- hash_
pair - Helper function to hash two nodes together using [
blake3::keyed_hash()
] andINNER_NODE_DOMAIN_SEPARATOR