Lowkey
a p2p e2e chat app. literal lowkey
The problem Lowkey solves
Here's a compelling "The Problem It Solves" for Lowkey:
The Problem It Solves
Every mainstream messaging app — WhatsApp, Telegram, Signal — requires your phone number, stores your metadata, and routes messages through centralized servers they control. Even "end-to-end encrypted" apps know who you're talking to, when, how often, and from where (your IP address). This metadata alone is enough to build a complete social graph of your life.
Lowkey eliminates all of this.
- No phone number, no email, no sign-up. Pick a username and you exist. Close the app and you don't.
- No server-stored messages. Messages travel directly between devices via WebRTC peer-to-peer — the server only helps you find each other, never sees what you say.
- No persistent identity. There's no account to hack, no database to breach, no chat history to subpoena. Every session starts fresh.
- Forward secrecy via DH Ratchet. Each message turn generates fresh encryption keys. Compromising one key can't decrypt past or future messages.
- IP anonymity via Tor. With one toggle, your traffic routes through the Tor onion network — no single node knows both who you are and who you're talking to.
In a world where "private messaging" still means a corporation promising not to read your data, Lowkey takes a different approach: there's nothing to read, nothing to store, and no one to trust.
Challenges we ran into
Challenges I Ran Into
1. WebRTC Exposes Real IP Addresses
The biggest architectural challenge was realizing that even with E2E encryption, WebRTC's ICE negotiation leaks both peers' real IP addresses through ICE candidates — and the signaling server relays them, so it sees everything too. The fix was integrating Tor as a SOCKS5 proxy to route the signaling WebSocket through the onion network. This way, no single node knows both who's sending and who's receiving.
2. Auto-Connect Without Consent
I discovered that when User A entered User B's username, both users were instantly connected without User B ever agreeing. The server auto-joined both sides. The elegant fix turned out to be frontend-only — I used the existing _isInitiator flag to detect unsolicited connections on User B's side and gate the key exchange behind an Accept/Decline dialog. If User B declines, the public key is never sent, and the handshake simply never completes.
3. DH Ratchet: Keeping the API Clean
Implementing the Diffie-Hellman ratchet for forward secrecy was tricky because I wanted to rotate X25519 keys on every turn change without modifying the ChatScreen at all. The solution was encapsulating the ratchet entirely inside CryptoService — messages now carry the ratchet public key as JSON {"rk": "...", "ct": "..."}, but encryptMessage() and decryptMessage() still accept and return plain strings.
Tracks Applied (1)