Skip to main content

decode_envelope

Function decode_envelope 

Source
pub fn decode_envelope(bytes: &[u8]) -> Result<ChainEvent, DecodeError>
Expand description

Pure decoding, with the version gated before the shape, independent of JSON key order. Unknown fields, kinds and versions are reported errors.