MLS Protocol
MLS Protocol¶
- Allows a group of clients to exchange messages securely.
- Derives Secrets only known to the clients with forward-secrecy and post-compromise security
Note
All operations are proposed until a commit is generated.
Setting up a Chat¶
Setting up Init:
Group
A B C Directory Channel
| | | | |
| KeyPackageA | | | |
|------------------------------------------------->| |
| | | | |
| | KeyPackageB | | |
| |-------------------------------->| |
| | | | |
| | | KeyPackageC | |
| | |--------------->| |
| | | | |
Adding a Member¶
Adding 2 new Users to chat:
Group
A B C Directory Channel
| | | | |
| KeyPackageB, KeyPackageC | |
|<-------------------------------------------| |
|state.init() | | | |
| | | | |
| | | | Add(A->AB) |
| | | | Commit(Add) |
|--------------------------------------------------------------->|
| | | | |
| Welcome(B) | | | |
|------------->|state.join() | | |
| | | | |
| | | | Add(A->AB) |
| | | | Commit(Add) |
|<---------------------------------------------------------------|
|state.add(B) | | | |
| | | | |
| | | | |
| | | | Add(AB->ABC) |
| | | | Commit(Add) |
|--------------------------------------------------------------->|
| | | | |
| | Welcome(C) | | |
|---------------------------->|state.join() | |
| | | | |
| | | | Add(AB->ABC) |
| | | | Commit(Add) |
|<---------------------------------------------------------------|
|state.add(C) |<------------------------------------------------|
| |state.add(C) | | |
| | | | |
Updating a Leaf Secret¶
User B Updating a Key:
Group
A B ... Z Directory Channel
| | | | |
| | Update(B) | | |
| |------------------------------------------->|
| Commit(Upd) | | | |
|---------------------------------------------------------->|
| | | | |
| | | | Update(B) |
| | | | Commit(Upd) |
|<----------------------------------------------------------|
|state.upd(B) |<-------------------------------------------|
| |state.upd(B) |<----------------------------|
| | |state.upd(B) | |
| | | | |
Removing a Member¶
Removing a User from a Group:
Group
A B ... Z Directory Channel
| | | | |
| | | Remove(B) | |
| | | Commit(Rem) | |
| | |---------------------------->|
| | | | |
| | | | Remove(B) |
| | | | Commit(Rem) |
|<----------------------------------------------------------|
|state.rem(B) | |<----------------------------|
| | |state.rem(B) | |
| | | | |
| | | | |