AlgoChat protocol docs
Documentation · Protocol 1.4.0
AlgoChat protocol docs
A cross-language, end-to-end encrypted messaging protocol. A hybrid session is X25519 plus ML-KEM-768, then ChaCha20-Poly1305. Everyday chat and Extra lock stay choices. Extra lock is not a stronger post-quantum choice than hybrid. The flow diagrams show a new chat, the handshake, and a room. One wire format, six implementations.
Getting started
Specification
Protocol specification
The protocol 1.4.0 wire format: everyday chat, Extra lock, hybrid sessions, group mailbox notes, and constants.
Flow diagrams
How a new chat becomes a hybrid session, and how a handshake, a room key, and a group message move.
Implementation guide
Language-agnostic pseudocode for key derivation, encrypt, decrypt, serialization, key discovery, Extra lock, and hybrid sessions.
Test vectors
Canonical, deterministic test vectors for cross-implementation verification: key derivation, envelopes, round-trips, and PSK ratcheting.
Security
Implementations
The specification and all six libraries live in the AlgoChat monorepo. Jump straight to a library below.