onionwire/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Lance Walters 2fa3466019
All checks were successful
ci / test (pull_request) Successful in 5m47s
ci / sdk (pull_request) Successful in 1m28s
ci / fuzz (pull_request) Successful in 4m51s
android-ci / android (pull_request) Successful in 10m36s
tui: peer payment history behind the F9 payments row (key p)
The F9 / `/settings` menu's only payment row showed the wallet's own transfer
list (`Node::wallet_recent_transfers`, F6). The signed `/pay` invoices and
`/tip` receipts a peer sent live in the `payments` table and had no path from
the TUI, so they were invisible. `Node::list_payments` (PR #119) closes that
gap; this wires it into a screen.

- `Screen::PeerPayments { state }` + `PeerPaymentsState` /
  `PeerPaymentRow`, built by `PeerPaymentsState::from_payments` from
  `Node::list_payments`' rows (newest first: the store returns `payments.id`
  ascending, the screen windows the vector).
- Key handler: `p` on the F9 screen opens it (`open_peer_payments`); `up`/`down`
  (or `k`/`j`) move the selection, `Esc` goes back, `F9` reopens the menu.
- Rows carry direction, kind, amount (`pay::atomic_to_xmr_str`, the same
  piconero formatter the chat lines use), memo (sanitized at draw time) and the
  receipt's `verified` / `unverified` word; the focused row is marked with `>`
  and bold. The selected row's txid and address sit under the rows — the
  address wrapped over two lines rather than clipped.
- States: populated, `no payments with {peer}`, `could not read payments`, and
  a menu row that refuses when no friend is selected. An empty history is a
  state, never an error.
- Menu: the wallet's own list is retitled `transfers` (F6, unchanged), and the
  new `payments` row (key `p`) names the peer and the count. Two histories, two
  rows, no ambiguity.
- Widths are measured in cells (`Span::width`); trailing columns are dropped
  before they can wrap, so the body fits 80x24 (20 inner rows of 21) as well as
  120x40 and 200x60.

Tests: new `tests/tui_payments.rs` (11 tests) dumps and asserts the screen at
80x24, 120x40 and 200x60 including the empty history, asserts a memo carrying
ESC/BEL/C1/bidi/newline bytes never reaches the frame buffer, and asserts the
window/column invariants for every width from 20 to 200.

Also relaxes one width assertion in `tests/tui_spec.rs`: `fit_cells` was
asserted to start with `"abcdef"`, which only holds when another test's
in-flight `ONIONWIRE_ASCII` mutation is not visible — the suite mutates env vars
without a global lock, so that test flaked (it also fails on an unmodified tree,
1 run in 2). It now accepts either chrome's cut point, which is what the comment
already claimed.

Docs: `docs/TUI.md` gains the screen's section, the retitled/replaced rows and
the updated row count; the "peer payment history" gap entry is closed.
2026-09-18 23:53:10 -04:00
..
arti-socks-feasibility.md change app icon 2026-09-13 21:23:27 -04:00
ARTI_UPGRADE.md tls: default to Arti's rustls backend (drop OpenSSL from TLS) 2026-09-17 20:48:05 -04:00
cuprate-android-spike.md wallet: land the in-process Cuprate chain source on main 2026-09-18 13:45:59 -04:00
cuprate-launch-spike.md docs: Cuprate in-process launch spike A — testnet launch, RPC and sync evidence 2026-09-16 23:39:12 -04:00
option-a-recommendation.md change app icon 2026-09-13 21:23:27 -04:00
payment-integration-plan.md docs: Cuprate cross-compiles for Android aarch64 (NDK r28c, minSdk 26) 2026-09-16 23:58:25 -04:00
PROTOCOL.md tui: F8 rotate prekey + Node::rotate_prekey (hard cut, drops ratchet state) 2026-09-17 20:48:10 -04:00
README.md ci(release): manual, batched releases — no release on merge 2026-09-12 17:57:15 -04:00
RELEASING.md ci(android): build the APK+AAR on android/, src/ and crates/ changes 2026-09-14 12:16:40 -04:00
SECURITY_AUDIT.md docs: describe the SQLCipher store, not the pre-#43 design 2026-09-12 17:20:56 -04:00
THREAT_MODEL.md wallet: land the in-process Cuprate chain source on main 2026-09-18 13:45:59 -04:00
TUI.md tui: peer payment history behind the F9 payments row (key p) 2026-09-18 23:53:10 -04:00
WALLET.md sdk: expose the on-device Cuprate chain source (choice, lifecycle, node status) 2026-09-18 15:29:55 -04:00

OnionWire docs

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

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

Operator / product docs stay in the root README. Android build notes: android/README.md. SDK: crates/onionwire-sdk/README.md. Maintainers cutting a release: RELEASING.md — manual, batched releases, not one per merge.