From 580b8d50e3d8ba9beb5d3426faaf2ad972dda307 Mon Sep 17 00:00:00 2001 From: mnovak Date: Sat, 14 Nov 2026 13:23:25 +0100 Subject: [PATCH] =?UTF-8?q?[docs]=20F21:=20PROTOCOL.md=20section=204,=20th?= =?UTF-8?q?e=20pairing=20as=20built=20=E2=80=94=20proposed,=20waits=20for?= =?UTF-8?q?=20Mark's=20approval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/PROTOCOL.md | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/docs/PROTOCOL.md b/docs/PROTOCOL.md index 7231e54..dbd0021 100644 --- a/docs/PROTOCOL.md +++ b/docs/PROTOCOL.md @@ -27,10 +27,23 @@ is a protocol version bump: documented, reviewed, approved (`CLAUDE.md` §2.2). - **Block** = the owner rotates the post token; the old one is refused. The blocked person is not told. ## 4. Invitations -A QR code (in person) or a link carries: relay URL, an invite id, and a one-time fetch secret. The -invitee fetches the inviter's MLS KeyPackage from the relay with it, replies with their own, and -both sides exchange mailbox ids and post tokens **inside** MLS. Unclaimed invites expire after -**7 days** *(decided 2026-11-08)*. +A QR code (in person) or a link carries: relay URL, an invite id, and a one-time secret. Unclaimed +invites expire after **7 days** *(decided 2026-11-08)*. +1. **The inviter** leaves its MLS KeyPackage on the relay under the invite id and the secret's hash. + It also creates a **welcome mailbox**, whose id and post token are derived from the secret with + HKDF-SHA256: empty salt, info `tabellarius v0 welcome mailbox` (16 bytes) and + `tabellarius v0 welcome mailbox post` (32 bytes). +2. **The invitee** claims the KeyPackage with the secret, which deletes the invite. It creates the + MLS group with the inviter in it, and posts to the welcome mailbox: + - the Welcome; + - an MLS message carrying its own mailbox id, a post token for it, and its name. +3. **The inviter** joins from the Welcome and answers inside MLS with its own mailbox, post token and + name. + +From then on each side posts to the other's mailbox. Names and post tokens travel **only inside +MLS**. To the relay, the welcome mailbox is an ordinary mailbox. +*(Changed 2026-11-14 from "the invitee replies with their own KeyPackage", pending Mark's +approval: the invitee needs no KeyPackage, because it creates the group itself.)* ## 5. What the relay stores — the complete list | Table | Columns |