pub fn decode_envelope(bytes: &[u8]) -> Result<DigMessageEnvelope>Expand description
Decode an envelope from on-wire bytes, rejecting an over-cap frame BEFORE decoding and an unknown version after (SPEC §1, §2).
§Errors
MessageError::EnvelopeTooLarge if the frame exceeds the cap; MessageError::Truncated on a
short/malformed frame; MessageError::UnsupportedVersion for a newer version.