Skip to main content

leaf_proof

Function leaf_proof 

Source
pub async fn leaf_proof<R: NodeReader>(
    reader: &R,
    view: &AlgView,
    alg_id: u64,
    index: u64,
    tree_size: u64,
    global_size: u64,
    arity: u64,
) -> Result<Option<LeafProof>, R::Error>
Expand description

Produce a self-contained spine::LeafProof for index in a tree of size tree_size. Returns None when no inclusion proof exists.

§Errors

Propagates Error from the node reads.