Function merkletree::merkle::get_merkle_tree_len_generic

source ยท
pub fn get_merkle_tree_len_generic<BaseTreeArity: Unsigned, SubTreeArity: Unsigned, TopTreeArity: Unsigned>(
    leaves: usize,
) -> Result<usize>
Expand description

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.