Skip to main content

parse_envelope

Function parse_envelope 

Source
pub fn parse_envelope(
    sexpr: &SExpr,
    max_recipients: usize,
) -> Result<RedactedEnvelope, EnvelopeParseError>
Expand description

Parse the CON-700 envelope production — full recognition, reject-never -repair. max_recipients is the caller’s R2-derived bound on the recipient set (role sets are already bounded by R2; an envelope claiming more recipients than the deployment admits is rejected structurally, before any signature work).