Sender side · local
Compose & mint
The sender chunks the message into Sphinx packets and mints one admission token per packet from a PoW-gated blind-signature batch - the token proves nothing about who requested it.
- Issuerblind-signs the token batch
WARREN · HOW IT WORKS
A mixnet messenger where anonymity is structural, not promised - Sphinx-layered packets, blind-signature tokens, and a K-of-N relay directory, with no single component able to see sender, recipient, and content at once.
§1 · The problem
Encrypting a message hides its content, not its shape. A network can still watch who talks to whom, when, and how often - timing correlation matches a burst leaving one machine to a burst arriving at another, volume correlation matches message sizes across the wire, and a single compromised or coerced relay reopens the same problem for its own hop. None of that requires breaking a cipher.
The fix has to be structural, not procedural. A message crosses three independent hops, each holding one Sphinx layer and learning only the next address. Per-hop delay is drawn from an exponential distribution and cover traffic fills the gaps, so timing and volume stop carrying a usable signal. Weak links get closed on purpose too: no single directory key can vouch for the relay list (K-of-N attestation), and no delivery receipt ever travels back to the sender - a receipt would be exactly the correlation the design exists to prevent.
The four attacks it defeats structurally
Overview
The system is built from three trust zones that never share a full view. The sender chunks the message into Sphinx packets and mints one admission token per packet. The mix is three independent relays - entry, middle, exit - each peeling one Sphinx layer and forwarding blind. The relay list itself is only trusted once a K-of-N directory quorum has attested it.
A packet crosses a structural wall at every hop: each relay learns only the next address, never the full path. The recipient's ratchet decrypts and reassembles the chunks, and the sender never learns whether delivery succeeded - a receipt traveling back would be exactly the correlation the design exists to prevent.
Sender side · local
The sender chunks the message into Sphinx packets and mints one admission token per packet from a PoW-gated blind-signature batch - the token proves nothing about who requested it.
⟂ structural wall
Only the next hop's address crosses each boundary - no relay ever learns the full path. Mix delay and cover traffic scramble timing and volume before an observer can correlate anything.
one hop only · Sphinx-wrapped
Recipient side · attested
Three relays carry the packet to delivery - plus a K-of-N directory that is not a relay at all, the sole authority on which relays are real.
Methodology · five sub-flows
(a) minting the right to send
Before any packet can enter the mix, the sender proves work: token-issue mines a challenge bound to (issuer nonce, client_id, epoch) - 26 leading zero bits by default, about 67 million SHA-256 evaluations - and hands the solved challenge to the issuer. The issuer verifies the work, then blind-signs a batch of admission tokens without ever seeing which token maps to which packet. Blind signatures (RFC 9474) make the token provably valid and provably unlinkable to the request that minted it.
(b) cutting the message to fit
A Sphinx packet payload is 1024 bytes; strip the onion-layer overhead and the ratchet's own wire overhead and what's left for a message is MAX_MSG_LEN - about 705 bytes. Anything longer is split across several packets, and because the body travels hex-encoded inside the client-server envelope, the real per-packet budget the sender plans against is half that again: 305 body bytes. Every packet, whole or partial, spends exactly one admission token.
packet payload
sphinx-packet crate
1024 B total
ratchet + envelope overhead
Olm wire + JSON worst case
~319 B
max message / packet
MAX_MSG_LEN
~705 B raw
body bytes / packet
packet_payload_bytes() · hex-halved
305 B
(c) trusting a relay before spending a token
The client only trusts a relay's address and keys once the signed relay list carries valid attestations from at least the configured threshold of directory keys - an attestation from a key that isn't one of the N is rejected outright, not just ignored. Once trusted, each hop does one thing: peel its Sphinx layer, read the next address, forward blind. No relay - not even the exit - ever sees the full path.
entries
Directory
the relay list under attestation
attestations
Directory
signatures collected this epoch
threshold
Directory
min. valid signatures required
signers
Directory
the K configured directory keys
policy_enforced
Directory
unattested entries rejected outright
(d) hiding timing and volume
Here is the part built to defeat a wire observer directly. The sender samples each hop's delay from an exponential distribution and carries it inside that hop's Sphinx header; the relay enforces it by sleeping, so packets leave out of order by design. Cover traffic runs on the same rhythm as real packets, so nothing about arrival timing tells an observer which is which. On the receiving side, a short reorder window restores order when it can, and releases anyway when it can't wait any longer.
A passive observer logs every packet's size and timing. At this point nothing stands out - real sends and cover chaff are shaped the same on the wire.
The message splits into Sphinx packets, one admission token minted per packet. Timing correlation spikes to 0.94 in the observer's log - a burst like this is exactly the pattern a passive correlation attack looks for.
Each relay peels one Sphinx layer and forwards blind - it never learns where the packet came from or where it's ultimately headed. The observer's view ends at this boundary too: it can see packets enter a relay and packets leave, but not which is which.
Per-hop delay is drawn from an exponential distribution, so the observer has to guess a correlation window. Guess narrow and the real, delayed packet falls outside it. Guess wide and cover traffic floods back in - dozens of equally plausible matches, no way to tell which one is real.
The recipient's ratchet decrypts and the reorder buffer reassembles the chunks. The state machine stops at DELIVERED - there's no ACKNOWLEDGED step, because a receipt traveling back would hand the observer exactly the correlation it's been guessing at.
The observer's log still shows that 0.94 correlation and a window that could plausibly fit. It looks damning. But circumstantial timing evidence isn't a receipt, and Warren never sends one back - the match stays a guess the observer can never confirm, for this message or the next one.
(e) arriving without a receipt
The recipient's Double Ratchet decrypts each packet's body and the reorder buffer reassembles the chunks back into one message. A message's state moves QUEUED → ENCRYPTED → IN_FLIGHT → DELIVERED (or FAILED) - and stops there. There's no ACKNOWLEDGED state, on purpose: a receipt traveling back along the path would be exactly the correlation the design exists to prevent. The path stays hidden even after delivery - unknowable from the recipient's side from the start.
§4 · Project structure
The backend keeps the trust primitives - tokens, directory - apart from the transport and client code that uses them.
client.rskeygen, path selection, packet build & send, listen - the user-facing core.
relay.rsthe mix node: admission gate, Sphinx unwrap-and-forward, or final delivery.
directory.rsthe signed relay list and K-of-N directory attestations.
credential.rsblind-signature admission tokens - the reputation gate.
ratchet.rsmessage-body encryption, Olm Double Ratchet via vodozemac.
mix.rsper-hop delay and cover traffic - the timing defense.
pow.rsthe proof-of-work gate for token-batch bootstrap.
net.rswire framing, dressed as TLS records.
api.rswarren serve - chunking, reassembly, the loopback HTTP/SSE surface.
Every packet can be traced hop by hop, from admission token to final delivery state.
The differentiator
Plenty of systems promise privacy as a policy - a promise not to log, a promise not to share. The point here is the opposite: every property that matters is structural or cryptographic, enforced by the protocol itself, not by anyone's good behavior.
There's no ACKNOWLEDGED state - a receipt traveling back would be exactly the correlation the design exists to prevent.
An attestation from a key that isn't one of the configured N is rejected outright, not merely ignored.
Sybil resistance without identity - 26 leading zero bits gates every token batch by default.
The sender draws each hop's delay from an exponential distribution; the relay enforces it by sleeping.
A naive-DPI bound (M8), not obfs4-grade - the honest scope of what that defends against.
warren serve refuses any bind address but 127.0.0.1 - it holds an unlocked wallet and ratchet, with no auth.
Deploy topology
The entry, middle, and exit relays hold no secrets and are safe to expose publicly - that's the whole point of a mixnet. warren serve is the opposite: it holds an unlocked wallet and ratchet with no auth, so it runs only on each user's own machine, loopback-only. The admission gate is consumed once, at entry - gating a downstream relay would drop every legitimate packet.
| Component | Binary / role | Deploys where |
|---|---|---|
| Sender | warren send / warren serve | local machine |
| Entry relay | warren relay --admit-key | public (Railway)admits |
| Middle relay | warren relay | public (Railway) |
| Exit relay | warren relay | public (Railway) |
| Issuer | credential.rs | co-located with entry |
| Directory signers | directory-fetch --dir-key | independent operators |
publicly reachable
Warren · The live desk
Open the desk to send a real message across the mix in real time - the chunking, the hop-by-hop relay, the verified path - or read the source for the architecture end to end.