Skip to main content

decode_proof_bundle

Function decode_proof_bundle 

Source
pub fn decode_proof_bundle(data: &[u8]) -> Result<ProofBundle, String>
Expand description

Parse canonical wire JSON into a crate::types::ProofBundle under strict wire acceptance and the SPEC §5.1 input bounds. The [MAX_PROOF_BUNDLE_BYTES] check runs BEFORE any parsing: an oversized payload is rejected without being parsed at all.