Cryptography architecture

Messages use end-to-end keys (devices only); login uses a Station↔Broker shared secret injected at make station via git-crypt→SSH. Two distinct key kinds.

Cryptography architecture Messages use end-to-end keys (devices only); login uses a Station↔Broker shared secret injected at make station via git-crypt→SSH. Two distinct key kinds. Sending device · Plaintext · Architecture component · Trusted end Sending device Plaintext Trusted end E2E encrypt · MLS · HPKE · X25519 · Architecture component · On device E2E encrypt MLS · HPKE · X25519 On device Home Station · Relays / stores ciphertext · Untrusted transit zone: ciphertext only, no keys held · No content access Home Station Relays / stores ciphertext No content access Media SFU / TURN · Forwards encrypted media · Untrusted transit zone: ciphertext only, no keys held · No content access Media SFU / TURN Forwards encrypted media No content access Relay · Opaque Circuit relay · Untrusted transit zone: ciphertext only, no keys held · No content access Relay Opaque Circuit relay No content access Federation peer · Stores ciphertext · verifies · Untrusted transit zone: ciphertext only, no keys held · No content access Federation peer Stores ciphertext · verifies No content access E2E decrypt · Recipient Ed25519 key · Architecture component · On device E2E decrypt Recipient Ed25519 key On device Receiving device · Plaintext · Architecture component · Trusted end Receiving device Plaintext Trusted end Held by sender · Own private key · on device · Architecture component · Key holder Held by sender Own private key · on device Key holder E2E session key · X25519 · derived on both ends · Architecture component · Key holder E2E session key X25519 · derived on both ends Key holder Servers: no content key · No E2E message key · Architecture component · No key Servers: no content key No E2E message key No key Held by receiver · Recipient private key · on device · Architecture component · Key holder Held by receiver Recipient private key · on device Key holder On-device database · Full-disk SQLCipher · Architecture component · At rest On-device database Full-disk SQLCipher At rest Local DB key · OS keychain/DPAPI · Argon2id · Architecture component · At rest Local DB key OS keychain/DPAPI · Argon2id At rest Station/Relay host secrets · AUTH/DB · host-generated · TLS/Noise · Architecture component · Server Station/Relay host secrets AUTH/DB · host-generated · TLS/Noise Server Deployment secret delivery · git-crypt → SSH/TLS → 0600 · Architecture component · Server Deployment secret delivery git-crypt → SSH/TLS → 0600 Server OAuth Broker (Vercel) · Login broker · hosted externally · Architecture component · Login service OAuth Broker (Vercel) Login broker · hosted externally Login service Ciphertext Ciphertext Ciphertext Signed Plaintext Plaintext holds uses uses holds same bridge secret (HMAC) Untrusted transit zone: ciphertext only, no keys held Legend Frontend Backend Database Cloud Security Message bus External