Skip to main content

OUTPUT_DESCRIPTION_SIZE

Constant OUTPUT_DESCRIPTION_SIZE 

Source
pub const OUTPUT_DESCRIPTION_SIZE: usize = _ /* 948usize */;
Expand description

The size in bytes of a Sapling output description in its v4 (pre-NU5) serialized form, as written by the internal write_output_v4 encoder.

This is the full per-output cost on the wire in a version 4 transaction: the value commitment, the extracted note commitment, the ephemeral key, the encrypted note ciphertext, the encrypted outgoing ciphertext, and the Groth16 proof. Version 5 transactions move the proofs to a bundle-level field (the v5 output encoder omits the zkproof), so this v4 size is the conservative upper bound: dividing a per-output byte budget by this constant yields a lower bound on the number of outputs that fit within it.