Expand description
Wire envelope shared by every transport.
Structs§
- Incoming
Message - Application message handed to the host on receive.
- Message
Envelope - On-the-wire envelope. CBOR-encoded.
- Outgoing
Message - Application message handed to the SDK to send.
Enums§
- Message
Kind - What an envelope carries. Application bytes are opaque; handshake variants are MLS payloads.
Functions§
- hash_
application_ plaintext - SHA-256 over the raw application plaintext — the v=2 hash for
MessageKind::Applicationper [CR-6]. No kind byte, no envelope framing; cross-binding parity comes from canonical CBOR of the innerAppEvent. - hash_
handshake - SHA-256 over
kind_byte || payload— the v=1 hash, used by handshake kinds in both v=1 and v=2 envelopes.