Skip to main content

verify_inclusion

Function verify_inclusion 

Source
pub fn verify_inclusion(
    leaf_hash: &[u8; 32],
    steps: &[(Vec<u8>, bool)],
    root: &[u8; 32],
) -> Result<()>
Expand description

RFC 6962 §2.1.1 inclusion proof verification. Given the leaf hash, the proof steps, and the claimed root, verify the leaf is actually in the tree under that root.