Skip to main content

MAX_PAYMENT_PROOF_SIZE_BYTES

Constant MAX_PAYMENT_PROOF_SIZE_BYTES 

Source
pub const MAX_PAYMENT_PROOF_SIZE_BYTES: usize = 262_144;
Expand description

Maximum allowed size for a payment proof in bytes (256 KB).

Single-node proofs with 7 ML-DSA-65 quotes reach ~40 KB. Merkle proofs include 16 candidate nodes (each with ~1,952-byte ML-DSA pub key and ~3,309-byte signature) plus merkle branch hashes, totaling ~130 KB. 256 KB provides headroom while still capping memory during verification.