Expand description
Device transfer: move an account to another device by scanning a QR or typing a short code. Both devices meet on relays, prove the code to each other with a PAKE, and the key moves only after the user approves on the device that holds it.
Modules§
- avatar
- The sender’s avatar for the new device’s screen: a small thumbnail that rides in the sealed hello, so the new device fetches nothing before sign-in. The receiver re-encodes whatever arrives, so the page only ever renders a PNG this code produced.
- code
- The transfer code,
<nameplate>-<word>-<word>-<word>. The nameplate picks the meeting room and is public; the words are the secret the two devices prove to each other. - crypto
- The transfer’s cryptography: SPAKE2 over the code, the commitment that stops either side picking its message after seeing the other’s, the transcript every key is bound to, the sealed messages that follow, and the ML-KEM-1024 exchange whose secret joins SPAKE2’s before the identity is sealed, so a recording is safe from a future quantum computer too.
- service
- The network side, and the one transfer a process runs at a time.
- session
- One side of a transfer as a pure state machine: messages in, messages and outcomes out. The network loop feeds it; the tests drive two or three of them by hand.
- wire
- Transfer messages as they travel in an event’s content: JSON with a cleartext version, so a device on an older protocol says “update Vector” rather than “wrong code”.