An end-to-end encrypted chat app on Cloudflare Workers. It follows Signal's design (PQXDH, a double ratchet with encrypted headers, sender keys for groups, sealed sender, several devices per account), with post-quantum cryptography in every layer.
- Post-quantum handshake. Every session starts with X25519 + ML-KEM-768, so recording traffic today and breaking X25519 later isn't enough to read it.
- Post-quantum ratchet. The ratchet keeps mixing in fresh ML-KEM secrets as people chat, not just at the start.
- Hybrid identity signatures. Every identity signature is Ed25519 + ML-DSA-65, and both halves have to verify.
- Post-quantum sealed sender and device linking. Both also use X25519 + ML-KEM-768, so the server can't see who sent a message.
- Key transparency. Every identity the directory publishes goes into an append-only, signed Merkle log (RFC 9162) that clients check, so the server can't quietly swap someone's keys.
- Built on Cloudflare: Workers, Durable Objects, D1, KV, R2 and Queues, with the client in React and TypeScript using the
@noblecryptography libraries. - A full chat app, not a demo: 1:1 and group chat, files, voice notes, reactions, edits, disappearing messages, safety numbers, multiple devices, and group voice and video calls.
- Tested end to end: unit tests for the cryptography, Merkle log and sealed sender, plus live full-stack tests against Workers, D1, Durable Objects, KV, R2 and Queues, and browser tests that drive the real UI in Chrome.
What I don't claim: it's a learning and portfolio project and hasn't been audited. The docs include a threat model that says exactly what the server can and can't see.