Skip to main content

root_from_proof

Function root_from_proof 

Source
pub fn root_from_proof(
    index: u64,
    size: u64,
    leaf: &Hash,
    proof: &[Hash],
) -> Option<Hash>
Expand description

The root an inclusion proof leads to (RFC 9162 §2.1.3.2), or None if the proof does not fit a tree of size leaves.