Skip to main content

Module envelope

Module envelope 

Source
Expand description

Decode backend envelopes once for queries and streams.

Enums§

EnvelopeError
A backend envelope cannot be decoded. These errors are not retryable.

Functions§

decode_commit_log_entry
Decode a signed commit-log record without verifying its signature.
decode_group_message
Decode an MLS message and keep its payload hash and server metadata.
decode_group_message_metadata
Decode the newest group metadata without loading its payload.
decode_identity_update
Decode an identity update and check its inbox topic.
decode_key_package
Decode a key package returned by a full newest query.
decode_welcome_message
Decode an inline welcome or encrypted welcome pointer.
message_hash
Read the SHA-256 envelope hash from server metadata.
metadata
Check the topic, cursor, hash, and server timestamp.
ordered_batches
Validate a complete ordered read without parsing or changing MLS bytes. Preserve each topic’s input cursor as after; sequence gaps are valid. Advance only these in-memory cursors on success, never durable receipt F.
registration_targets
Check every fixed target against the exact registered topic set. Require one target per topic. A target may be below the requested start.