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-10 17:02:34 -04:00
No hosted server. Identity is a public key; the onion is only a locator.
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
**v0.2** — Linux TUI + Android SDK/APK. Two people add each other with an `onionwire:v1:…` invite string (`F2` share / `F3` paste). There is no QR graphic. Chat is Noise IK over your own v3 onion. Unreachable chat peers go to a **local outbox ** (device-only retry queue — no relay); file transfer and payment frames still fail closed. Optional Monero invoices if you point at a local `monero-wallet-rpc` (prefer a view-only wallet). Arti onion services are still experimental. The whole store is encrypted at rest with SQLCipher; message bodies add a row-bound AEAD layer on top.
2026-09-10 01:02:33 -04:00
2026-09-10 03:04:56 -04:00
You do **not ** install a `tor` daemon, `torrc` , Prosody, or XMPP. OnionWire embeds Arti and publishes its own v3 onion.
2026-09-11 13:15:51 -04:00
**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 ).
2026-09-10 03:04:56 -04:00
## Install
Pick one: a CI-built binary (fastest), or build from source.
### Requirements
| Need | Notes |
|---|---|
| Linux | x86_64 or aarch64. TUI needs a real terminal (not a pipe). |
| Network | First run bootstraps Tor via Arti. Offline start will fail closed. |
| Not needed | `tor` package, `torrc` , Prosody, an XMPP account, a DHT. |
Arti onion services are still **experimental ** . If the hidden service cannot come up, OnionWire exits — it does not fall back to C-tor.
### Option A — download a release binary
2026-09-12 17:57:15 -04:00
CI (`.forgejo/workflows/release.yml` ) does **not ** release on a merge. Releases are manual and batched: a maintainer runs the workflow at a stopping point (Actions → release → Run workflow, `dry_run=true` first), which tags the next `v*.*.*` version and publishes both Linux binaries — aarch64 on the Pi runner, x86_64 on the amd64 runner — to one [Forgejo release ](https://forgejo.siriusdevops.com/sirius/onionwire/releases ), with the Android APK + AAR attached to that same tag. Policy and inputs: [docs/RELEASING.md ](docs/RELEASING.md ). `scripts/build-release-local.sh` remains the offline x86_64 fallback. This Forgejo does not serve `/releases/latest/download/…` (404); pin the tag.
2026-09-10 03:04:56 -04:00
**x86_64 (most PCs / VMs):**
```bash
2026-09-12 02:51:07 -04:00
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.1.0/onionwire-x86_64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.1.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
```
**aarch64 (Raspberry Pi, ARM servers):**
```bash
2026-09-12 02:51:07 -04:00
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.1.0/onionwire-aarch64-unknown-linux-gnu
curl -fL -O https://forgejo.siriusdevops.com/sirius/onionwire/releases/download/v0.1.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-10 03:05:44 -04:00
Install onto `PATH` if you want `onionwire` as a command (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
# ensure ~/.local/bin is on PATH, then:
onionwire
```
The binary is dynamically linked against glibc (Ubuntu 24.04 builders). If `./onionwire` dies with `GLIBC_… not found` , use Option B on that machine.
2026-09-10 03:05:44 -04:00
Checksum files are `sha256sum` format (`<hash> onionwire-<target>` ). Download both files with `curl -O` so the names match, then `sha256sum -c` .
2026-09-10 03:04:56 -04:00
### Option B — build from source
2026-09-10 13:14:55 -04:00
Needs [Rust ](https://rustup.rs/ ) **1.91+ ** (`edition = "2024"` ; the pinned Arti 0.46 crates require rustc 1.91). A distro `rustc` is fine if `rustc --version` reports 1.91 or newer. Do not install `tor` for this app.
2026-09-10 03:04:56 -04:00
```bash
# rustup (if you do not already have cargo)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
2026-09-10 13:14:55 -04:00
rustc --version # must be 1.91 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
```
Install the binary:
```bash
cargo install --path . --locked --force
# lands in ~/.cargo/bin/onionwire
```
2026-09-10 13:10:56 -04:00
Build needs `pkg-config` and OpenSSL 3 headers (`libssl-dev` / `openssl-devel` ) —
the released binaries link `libssl.so.3` dynamically.
2026-09-10 03:04:56 -04:00
### Two instances on one machine
Each process needs its own data dir (identity + onion + sqlite):
```bash
ONIONWIRE_HOME=/tmp/ow-a ./onionwire
ONIONWIRE_HOME=/tmp/ow-b ./onionwire
```
2026-09-10 17:02:34 -04:00
Then `F2` on A (invite string), `F3` -paste on B (and the other way around). No QR.
2026-09-10 03:04:56 -04:00
2026-09-10 02:49:42 -04:00
## First run
2026-09-10 01:02:33 -04:00
2026-09-10 02:49:42 -04:00
```
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-10 21:10:50 -04:00
On start you are prompted for a store passphrase (echo off, like other CLI passwords) or set `ONIONWIRE_STORE_PASSPHRASE` . Empty passphrase is rejected; a wrong passphrase does not open chat. Then you should see `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. 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.
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
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-10 16:53:03 -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.
2026-09-10 02:49:42 -04:00
2026-09-10 03:04:56 -04:00
## Keys (TUI)
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
Focus starts on the composer so typing works immediately. `Tab` cycles panes; `j` /`k` and arrows only move the focused pane (roster or chat). `1` /`2` /`3` switch focus when you are not typing in the composer. `?` opens help from every screen except paste (so a payload can contain `?` ).
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 |
| `1` / `2` / `3` | Focus roster / chat / composer (when not typing) |
| `j` `k` / `↑` `↓` | Move or scroll the focused pane |
| `g` / `G` | Jump to top / bottom of the focused pane |
| `?` | Keybinding help (`Esc` closes) |
2026-09-10 17:02:34 -04:00
| `F2` | Share invite (`onionwire:v1:…` ) |
| `F3` | Paste a friend’ s invite |
2026-09-10 03:04:56 -04:00
| `F4` | Rotate **onion ** (locator only) |
2026-09-10 14:50:01 -04:00
| `F5` | Selected friend’ s profile (`/who` ) |
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
2026-09-10 17:02:34 -04:00
## F2 / F3 invite
2026-09-10 02:49:42 -04:00
2026-09-10 17:02:34 -04:00
There is no QR. `F2` opens `(o) invite` with truncated fingerprint, current onion, and the full payload (wrapped, mouse-select to copy):
2026-09-10 02:49:42 -04:00
`onionwire:v1:k=…:o=…:spk=…:sig=…`
2026-09-10 17:02:34 -04:00
Give that string to a friend. They `F3` paste it (`(o) paste invite` ). Unknown `k` asks for approval. Same `k` already in the roster updates `onion` only.
2026-09-10 02:49:42 -04:00
## F4 rotate onion
`F4` is a locator change, not a new identity. Confirm by typing `ROTATE` (Enter alone does nothing).
- Your identity fingerprint stays the same.
- 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
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
**Chat** to an unreachable onion is written to a local `outbox` row next to its
`messages` row and retried in-process while the app runs (exponential backoff,
cap 30 min between attempts, stop after 8 attempts or a terminal failure). 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. Delivery markers in the
TUI and the Android chat UI are the store's own statuses (`Queued` / `Sending` /
`Sent` / `Failed` ); see [docs/TUI.md ](docs/TUI.md ) and the threat-model notes on
seizure and retry traffic analysis in [docs/THREAT_MODEL.md ](docs/THREAT_MODEL.md ).
Still **fail closed ** (no queue, no retry):
- file transfer (`/file` ) and payment frames (`rcp` / spend paths)
- 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-10 23:32:06 -04:00
## File transfer
`/file /path` sends a local file to the selected friend. Both must be online.
Cap 1 MiB on send and receive. Fail closed: a bad chunk or hash mismatch
deletes the partial (never overwrite). Files land in
`$ONIONWIRE_HOME/inbox/<fingerprint>/` . Chat shows `[file] name (N bytes)` ,
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
never raw frames. File transfer is **not ** covered by the chat outbox — no
resume, no images in the TUI.
2026-09-10 23:32:06 -04:00
2026-09-10 14:50:01 -04:00
## Profile
`/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. There is no directory: unknown pubkeys are ignored.
## Monero sidecar
2026-09-10 20:17:25 -04:00
OnionWire is not a wallet. Optional JSON-RPC to a user-hosted `monero-wallet-rpc` . The wallet **must ** use `--rpc-login` ; OnionWire refuses an open RPC (HTTP 200 without a Digest challenge) and refuses URLs with no credentials.
2026-09-10 14:50:01 -04:00
```bash
2026-09-10 20:17:25 -04:00
# monero-wallet-rpc --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18083 --rpc-login onionwire:secret
export ONIONWIRE_WALLET_RPC=http://onionwire:secret@127 .0.0.1:18083
# or keep the password out of the URL:
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-10 20:17:25 -04:00
Loopback only, HTTP Digest (RFC 2617, matching `--rpc-login` ), 5s timeout, 1 MiB response cap. `.onion` RPC URLs are rejected (no Arti dial; do not point this at a remote wallet). Unset → chat still works; `/pay` and `/tip` say so. Do not log the RPC password.
2026-09-10 14:50:01 -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
**Prefer a view-only wallet.** OnionWire only needs invoices and receipt checks
(`create_address` / `get_transfers` ); it does not need spend authority. Set
`ONIONWIRE_WALLET_NO_SPEND=1` (or `true` / `yes` / `on` ) to refuse `/tip`
locally before any RPC dial — `/pay` and receipt verification keep working.
Details: [docs/WALLET.md ](docs/WALLET.md ).
2026-09-10 14:50:01 -04:00
- `/pay <xmr> [memo]` — invoice (we want to receive). Uses a wallet subaddress if RPC is up, else the profile `xmr_addr` .
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
- `/tip <xmr> [memo]` — pay the selected friend’ s profile address, then send a signed `rcp` (disabled under `ONIONWIRE_WALLET_NO_SPEND` ). Incoming receipts stay unverified until RPC `get_transfers` matches.
2026-09-10 14:50:01 -04:00
## Backup / restore
Losing `identity_sk` loses every friend relationship.
- `/backup /path` — type `BACKUP` , passphrase twice. Writes `owbak1` (Argon2id + ChaCha20-Poly1305). Onion is **not ** in the file (locator is disposable; F4 after restore if needed).
- `/restore /path` — type `RESTORE` , passphrase. Overwrites self keys. **Does not rewrite the roster ** — you may become a different person talking to old friends.
Treat the backup file like the sqlite db.
## Mixed versions
2026-09-10 23:32:06 -04:00
0.1.2 peers store unknown plaintext as chat. A 0.2 sender of `prf ` / `inv ` / `rcp ` / `fil ` will leave a garbage line on an un-upgraded peer. Upgrade both sides. The Noise handshake is unchanged.
2026-09-10 02:49:42 -04:00
## Wipe
Composer (bottom of the roster screen):
2026-09-10 20:22:31 -04:00
- `/wipe` — confirm by typing `WIPE` . Chat and payments history gone (overwrite message bodies, drop `payments` , `VACUUM` , WAL checkpoint). Identity key and friends stay. Not a forensic erase (SSD wear-leveling). `/wipe-all` is the identity burn.
- `/wipe-all` — confirm by typing `WIPEALL` . Deletes the data dir. Next start is a **new person ** (new identity key). Same disk caveat. Esc cancels. Nothing is wiped without confirm.
2026-09-10 02:49:42 -04:00
2026-09-10 03:04:56 -04:00
## Uninstall
```bash
# binary (whichever you used)
rm -f ~/.local/bin/onionwire ~/.cargo/bin/onionwire
# optional: destroy identity, friends, and message log
# (same as /wipe-all — you become a new person next run)
rm -rf ~/.local/share/onionwire
```
If you set `ONIONWIRE_HOME` , delete that directory instead.
2026-09-10 02:49:42 -04:00
## Seized laptop
docs: describe the SQLCipher store, not the pre-#43 design
The v0.2 banner and the "Seized laptop" section still claimed only chat
bodies were encrypted, that `self.identity_sk` and the roster were
plaintext, and that "sqlcipher is out of v1". That has been false since
#43.
- README banner: whole store is encrypted at rest with SQLCipher, with the
row-bound AEAD layer kept on top.
- "Seized laptop": whole-file SQLCipher (Argon2id key over the 16-byte
`store_salt`, raw `PRAGMA key`), identity/friends/locators inside the
encrypted file, fail-closed unlock and `store_salt`-missing refusal, and
the in-place v0.2.1 upgrade. Kept the honest caveats: no defense against
a live compromise or a known passphrase, `/wipe` is not a forensic erase
(SSD wear-levelling), and THREAT_MODEL.md stays the reference.
- "Not in v1": drop `sqlcipher` (shipped in #43).
- docs/SECURITY_AUDIT.md "Still true" bullet repeated the same plaintext
claim; restated it as the residual risk that actually remains.
No code change. Evidence: cargo test --test store (21 passed, incl.
whole_store_file_is_encrypted_at_rest) and cargo test --lib -- store::
(6 passed, incl. the plaintext->SQLCipher upgrade and the wrong-passphrase
no-op).
Card: t_f2fc5190
2026-09-12 16:00:12 -04:00
The whole sqlite file is SQLCipher (`rusqlite` feature `bundled-sqlcipher-vendored-openssl` ). A 32-byte key is derived from the store passphrase with Argon2id over a per-install 16-byte salt in `store_salt` (mode 0600, in `ONIONWIRE_HOME` ) and handed to SQLCipher as a **raw ** key (`PRAGMA key = "x'…'"` ) as the first statement after open. The file header, schema, `self.identity_sk` , friend public keys, locators, profiles and payment rows are all ciphertext on disk, so a disk grep of `onionwire.db` must not yield the message log, your identity key or your roster. A wrong or empty passphrase fails closed before any write; an encrypted store whose `store_salt` is missing refuses to open instead of guessing. v0.2.1 plaintext installs upgrade in place on the first open with the right passphrase; a wrong one leaves the plaintext file untouched.
2026-09-10 17:19:50 -04:00
docs: describe the SQLCipher store, not the pre-#43 design
The v0.2 banner and the "Seized laptop" section still claimed only chat
bodies were encrypted, that `self.identity_sk` and the roster were
plaintext, and that "sqlcipher is out of v1". That has been false since
#43.
- README banner: whole store is encrypted at rest with SQLCipher, with the
row-bound AEAD layer kept on top.
- "Seized laptop": whole-file SQLCipher (Argon2id key over the 16-byte
`store_salt`, raw `PRAGMA key`), identity/friends/locators inside the
encrypted file, fail-closed unlock and `store_salt`-missing refusal, and
the in-place v0.2.1 upgrade. Kept the honest caveats: no defense against
a live compromise or a known passphrase, `/wipe` is not a forensic erase
(SSD wear-levelling), and THREAT_MODEL.md stays the reference.
- "Not in v1": drop `sqlcipher` (shipped in #43).
- docs/SECURITY_AUDIT.md "Still true" bullet repeated the same plaintext
claim; restated it as the residual risk that actually remains.
No code change. Evidence: cargo test --test store (21 passed, incl.
whole_store_file_is_encrypted_at_rest) and cargo test --lib -- store::
(6 passed, incl. the plaintext->SQLCipher upgrade and the wrong-passphrase
no-op).
Card: t_f2fc5190
2026-09-12 16:00:12 -04:00
Chat bodies carry a second, row-bound layer: ChaCha20-Poly1305 (`nonce || ciphertext` in `messages.plaintext` ) with AAD `owmsg1 || friend_id_le64 || dir || 0x00 || row_id_le64` , plus a random 32-byte data key in `store_meta` wrapped with Argon2id from the same passphrase. Whole-file encryption does not stop someone who can write the file from moving one row's ciphertext into another row; the row-bound AAD does, and it stays. Empty-AAD v0.2 blobs are rewrapped once on unlock.
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
At-rest encryption is not a defense against a live compromise: while OnionWire runs, the passphrase, the db key and decrypted rows are in process memory, and SQLCipher's page cache holds decrypted pages. Secret material (Noise/Ed25519/X25519 ephemerals, store key copies, TUI passphrase buffer) is zeroized with the `zeroize` crate when dropped; that shrinks the window, it does not close it. It also does not stop an attacker who has your passphrase. Pending outbox rows live in the same encrypted store as delivered chat — seizure * with * the passphrase can reveal messages that never left the device. `/wipe` deletes chat, payments and outbox history; it is not a forensic erase — SSD wear-levelling can keep copies. Roster and identity stay. `/wipe-all` deletes the data dir (new identity). Ctrl-Q can clear history on the way out (`CLEAR` ) without becoming a new person.
2026-09-10 02:49:42 -04:00
2026-09-10 03:04:56 -04:00
Threat model: [`docs/THREAT_MODEL.md` ](docs/THREAT_MODEL.md ).
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)
Same repository, same protocol, separate product from the Linux TUI. An Android
peer and a Linux peer that exchange invites interoperate — one protocol, not two.
- **SDK** — `onionwire-sdk-<version>.aar` . UniFFI Kotlin bindings over the same
Rust crate the TUI runs on, plus `libonionwire_sdk.so` for `arm64-v8a` .
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
`Wire.send()` returns `SendState.Sent` | `SendState.Queued` ; chat rows carry
`delivery` and `id` ; `Wire.outbox(pubkey)` exposes attempt count and next
attempt time so the UI can render `queued (try n/8, retry 45s)` without
inventing a countdown. Explicit Tor lifecycle bindings stop, flush, and report
observable Tor state. Another Android app depends on the AAR directly. See
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
[`crates/onionwire-sdk/README.md` ](crates/onionwire-sdk/README.md ).
- **APK** — `onionwire-<version>-android-arm64-v8a.apk` . Kotlin + Jetpack
Compose + Material 3 messenger that depends on the SDK and nothing else.
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
Per-row delivery markers and a chat-level outbox footer match the TUI
vocabulary. A foreground keep-alive service (ongoing notification) keeps the
in-process Arti onion published and the outbox retry worker alive through
Doze while the user wants the node reachable. The store passphrase can be
remembered as an AES-256-GCM blob wrapped by the **Android Keystore **
(StrongBox first, TEE/software fallback, labelled honestly).
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-12 09:53:42 -04:00
It is not a WebView, and `src/tui.rs` is untouched. The APK build itself is
amd64-only — the Pi runner is aarch64 Linux and cannot produce an APK.
[`.forgejo/workflows/android-release.yml` ](.forgejo/workflows/android-release.yml )
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
is **dispatch-only ** on this Forgejo (a CI-created tag does not wake it): after
the Linux `release` workflow finishes, dispatch `android-release` with that tag
so the amd64 job builds the APK/AAR and the Pi job attaches them (+ `.sha256` )
to the same Forgejo release. If that tag's release already exists and is missing
the APK, the workflow **joins ** it instead of minting patch+1. Publish does not
run from amd64 dind: `POST /releases` from that egress returns 422 with an empty
body.
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
# one-time: sdkmanager platform 36 / build-tools 36.0.0 / ndk 28.2.13676358,
# rustup target add aarch64-linux-android, cargo install cargo-ndk
scripts/build-android-local.sh # -> dist/, with .sha256 files
2026-09-12 09:53:42 -04:00
PUBLISH_TAG=v0.1.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-12 09:53:42 -04:00
Every asset has a matching `.sha256` so `sha256sum -c` works. CI signs with the
repo-owned release keystore. A local run without those env vars still
debug-signs for sideload, not Play. Full build notes, the `minSdk 26`
rationale, the 16 KB page-size check and the signing story are in
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/README.md` ](android/README.md ).
2026-09-10 03:04:56 -04:00
## Releases (maintainers)
2026-09-12 17:57:15 -04:00
Releases are **manual and batched ** : no merge publishes anything, and neither
does a tag push. Cut one when a batch of work has reached a stopping point —
CI green on `main` , the feature set landed, no half-merged stack. Full policy
2026-09-12 18:55:58 -04:00
and procedure: [`docs/RELEASING.md` ](docs/RELEASING.md ) — it is two dispatches,
`release` (tag + Linux binaries) then `android-release` with that tag (APK +
AAR): on this Forgejo neither a tag push nor `workflow_call` can wake the
Android job.
2026-09-12 17:57:15 -04:00
Actions → release → Run workflow:
| 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` . |
| `version` | explicit `X.Y.Z` (or `vX.Y.Z` ) — overrides `bump` . |
| `tag` | rebuild / re-publish an existing tag instead of minting one. |
Pass `tag` **or ** `version` , not both; an unparseable version is rejected
rather than guessed at. The workflow computes the version, creates the tag over
the API (refusing to move an existing tag), builds aarch64 on the Pi runner and
x86_64 on the amd64 runner, and publishes all four assets (`onionwire-<target>`
2026-09-12 18:55:58 -04:00
+ `.sha256` ) to one release. Then dispatch `android-release` with that tag to
attach the APK + AAR to the same release (it has no automatic trigger on this
Forgejo — see `docs/RELEASING.md` ). If a build or the publish fails, the core
run deletes the tag it created. Do not push tags by hand —
2026-09-12 17:57:15 -04:00
`release.yml` has no tag-push trigger, so a hand-pushed tag would build
nothing.
2026-09-10 03:04:56 -04:00
```bash
2026-09-12 00:52:46 -04:00
# optional: keep Cargo.toml in sync with the tag the workflow will mint
# (the workflow does not edit Cargo.toml)
2026-09-10 13:10:56 -04:00
2026-09-12 00:52:46 -04:00
# offline x86_64 fallback (idempotent — safe to re-run)
2026-09-10 13:10:56 -04:00
FORGEJO_TOKEN=<pat> scripts/build-release-local.sh vX.Y.Z
2026-09-10 03:04:56 -04:00
```
2026-09-12 00:52:46 -04:00
Workflows (Forgejo Actions, `.forgejo/workflows/` ):
2026-09-10 13:10:56 -04:00
2026-09-12 18:16:21 -04:00
- [`.forgejo/workflows/ci.yml` ](.forgejo/workflows/ci.yml ) — two jobs on the Pi runner (`docker` label), serialized by `onionwire-ci-pi` . `test` : `cargo test --locked` + `cargo clippy --all-targets -- -D warnings` at the repo root. `sdk` : the same for `crates/onionwire-sdk` (separate cargo workspace — own `Cargo.lock` , root crate by path, `rustls` instead of `native-tls` — so a root signature change cannot silently break the Android SDK). Both run on `main` and PRs when `src/` , `crates/` , `tests/` , `Cargo.toml` , `Cargo.lock` , or this workflow change (ignored Tor-live tests are not run). `workflow_dispatch` always runs the suite.
2026-09-12 18:55:58 -04:00
- [`.forgejo/workflows/release.yml` ](.forgejo/workflows/release.yml ) — manual, batched release (`workflow_dispatch` only: `dry_run` , `bump` , `version` , `tag` ): next tag, aarch64 (`docker` ) + x86_64 (`docker-amd64` ), one release, fail-closed tag delete on failure. Dispatch [`android-release.yml` ](.forgejo/workflows/android-release.yml ) with that tag to add the APK + AAR (no automatic trigger fires on this Forgejo; it is `workflow_dispatch` only). Concurrency group `onionwire-ci-pi` (same as `ci.yml` , `cancel-in-progress: false` ) so cargo jobs do not overlap on the Pi. Amd64 dind is serialized by runner `capacity=1` .
2026-09-10 13:10:56 -04:00
Scripts:
2026-09-10 03:04:56 -04:00
2026-09-10 13:10:56 -04:00
- [`scripts/publish-release.sh` ](scripts/publish-release.sh ) — create-or-update a release and (re)upload assets via the Forgejo API. Needs `FORGEJO_TOKEN` (repo secret in CI, env locally).
- [`scripts/build-release-local.sh` ](scripts/build-release-local.sh ) — x86_64 build + strip + checksum + publish.
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
- [`scripts/build-android-local.sh` ](scripts/build-android-local.sh ) — Android AAR + APK build, checksums, optional publish (see the Android section above).
2026-09-10 13:10:56 -04:00
- [`scripts/release-body.md` ](scripts/release-body.md ) — release notes template (`@TAG@` is substituted).
2026-09-10 03:04:56 -04:00
2026-09-10 13:10:56 -04:00
Do not run `cargo publish` ; `publish = false` . CI needs the repo secret
`FORGEJO_TOKEN` (an instance user PAT with repo write) to publish releases.
2026-09-10 03:04:56 -04:00
## Troubleshooting
| Symptom | What to do |
|---|---|
| `GLIBC_… not found` | Binary is newer than your libc. Build from source (Option B). |
| `sha256sum: FAILED` | Re-download both the binary and `.sha256` ; run the check in the same directory. |
2026-09-10 16:14:10 -04:00
| Hang on `bootstrapping Arti…` / `hs status: Bootstrapping` | Outbound network required. Combined Arti status can stay Bootstrapping through a 5 min HsDir upload round; OnionWire probes the onion and proceeds once a connect works. Still fail closed after 360s if neither a probe nor `DegradedReachable` /`Running` — no C-tor fallback. |
2026-09-10 03:04:56 -04:00
| `onionwire: unknown argument` | No subcommands. Flags are `--version` / `--help` only, then the TUI. |
| Blank / broken TUI | Run in a real terminal emulator, not `nohup` / systemd without a TTY. |
| Two chats, same laptop | Separate `ONIONWIRE_HOME` per process. |
2026-09-10 16:53:03 -04:00
| Friend cannot find you after F4 | Expected if they were offline. They must F3-paste the new invite. Same `k` updates the row. |
2026-09-10 03:04:56 -04:00
2026-09-10 02:49:42 -04:00
## Not in v1
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
Prosody, XMPP, s2s, MAM, carbons, a **server-side ** outbox / store-and-forward relay, multi-device, DHT / name server, 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
MIT