Files
2026-11-16 20:49:40 +02:00

1.6 KiB

Architecture

Components

  1. Android client owns device identity, private keys, call secrets, media encryption and audio capture/playback.
  2. Go API handles account registration, device registration and public directory operations.
  3. Go signaling forwards authenticated, size-limited call setup messages. It is not a media server.
  4. Key directory distributes public identity/prekey bundles. It cannot create or recover private keys.
  5. coturn provides STUN/TURN traversal and relays encrypted packets only.
  6. 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)

  1. Caller obtains callee public device/prekey bundle.
  2. Caller validates device identity or presents an explicit unverified warning.
  3. Endpoints run a maintained PQXDH-compatible handshake and authenticate the transcript.
  4. Endpoints derive fresh, directional SFrame sender keys using a reviewed key schedule.
  5. SDP/ICE negotiation is forwarded by signaling.
  6. Media flows directly or through coturn; SFrame ciphertext is opaque to relays.
  7. 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