2026-09-10 01:02:33 -04:00
|
|
|
# OnionWire
|
|
|
|
|
|
2026-09-10 02:49:42 -04:00
|
|
|
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
|
2026-09-20 00:31:07 -04:00
|
|
|
No hosted server. Identity is an ed25519 public key; the onion is only a locator.
|
|
|
|
|
|
2026-10-30 23:04:43 -04:00
|
|
|
Current tagged release: **v0.7.0**. Linux TUI + Android SDK/APK. Two people add
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
each other with an `onionwire:v2:…` invite string (`F2` share / `F3` paste;
|
|
|
|
|
~1.9 KB because it carries an ML-KEM-768 key). There is no invite QR graphic.
|
|
|
|
|
Chat is Noise IK over your own v3 onion; when the friend was added from a v2
|
|
|
|
|
invite the session is **hybrid** (ML-KEM-768 prelude mixed into the Noise
|
|
|
|
|
prologue). A friend from a legacy `onionwire:v1` invite stays classical and the
|
|
|
|
|
roster labels them `classical`. Every chat message is ratcheted inside that
|
|
|
|
|
session. Unreachable chat peers go to a **local
|
2026-09-20 00:31:07 -04:00
|
|
|
outbox** (device-only retry queue — no relay). File transfer and payment frames
|
|
|
|
|
fail closed. Optional Monero: `/pay` invoices, `/tip` payments, and in-app wallet
|
|
|
|
|
create/import (`F6`). Arti onion services are still experimental. The store is
|
|
|
|
|
SQLCipher; chat bodies add a row-bound AEAD layer.
|
|
|
|
|
|
|
|
|
|
You do **not** install a `tor` daemon, `torrc`, Prosody, or XMPP. OnionWire embeds
|
|
|
|
|
Arti and publishes its own v3 onion. There is no C-tor fallback.
|
|
|
|
|
|
|
|
|
|
**Docs** (protocol first, then claims): [PROTOCOL.md](docs/PROTOCOL.md) ·
|
|
|
|
|
[threat model](docs/THREAT_MODEL.md) · [audit notes](docs/SECURITY_AUDIT.md)
|
|
|
|
|
(in-house, **not** a third-party audit). Index: [docs/README.md](docs/README.md).
|
|
|
|
|
TUI keys: [docs/TUI.md](docs/TUI.md). Wallet: [docs/WALLET.md](docs/WALLET.md).
|
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
|
|
|
Releases: [docs/RELEASING.md](docs/RELEASING.md). Verifying a download:
|
|
|
|
|
[docs/VERIFY.md](docs/VERIFY.md).
|
2026-09-11 13:15:51 -04:00
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
## Install
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Pick one: a CI-built binary, or build from source.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
### Requirements
|
|
|
|
|
|
|
|
|
|
| Need | Notes |
|
|
|
|
|
|---|---|
|
|
|
|
|
| Linux | x86_64 or aarch64. TUI needs a real terminal (not a pipe). |
|
2026-09-20 00:31:07 -04:00
|
|
|
| Network | First run bootstraps Tor via Arti. Offline start fails closed. |
|
2026-09-10 03:04:56 -04:00
|
|
|
| Not needed | `tor` package, `torrc`, Prosody, an XMPP account, a DHT. |
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Arti onion services are still **experimental**. If the hidden service cannot come
|
|
|
|
|
up, OnionWire exits.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
### Option A — download a release binary
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
CI does **not** release on a merge. Releases are manual and batched: a maintainer
|
|
|
|
|
dispatches `.forgejo/workflows/release.yml` at a stopping point (`dry_run=true`
|
|
|
|
|
first), which tags the next `v*.*.*` version and publishes both Linux binaries to
|
|
|
|
|
one [Forgejo release](https://forgejo.siriusdevops.com/sirius/onionwire/releases).
|
|
|
|
|
The Android APK + AAR attach to **the same tag** by a second dispatch of
|
|
|
|
|
`android-release` with `tag=<that tag>`. Policy: [docs/RELEASING.md](docs/RELEASING.md).
|
|
|
|
|
This Forgejo does not serve `/releases/latest/download/…` (404); pin the tag.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
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
|
|
|
Every asset is signed with minisign, and every binary is reproducible from its
|
|
|
|
|
tag: pin the builder image by digest, fix the build paths and `SOURCE_DATE_EPOCH`,
|
|
|
|
|
and the published hash can be rebuilt and compared by anyone. Before running a
|
|
|
|
|
download, read [docs/VERIFY.md](docs/VERIFY.md). Each release carries
|
|
|
|
|
`build-info-<target>.txt` (commit, epoch, toolchain, builder image digest,
|
|
|
|
|
resulting hash) next to its `.sha256`.
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
**x86_64:**
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
```bash
|
2026-10-30 23:04:43 -04:00
|
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.7.0/onionwire-x86_64-unknown-linux-gnu
|
|
|
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.7.0/onionwire-x86_64-unknown-linux-gnu.sha256
|
2026-09-10 03:05:44 -04:00
|
|
|
sha256sum -c onionwire-x86_64-unknown-linux-gnu.sha256
|
|
|
|
|
chmod +x onionwire-x86_64-unknown-linux-gnu
|
|
|
|
|
./onionwire-x86_64-unknown-linux-gnu --version
|
2026-09-10 03:04:56 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
**aarch64:**
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
```bash
|
2026-10-30 23:04:43 -04:00
|
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.7.0/onionwire-aarch64-unknown-linux-gnu
|
|
|
|
|
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.7.0/onionwire-aarch64-unknown-linux-gnu.sha256
|
2026-09-10 03:05:44 -04:00
|
|
|
sha256sum -c onionwire-aarch64-unknown-linux-gnu.sha256
|
|
|
|
|
chmod +x onionwire-aarch64-unknown-linux-gnu
|
|
|
|
|
./onionwire-aarch64-unknown-linux-gnu --version
|
2026-09-10 03:04:56 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Install onto `PATH` (keep the asset filename until after `sha256sum -c`):
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
mkdir -p ~/.local/bin
|
2026-09-10 03:05:44 -04:00
|
|
|
install -m 755 onionwire-x86_64-unknown-linux-gnu ~/.local/bin/onionwire
|
2026-09-10 03:04:56 -04:00
|
|
|
onionwire
|
|
|
|
|
```
|
|
|
|
|
|
2026-10-11 19:41:11 -04:00
|
|
|
The app-owned wallet child looks for an executable named `monero-wallet-rpc` in
|
|
|
|
|
the same directory as the OnionWire binary, then on `PATH`. A remote daemon and
|
|
|
|
|
a remote wallet RPC stay available on F7. An absolute path configured for the
|
|
|
|
|
wallet-rpc binary is used as given. To place the official binary beside
|
|
|
|
|
`onionwire`:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
scripts/fetch-monero-wallet-rpc.sh ~/.local/bin
|
|
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
The binary is dynamically linked against glibc (Ubuntu 24.04 builders). If it
|
|
|
|
|
dies with `GLIBC_… not found`, use Option B. Checksum files are `sha256sum`
|
|
|
|
|
format (`<hash> onionwire-<target>`).
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
### Option B — build from source
|
|
|
|
|
|
2026-10-08 17:41:22 -04:00
|
|
|
Needs [Rust](https://rustup.rs/) **1.98+** (`edition = "2024"`; `Cargo.toml`
|
deps: bump the Arti set tor-* 0.46 -> 0.49 (Arti 2.9.0)
Arti publishes these in lockstep. Bumped together:
- arti-client 0.46 -> 0.49 (root + crates/onionwire-sdk, both lockfiles)
- tor-cell, tor-hsservice, tor-rtcompat 0.46 -> 0.49
- safelog 0.9 -> 0.10 (same repo; 0.49's HsId implements safelog 0.10's
DisplayRedacted, so the old direct pin broke display_redacted)
Arti 0.49 (Arti 2.9.0, 2026-12-01) carries a medium-severity security fix
(TROVE-2026-078, custom build flags) and two low-severity fixes.
MSRV unchanged: Arti 0.49 needs rustc 1.92, the repo floor stays 1.98
(cuprate-daemon / tapes). Only docs/comments moved; src/hs.rs workarounds
rechecked against 0.49: tor-hsservice OVERALL_UPLOAD_TIMEOUT is still 5 min
(PUBLISH_WAIT 360s stands) and tor-config's Listen is still IP-only.
Verified: cargo test --locked (173 lib + all integration suites), clippy
--locked --all-targets -D warnings, SDK cargo test/clippy, live ignored
tor_hs + two_node tests, and scripts/build-android-local.sh (APK + AAR).
2026-12-02 02:37:17 -05:00
|
|
|
`rust-version = "1.98"`). Arti 0.49 itself builds on 1.92, but the default
|
2026-10-08 17:41:22 -04:00
|
|
|
feature set includes the in-process chain daemon, and that graph does not
|
|
|
|
|
(`tapes` calls `VecDeque::pop_front_if`, stable since 1.93). Do not install `tor`.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
|
|
|
|
source "$HOME/.cargo/env"
|
2026-10-08 17:41:22 -04:00
|
|
|
rustc --version # must be 1.98 or newer
|
2026-09-10 03:04:56 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-09-10 13:10:56 -04:00
|
|
|
git clone https://forgejo.siriusdevops.com/sirius/onionwire.git
|
2026-09-10 03:04:56 -04:00
|
|
|
cd onionwire
|
|
|
|
|
cargo test --locked
|
|
|
|
|
cargo clippy --locked -- -D warnings
|
|
|
|
|
cargo build --release --locked
|
|
|
|
|
./target/release/onionwire --version
|
|
|
|
|
./target/release/onionwire
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
cargo install --path . --locked --force
|
|
|
|
|
# lands in ~/.cargo/bin/onionwire
|
|
|
|
|
```
|
|
|
|
|
|
2026-09-17 20:48:05 -04:00
|
|
|
Build needs a C toolchain plus `perl` and `make`: SQLCipher is compiled from
|
2026-09-20 00:31:07 -04:00
|
|
|
vendored OpenSSL (`rusqlite` feature `bundled-sqlcipher-vendored-openssl`). No
|
|
|
|
|
system OpenSSL headers or `pkg-config` are required — Arti's TLS backend is
|
|
|
|
|
`rustls`.
|
|
|
|
|
|
|
|
|
|
The crate version in `Cargo.toml` is **not** bumped by the release workflow. The
|
2026-10-30 23:04:43 -04:00
|
|
|
tag (`v0.7.0`) is the version users download; `onionwire --version` prints
|
2026-09-20 00:31:07 -04:00
|
|
|
`CARGO_PKG_VERSION` from the tree that was built.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
### Two instances on one machine
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Each process needs its own data dir:
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
ONIONWIRE_HOME=/tmp/ow-a ./onionwire
|
|
|
|
|
ONIONWIRE_HOME=/tmp/ow-b ./onionwire
|
|
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Then `F2` on A, `F3`-paste on B (and the other way). No invite QR.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
## Run
|
|
|
|
|
|
|
|
|
|
There are **no subcommands**. Flags are `--version` / `-V` and `--help` / `-h`
|
|
|
|
|
only (`src/main.rs`). Anything else exits 2 with `onionwire: unknown argument`.
|
2026-09-10 01:02:33 -04:00
|
|
|
|
2026-09-14 16:55:47 -04:00
|
|
|
```bash
|
2026-09-10 03:04:56 -04:00
|
|
|
onionwire
|
2026-09-10 02:49:42 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
or `cargo run --release`.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
On start you are prompted for a store passphrase (echo off) or set
|
|
|
|
|
`ONIONWIRE_STORE_PASSPHRASE`. Empty passphrase is rejected; a wrong passphrase
|
|
|
|
|
does not open chat. Then `onionwire: bootstrapping Arti…` on stderr. Directory
|
|
|
|
|
bootstrap is usually under a minute; the onion is ready once a probe connect
|
|
|
|
|
works (combined Arti status may still say Bootstrapping). Fail closed at 360s
|
|
|
|
|
(`PUBLISH_WAIT` in `src/hs.rs`). Data lives in `ONIONWIRE_HOME` if set, otherwise
|
|
|
|
|
`~/.local/share/onionwire/` (`onionwire.db` + Arti state, mode 0700). First open
|
|
|
|
|
creates an ed25519 identity key. That key **is** you.
|
|
|
|
|
|
|
|
|
|
Then `F2` to share your invite, `F3` to paste a friend's. Mouse-select the
|
|
|
|
|
`onionwire:v1:…` line to copy. Highlight them in the roster, type in the
|
|
|
|
|
composer, Enter to send. Chat rows show delivery state from the local outbox
|
|
|
|
|
(`✓` delivered, `◷ queued (try n/8, retry …)`, `» sending`, `✗ failed: …`); the
|
|
|
|
|
footer shows `{n} queued` while anything is outstanding. If their onion is down
|
|
|
|
|
the message stays on this device and the retry worker re-dials with backoff —
|
|
|
|
|
nothing is handed to a third party. File transfer and payments are still one-shot
|
|
|
|
|
(both sides online).
|
2026-09-10 17:02:34 -04:00
|
|
|
|
2026-09-10 02:49:42 -04:00
|
|
|
## Friends are keys
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
A friend is an ed25519 pubkey (`UNIQUE(pubkey)`). The `.onion` on that row is
|
|
|
|
|
only where they are reachable right now. Pasting the same `k` updates the
|
|
|
|
|
locator; it never creates a second person.
|
|
|
|
|
|
|
|
|
|
## Commands and flags
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
onionwire [--version | -V | --help | -h]
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Everything else is the TUI (function keys and `/commands` in the composer).
|
|
|
|
|
|
|
|
|
|
### Environment
|
|
|
|
|
|
|
|
|
|
| Variable | Read in | Meaning |
|
|
|
|
|
|---|---|---|
|
|
|
|
|
| `ONIONWIRE_HOME` | `src/store.rs` | Data dir. Unset → `~/.local/share/onionwire`. |
|
|
|
|
|
| `ONIONWIRE_STORE_PASSPHRASE` | `src/store.rs` | Non-empty store passphrase; skips the prompt. Empty/missing with no TTY fails closed. |
|
|
|
|
|
| `ONIONWIRE_ASCII` | `src/tui.rs` | Present → ASCII chrome (also follows `NO_COLOR`). |
|
|
|
|
|
| `ONIONWIRE_WALLET_RPC` | `src/wallet.rs` | External loopback `monero-wallet-rpc` URL. Unused by the app-owned wallet child. |
|
|
|
|
|
| `ONIONWIRE_WALLET_RPC_LOGIN` | `src/wallet.rs` | `user:pass` when the URL has no userinfo. |
|
|
|
|
|
| `ONIONWIRE_WALLET_NO_SPEND` | `src/wallet.rs` | `1` / `true` / `yes` / `on` → refuse `/tip` locally. |
|
|
|
|
|
|
|
|
|
|
`NO_COLOR` (any value) also switches ASCII chrome. Android CI uses
|
|
|
|
|
`ONIONWIRE_REQUIRE_RELEASE_KEY`; the TUI does not read it.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
## Keys (TUI)
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Focus starts on the composer. `Tab` cycles panes; `j`/`k` and arrows only move
|
|
|
|
|
the focused pane. `1`/`2`/`3` switch focus when you are not typing (on the
|
|
|
|
|
**wallet** screen those digits pick an in-process chain source instead — see
|
|
|
|
|
[docs/TUI.md](docs/TUI.md)). `?` opens help from every screen except paste (so a
|
|
|
|
|
payload can contain `?`).
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
| Key | Action |
|
|
|
|
|
|---|---|
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
| `Tab` / `Shift-Tab` | Cycle focus: roster → chat → composer |
|
2026-09-20 00:31:07 -04:00
|
|
|
| `1` / `2` / `3` | Focus roster / chat / composer (Main, when not typing) |
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
| `j` `k` / `↑` `↓` | Move or scroll the focused pane |
|
|
|
|
|
| `g` / `G` | Jump to top / bottom of the focused pane |
|
|
|
|
|
| `?` | Keybinding help (`Esc` closes) |
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
| `F2` | Share invite (`onionwire:v2:…`, ~1.9 KB) |
|
2026-09-14 16:55:47 -04:00
|
|
|
| `F3` | Paste a friend's invite |
|
2026-09-10 03:04:56 -04:00
|
|
|
| `F4` | Rotate **onion** (locator only) |
|
2026-09-14 16:55:47 -04:00
|
|
|
| `F5` | Selected friend's profile (`/who`) |
|
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet
The chain source was reachable from three places and configured from none of
them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process
choice, the `F9` menu showed the state and named keys that edited it, and
`Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only
way to point the app at a Monero node — had **no TUI caller at all** (Kotlin
only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7.
F7 (`WalletSetupConfig`) is now the one screen that sets up the node:
- The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the
path; `set_local_monerod` delegates with the derived default, so an existing
install keeps the store it already has. An empty datadir is refused rather
than silently replaced — a store that moved unasked looks like a vanished
chain and resyncs somewhere the user did not choose.
- The `network` row is new: it carries the Cuprate mainnet/testnet choice that
`F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet
reads `unvalidated` before it is picked.
- A `NODE` section shows the live `Node::wallet_child_status` line (state, chain
source, `sync h/t`, last error) and the last save/test answer. It is the
node's answer, never the draft above it, and `Ctrl-R` re-reads it.
- `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local
source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child`
/ `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a
wallet with no stored passphrase still reaches the unlock prompt.
F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet
again (receive, balance, transfers, create/import) — and its footer points at
`F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and
`F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and
the `p` probe handler are deleted rather than left dead.
The node's own keys are named in the body, on the section they act on: at 80
columns the footer has room for one group and the status line already spends
half the width, which is the same reason the login row names `Ctrl-U`.
Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real
key path and the real node — the typed datadir reaching `ChainSource::Local`, an
empty one being refused with nothing written, the live row on open, `Ctrl-S`
saving then reporting the node's own refusal, the in-process network pick
reaching the store, and F6 no longer owning keys it does not handle.
`tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it
asserted before no longer work.
2026-09-27 20:06:51 -04:00
|
|
|
| `F6` | Wallet (receive QR, balance, transfers, create/import) |
|
|
|
|
|
| `F7` | Node & wallet setup (wallet RPC endpoint, chain source, start/stop, live node state) |
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
| `F8` | Rotate **prekey and ML-KEM key** (hard cut: every friend re-pastes the invite) |
|
2026-09-20 00:31:07 -04:00
|
|
|
| `F9` | Wallets & settings menu (`/settings`) |
|
2026-09-10 23:07:22 -04:00
|
|
|
| Enter | Send chat to the selected friend, or run a `/command` |
|
tui: ASCII onion chrome, themed panes, and real keyboard navigation
- Hand-written wordmark banner (<=80 cols, auto-collapses to a compact
mark below banner width) plus onion glyph and themed screen headings
- Color-palette consts, stateful pane titles, highlighted selection row
(accent + bg), context-sensitive footer that always keeps '? help'
- Pane focus model (roster/chat/composer) with Tab/Shift-Tab, 1/2/3,
j/k + arrows, g/G, and a '?' help overlay; Esc closes any overlay
- New tests/tui_chrome.rs: banner widths, help overlay bindings, real
footer helper at 80 and 120 cols, 80x24 draw smoke test
- README keybinding table updated to match
Locked helper strings (fingerprint_mismatch_banner, rotate_screen_text,
wipe_screen_text, parse_slash) unchanged; UI-only (src/tui.rs).
2026-09-10 13:01:40 -04:00
|
|
|
| `Esc` | Close overlay / back to Main / clear composer |
|
2026-09-10 17:19:50 -04:00
|
|
|
| `Ctrl-Q` | Quit: type `CLEAR`+Enter to wipe history, `QUIT`+Enter to leave it, Esc to stay |
|
2026-09-10 03:04:56 -04:00
|
|
|
|
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet
The chain source was reachable from three places and configured from none of
them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process
choice, the `F9` menu showed the state and named keys that edited it, and
`Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only
way to point the app at a Monero node — had **no TUI caller at all** (Kotlin
only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7.
F7 (`WalletSetupConfig`) is now the one screen that sets up the node:
- The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the
path; `set_local_monerod` delegates with the derived default, so an existing
install keeps the store it already has. An empty datadir is refused rather
than silently replaced — a store that moved unasked looks like a vanished
chain and resyncs somewhere the user did not choose.
- The `network` row is new: it carries the Cuprate mainnet/testnet choice that
`F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet
reads `unvalidated` before it is picked.
- A `NODE` section shows the live `Node::wallet_child_status` line (state, chain
source, `sync h/t`, last error) and the last save/test answer. It is the
node's answer, never the draft above it, and `Ctrl-R` re-reads it.
- `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local
source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child`
/ `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a
wallet with no stored passphrase still reaches the unlock prompt.
F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet
again (receive, balance, transfers, create/import) — and its footer points at
`F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and
`F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and
the `p` probe handler are deleted rather than left dead.
The node's own keys are named in the body, on the section they act on: at 80
columns the footer has room for one group and the status line already spends
half the width, which is the same reason the login row names `Ctrl-U`.
Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real
key path and the real node — the typed datadir reaching `ChainSource::Local`, an
empty one being refused with nothing written, the live row on open, `Ctrl-S`
saving then reporting the node's own refusal, the in-process network pick
reaching the store, and F6 no longer owning keys it does not handle.
`tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it
asserted before no longer work.
2026-09-27 20:06:51 -04:00
|
|
|
`F7` is where the Monero side is set up: the wallet RPC endpoint and login, the
|
|
|
|
|
chain source (receive-only, a local `monerod`, a remote daemon, or the in-process
|
|
|
|
|
Cuprate node), the chain datadir, and `Ctrl-S`/`Ctrl-X` to start and stop it. It
|
|
|
|
|
is also what the “open F7” wallet error points at. Full map:
|
|
|
|
|
[docs/TUI.md](docs/TUI.md).
|
2026-09-20 00:31:07 -04:00
|
|
|
|
|
|
|
|
Composer `/commands` (`src/tui.rs` `parse_cmd`): `/wipe`, `/wipe-all`, `/profile`,
|
|
|
|
|
`/who`, `/pay <xmr> [memo]`, `/tip <xmr> [memo]`, `/backup /path`, `/restore /path`,
|
|
|
|
|
`/file /path`, `/settings`, `/wallet create`, `/wallet import`.
|
|
|
|
|
|
2026-09-10 17:02:34 -04:00
|
|
|
## F2 / F3 invite
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
There is no invite QR. `F2` opens the share screen with truncated fingerprint,
|
|
|
|
|
current onion, and the full payload (wrapped, mouse-select to copy):
|
2026-09-10 02:49:42 -04:00
|
|
|
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
`onionwire:v2:k=…:o=…:spk=…:kem=…:sig=…`
|
|
|
|
|
|
|
|
|
|
The `kem=` field is the 1184-byte ML-KEM-768 public key (base64url), so the
|
|
|
|
|
string is about 1.9 KB instead of a few hundred bytes; `C` copies the whole
|
|
|
|
|
payload even when the terminal is too short to display all of it. Decode still
|
|
|
|
|
accepts a legacy `onionwire:v1:…` invite (no `kem=`): that friend is added as a
|
|
|
|
|
**classical** peer and the roster says `classical` next to them. There is no
|
|
|
|
|
silent upgrade — only a new signed v2 invite changes that.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Give that string to a friend. They `F3` paste it. Unknown `k` asks for approval.
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
Same `k` already in the roster updates `onion` (and prekey/KEM key) only.
|
|
|
|
|
|
|
|
|
|
No PQ for a legacy v1 peer: they have no `kem_pk`, so the session uses the old
|
|
|
|
|
`onionwire-v1` prologue with no ML-KEM secret. A v2 friend always sends the
|
|
|
|
|
prelude; a peer that omits it is hard-failed with `prelude required`. A v1-only
|
|
|
|
|
build cannot talk to a v2 friend, and that break is intentional.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
|
|
|
|
## F4 rotate onion
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
`F4` is a locator change, not a new identity. Confirm by typing `ROTATE` (Enter
|
|
|
|
|
alone does nothing).
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
- Identity fingerprint stays the same.
|
2026-09-10 02:49:42 -04:00
|
|
|
- A new onion is published; the old one is hard-cut (no dual-host grace).
|
|
|
|
|
- Online friends get a signed `loc` frame.
|
2026-09-10 16:53:03 -04:00
|
|
|
- Offline friends cannot find you until they F3-paste the new invite. There is no directory.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
docs(readme): document local outbox, delivery UI, wallet no-spend, Android stack
README still claimed "peer down → send fails / no outbox" after the local
chat outbox, TUI/Android delivery markers, SDK SendState/outbox rows,
view-only wallet switch, zeroize, Keystore-wrapped passphrase, and
foreground keep-alive all landed on main. Align the operator-facing
summary with PROTOCOL.md / THREAT_MODEL.md / TUI.md / WALLET.md:
- intro + first-run: local outbox for chat, fail-closed for fil/rcp
- replace Fail closed section with Local outbox (chat) and fail closed
- Monero: prefer view-only + ONIONWIRE_WALLET_NO_SPEND
- seized laptop: zeroize + pending outbox rows in the same store
- Android: SendState/outbox rows, delivery UI, FGS keep-alive, Keystore;
android-release is dispatch-only
- Not in v1: ban is server-side outbox only
2026-09-12 21:04:50 -04:00
|
|
|
## Local outbox (chat) and fail closed
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
**Chat** to an unreachable onion is written to a local `outbox` row and retried
|
|
|
|
|
in-process while the app runs (exponential backoff from 30s, cap 30 min, stop
|
|
|
|
|
after 8 attempts or a terminal failure — `src/outbox.rs`). There is **no**
|
|
|
|
|
server-side queue and **no** store-and-forward relay — a queued message never
|
|
|
|
|
leaves the device, and it dies with the device.
|
2026-09-14 16:55:47 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
- **Device seizure.** A pending message sits in the same SQLCipher store as the
|
|
|
|
|
rest of the history. Seizure *with* the passphrase reveals messages that were
|
|
|
|
|
never sent; seizure without it reveals nothing in this store. `/wipe` clears
|
|
|
|
|
outbox rows with chat history; `/wipe-all` removes them with the data dir.
|
|
|
|
|
Neither is a forensic erase.
|
|
|
|
|
- **Retry cadence is a local traffic-analysis surface.** A queued send re-dials
|
|
|
|
|
the peer's onion on a backoff schedule while the app runs.
|
docs(readme): document local outbox, delivery UI, wallet no-spend, Android stack
README still claimed "peer down → send fails / no outbox" after the local
chat outbox, TUI/Android delivery markers, SDK SendState/outbox rows,
view-only wallet switch, zeroize, Keystore-wrapped passphrase, and
foreground keep-alive all landed on main. Align the operator-facing
summary with PROTOCOL.md / THREAT_MODEL.md / TUI.md / WALLET.md:
- intro + first-run: local outbox for chat, fail-closed for fil/rcp
- replace Fail closed section with Local outbox (chat) and fail closed
- Monero: prefer view-only + ONIONWIRE_WALLET_NO_SPEND
- seized laptop: zeroize + pending outbox rows in the same store
- Android: SendState/outbox rows, delivery UI, FGS keep-alive, Keystore;
android-release is dispatch-only
- Not in v1: ban is server-side outbox only
2026-09-12 21:04:50 -04:00
|
|
|
|
|
|
|
|
Still **fail closed** (no queue, no retry):
|
|
|
|
|
|
2026-09-14 16:55:47 -04:00
|
|
|
- file transfer (`/file`) and payment frames (`inv` / `rcp` / `tip`)
|
docs(readme): document local outbox, delivery UI, wallet no-spend, Android stack
README still claimed "peer down → send fails / no outbox" after the local
chat outbox, TUI/Android delivery markers, SDK SendState/outbox rows,
view-only wallet switch, zeroize, Keystore-wrapped passphrase, and
foreground keep-alive all landed on main. Align the operator-facing
summary with PROTOCOL.md / THREAT_MODEL.md / TUI.md / WALLET.md:
- intro + first-run: local outbox for chat, fail-closed for fil/rcp
- replace Fail closed section with Local outbox (chat) and fail closed
- Monero: prefer view-only + ONIONWIRE_WALLET_NO_SPEND
- seized laptop: zeroize + pending outbox rows in the same store
- Android: SendState/outbox rows, delivery UI, FGS keep-alive, Keystore;
android-release is dispatch-only
- Not in v1: ban is server-side outbox only
2026-09-12 21:04:50 -04:00
|
|
|
- fingerprint mismatch vs the pinned key
|
|
|
|
|
- Arti cannot publish the onion (no C-tor fallback)
|
|
|
|
|
- no DHT, no name server, no hosted chat server
|
2026-09-10 14:50:01 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
## Chat ratchet
|
|
|
|
|
|
|
|
|
|
Chat is ratcheted on top of the Noise session: each chat send is Double-Ratchet
|
|
|
|
|
encrypted first, and the resulting `rat ` frame is what the one-shot Noise
|
|
|
|
|
session carries. Wire format: [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
|
|
|
|
|
|
|
|
|
- Per-friend state lives in the encrypted store (`ratchet_sessions`). Nothing
|
|
|
|
|
about it is transmitted.
|
|
|
|
|
- **Only chat is ratcheted.** `loc`, `prf`, `inv`, `rcp`, `tip`, `png`, and
|
|
|
|
|
`fil` keep the one-shot Noise shape.
|
2026-10-20 12:38:04 -04:00
|
|
|
- **Chat length is bucketed.** The chat line is padded inside the ratchet
|
|
|
|
|
ciphertext to one fixed ladder size (256 B to 32 KiB), so the wire shows a
|
|
|
|
|
bucket rather than the exact message length. Timing and retry cadence are
|
|
|
|
|
still observable; this hides length only.
|
docs: ratchet wire spec + forward-secrecy/PCS threat-model claims
PROTOCOL.md gains a 'Ratchet (v1 chat layer)' section written so a second
implementation can interoperate from the text alone: byte-exact frame layout
(rat , 0x01, dh_pub||N||PN as header and AAD, 12-byte nonce,
ChaCha20-Poly1305), the KDF_RK/KDF_CK constructions and the role-separated
epoch rule, the derived bootstrap epoch, the receive and DH-step rules, the
MAX_SKIP/MAX_SKIPPED_KEYS bounds with the replay rule, the SQLCipher
ratchet_sessions row, and what stays unratcheted.
THREAT_MODEL.md gains the corresponding gains (per-chain forward secrecy, PCS
after a DH step, header not on the wire) and honest limits (skipped-key
window, the prekey-bound bootstrap epoch, no deniability, no one-time
prekeys, compromised endpoint out of scope, no metadata gain, the no-server-
outbox lock untouched) plus the amended transport wording.
README.md documents the operator-visible consequence: no reset command yet,
prekey change / invite re-paste is the only recovery, /wipe keeps the state,
and a desync is currently stderr-only.
2026-09-16 19:40:40 -04:00
|
|
|
- Out-of-order delivery works (bounded skipped keys: 2000 per chain jump, 2000
|
2026-09-20 00:31:07 -04:00
|
|
|
stored). A queued chat message re-sends the *same* `rat ` frame.
|
|
|
|
|
- `/wipe` clears chat, payments and outbox but **keeps** ratchet state. `/wipe-all`
|
|
|
|
|
removes the data dir.
|
transport: ML-KEM-768 hybrid prelude and onionwire:v2 invites
Adds an ML-KEM-768 install key beside the ed25519 identity and x25519
prekey. A friend added from a v2 invite always gets a version-2 PQ
prelude before Noise msg 1, and both sides bind (ct, ss_kem) into the
Noise prologue (onionwire-v2 \0 ct \0 ss_kem). The row decides: a
kem_pk friend without a prelude is rejected with 'prelude required',
a prelude for a classical row with 'unexpected prelude'.
Invites are now onionwire:v2 with kem=<base64url pk>; decode still
accepts v1 (no kem) and yields a classical friend. F8 rotates the
KEM key with the prekey and hard-cuts stored ratchet state. The TUI
labels a legacy friend 'classical'.
Docs: PROTOCOL (keys, framing, prologues, no-downgrade, invite v2),
THREAT_MODEL (what PQ transport does and does not buy; epoch 0 stays
classical), README (invite size, F8, legacy caveat). SDK exposes pq on
InviteInfo/FriendInfo and gains a v2 decode round-trip test.
2026-10-20 11:15:46 -04:00
|
|
|
- There is no `/reset`. State drops when the friend's prekey or ML-KEM key
|
|
|
|
|
changes (you `F3`-paste a refreshed invite).
|
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 12:54:30 -04:00
|
|
|
- **Ratchet steps are hybrid; epoch 0 is not.** Every rotation after the
|
|
|
|
|
bootstrap mixes an ML-KEM-768 secret into the chain KDF, so a later X25519
|
|
|
|
|
break does not open a hybrid chain. The bootstrap epoch is still derived only
|
|
|
|
|
from the two X25519 prekeys — a per-session KEM secret cannot be folded in
|
|
|
|
|
without breaking both-send-first convergence — so messages sent before the
|
|
|
|
|
first rotation stay X25519-only at the ratchet layer, and classical (v1)
|
|
|
|
|
friends have no PQ layer at all. No full post-quantum forward secrecy is
|
|
|
|
|
claimed; see [docs/THREAT_MODEL.md](docs/THREAT_MODEL.md).
|
2026-09-20 00:31:07 -04:00
|
|
|
- An inbound `rat ` frame that does not authenticate is logged as
|
|
|
|
|
`rat dropped (<reason>)` on stderr and dropped. There is no in-app desync banner.
|
docs: ratchet wire spec + forward-secrecy/PCS threat-model claims
PROTOCOL.md gains a 'Ratchet (v1 chat layer)' section written so a second
implementation can interoperate from the text alone: byte-exact frame layout
(rat , 0x01, dh_pub||N||PN as header and AAD, 12-byte nonce,
ChaCha20-Poly1305), the KDF_RK/KDF_CK constructions and the role-separated
epoch rule, the derived bootstrap epoch, the receive and DH-step rules, the
MAX_SKIP/MAX_SKIPPED_KEYS bounds with the replay rule, the SQLCipher
ratchet_sessions row, and what stays unratcheted.
THREAT_MODEL.md gains the corresponding gains (per-chain forward secrecy, PCS
after a DH step, header not on the wire) and honest limits (skipped-key
window, the prekey-bound bootstrap epoch, no deniability, no one-time
prekeys, compromised endpoint out of scope, no metadata gain, the no-server-
outbox lock untouched) plus the amended transport wording.
README.md documents the operator-visible consequence: no reset command yet,
prekey change / invite re-paste is the only recovery, /wipe keeps the state,
and a desync is currently stderr-only.
2026-09-16 19:40:40 -04:00
|
|
|
|
2026-09-10 23:32:06 -04:00
|
|
|
## File transfer
|
|
|
|
|
|
|
|
|
|
`/file /path` sends a local file to the selected friend. Both must be online.
|
2026-09-20 00:31:07 -04:00
|
|
|
Cap 1 MiB (`file::MAX_BYTES`). Fail closed: a bad chunk or hash mismatch deletes
|
|
|
|
|
the partial. Files land in `$ONIONWIRE_HOME/inbox/<fingerprint>/`. Chat shows
|
|
|
|
|
`[file] name (N bytes)`. Not covered by the chat outbox.
|
2026-09-10 23:32:06 -04:00
|
|
|
|
2026-09-10 14:50:01 -04:00
|
|
|
## Profile
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
`/profile` edits your friend-visible display name, bio, and optional Monero
|
|
|
|
|
address (64 / 512 byte limits, no images). Enter saves and one-shot sends a
|
|
|
|
|
signed `prf` frame to the selected friend. `F5` or `/who` shows their last signed
|
|
|
|
|
profile. Unknown pubkeys are ignored.
|
2026-09-10 14:50:01 -04:00
|
|
|
|
2026-09-13 23:25:25 -04:00
|
|
|
## Monero (opt-in)
|
2026-09-10 14:50:01 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Chat does not need a wallet. Spend is opt-in at wallet create/restore. Optional
|
|
|
|
|
JSON-RPC to `monero-wallet-rpc` on **loopback only** (you run it, or the app
|
|
|
|
|
spawns it). Chain source is your choice: spawned local `monerod`, in-process
|
|
|
|
|
Cuprate (opt-in feature, **unvalidated on mainnet**), or a daemon address you
|
|
|
|
|
type. The wallet **must** use `--rpc-login`; OnionWire refuses an open RPC and
|
|
|
|
|
refuses URLs with no credentials. Wallet RPC is never on clearnet and never over
|
|
|
|
|
`.onion`. `--trusted-daemon` is never passed.
|
|
|
|
|
|
|
|
|
|
The app-owned local daemon RPC port is **18081**. **18089** is a daemon's
|
|
|
|
|
*restricted*-RPC port and belongs only in examples of a *remote* address you type.
|
2026-09-10 14:50:01 -04:00
|
|
|
|
|
|
|
|
```bash
|
2026-09-20 00:31:07 -04:00
|
|
|
# externally run wallet RPC (migration path)
|
2026-09-10 20:17:25 -04:00
|
|
|
export ONIONWIRE_WALLET_RPC=http://onionwire:secret@127.0.0.1:18083
|
2026-09-20 00:31:07 -04:00
|
|
|
# or:
|
2026-09-10 14:50:01 -04:00
|
|
|
export ONIONWIRE_WALLET_RPC=http://127.0.0.1:18083
|
2026-09-10 20:17:25 -04:00
|
|
|
export ONIONWIRE_WALLET_RPC_LOGIN=onionwire:secret
|
2026-09-10 14:50:01 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Prefer `ONIONWIRE_WALLET_NO_SPEND=1` until you actually want `/tip`. Details:
|
|
|
|
|
[docs/WALLET.md](docs/WALLET.md).
|
2026-09-14 16:55:47 -04:00
|
|
|
|
|
|
|
|
| Command | Wire frame | What it does |
|
|
|
|
|
|---|---|---|
|
2026-09-20 00:31:07 -04:00
|
|
|
| `/pay <xmr> [memo]` | `inv ` | Invoice to receive. Subaddress if RPC is up, else profile `xmr_addr`. |
|
|
|
|
|
| `/tip <xmr> [memo]` | `rcp ` + `tip ` | Chain `transfer`, then signed receipt and tip. One-shot. Disabled under `ONIONWIRE_WALLET_NO_SPEND`. |
|
2026-09-14 16:55:47 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Peer onion down → `/pay` and `/tip` fail. A queued invoice does not exist.
|
2026-09-14 16:55:47 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
`F6` then `c` / `/wallet create` generates a spend-capable wallet and shows the
|
wallet: optional seed-offset passphrase on import
Monero's `restore_deterministic_wallet` takes a `seed_offset`: a second
spend secret mixed into the 25 words at restore time, so the same words
with a different offset open a different wallet. It is not the wallet-file
passphrase and must never be sealed, stored, logged or put on an argv.
- `Wallet::restore_wallet` gains `seed_offset: Option<&str>`: None, empty
or whitespace-only leaves the field out of the JSON entirely; otherwise
the ends are trimmed and it is sent beside the seed.
- `Node::wallet_restore` passes it through and still seals only the file
passphrase.
- SDK: `import_wallet` keeps its signature (None) and
`import_wallet_with_offset` is added (Kotlin `importWalletWithOffset`).
- TUI: a new `ImportOffset` step between the seed and the file passphrase
(blank Enter skips, a real one is confirmed, a mismatch never dials), and
`ImportOffsetSeen` after a successful import that used one -- Esc cannot
leave it, only SEEN, and the offset is not drawn anywhere.
- Docs: WALLET.md, THREAT_MODEL.md, TUI.md, one README sentence.
2026-09-25 00:42:44 -04:00
|
|
|
25-word seed **once**. `F6` then `i` / `/wallet import` restores from a seed, and
|
|
|
|
|
takes an optional Monero seed-offset passphrase (a second spend secret, not the
|
|
|
|
|
wallet-file passphrase; blank skips it, a wrong one opens a different wallet and
|
|
|
|
|
does not fail).
|
wallet: actually open the wallet file, and remember its passphrase
`monero-wallet-rpc` starts with no wallet open and keeps one only for the
life of its process, so a restart, a Lock/unlock or a wallet re-point left
a live child answering `-13 No wallet file` to every read while the file
sat on disk. The app now opens the configured catalogue file itself
(`Wallet::open_wallet`, over RPC — never `--wallet-file`/`--password` on
argv, which `ps` exposes) after the child is up, and keeps the passphrase
that does it, sealed with the store data key beside the RPC creds under
its own AAD.
- core: `Wallet::open_wallet`, `WalletConfig::wallet_passphrase`
(+ `with_wallet_passphrase`, redacted Debug, kept out of the endpoint
config), `Error::is_unreachable` for the one retryable class (the port
binds a moment after spawn; a timeout is not a start in progress).
- store: `wallet_config.sealed_passphrase` column (additive, AAD
`onionwire-store-v1:wallet-passphrase`), read-modify-written so the
endpoint/login survive; `wallet_save_config` keeps the stored one.
- node: `start_wallet_child` opens the file, `open_wallet_with_passphrase`
opens a file with a passphrase the user just typed and seals it only
once a live daemon accepted it, `wallet_status` grows `wallet_open` and
`needs_passphrase`. A child the RPC refuses is stopped rather than left
inert; an install with no stored passphrase still starts, and says so.
- tui: one-shot prompt (`WalletSetup::UnlockPass`) on a wallet that needs
it, reachable from the saved-wallet picker and from `s`.
- sdk: `openWalletWithPassphrase`, the two status fields, README flow.
- docs: WALLET/THREAT_MODEL/README — the passphrase is kept, and the
consequence (the store passphrase is sufficient to spend) is stated
rather than implied.
Tests: 4 new node tests drive a real child lifecycle against a loopback
wallet RPC (open on restart, no open without a passphrase, refused
passphrase, sealed-on-success), a `tests/wallet.rs` test asserts the bytes
sent (`open_wallet` + filename + password), and `tests/store.rs` covers
the sealed column and the plaintext->encrypted upgrade with it set.
Mutation-checked: stubbing the two open paths fails all four.
2026-09-22 12:52:08 -04:00
|
|
|
Type `SPEND` then `SEEN` on create. Each wallet gets its own file name
|
|
|
|
|
(`onionwire-1`, `onionwire-2`, …); the RPC must be started with `--wallet-dir`.
|
|
|
|
|
|
|
|
|
|
`monero-wallet-rpc` keeps a wallet open only for the life of one process, so the
|
|
|
|
|
app opens the configured file itself after the child is up (`open_wallet`) — and
|
|
|
|
|
the passphrase that does it is kept, sealed in the store beside the RPC creds.
|
|
|
|
|
That is deliberate and it means the store passphrase is enough to spend; see
|
|
|
|
|
[docs/THREAT_MODEL.md](docs/THREAT_MODEL.md) and
|
|
|
|
|
[docs/WALLET.md](docs/WALLET.md). A wallet the app holds no passphrase for still
|
|
|
|
|
starts — the status reports `needs passphrase` and the app prompts for it once.
|
2026-09-10 14:50:01 -04:00
|
|
|
|
|
|
|
|
## Backup / restore
|
|
|
|
|
|
|
|
|
|
Losing `identity_sk` loses every friend relationship.
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
- `/backup /path` — type `BACKUP`, passphrase twice. Writes `owbak1` (Argon2id +
|
|
|
|
|
ChaCha20-Poly1305). Onion is **not** in the file.
|
|
|
|
|
- `/restore /path` — type `RESTORE`, passphrase. Overwrites self keys. **Does not
|
|
|
|
|
rewrite the roster.**
|
2026-09-10 02:49:42 -04:00
|
|
|
|
|
|
|
|
## Wipe
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
- `/wipe` — type `WIPE`. Chat, payments, and outbox gone. Identity and friends stay.
|
|
|
|
|
- `/wipe-all` — type `WIPEALL`. Deletes the data dir. Next start is a **new person**.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Not a forensic erase (SSD wear-leveling). Esc cancels.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
## Uninstall
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
rm -f ~/.local/bin/onionwire ~/.cargo/bin/onionwire
|
|
|
|
|
rm -rf ~/.local/share/onionwire
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If you set `ONIONWIRE_HOME`, delete that directory instead.
|
|
|
|
|
|
2026-09-10 02:49:42 -04:00
|
|
|
## Seized laptop
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
The sqlite file is SQLCipher. A 32-byte key is derived from the store passphrase
|
|
|
|
|
with Argon2id over a per-install 16-byte salt in `store_salt` (mode 0600) and
|
|
|
|
|
handed to SQLCipher as a raw key. Chat bodies carry a second, row-bound
|
|
|
|
|
ChaCha20-Poly1305 layer. Unlock is fail-closed. At-rest encryption is not a
|
|
|
|
|
defense against a live compromise or an attacker who has your passphrase.
|
|
|
|
|
Pending outbox rows live in the same encrypted store as delivered chat.
|
2026-09-10 02:49:42 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Threat model: [docs/THREAT_MODEL.md](docs/THREAT_MODEL.md).
|
2026-09-10 03:04:56 -04:00
|
|
|
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
## Android (SDK + APK)
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Same repository, same protocol. An Android peer and a Linux peer that exchange
|
|
|
|
|
invites interoperate.
|
2026-09-14 16:55:47 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
- **SDK** — `onionwire-sdk-<version>.aar`. UniFFI Kotlin over the same Rust crate
|
|
|
|
|
the TUI runs. See [crates/onionwire-sdk/README.md](crates/onionwire-sdk/README.md).
|
|
|
|
|
- **APK** — `onionwire-<version>-android-arm64-v8a.apk`. Kotlin + Jetpack Compose.
|
2026-10-30 23:04:43 -04:00
|
|
|
Build notes: [android/README.md](android/README.md). The UI is a design-token
|
|
|
|
|
system (one accent, 16px cards, three-tab shell: Chats / Wallet / Node &
|
|
|
|
|
Settings) rather than per-screen styling; see *App shell* in that README.
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
The APK build is amd64-only. After the Linux `release` workflow finishes,
|
|
|
|
|
dispatch `android-release` with that tag so the APK/AAR attach to the same
|
|
|
|
|
Forgejo release.
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
|
|
|
|
|
```bash
|
2026-09-20 00:31:07 -04:00
|
|
|
scripts/build-android-local.sh # -> dist/, with .sha256
|
2026-10-30 23:04:43 -04:00
|
|
|
PUBLISH_TAG=v0.7.0 scripts/build-android-local.sh # + upload to that release
|
feat(android): SDK AAR (UniFFI) + Compose APK, Arti rustls feature split
Adds the Android product alongside the existing Linux TUI, in one repo.
SDK — crates/onionwire-sdk is a UniFFI facade over the very same `onionwire`
crate the TUI runs on. Identity, invite, friend upsert, send/receive, rotate
and wipe all delegate; no protocol is reimplemented, so an Android peer and a
Linux peer interoperate. It is its own Cargo workspace because Arti's TLS
backends are non-additive: the TUI keeps native-tls (OpenSSL), Android needs
rustls + static-sqlite (no OpenSSL, no system libsqlite3 in the NDK).
android/ — Gradle project. :sdk produces the AAR (Kotlin bindings generated at
build time + libonionwire_sdk.so via cargo-ndk), :app is a Kotlin/Compose/M3
messenger depending on :sdk only. minSdk 26, targetSdk/compileSdk 36,
INTERNET-only, data in filesDir, backups excluded.
Root Cargo.toml grows `native-tls` (default) and `rustls` features so exactly
one Arti TLS backend is selected per build graph. The default build is
unchanged: same backend, ratatui still a normal dependency, src/tui.rs
untouched.
Also: Store::self_fingerprint/set_petname + Node wrappers (additive only),
scripts/build-android-local.sh, README sections, .gitignore for local SDK paths.
2026-09-10 18:20:19 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-10 03:04:56 -04:00
|
|
|
## Releases (maintainers)
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Manual and batched: no merge publishes anything, and neither does a tag push.
|
|
|
|
|
Full procedure: [docs/RELEASING.md](docs/RELEASING.md).
|
2026-09-12 17:57:15 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Actions → **release** → Run workflow:
|
2026-09-12 17:57:15 -04:00
|
|
|
|
|
|
|
|
| Input | Meaning |
|
|
|
|
|
|---|---|
|
|
|
|
|
| `dry_run` | build + checksum both Linux binaries, no tag, no publish. Run this first. |
|
|
|
|
|
| `bump` | `patch` / `minor` / `major` off the newest `v*.*.*` tag. Default `minor`. |
|
2026-09-20 00:31:07 -04:00
|
|
|
| `version` | explicit `X.Y.Z` — overrides `bump`. |
|
|
|
|
|
| `tag` | rebuild / re-publish an existing tag. |
|
2026-09-10 03:04:56 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Then dispatch **android-release** with `tag=<that tag>` to attach the APK + AAR.
|
2026-09-10 13:10:56 -04:00
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
```bash
|
2026-10-30 23:04:43 -04:00
|
|
|
FORGEJO_TOKEN=<pat> scripts/build-release-local.sh v0.7.0
|
2026-09-10 03:04:56 -04:00
|
|
|
```
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Do not run `cargo publish`; `publish = false`.
|
2026-09-10 03:04:56 -04:00
|
|
|
|
|
|
|
|
## Troubleshooting
|
|
|
|
|
|
|
|
|
|
| Symptom | What to do |
|
|
|
|
|
|---|---|
|
2026-09-20 00:31:07 -04:00
|
|
|
| `GLIBC_… not found` | Build from source (Option B). |
|
|
|
|
|
| `sha256sum: FAILED` | Re-download binary and `.sha256`; check in the same directory. |
|
|
|
|
|
| Hang on `bootstrapping Arti…` | Outbound network required. Fail closed after 360s. No C-tor fallback. |
|
|
|
|
|
| `onionwire: unknown argument` | No subcommands. `--version` / `--help` only, then the TUI. |
|
|
|
|
|
| Blank / broken TUI | Real terminal emulator, not `nohup` / systemd without a TTY. |
|
2026-09-10 03:04:56 -04:00
|
|
|
| Two chats, same laptop | Separate `ONIONWIRE_HOME` per process. |
|
2026-09-20 00:31:07 -04:00
|
|
|
| Friend cannot find you after F4 | Expected if they were offline. They F3-paste the new invite. |
|
tui: F7 becomes the node-setup screen, and F6 goes back to being the wallet
The chain source was reachable from three places and configured from none of
them properly: `F6`'s inline `1`/`2`/`3` picker wrote only the in-process
choice, the `F9` menu showed the state and named keys that edited it, and
`Node::set_local_monerod` / `set_remote_daemon` / `set_receive_only` — the only
way to point the app at a Monero node — had **no TUI caller at all** (Kotlin
only). `wallet::NOT_CONFIGURED_MSG` told users to "open F7" and there was no F7.
F7 (`WalletSetupConfig`) is now the one screen that sets up the node:
- The `datadir` row is new and editable. `Node::set_local_monerod_at` takes the
path; `set_local_monerod` delegates with the derived default, so an existing
install keeps the store it already has. An empty datadir is refused rather
than silently replaced — a store that moved unasked looks like a vanished
chain and resyncs somewhere the user did not choose.
- The `network` row is new: it carries the Cuprate mainnet/testnet choice that
`F6`'s `1`/`2`/`3` used to own, so deleting those keys loses nothing. Mainnet
reads `unvalidated` before it is picked.
- A `NODE` section shows the live `Node::wallet_child_status` line (state, chain
source, `sync h/t`, last error) and the last save/test answer. It is the
node's answer, never the draft above it, and `Ctrl-R` re-reads it.
- `Ctrl-S` saves and starts the child (the daemon, and `monerod` for a local
source); `Ctrl-X` stops it. Both go through the same `Node::start_wallet_child`
/ `stop_wallet_child` the app's own lifecycle uses, so a start that lands on a
wallet with no stored passphrase still reaches the unlock prompt.
F6 loses the chain picker and the `s`/`x`/`p` child keys — it is the wallet
again (receive, balance, transfers, create/import) — and its footer points at
`F7 node`. The `F9` menu's `child`/`sync` rows now name `F7 ctrl-s/x` and
`F7 ctrl-r` instead of keys that no longer exist on F6. `set_cuprate_chain` and
the `p` probe handler are deleted rather than left dead.
The node's own keys are named in the body, on the section they act on: at 80
columns the footer has room for one group and the status line already spends
half the width, which is the same reason the login row names `Ctrl-U`.
Tests: six new cases in `src/tui.rs`'s `wallet_setup_config_tests` drive the real
key path and the real node — the typed datadir reaching `ChainSource::Local`, an
empty one being refused with nothing written, the live row on open, `Ctrl-S`
saving then reporting the node's own refusal, the in-process network pick
reaching the store, and F6 no longer owning keys it does not handle.
`tests/tui_spec.rs`'s menu-key check now asserts the F7 keys; the F6 keys it
asserted before no longer work.
2026-09-27 20:06:51 -04:00
|
|
|
| Wallet error says “open F7” | `F7` is the node & wallet setup screen: set the RPC endpoint there, or set `ONIONWIRE_WALLET_RPC`. |
|
2026-09-10 03:04:56 -04:00
|
|
|
|
2026-09-10 02:49:42 -04:00
|
|
|
## Not in v1
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
Prosody, XMPP, s2s, MAM, carbons, a **server-side** outbox / store-and-forward
|
|
|
|
|
relay, multi-device, DHT / name server, invite QR codes, A/V. The **local** chat
|
|
|
|
|
retry queue is in; it never leaves the device. Protocol lock:
|
|
|
|
|
[docs/PROTOCOL.md](docs/PROTOCOL.md).
|
2026-09-10 01:02:33 -04:00
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
2026-09-20 00:31:07 -04:00
|
|
|
MIT
|