onionwire/docs
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rust-dev d7e91f850a
All checks were successful
ci / test (pull_request) Successful in 4m22s
ci / sdk (pull_request) Successful in 1m15s
wallet: stored config (F7), WalletStatus snapshot, pay/tip readiness guard
The only input path for the wallet was env. Add the same three remote-mode
fields as stored config so the F7 screen can set them and headless runs read
one source of truth:

- `wallet_config` table in the encrypted store (one row; the login is sealed
  with the store data key under `onionwire/wallet-config/v1`, on top of
  SQLCipher). Empty URL clears it. `Store::load_wallet_config` /
  `save_wallet_config`.
- `WalletConfig { rpc_url, rpc_login: Zeroizing<String>, no_spend }` with a
  redacting `Debug`; `Wallet::from_config`, and `Wallet::for_boot` which
  prefers stored config, falls back to env, and refuses to dial a bad stored
  endpoint. Node::start* now reads the store before constructing the wallet.
- `WalletStatus { configured, connected, last_error, balance_line,
  receive_address }`: `connected` only ever comes from a probe
  (`Wallet::status`, get_address + get_balance); config alone leaves it false.
  `Node::wallet_status` is the cheap draw-path read, `wallet_refresh` the
  probe that folds into it.
- One-shot `Wallet::ping(rpc_url, rpc_login) -> PingResult { ok, status,
  error }` for the Test-connection button: same loopback/digest rules, errors
  redacted and capped.
- `readiness(configured, connected, no_spend, is_tip) -> Readiness` plus
  `Node::wallet_readiness` (async, block_on-friendly): not configured →
  NOT_CONFIGURED_MSG; /tip on a no-spend wallet → VIEW_ONLY_MSG before any
  dial; configured but not connected → NOT_CONNECTED_MSG; else ready.
- `Node::wallet_save_config` persists, validates first, then re-reads so the
  live wallet and snapshot follow a Save without a restart.
- `Node::wallet` is now a Mutex<Wallet> (cloned out before each await) so the
  wallet can be re-pointed mid-session.

Local-mode fields stay reserved: the child lifecycle is t_69ce8e46 and is not
wired here. docs/WALLET.md documents the stored config, boot precedence and
the exact guard copy.

Tests: 38 in tests/wallet.rs including exact-refusal-copy, boot precedence,
sealed-on-disk login, ping sanitization and connected-only-after-probe.
2026-09-14 23:39:57 -04:00
..
arti-socks-feasibility.md change app icon 2026-09-13 21:23:27 -04:00
ARTI_UPGRADE.md ci: watch upstream Arti/tor-* releases daily and file an upgrade issue 2026-09-12 13:55:07 -04:00
option-a-recommendation.md change app icon 2026-09-13 21:23:27 -04:00
payment-integration-plan.md change app icon 2026-09-13 21:23:27 -04:00
PROTOCOL.md feat(outbox): local retry queue for chat sends 2026-09-12 14:39:14 -04:00
README.md ci(release): manual, batched releases — no release on merge 2026-09-12 17:57:15 -04:00
RELEASING.md ci(release): android-release is dispatch-only; a CI-created tag cannot wake it 2026-09-12 18:55:58 -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: create/import in-app (no key paste on create) + opt-in spend 2026-09-13 23:25:25 -04:00
TUI.md feat(tui): join outbox rows to chat rows by message id 2026-09-12 17:12:30 -04:00
WALLET.md wallet: stored config (F7), WalletStatus snapshot, pay/tip readiness guard 2026-09-14 23:39:57 -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.