Realm

oa::crypto::merkle_proof

Construct the inclusion proof for one leaf. Errors Returns an error for an empty tree or an out-of-range leaf index.

FnRust public API

Function Documentation

pub fn merkle_proof( tree: &MerkleTree, leaf_index: usize ) -> Result<MerkleProof>
Construct the inclusion proof for one leaf. Errors Returns an error for an empty tree or an out-of-range leaf index.