Function noble_mmr::verify_leaf_proof[][src]

pub fn verify_leaf_proof<H, L>(
    root: H::Output,
    leaf: DataOrHash<H, L>,
    proof: Proof<H::Output>
) -> Result<(), Error> where
    H: Hash,
    L: FullLeaf

Stateless MMR proof verification.

This function can be used to verify received MMR proof (proof) for given leaf data (leaf) against a known MMR root hash (root).

The verification does not require any storage access.