Module merkletree::merkle
source · Expand description
Merkle tree abstractions, implementation and algorithms.
Structs§
Constants§
Traits§
- Element stored in the merkle tree.
Functions§
- FIXME: Ideally this function should be replaced with ‘get_merkle_tree_len_generic’ defined above, since it considers compound and compound-compound trees
- This function calculates length of the generic tree by taking values from arity parameters. E.g. it can be used for base / compound / compound-compound trees.
- find power of 2 of a number which is power of 2
- returns next highest power of two from a given number if it is not already a power of two.