Expand description
Merkle Tree and related data structures.
This crate contains several Merkle Tree implementations and related data structures, many of which are a subset of each other.
Currently BalancedMerkleTree
, UnbalancedMerkleTree
and MerkleMountainRange
are
available. BalancedMerkleTree
is an optimized special case of UnbalancedMerkleTree
,
which is in turn an optimized version of MerkleMountainRange
and all 3 will 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 [
ab_blake3::single_block_keyed_hash()
] andINNER_NODE_DOMAIN_SEPARATOR