pub fn parse(bytes: &[u8], max_total: u64) -> Result<Envelope, EnvelopeError>
Parse and fully validate an envelope.