Function monotree::tree::verify_proof
source · pub fn verify_proof<H: Hasher>(
hasher: &H,
root: Option<&Hash>,
leaf: &Hash,
proof: Option<&Proof>
) -> bool
Expand description
Verify a Merkle proof with the given root, leaf and hasher if the proof is valid or not.
Be aware of that it fails if not provided a suitable hasher used in the tree This generic fn must be independantly called upon request, not a member of Monotree.