1.6 KiB
1.6 KiB
Architecture
Components
- Android client owns device identity, private keys, call secrets, media encryption and audio capture/playback.
- Go API handles account registration, device registration and public directory operations.
- Go signaling forwards authenticated, size-limited call setup messages. It is not a media server.
- Key directory distributes public identity/prekey bundles. It cannot create or recover private keys.
- coturn provides STUN/TURN traversal and relays encrypted packets only.
- PostgreSQL stores account/device metadata and public key material.
Media security boundary
WebRTC DTLS-SRTP protects each transport leg. It is not by itself sufficient for endpoint-to-endpoint confidentiality when a media intermediary terminates a leg. SFrame (RFC 9605) is the intended end-to-end media protection layer. The SFrame key-management protocol and sender authentication must be designed and tested separately.
Call flow (target)
- Caller obtains callee public device/prekey bundle.
- Caller validates device identity or presents an explicit unverified warning.
- Endpoints run a maintained PQXDH-compatible handshake and authenticate the transcript.
- Endpoints derive fresh, directional SFrame sender keys using a reviewed key schedule.
- SDP/ICE negotiation is forwarded by signaling.
- Media flows directly or through coturn; SFrame ciphertext is opaque to relays.
- Network changes trigger ICE restart/recovery without reusing key/nonce pairs.
Explicit non-goals for MVP
- PSTN/SIM voice-call interception or encryption
- Group calls and video
- Desktop clients
- Server-side media recording
- Phone-number identity