Skip to main content

decode_envelope

Function decode_envelope 

Source
pub fn decode_envelope(bytes: &[u8]) -> Option<RelayEnvelope>
Expand description

Decode a CHAT-port payload back into a chat envelope. None if it is not a valid CBOR envelope.