Skip to main content

Module envelope

Module envelope 

Source
Expand description

The sealed envelope: what a payload looks like on the wire, both ways.

Every encrypted payload in the protocol is an EncryptedMessage, in one of two interchangeable encodings. The compact binary codec (EncryptedMessage::to_bytes) is what peers that negotiated it use; JSON is the permanent floor, because a peer that advertised no capability at all must still be able to read a frame.

Both encodings are here, in a crate a leaf node can link, because the phone and the leaf are the two ends of the same envelope: a second implementation of this codec is a second wire format the moment either side is edited alone.

Structs§

EncryptedMessage
An encrypted MLS message ready for transport.
GroupId
Unique identifier for an MLS group.
WelcomeMessage
A Welcome message for inviting users to a group.

Enums§

MlsMessageType
Type of MLS message.