Documentation Index
Fetch the complete documentation index at: https://mintlify.com/openmls/openmls/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Create a new MLS group with yourself as the only member. Groups can be created with a random or custom group ID.Creating a Group
Basic Creation
Create a group with a random group ID:With Custom Group ID
Create a group with a specific group ID:Using the Builder
For advanced configuration, use the builder pattern:Method Signatures
MlsGroup::new
OpenMLS provider for crypto and storage operations
Signature key for authenticating group operations
Configuration for the new group (ciphersuite, extensions, etc.)
Your credential and public key
Result<MlsGroup, NewGroupError>
Location: openmls/src/group/mls_group/creation.rs:45
MlsGroup::new_with_group_id
OpenMLS provider for crypto and storage operations
Signature key for authenticating group operations
Configuration for the new group
Custom group identifier
Your credential and public key
Result<MlsGroup, NewGroupError>
Location: openmls/src/group/mls_group/creation.rs:61
MlsGroup::builder
Returns an MlsGroupBuilder for configuring group creation.
Location: openmls/src/group/mls_group/creation.rs:36
Builder Configuration Options
Set a custom group ID (default: random)
Set the cryptographic ciphersuite
Configure message wire format (plaintext/ciphertext)
Number of past epochs to keep for decryption (default: 0)
Include ratchet tree in Welcome messages (default: false)
Set group-level extensions
Set leaf node extensions
Set supported capabilities
Replace existing group with same ID if it exists
Complete Example
Error Handling
Group creation can fail withNewGroupError:
GroupAlreadyExists- A group with this ID already exists in storageUnsupportedProposalType- Configuration includes unsupported proposalsInvalidExtensions- Invalid extension configurationStorageError- Failed to persist group to storage
Next Steps
- Add members to grow your group
- Update your own key material
- Remove members from the group