WARREN · HOW IT WORKS

Every hop learns one thing. No hop learns the rest.

Every hop learns one thing.No hop learns the rest.

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.

COVERSENDCOVERSENDSENDCOVERSENDCOVERSEND
  • 3 hops, no full path
  • K-of-N attested directory
  • blind-signature tokens
  • 305 body bytes / packet

§1 · The problem

Why this exists

Why this exists- metadata leaks even when content doesn't.

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

timing correlationvolume correlationendpoint compromiseexit surveillance

Overview

The whole picture

The whole picture- a sender, a mix, a recipient.

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.

THE WIRE[u32 LEN][u8 TYPE][BODY] · dressed as a TLS-1.2 recordSENDER SIDE · LOCALRELAY PATH · MIX⟂ structural wallsenderclient · builds Sphinx packetspow gateverify(challenge, counter)issuerblind-signs the token batchwork verified AND blind-signed= one packet ready to sendEntryrelay · admits + peels one layerMiddlerelayExit relaypeels the final layerRecipientratchet decryptsreorder + reassemble · local, off the wirechunk 1chunk 2Deliveredmessage reassembledK-OF-N DIRECTORYsole authority on real relays · threshold attestedBELOW THRESHOLD → REJECTED≥ THRESHOLD → ATTESTEDDirectory signer(independent operator)Attestationsigns the entry setEvery message is chunked to fit the per-packet budget:MAX_MSG_LEN ≈ 705 B · packet_payload_bytes() = 305 B · one token spent per packetdirectory fetchone Sphinx layer onlyreassembled messageATTESTATIONattest → trusttrusted relay list → sender (read-only)

Sender side · local

Compose & mint

0 token / packet

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

⟂ structural wall

Sphinx layering

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

The relay path

0 hops

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.

  • entry
  • middle
  • exit
DirectoryK-of-N attested · no single key

Methodology · five sub-flows

How a message actually moves - mint, wrap, relay, hide, arrive.

(a) minting the right to send

One proof of work, before one packet moves.

One proof of work,before one packet moves.

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.

SENDER SIDE · MINTING A TOKEN BATCHa token is never issued until the work and the signature both check outSendermines a proof-of-work challengePoW verify≥ 26 leading zero bits?Blind signissuer signs, never sees which tokenToken batch mintedwork verified AND blind-signedEntry relay→ mix · one token spent per packetsolved challengevalid ✓signed ✓tokeninsufficient work → retry (mine again)batch full → retry next epochMining retries until the target is met. A batch that fails signingis never spendable - the client just mines again.
Fig 2 - proof of work verified, then blind-signed

(b) cutting the message to fit

One packet holds 705 bytes, hex and all.

One packet holds705 bytes, hex and all.

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

Every hop is checked against a signed list.

Every hop is checkedagainst a signed list.

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.

1ENTRY2MIDDLE · delay off the wire3EXIT · DELIVERPacket intoken attachedAdmission gatetoken spent, valid?Sphinx unwrappeel layer 1Next-hop addronly the next hop, nothing elsedelay + cover · local, off the wiresleep(delay_ms)cover chaffForwardpeel layer 2 → next hopEXIT UNWRAPfinal layer peeled · deterministicreorder window releases → DELIVEREDRecipient inboxdecrypt + reassembledelivertokenpeel layer 1sphinxpeeled layer 2deliverno relay calls the next one directly - each only knows the next hop's address · crypto decides, not policy
Fig 3 - one Sphinx layer peeled per hop

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

◆ THE RELAY CLAIM◆ K-OF-N ATTESTATION⟂ canonicalization boundaryRelay claimaddress · identity_key · sphinx_keyrole · status+ raw signature bytesCanonicalizedrops the signature before hashingDirectory entryaddress · identity_key · sphinx_keyrole · status(canonical entry, unsigned)canonical entryattested directory (read-only)each signer attests: entry_set_hash = sha256(canonical_entries)attestation 1 · signer Aentry_set_hash · signer_pubkeyentry_set_hash = e7a1…sig = 9f2c…attestation 2 · signer Bentry_set_hash · signer_pubkeyentry_set_hash = e7a1…sig = 4b08…attestation 3 · signer Centry_set_hash · signer_pubkeyentry_set_hash = e7a1…sig = c31d…an attestation from a key that isn't one of the N is rejected outright, not merely ignored
Fig 4 - K-of-N directory attestation

(d) hiding timing and volume

Delay is drawn, not fixed - and chaff fills the gaps.

Delay is drawn,not fixed - and chaff fills the gaps.

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.

The ObserverSTEP 1 / 6
  1. 01Ordinary traffic
  2. 02Composing
  3. 03Through the mix
  4. 04The observer's dilemma
  5. 05Delivery
  6. 06What the observer is left with
Wire observer · passive

An observer watches every packet. Most traffic looks identical.

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.

Sender · local client
SENDER · 400ms packet burst · flow #0

The sender chunks and sends. A tight burst forms.

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.

Entry relay → next hop
▓ crossing the mix ▓

The packet crosses the first hop. Only the next address survives.

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.

Wire observer · guessing
narrow ⚔ wide · guessing the delay window

Too narrow misses the real packet. Too wide catches everyone.

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.

Recipient · ratchet
QUEUED → DELIVERED · no receipt

The message arrives. The sender never finds out.

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.

Wire observer · unconfirmed
0.94 confidence · unconfirmed

A confident guess. Never a proof.

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.

live · flow #0confidence0.08packets1window100msmatch-hops_peeled2/3
0100200300400500600TIME (ms) →window 100mspacket burst · 400ms▓ crossing the mix ▓RELAYconfidenceτ 0.800.08

(e) arriving without a receipt

Delivered, maybe - the sender never finds out for sure.

Delivered, maybe -the sender never finds out for sure.

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.

ONE-WAY · NO ACKNOWLEDGED STATEEncrypted packetSphinx-unwrapped, still ratchet-sealedChunk positionseq · reorder window slotRatchet sessionOlm Double Ratchet keys↑ only the chunk position depends on arrival orderDELIVERY STATE MACHINEstate machine, in order: QUEUED → ENCRYPTED ENCRYPTED → IN_FLIGHT IN_FLIGHT → DELIVERED or FAILEDno ACKNOWLEDGED state - everSTATE MACHINEsole delivery authority · deterministicfinal chunkreceived?FAILEDreorder window expiredDELIVEREDno receipt sent backadvancesresolves statenoyesThe state machine only ever moves forward. It renders DELIVERED / FAILED deterministically -and stops there. No receipt ever travels back to the sender.
Fig 5 - delivery state machine, no receipt

§4 · Project structure

How the code is organized

How the codeis organized.

The backend keeps the trust primitives - tokens, directory - apart from the transport and client code that uses them.

moduleresponsibility
client.rs

keygen, path selection, packet build & send, listen - the user-facing core.

relay.rs

the mix node: admission gate, Sphinx unwrap-and-forward, or final delivery.

directory.rs

the signed relay list and K-of-N directory attestations.

credential.rs

blind-signature admission tokens - the reputation gate.

ratchet.rs

message-body encryption, Olm Double Ratchet via vodozemac.

mix.rs

per-hop delay and cover traffic - the timing defense.

pow.rs

the proof-of-work gate for token-batch bootstrap.

net.rs

wire framing, dressed as TLS records.

api.rs

warren 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

What's actually new

What'sactually new.

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.

00

No delivery receipts, by design.

There's no ACKNOWLEDGED state - a receipt traveling back would be exactly the correlation the design exists to prevent.

00

K-of-N directory, no single key.

An attestation from a key that isn't one of the configured N is rejected outright, not merely ignored.

00

Proof-of-work bootstrap.

Sybil resistance without identity - 26 leading zero bits gates every token batch by default.

00

Delay is sampled, not scheduled.

The sender draws each hop's delay from an exponential distribution; the relay enforces it by sleeping.

00

Wire dressed as TLS records.

A naive-DPI bound (M8), not obfs4-grade - the honest scope of what that defends against.

00

Loopback-only by design.

warren serve refuses any bind address but 127.0.0.1 - it holds an unlocked wallet and ratchet, with no auth.

Deploy topology

One binary, six roles, three trust zones.

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.

ComponentBinary / roleDeploys where
Senderwarren send / warren servelocal machine
Entry relaywarren relay --admit-keypublic (Railway)admits
Middle relaywarren relaypublic (Railway)
Exit relaywarren relaypublic (Railway)
Issuercredential.rsco-located with entry
Directory signersdirectory-fetch --dir-keyindependent operators

publicly reachable

Warren · The live desk

See it live

See it live.Watch the observer lose.

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.

  • 3 hops, no full path
  • K-of-N attested directory
  • blind-signature tokens
  • 305 body bytes / packet