Files

58 lines
2.6 KiB
Markdown

# EE2E Phone Calls
Self-hosted, username-based Android-to-Android encrypted voice calling project.
**Status:** development scaffold. M1 local Go/Docker infrastructure is verified, and the M2 account/device API flow passes a local smoke check. M0 feasibility and M3 Android verification remain open. This is not a working secure calling product. The cryptographic handshake, SFrame media transforms, WebRTC integration, push delivery and production hardening are not implemented.
## 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)
1. Copy `.env.example` to `.env` and change all secrets.
2. Start infrastructure: `docker compose --env-file .env -f infrastructure/compose/docker-compose.yml up --build -d`
3. Check API health: `curl http://localhost:8080/healthz`
4. Check signaling health: `curl http://localhost:8081/healthz`
The API has development account/session endpoints and a provisional P-256 public device directory. Signaling does not yet implement authenticated call routing. Do not expose this scaffold to the public Internet.
## Repository layout
- `backend/`: Go services
- `android/`: native Android starter project
- `docs/`: architecture, threat model, protocols and milestones
- `infrastructure/`: Docker Compose, coturn and database initialization
- `tests/`: planned integration and security test plans
## Development commands
```bash
cd backend
go test ./...
go run ./cmd/api
```
Android build (requires Android Studio / Android SDK and a locally installed Gradle):
```bash
cd android
gradle assembleDebug
gradle archiveDebugApk
```
`archiveDebugApk` writes a build-identified copy to `android/app/build/outputs/versioned-apk/`. See [Android build versioning](docs/ANDROID-BUILDS.md) for CI and release overrides.
## Security rules
1. Never send private keys, shared secrets or plaintext audio to the backend.
2. Do not mark a call secure until peer identity and media encryption are authenticated.
3. Keep signaling and media encryption separate; TLS/DTLS-SRTP alone is not the project's E2EE guarantee.
4. Do not implement cryptographic primitives or a custom PQXDH variant.
5. Treat all cryptographic integrations as blocked until library selection, interoperability tests and review are complete.
See `docs/` before implementing protocol or production deployment work.