onionwire/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
agent ed29131a67
All checks were successful
ci / test (pull_request) Successful in 6m14s
ci / sdk (pull_request) Successful in 1m44s
android-ci / android (pull_request) Successful in 12m56s
ci / fuzz (pull_request) Successful in 5m1s
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
..
app_sig.rs fix(protocol): domain-separate loc/prf/inv/rcp signatures 2026-09-11 23:42:41 -04:00
backup.rs feat(core): zeroize in-memory secret material (Noise/Ed25519/X25519/store key) 2026-09-12 13:55:07 -04:00
dispatch.rs chat: send and receive as ratchet frames through the outbox payload 2026-09-16 19:02:52 -04:00
file.rs Merge branch 'main' into wt/t_fc02d8b6 2026-09-12 04:11:00 +00:00
hs.rs feat(core,sdk): explicit Tor lifecycle — stop, flush, observable state 2026-09-12 15:10:29 -04:00
outbox.rs chat: send and receive as ratchet frames through the outbox payload 2026-09-16 19:02:52 -04:00
pay.rs wallet: create/import in-app (no key paste on create) + opt-in spend 2026-09-13 23:25:25 -04:00
profile.rs fix(pay): checksum Monero addresses (base58 + keccak) 2026-09-10 20:01:45 -04:00
protocol.rs Add Noise IK encrypted stream over Arti. 2026-09-10 02:07:40 -04:00
qr.rs [verified] fix(qr): bind invite sig fields; cap decode 2026-09-10 19:52:44 -04:00
ratchet.rs Merge branch 'main' into wt/t_0ffa68d2 2026-09-18 00:50:24 +00:00
ratchet_adversarial.rs ratchet: end-to-end and adversarial tests on the wired send/receive path 2026-09-16 19:30:39 -04:00
ratchet_e2e.rs ratchet: end-to-end and adversarial tests on the wired send/receive path 2026-09-16 19:30:39 -04:00
ratchet_wire.rs chat: send and receive as ratchet frames through the outbox payload 2026-09-16 19:02:52 -04:00
ratelimit.rs feat: incoming rate limit, identity backup, v0.2.0 2026-09-10 14:50:01 -04:00
rotate.rs tui: F8 rotate prekey + Node::rotate_prekey (hard cut, drops ratchet state) 2026-09-17 20:48:10 -04:00
rotate_hs.rs feat(store): encrypt chat bodies at rest; Ctrl-Q CLEAR/QUIT 2026-09-10 17:19:50 -04:00
sanitize.rs [verified] sanitize peer chat/control/bidi before store and TUI render 2026-09-11 23:42:48 -04:00
send.rs fix(tui): do not freeze the UI on chat send 2026-09-11 22:33:55 -04:00
store.rs wallet: actually open the wallet file, and remember its passphrase 2026-09-22 12:52:08 -04:00
tls_backend.rs tls: default to Arti's rustls backend (drop OpenSSL from TLS) 2026-09-17 20:48:05 -04:00
tor_hs.rs [verified] fix(hs): redact onion in publish logs; cache 0700 2026-09-10 20:30:18 -04:00
tor_lifecycle.rs fix(store): checkpoint the WAL on the store's own keyed connection 2026-09-12 15:56:33 -04:00
tui_chrome.rs fix(tui): invite payload gets a chrome-free region so mouse-copy is exact 2026-09-18 23:54:07 -04:00
tui_frames.rs tui: clean-look chrome redesign (one accent, honest tor phase, real frames) 2026-09-18 23:18:24 -04:00
tui_payments.rs tui: F9 works on the peer-payments screen, and frames dump the real footer 2026-09-19 00:31:42 -04:00
tui_select.rs tui: wallet selection screen (F6 -> w) with create as the last row 2026-09-21 10:41:53 -04:00
tui_spec.rs tui: settings-menu frame dumps use the footer the app renders 2026-09-19 01:18:47 -04:00
two_node.rs feat(store): encrypt chat bodies at rest; Ctrl-Q CLEAR/QUIT 2026-09-10 17:19:50 -04:00
wallet.rs wallet: actually open the wallet file, and remember its passphrase 2026-09-22 12:52:08 -04:00
wipe.rs fix(store): drop payments on /wipe; document non-forensic 2026-09-10 20:22:31 -04:00
zeroize.rs feat(core): zeroize the profile/loc signing copy and the TUI passphrase buffer 2026-09-12 15:41:54 -04:00