onionwire/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rust-dev b22abd7b2b
ratchet: hybrid ML-KEM steps (KDF_RK v2, 2312-byte header, state v2)
Every ratchet keypair is {x25519, ml-kem-768}. On a rotation the stepper
encapsulates to the receiver's current ratchet KEM key; both the X25519 DH
and the ML-KEM secret feed KDF_RK under the new onionwire-ratchet-v2-kdfrk
domain, so a later X25519 break does not open a chain established by a
hybrid step.

Epoch 0 stays classical by construction: the bootstrap root must be a pure
function of the two long-lived prekeys for both-send-first convergence, and
a per-session ss_kem differs for every one-shot Noise dial. The first
rotation (including the bootstrap tie-break rotation) is hybrid, so the
residual HNDL window is exactly the epoch-0 chain. docs/THREAT_MODEL.md
states that window; no full PQ forward secrecy is claimed.

Header 0x02 adds kem_pub[1184] || kem_ct[1088] to the 40-byte classical
header and is used on every frame of a hybrid chain, so a lost first frame
is harmless. A step with no KEM section is rejected (hybrid step required)
and a hybrid step at a classical friend is rejected (unexpected hybrid
step): no classical fallback.

State moves to blob v0.2: fixed 211-byte prefix plus flagged KEM fields.
A v1 blob is dropped and re-bootstrapped (hard cut, like F8); a corrupt v2
or a newer version is an error, not a silent reset.

Tests: hybrid root agreement on both sides, both-send-first convergence
with hybrid keys, no-downgrade, tampered kem_pub/kem_ct fail closed,
MAX_SKIP on a hybrid chain, classical friends still step classically,
state freeze at v0.2 and the node-level hard cut.
2026-10-20 13:02:48 -04:00
..
arti-socks-feasibility.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
ARTI_UPGRADE.md ci: build the default graph on Rust 1.98, not 1.91 2026-10-08 17:41:22 -04:00
cuprate-android-spike.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
cuprate-launch-spike.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
option-a-recommendation.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
payment-integration-plan.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
PROTOCOL.md ratchet: hybrid ML-KEM steps (KDF_RK v2, 2312-byte header, state v2) 2026-10-20 13:02:48 -04:00
README.md release: reproducible builds, and sign every asset 2026-10-11 12:57:40 -04:00
RELEASING.md release: reproducible builds, and sign every asset 2026-10-11 12:57:40 -04:00
SECURITY_AUDIT.md docs: rewrite README and living docs to match the tree 2026-09-20 00:31:07 -04:00
THREAT_MODEL.md ratchet: hybrid ML-KEM steps (KDF_RK v2, 2312-byte header, state v2) 2026-10-20 13:02:48 -04:00
tui-wallet-ux-review.md docs: presentation and flow review of the TUI wallet surfaces 2026-09-26 22:07:15 -04:00
TUI.md tui: drop the F9 menu that restates F6 and F7 2026-10-08 11:03:28 -04:00
VERIFY.md release: reproducible builds, and sign every asset 2026-10-11 12:57:40 -04:00
WALLET.md tui: spawn the wallet-rpc binary that sits next to the app 2026-10-11 19:41:11 -04:00

OnionWire docs

Read these in order if you are evaluating the protocol without the Rust:

  1. PROTOCOL.md — wire format, handshake, invite, frames. This is the document a second implementation would use.
  2. THREAT_MODEL.md — what v1 claims, and what it refuses to claim.
  3. SECURITY_AUDIT.md — in-house review notes and which findings are still open. Not a public third-party audit.

Operator / product docs:

  • ../README.md — install, run, real flags, F-key map, wallet/chain source, releases.
  • TUI.md — screens and keybindings as the TUI actually handles them.
  • WALLET.md — loopback wallet RPC, chain source, spend-authority warning, receipt verification.
  • RELEASING.md — manual, batched releases (not one per merge), the reproducible build recipe, and the signing key.
  • VERIFY.md — checking a download: the dependency graph, the wallet's real exposure, rebuilding a release and comparing bytes, and what none of that proves.
  • ARTI_UPGRADE.md — how to bump the in-process Tor crates.

Android build notes: android/README.md. SDK: crates/onionwire-sdk/README.md.

Decision records and spike reports (history — not living operator docs):