Skip to main content

Crate kaspa_merkle

Crate kaspa_merkle 

Source

Re-exports§

pub use streaming::StreamingMerkleBuilder;

Modules§

streaming
Streaming (stack-based) Merkle tree builder — no heap allocation.

Functions§

calc_merkle_root
calc_merkle_root_with_hasher
Standard Merkle convention: a tree with one leaf is the leaf itself. Callers must ensure the set of valid leaf hashes is disjoint from valid internal-node hashes (typically via per-domain hashers) so the two cases cannot be confused.
merkle_hash
merkle_hash_with_hasher