merkle_path_root

Function merkle_path_root 

Source
pub fn merkle_path_root(
    leaf_value: impl Borrow<Digest>,
    path: impl IntoIterator<Item = impl Borrow<Digest>>,
) -> Digest
Expand description

Calculate the root of the path assuming the given leaf value.

NOTE: The result of this function must be checked to be the root of some committed Merkle tree.