pub fn root_from_proof( index: u64, size: u64, leaf: &Hash, proof: &[Hash], ) -> Option<Hash>
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.
None
size