Skip to main content

Crate xmtp_mls_validation

Crate xmtp_mls_validation 

Source
Expand description

Shared payload admission. Storage and transport remain with their callers.

Modules§

commit
Pure commit validation rules.
group_membership
group_permissions

Structs§

AssociationValidation
ParsedEnvelope
Parsed routing metadata and canonical storage bytes.

Enums§

ValidationError

Constants§

MAX_BLOCK_AGE_SECS
The oldest a new update’s ERC-6492 block may be, relative to the chain head.

Functions§

check_freshness
Reject a new update whose ERC-6492 signature names a block after its chain’s head, or one more than MAX_BLOCK_AGE_SECS before it.
erc6492_signatures
Every ERC-6492 signature an identity update carries, in action order.
is_commit_or_proposal
Classify an MLS message for retention purposes.
parse_envelope
Decode one envelope, derive its topic, and compute canonical retry bytes.
parse_group_message
Parse an MLS group message and preserve accepted trailing bytes.
validate_envelope
Validate one parsed envelope after duplicate lookup.
validate_identity_updates
Validate a new identity suffix against one complete history snapshot.
verify_key_package
Apply the existing key-package admission checks to serialized bytes.