Skip to main content

verify_header_proof

Function verify_header_proof 

Source
pub fn verify_header_proof(
    proof_bytes: &[u8],
    tip: u32,
    mainnet: bool,
) -> Result<ProvenRoots, ZyncError>
Expand description

Validate a header proof and extract proven NOMT roots.

Returns ProvenRoots on success, or error if the proof is invalid, discontinuous, or too stale relative to tip.