onionwire/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
rust-dev 159ac57da9
wallet: in-process Cuprate chain daemon behind the cuprate-daemon feature
Phase 1 of the Cuprate integration strategy: the chain daemon can run inside
the OnionWire process instead of a spawned `monerod`. `monero-wallet-rpc` is
unchanged — it still dials the unrestricted loopback RPC on 127.0.0.1:18081,
which is the address `WalletChild::daemon_address` already returned — so no
wallet-layer code moves.

- Cargo.toml: `cuprated` (git, rev 4f8fcd1b) + `toml`, both optional, behind a
  `cuprate-daemon` feature that is OFF by default. Cuprate's own `arti` feature
  stays off: its arti-client 0.44 cannot unify with this crate's 0.46, and the
  in-process daemon is clearnet-only, so this keeps one Tor stack in the
  process. `Cargo.lock` gains the graph; no arti 0.44 appears in it.
- src/cuprate.rs (new): `CuprateNode` builds the cuprated config as TOML
  (testnet, unrestricted RPC on loopback, restricted RPC disabled, inbound P2P
  off), launches it, and owns it. Dropping the value is the teardown;
  `shutdown()` is called before the drop so the services can drain. The type
  exists in every build: without the feature `launch` fails with the feature
  name instead of silently doing nothing, so the chain-source type, its stored
  record and the picker do not fork on a cargo feature.
- src/wallet.rs: `ChainSource::InProcessCuprate { datadir }`.
- src/wallet_child.rs: starts/holds/stops the node, serializes the choice as
  `kind = "cuprate"`, and adds `chain_datadir` so the storage gate covers both
  local sources. It takes the app's Tokio handle (`with_runtime`): the launch is
  async and `start()` runs on the TUI's blocking thread.
- src/node.rs: `wallet_child_start(runtime)`, `default_in_process_chain_source`.
- src/tui.rs: a fourth picker row, its testnet caveat, the chain block copy, and
  a stop of the app-owned children on the quit path so they are not orphaned.
- tests/wallet.rs: a `cuprate-daemon`-gated end-to-end test that launches the
  node and drives get_info / get_height / get_block through the typed daemon
  client, including the above-the-tip 500 and the listener closing on drop.
- docs/WALLET.md: the fourth chain source, the feature flag, the +5.6 MB
  stripped overhead, and the two limits (testnet only, no Tor in the chain
  path).

Also repaired tests/tui_spec.rs, which the parent commit left un-compilable
(the Phase 2a commit had dropped all but the new imports and four new tests,
1221 lines of body); it is restored from the pre-breakage version, with the
Phase 2a imports and tests re-applied.
2026-09-17 13:17:32 -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 feat: tip frame (sign/verify/encode/decode), wallet balance + receive address, F6 wallet screen with QR, dispatch Kind::Tip 2026-09-12 23:13:22 -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 feat(outbox): local retry queue for chat sends 2026-09-12 14:39:14 -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
ratelimit.rs feat: incoming rate limit, identity backup, v0.2.0 2026-09-10 14:50:01 -04:00
rotate.rs feat(store): encrypt chat bodies at rest; Ctrl-Q CLEAR/QUIT 2026-09-10 17:19:50 -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 feat(core): zeroize in-memory secret material (Noise/Ed25519/X25519/store key) 2026-09-12 13:55:07 -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 tui: F7 wallet config screen + wallet/chain setup redesign + doc sync 2026-09-16 00:29:54 -04:00
tui_frames.rs wallet: in-process Cuprate chain daemon behind the cuprate-daemon feature 2026-09-17 13:17:32 -04:00
tui_spec.rs wallet: in-process Cuprate chain daemon behind the cuprate-daemon feature 2026-09-17 13:17:32 -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: in-process Cuprate chain daemon behind the cuprate-daemon feature 2026-09-17 13:17:32 -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