onionwire/docs/README.md

35 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

# OnionWire docs
Read these in order if you are evaluating the protocol without the Rust:
1. **[PROTOCOL.md](PROTOCOL.md)** — wire format, handshake, invite, frames.
This is the document a second implementation would use.
2. **[THREAT_MODEL.md](THREAT_MODEL.md)** — what v1 claims, and what it
refuses to claim.
3. **[SECURITY_AUDIT.md](SECURITY_AUDIT.md)** — in-house review notes and
which findings are still open. **Not** a public third-party audit.
Operator / product docs:
- **[../README.md](../README.md)** — install, run, real flags, F-key map,
wallet/chain source, releases.
- **[TUI.md](TUI.md)** — screens and keybindings as the TUI actually handles them.
- **[WALLET.md](WALLET.md)** — loopback wallet RPC, chain source, spend-authority
warning, receipt verification.
release: reproducible builds, and sign every asset "The source is public" is not a check anyone can run, and against a Tor + Monero tool the surviving objection is that the released binary might not be that source. This makes the build checkable instead of trusted. - scripts/reproducible-build.sh is the single definition of a release build: digest-pinned builder image, fixed in-container paths, SOURCE_DATE_EPOCH from the released commit, --locked, its own apt build deps, and RUSTFLAGS replaced rather than extended. The fixed paths are load-bearing: rustc's --remap-path-prefix cannot reach absolute paths compiled in by a C toolchain, and this graph always has one (rusqlite compiles OpenSSL from vendored sources; the default cuprate-daemon adds RandomX and cmake). It also records toolchain versions in build-info, because the apt build deps are not digest-pinned the way the image is. - release.yml pins the image by digest, resolves SOURCE_DATE_EPOCH from the tag's commit, runs that recipe, and uploads build-info-<target>.txt beside the binary. The cargo target volume is created per run and removed, so the published artifact cannot come out of a cache that a verifier does not have. - scripts/verify-reproducible.sh rebuilds a tag in the same pinned image and compares bytes against the release asset. Two fresh builds of the same tree in that image produce identical sha256. - scripts/sign-release.sh signs with minisign and verifies its own signature against the committed public key. The publish job signs BEFORE publishing and fails closed without MINISIGN_SECRET_KEY, so nothing unsigned reaches the release page: an unsigned release is indistinguishable from a signed one to anyone who is not checking. Checked: signature accepted by an independent minisign -V, a tampered file rejected, a missing key refused, a missing public key refused. - build-release-local.sh runs the same container and the same recipe. A host cargo build would publish a hash nobody could reproduce, which is worse than having no fallback at all. - docs/VERIFY.md is the verifier-facing walkthrough: the dependency graph and where its HTTP actually comes from, the wallet's real seed-read exposure, the rebuild check, the signature check, and an explicit list of what none of it proves. - Cargo.toml repository: point at the Forgejo instance that hosts this and builds its releases. Needs a MINISIGN_SECRET_KEY secret before the next release; without it the publish job stops by design. docs/RELEASING.md has the keygen procedure.
2026-10-11 12:20:08 -04:00
- **[RELEASING.md](RELEASING.md)** — manual, batched releases (not one per merge),
the reproducible build recipe, and the signing key.
- **[VERIFY.md](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](ARTI_UPGRADE.md)** — how to bump the in-process Tor crates.
Android build notes: [android/README.md](../android/README.md). SDK:
[crates/onionwire-sdk/README.md](../crates/onionwire-sdk/README.md).
Decision records and spike reports (history — not living operator docs):
- [arti-socks-feasibility.md](arti-socks-feasibility.md)
- [option-a-recommendation.md](option-a-recommendation.md)
- [cuprate-launch-spike.md](cuprate-launch-spike.md)
- [cuprate-android-spike.md](cuprate-android-spike.md)
- [payment-integration-plan.md](payment-integration-plan.md)