Letters only the recipient can open. A postal system for messages: post-quantum end-to-end encryption, a relay that holds sealed envelopes and cannot read a word, no phone numbers, no accounts but a key.
Stillpost is a messaging system built like a postal service. You write a letter; your device seals it to the recipient's key; a relay holds the sealed envelope until they collect it. The relay stores ciphertext and routing fields — it never sees a plaintext word, a contact list, or a key.
There is no phone number and no password. An account is a key pair: a FIPS 203/204 post-quantum key hierarchy held on your devices. Your address is handle@stillpost.dev — portable, relay-scoped, and meaningless without your keys. Devices pair by scanning a code; the account root key never leaves the device that created it.
The wire protocol, SPT/1, is fully specified and cross-checked: the Rust core and the Go relay must agree on the same test vectors, regenerated and verified on every run of the conformance suite.
A sender looks the recipient up (LOOKUP, op 2) and receives their bundle: account root key, one manifest per device, and an unused one-time prekey for each. The envelope is sealed to one device's prekey and queued for exactly that device. One-time prekeys are reserved on handout and deleted on first use, so no two letters are sealed to the same secret.
Everything on the wire is a CBOR envelope signed by the sender's device key and encrypted with CMS-style layers. The outer part is readable by the relay — it must be, to route and queue. The inner part is readable by nobody else.
No RSA, no X25519, no Ed25519 — the primitives are chosen so a quantum computer with enough capacity cannot retroactively open archived letters.
| Job | Primitive | Where |
|---|---|---|
| Letter confidentiality | ML-KEM-1024 (FIPS 203) one-time prekeys | every peer letter |
| Authenticity, manifests | ML-DSA-87 (FIPS 204) device keys | envelopes, manifests, profiles |
| Content encryption | AES-256-GCM, keys wrapped with AES-KW | CMS layer, attachment chunks |
| Key derivation | HKDF-SHA-256 | call signal keys, sender chains |
| Call media | SFrame (RFC 9605) over WebRTC DTLS-SRTP | voice and video |
| Human verification | safety code over both root keys | contact verification |
Attachments get a fresh 256-bit file key per file, sealed inside the letter's manifest; the bytes travel in 1 MiB AES-256-GCM chunks the relay stores blindly. Voice and video keys are negotiated inside CALL_SIGNAL envelopes and applied as SFrame transforms, so the media path never carries plaintext frames the relay could decrypt.
An account is created on one device: that device generates the account root key (ML-DSA-87) and it never leaves. Every other device is a leaf, vouched for by a root-signed device manifest — which is what lets the relay verify any single device without ever holding a secret.
Devices of one account keep each other current over mirror letters: sent-mail state, read state, and — for a freshly paired device — a backfill of history. Mirrors ride the same sealed-letter path and carry no conversation ID of their own.
Per-device queues with a 7-day retention, per-sender quotas, and immediate delivery to connected devices. A letter is deleted the moment its recipient acknowledges it.
Username → key bundle, with one-time prekeys reserved on handout. Profiles and avatars are published, signed, and served blind.
Web push with no content: a ping says only that mail is waiting. The page syncs and fetches; the push service learns nothing else.
STUN and TURN for media path discovery. Signalling rides CALL_SIGNAL envelopes; media is peer-to-peer where possible, TURN-relayed where not, SFrame-encrypted either way.
One authenticated POST /v1/control endpoint carries every operation; GET /v1/stream is the WebSocket wake-up channel. Operation codes 1–63 are the base profile; 64 and up are the extension registry (groups live there).
| Op | Name | Purpose |
|---|---|---|
1 | REGISTER | create an account: root key, first device, initial prekeys |
2 | LOOKUP | resolve an address to a verified key bundle |
3 | PREKEY_UPLOAD | publish one-time prekeys for a device |
4 | SEND | submit sealed envelopes (peer letters, call signals) |
5 | FETCH | drain this device's queue |
6 | ACK | acknowledge and delete fetched letters |
7 | HANDLE_CHECK | probe whether a handle is taken |
11 | SUBSCRIBE | attach the wake-up stream (stream only) |
12–13 | TRANSFER_PUT / GET | store and fetch encrypted attachment chunks |
14 | ICE_SERVERS | short-lived STUN/TURN credentials |
15 | PUSH_REGISTER | register a web-push subscription for this device |
16–20 | PAIRING_* / DEVICE_ADD | beacon, deposit, respond; add or revoke a device |
64+ | extensions | groups and future registered extensions |
Groups (extension 1) encrypt to sender chains: each sender rotates a sender key, state travels as extension content types 64 and 65, and membership changes are signed chain events — no group key ever sits in the relay.
The Rust core: CBOR, COSE, CMS, envelopes, prekeys, groups, calls, pairing. Library code with no network and no storage — the single implementation of everything that must not drift. Ships as WebAssembly for the browser.
Apache-2.0 · Rust · cargo test against the shared vectors
The Go server: per-device queues, directory, attachment transfer, web push, TURN. Holds ciphertext, routing fields, and public keys — and nothing else. Self-hostable with one binary and a volume.
AGPL-3.0 · Go · go test ./...
The Svelte web client: vault, sync, calls, attachments, installable as a PWA. Keys and plaintext never leave the device except as ciphertext; the service worker holds no secrets.
Apache-2.0 · TypeScript · web.stillpost.dev
go build ./cmd/stillpost-server
./stillpost-server -addr :8443 -base-url=https://relay.example.com -data /var/lib/stillpost
The specification in the protocol repository is the contract: any implementation that passes the conformance vectors speaks SPT/1, and the licence terms keep it that way — Apache for clients and the core, AGPL for anyone running a modified relay as a service.