Crate ab_merkle_tree

Source
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§

balanced_hashed
unbalanced_hashed

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()] and INNER_NODE_DOMAIN_SEPARATOR