Module tree

Source

Structs§

MerkleTree

Functions§

compute_path
Computes the path from the leaf to the root using the provided proof.
get_merkle_proof
Returns a Merkle proof for a specific leaf in the tree.
hash_left_right
Hashes two hashes together, ensuring a consistent order.
hash_pairs
Hashes pairs of hashes together, returning a new vector of hashes.
verify
Verifies that a given merkle root contains the leaf using the provided proof.