Skip to main content

canonical_envelope

Function canonical_envelope 

Source
pub fn canonical_envelope(envelope: &ClientEnvelope) -> CanonicalEnvelope
Expand description

Encode the outer envelope once for storage, retries, and hash matching.

Inner payload bytes are copied exactly as supplied. This function does not validate the payload or calculate the separate client MLS message ID.