Merge pull request 'docs: README/TUI describe the local outbox instead of denying it' (#53) from wt/t_1e1dff0f into wt/t_f2fc5190
Reviewed-on: #53
This commit is contained in:
commit
1609c82368
3 changed files with 15 additions and 12 deletions
16
README.md
16
README.md
|
|
@ -3,8 +3,7 @@
|
||||||
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
|
Lean Tor messenger: one Rust process (ratatui + Noise IK + sqlite + in-process Arti).
|
||||||
No hosted server. Identity is a public key; the onion is only a locator.
|
No hosted server. Identity is a public key; the onion is only a locator.
|
||||||
|
|
||||||
**v0.2** — Linux TUI. 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. Optional Monero invoices if you point at a local `monero-wallet-rpc`. Fail closed: peer down → send fails. 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.
|
**v0.2** — Linux TUI. 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. Optional Monero invoices if you point at a local `monero-wallet-rpc`. A chat to an unreachable peer is queued in the local outbox and retried with backoff (30s doubling, capped at 30 min, 8 attempts) — it never leaves your machine. Transfers and payments stay fail closed. 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.
|
||||||
|
|
||||||
You do **not** install a `tor` daemon, `torrc`, Prosody, or XMPP. OnionWire embeds Arti and publishes its own v3 onion.
|
You do **not** install a `tor` daemon, `torrc`, Prosody, or XMPP. OnionWire embeds Arti and publishes its own v3 onion.
|
||||||
|
|
||||||
**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).
|
**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).
|
||||||
|
|
@ -112,7 +111,7 @@ or `cargo run --release`.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
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. Footer shows `sending`, then `sent` or `send failed` — the TUI stays usable while Tor retries (up to 180s). Fail closed: if their onion is down, send fails — no outbox.
|
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. Footer shows `sending`, then `sent` or `send failed: <reason>`, and the TUI stays usable while a send runs. A chat that cannot reach the peer is not lost: it goes into the local outbox and is retried in the background with backoff (30s doubling, capped at 30 min, 8 attempts, then terminally `failed`). It is local-only until a circuit takes it — no server holds it.
|
||||||
|
|
||||||
## Friends are keys
|
## Friends are keys
|
||||||
|
|
||||||
|
|
@ -154,9 +153,11 @@ Give that string to a friend. They `F3` paste it (`(o) paste invite`). Unknown `
|
||||||
- Online friends get a signed `loc` frame.
|
- Online friends get a signed `loc` frame.
|
||||||
- Offline friends cannot find you until they F3-paste the new invite. There is no directory.
|
- Offline friends cannot find you until they F3-paste the new invite. There is no directory.
|
||||||
|
|
||||||
## Fail closed
|
## Delivery: local outbox
|
||||||
|
|
||||||
If a peer’s onion is down, send fails. v1 has no outbox, no retry queue, no DHT, no name server. There is still no hosted chat server.
|
If a peer’s onion is down, a **chat** send is not lost: it goes into the local outbox and is retried with exponential backoff — 30s, doubling, capped at 30 min, 8 attempts, then terminally `failed`. Retries fire on a timer, on unlock, and as soon as that peer is heard from. Nothing is handed to a third party: there is no server and no store-and-forward relay, so every attempt is a fresh Noise IK handshake straight to the friend’s onion, and the message stays on your machine until it lands. A protocol failure (bad signature, unknown frame, oversize) is not a transport failure and is never queued.
|
||||||
|
|
||||||
|
Only chat is queued. File transfer and payments (invoices, tips) stay fail closed — an unreachable peer makes them fail. v1 still has no server-side outbox (store-and-forward spool), no multi-device sync, no DHT, no name server, and no hosted chat server.
|
||||||
|
|
||||||
## File transfer
|
## File transfer
|
||||||
|
|
||||||
|
|
@ -164,7 +165,8 @@ If a peer’s onion is down, send fails. v1 has no outbox, no retry queue, no DH
|
||||||
Cap 1 MiB on send and receive. Fail closed: a bad chunk or hash mismatch
|
Cap 1 MiB on send and receive. Fail closed: a bad chunk or hash mismatch
|
||||||
deletes the partial (never overwrite). Files land in
|
deletes the partial (never overwrite). Files land in
|
||||||
`$ONIONWIRE_HOME/inbox/<fingerprint>/`. Chat shows `[file] name (N bytes)`,
|
`$ONIONWIRE_HOME/inbox/<fingerprint>/`. Chat shows `[file] name (N bytes)`,
|
||||||
never raw frames. No outbox, no resume, no images in the TUI.
|
never raw frames. File transfer is not queued (chat is) and does not resume; no
|
||||||
|
images in the TUI.
|
||||||
|
|
||||||
## Profile
|
## Profile
|
||||||
|
|
||||||
|
|
@ -313,7 +315,7 @@ Do not run `cargo publish`; `publish = false`. CI needs the repo secret
|
||||||
|
|
||||||
## Not in v1
|
## Not in v1
|
||||||
|
|
||||||
Prosody, XMPP, s2s, MAM, carbons, outbox, multi-device, DHT / name server, QR codes, A/V. Protocol lock: [docs/PROTOCOL.md](docs/PROTOCOL.md).
|
Prosody, XMPP, s2s, MAM, carbons, a **server-side** outbox / store-and-forward relay, multi-device sync, DHT / name server, QR codes, A/V. Protocol lock: [docs/PROTOCOL.md](docs/PROTOCOL.md). The local outbox of the previous section is not an outbox in the XMPP sense: it never leaves the device.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -116,8 +116,9 @@ issue the watcher files.
|
||||||
descriptor upload, not a hang), probe-connect against a live HS, a byte pipe
|
descriptor upload, not a hang), probe-connect against a live HS, a byte pipe
|
||||||
in both directions, restart, and the dormant/offline path.
|
in both directions, restart, and the dormant/offline path.
|
||||||
7. Confirm the fail-closed path by hand if the publish wait changed at all:
|
7. Confirm the fail-closed path by hand if the publish wait changed at all:
|
||||||
with the write timeout still 360s, a peer whose onion is down must fail the
|
with the write timeout still 360s, a peer whose onion is down must fail a
|
||||||
send. There is no outbox in v1 — the message must not be silently queued.
|
`/file` or `/pay` send. Chat is the exception — it is queued in the local
|
||||||
|
outbox and retried — so use a transfer or a payment for this check.
|
||||||
8. Rebuild the Android target — Arti's TLS backends are non-additive, and this
|
8. Rebuild the Android target — Arti's TLS backends are non-additive, and this
|
||||||
is the build that exercises the `rustls` feature:
|
is the build that exercises the `rustls` feature:
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -396,7 +396,8 @@ Build left-to-right, **never drop** a non-empty `status_note`:
|
||||||
`tests/tui_chrome.rs` stays green.
|
`tests/tui_chrome.rs` stays green.
|
||||||
|
|
||||||
Fail-closed copy is `send failed: {e}` or `fingerprint mismatch`. Prefix `! `
|
Fail-closed copy is `send failed: {e}` or `fingerprint mismatch`. Prefix `! `
|
||||||
when color is off.
|
when color is off. Chat to an unreachable peer is not a fail-closed state: it
|
||||||
|
is queued in the local outbox and retried.
|
||||||
|
|
||||||
### Copy — non-happy states
|
### Copy — non-happy states
|
||||||
|
|
||||||
|
|
@ -413,8 +414,7 @@ Do not soften fail-closed into a loader.
|
||||||
| peer down / send err | `send failed: {e}` (visible) |
|
| peer down / send err | `send failed: {e}` (visible) |
|
||||||
| queued (outbox) | `{n} queued` — replaces the flat `sent`/`send failed` while rows are outstanding |
|
| queued (outbox) | `{n} queued` — replaces the flat `sent`/`send failed` while rows are outstanding |
|
||||||
| queued + terminal failure | `{n} queued, send failed: {short}` |
|
| queued + terminal failure | `{n} queued, send failed: {short}` |
|
||||||
| terminal failure | `send failed: {short}` (`{f} failed` when more than one) |
|
| terminal failure | `send failed: {short}` (`{f} failed` when more than one) || already sending | `already sending` (keep) |
|
||||||
| already sending | `already sending` (keep) |
|
|
||||||
| stale friend | `stale` suffix (keep) |
|
| stale friend | `stale` suffix (keep) |
|
||||||
| empty composer | `message` as dim placeholder (not the slash list). Slash list stays in `?` |
|
| empty composer | `message` as dim placeholder (not the slash list). Slash list stays in `?` |
|
||||||
| paste error | `{err}` then `Enter resubmits Esc back` |
|
| paste error | `{err}` then `Enter resubmits Esc back` |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue