Skip to main content

verify_externalized_proof

Function verify_externalized_proof 

Source
pub fn verify_externalized_proof(
    trust_qset: &SCPQuorumSet,
    slot_index: SCPSlotIndex,
    value: &SCPValue,
    proof: &ExternalizedSlotProof,
) -> Result<(), VerifyError>
Expand description

Verifies that proof proves SCP externalization of value at slot_index under trust_qset.

The proof must contain at most one statement per signer node and the XDR-encoded companion quorum set bytes for every quorum-set hash referenced by those statements. The verifier rejects oversized proof material before allocating or decoding it.