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§
- Encrypted
Message - An encrypted MLS message ready for transport.
- GroupId
- Unique identifier for an MLS group.
- Welcome
Message - A Welcome message for inviting users to a group.
Enums§
- MlsMessage
Type - Type of MLS message.