Skip to main content

Module message

Module message 

Source
Expand description

Wire envelope shared by every transport.

Structs§

IncomingMessage
Application message handed to the host on receive.
MessageEnvelope
On-the-wire envelope. CBOR-encoded.
OutgoingMessage
Application message handed to the SDK to send.

Enums§

MessageKind
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::Application per [CR-6]. No kind byte, no envelope framing; cross-binding parity comes from canonical CBOR of the inner AppEvent.
hash_handshake
SHA-256 over kind_byte || payload — the v=1 hash, used by handshake kinds in both v=1 and v=2 envelopes.