a6672fe9f31ffd45a031bf4efdf40236f5320178
EE2E Phone Calls
Self-hosted, username-based Android-to-Android encrypted voice calling project.
Status: development scaffold / Milestone M0-M1. This is not a working secure calling product. Cryptographic handshake, SFrame media transforms, WebRTC integration, push delivery and production hardening are intentionally not implemented yet.
Architecture baseline
- Android: Kotlin, Jetpack Compose, Android Keystore, Core-Telecom
- Backend: Go HTTP API and WebSocket signaling
- Database: PostgreSQL
- Media: WebRTC + Opus + SFrame (endpoint-to-endpoint)
- Key agreement: audited PQXDH implementation with a compatible ML-KEM suite; do not invent a hybrid protocol
- Relay: coturn
- Deployment: self-hosted Docker Compose
Quick start (development)
- Copy
.env.exampleto.envand change all secrets. - Start infrastructure:
docker compose --env-file .env -f infrastructure/compose/docker-compose.yml up --build -d - Check API health:
curl http://localhost:8080/healthz - Check signaling health:
curl http://localhost:8081/healthz
The API currently provides only health and a placeholder registration endpoint. Signaling currently accepts WebSocket connections but does not yet implement authenticated call routing. Do not expose this scaffold to the public Internet.
Repository layout
backend/: Go servicesandroid/: native Android starter projectdocs/: architecture, threat model, protocols and milestonesinfrastructure/: Docker Compose, coturn and database initializationtests/: planned integration and security test plans
Development commands
cd backend
go test ./...
go run ./cmd/api
Android build (requires Android Studio / Android SDK and a locally installed Gradle):
cd android
gradle assembleDebug
Security rules
- Never send private keys, shared secrets or plaintext audio to the backend.
- Do not mark a call secure until peer identity and media encryption are authenticated.
- Keep signaling and media encryption separate; TLS/DTLS-SRTP alone is not the project's E2EE guarantee.
- Do not implement cryptographic primitives or a custom PQXDH variant.
- Treat all cryptographic integrations as blocked until library selection, interoperability tests and review are complete.
See docs/ before implementing protocol or production deployment work.
Languages
Go
80.3%
Kotlin
18.4%
Dockerfile
1%
Makefile
0.3%