Skip to main content

encode_payload

Function encode_payload 

Source
pub fn encode_payload(payload: &Payload) -> Res<Vec<u8>>
Expand description

Encodes a bare Payload envelope for at-rest retention (PRD-0013) — the same codec as the wire, so stored history is byte-identical to what crossed it (E2E ciphertext included).

§Errors

Returns an error if encoding fails.