[][src]Module snarkos_objects::merkle_tree

Structs

MerkleTreeRootHash

Functions

merkle_hash

Calculate the Merkle tree hash by concatenating the left and right children nodes.

merkle_root

Calculates the root of the Merkle tree

merkle_root_with_subroots

Calculates a Merkle root and also returns the subroots at a desired depth. If the tree is too shallow to have subroots at that depth, returns the root as a single subroot.