onionwire/docs/payment-integration-plan.md

262 lines
28 KiB
Markdown
Raw Normal View History

2026-09-13 21:23:27 -04:00
# OnionWire payment integration — next steps
**Status:** largely shipped (child wallet, `/pay` `/tip`, F6 create/import, F9
menu). Still open on desktop: no TUI editor for a stored external RPC URL or a
typed remote daemon host (API exists; error copy still says “F7”). Living docs:
[WALLET.md](WALLET.md), [TUI.md](TUI.md). This file is the plan as written; do
not rewrite the conclusion.
2026-09-13 21:23:27 -04:00
**Audience:** dev profiles (rust-dev for core/SDK/TUI, apk-dev for Android), with CI as a cross-cutting concern.
**Goal:** turn the existing `inv`/`rcp`/`tip` wire frames and the existing `monero-wallet-rpc` HTTP Digest client into a real in-app payment flow on both TUI and Android, with the wallet fully owned by the app (bundled binaries), chain backends opt-in (local pruned node, or remote onion daemon), clearnet refused, Tor for the messenger and for any remote-daemon chain traffic.
This is the plan for the payment half of "comms and payment terminal." Chat, identity, invites, QR, outbox, store encryption, and the Noise transport are pre-existing and in scope only where a payment feature touches them.
---
## 1. What exists today (don't rebuild)
- **Wire frames:** `src/pay.rs` — `Invoice`, `Receipt`, `Tip`, with encode/decode/sign/verify, domain-separated signatures (v2) and legacy v1 accept, `invoice_chat_line` / `receipt_chat_line` / `tip_chat_line` display helpers, `TIP_PREFIX`/`INV_PREFIX`/`RCP_PREFIX` dispatch.
- **Wallet RPC client:** `src/wallet.rs` — `Wallet` struct, HTTP Digest to a `monero-wallet-rpc` on loopback, `get_address` / `create_address` / `get_transfers` / `get_balance` / `transfer`, view-only detection via `query_key spend_key → -29`, open-RPC refusal, loopback-only host check. This is the RPC client we keep; it does not change for the wallet-RPC path.
- **Node wiring:** `src/node.rs` — `pay_invoice` (create subaddress or use profile `xmr_addr`, sign `inv`, send one-shot), `tip` (RPC `transfer`, sign `rcp` + `tip`, send both one-shot), `wallet_receive_address`, `wallet_balance`, `wallet_balance_line`, `wallet_recent_transfers`. These are the shapes to preserve; they already call the right `Wallet` methods and emit the right frames.
- **Receipt verification:** `node.rs::ingest_receipt` — verify sig, insert payment row `verified=0`, then if wallet configured do a conjunctive `get_transfers` match on `(txid, amount, address)` and mark `verified=1` on exact match; RPC down/err → stays unverified. This logic stays; only the wallet backend behind it changes.
- **QR / invite:** `src/qr.rs` — `QrPayload` encode/decode for the messenger invite. The wallet also has a receive address; the app will render that as a QR too (separate from the messenger invite QR). The `monero:` address path in the TUI already exists for the wallet screen — reuse/extend that, don't invent a new address representation.
- **Threat model / wallet docs:** `docs/THREAT_MODEL.md`, `docs/WALLET.md` — read before changing anything wallet-related; the new backends are changes to those claims.
---
## 2. The architecture to build
### 2.1 One wallet surface, three chain backends
The `Wallet` client (loopback HTTP Digest) does not care where the wallet child's daemon lives. What changes is **how the app launches the wallet child and where the wallet child points its `--daemon-address`**. Build one abstraction that owns both binaries and their lifecycle, and exposes the same wallet ops through it.
Backends (opt-in, user chooses; not hidden defaults):
1. **Local pruned node (on-device).** Bundle both `monerod` and `monero-wallet-rpc`. App owns `<datadir>/chain` and `< datadir>/wallet`. Wallet child's `--daemon-address` = `127.0.0.1:<local-daemon-rpc-port>`. Both children are app subprocesses. This is the maximal on-device shape.
2. **Local wallet + remote onion daemon.** Bundle `monero-wallet-rpc` only (or both — see §2.3). Wallet child's `--daemon-address` = `<remote-onion>.onion:18089`, and the wallet child reaches it through a SOCKS5 proxy the app provides on localhost. Chain traffic goes over Tor through that SOCKS hop; the wallet RPC itself stays loopback.
3. **Remote clearnet daemon (explicit opt-in, warned, non-default).** Same as above but daemon address is a clearnet host. Document the trust shift. Do not make this the default or the implied path.
The messenger (Arti onion ↔ onion) is separate from the wallet backend in all three cases. Tor for the messenger is always on; Tor for chain traffic is only for backend 2 (and backend 3 if you allow it, though backend 3 is the one you don't center the design on).
### 2.2 Wrapper model (this is the product shape)
The app is a wrapper around the real binaries, specialized for messenger + payment. The binaries do the real Monero work; the app is the control plane + UI + the messenger on top. This is the xmr-pocket-node pattern: not a wallet rewrite, a managed-node wrapper.
The wrapper owns:
- **Binaries** — bundled per platform/ABI (and/or auto-fetched on first opt-in with verification).
- **Data dirs** — chain dir, wallet file, both in the app's storage. TUI: `$ONIONWIRE_HOME/chain`, `$ONIONWIRE_HOME/wallet`. Android: app-private storage.
- **Lifecycle** — start monerod, wait for ready, start wallet-rpc pointed at the daemon, watch both, restart on resume, stop on shutdown, tolerate kills. Do not assume long-running guarantees on Android.
- **Sync state** — expose daemon sync progress to the UI; don't let the wallet act on a node that isn't ready enough. Don't lie about readiness.
- **Controls** — start/stop daemon, sync-on-Wi-Fi-only, sync-while-charging-only, storage/sync honesty in the UI.
- **RPC wiring** — wallet-rpc loopback with generated creds + random port; its daemon address points at local monerod (backend 1) or at the remote onion through SOCKS (backend 2).
- **Spending opt-in** — wallet create/restore, seed backup + passphrase, spend-capable vs view-only, spend-authority warning.
### 2.3 The SOCKS question is the Android gating item
For backend 2 on Android, the wallet child is a SOCKS5 client that talks to a localhost SOCKS listener the app provides. The wallet child does **not** use Arti's `connect()` — it just speaks SOCKS5 to localhost.
- If the app's in-process Arti (the same one the messenger uses) exposes a usable SOCKS5 listener on localhost, backend 2 on Android is: bundle `monero-wallet-rpc`, configure it with `--proxy 127.0.0.1:<socks-port> --daemon-address <remote-onion>:18089`, wallet child speaks SOCKS5 to Arti's listener, chain traffic goes over Tor. No third binary.
- If Arti 0.46 does **not** expose a usable SOCKS5 listener, backend 2 on Android needs a bundled Tor daemon for the SOCKS listener — a third binary, more APK weight, more lifecycle. At that point backend 2 on Android is "wallet child + bundled Tor + remote onion daemon," and the local-node option (backend 1, monerod on device) may be the cleaner on-device chain story.
**Verify this first, before committing backend 2 on Android.** Whether Arti gives you a SOCKS5 listener the wallet child can use decides a lot of the Android shape. Do not wire the Android remote-daemon path until this is known.
### 2.4 Pruned node — the honest on-device bargain
When the user opts into a local node on device, the realistic target is a pruned node in the ~50-60GB range (mainnet, current prune behavior), not a full archiving node. State this in the UI and gate it with a storage check.
Pruning has a real boundary the app must be honest about:
- Incoming transfers within the prune window: fine, daemon has them.
- Incoming transfers older than the prune depth: the daemon may not be able to serve them from its own chain data. The wallet may still know about them from its own cache, but a daemon rescan of deep history is not available. Receipt verification and old-transfer queries can degrade past the prune window.
- Receiving new funds: fine either way.
- Send: needs current chain state and unspent outputs; a pruned node has those for current outputs.
Don't promise the local pruned node can rescan everything forever. State the prune-window boundary in the wallet UI and in the threat model.
### 2.5 Spend is opt-in, not default
- **View-only by default** — receive address, balance, receipt verification only. No seed, no spend.
- **Spend-capable is an explicit choice** at wallet create/restore (seed-backed wallet). When the user creates a spend-capable wallet, show the spend-authority warning: this wallet file can spend; anyone with its passphrase or the RPC creds can spend; back up the seed; don't leave it on a box/host you don't trust. Make it unavoidable at creation time.
- TUI and Android use the same spend-opt-in concept; the UI differs.
---
## 3. Proof order (do these before scaling)
### P1 — Arti SOCKS feasibility (Android backend 2 gate)
Determine whether the in-process Arti you bundle exposes a SOCKS5 listener the bundled `monero-wallet-rpc` can use as a `--proxy`. This is a read-the-Arti-config-surface / small-experiment task, not a full build. Outcome is a yes/no and, if yes, the exact config + port selection approach; if no, the fallback is "bundle a Tor daemon for SOCKS" or "Android backend 2 is not clean, local node is the on-device chain story."
### P2 — TUI local-node proof (the tractable on-device node proof)
On Linux, spawn a `monerod` child into a test chain dir, get it to start and make real sync progress, spawn a `monero-wallet-rpc` child pointed at that local monerod, and get the existing `Wallet` client to talk to it: `create_address`, `get_balance`, `get_transfers`. No messenger integration yet — just the local-node pipe working on-device on Linux. This proves the wrapper + on-device node shape and surfaces the real storage/sync/runtime behavior before Android carries it.
### P3 — Android wallet-child + remote onion daemon proof (if backend 2 is viable)
Bundle `monero-wallet-rpc` for one Android ABI, get it running on-device talking to a remote onion daemon through the SOCKS path (or through a bundled Tor if Arti SOCKS isn't viable). This is the Android "wallet in the binary, chain over Tor" proof, and it's lighter than bundling a full local node.
### P4 — Android local-node proof (if you want backend 1 on Android)
Bundle `monerod` too for Android, get it starting and syncing at least a little on-device, wallet child pointed at local monerod, same wallet ops through the same surface. This is the heavy proof — storage, sync, lifecycle. Gate it behind the storage check.
---
## 4. Work breakdown by profile
### rust-dev — core + SDK + TUI
**A. Chain + wallet lifecycle abstraction (shared core logic, platform runner differs).**
Build the concepts and the ops the app uses, implemented in core with platform-specific subprocess runners contributed by the platform layer:
- `ChainBackend` — `Local { datadir, binary, args }`, `RemoteOnion { onion, port, transport }`, with clearnet as an explicit opt-in shape if you keep it.
- `WalletBackend` — `datadir, binary, rpc_port, creds, daemon_address`.
- Subprocess manager ops: start node, start wallet, watch both, restart on resume, stop on shutdown, expose sync state.
- Wallet ops through the existing `Wallet` client: `create_address`, `get_address`, `get_balance`, `get_transfers`, `transfer`, view-only detection — same shapes, now backed by whichever backend the app configured.
- Random loopback port selection for wallet-rpc; generated HTTP Digest creds stored in the encrypted store (they're sensitive); wallet file + creds persisted so the app can restart the child without asking the user again. Wallet passphrase is the user's to provide at runtime or store — that choice affects the model and should be a deliberate app decision, not an accidental default.
**B. `wallet.rs` path — minimal change.**
Keep the HTTP Digest client and JSON-RPC parsing. The new bit is the app telling the wallet child where its daemon is:
- Local node: `--daemon-address 127.0.0.1:<local-daemon-rpc-port>` (no SOCKS needed).
- Remote onion daemon: `--proxy 127.0.0.1:<socks-port> --daemon-address <remote-onion>:18089`, wallet child speaks SOCKS5 to the app's SOCKS listener.
Don't change the wallet client's loopback model. Don't make the wallet client speak Tor directly.
**C. TUI wallet + node UI.**
Wiring into the existing command/screen shapes:
- Wallet create/restore screen: seed generation, show seed for backup, passphrase, spend-capable vs view-only selection with the spend-authority warning.
- Node control: start/stop local node, storage check + prune-target honesty, sync state, sync-on-Wi-Fi/charging options, daemon status.
- Chain backend choice: local node vs remote onion daemon vs (explicit opt-in) remote clearnet, with the trust tradeoff stated for remote.
- Balance, receive address + QR, recent transfers, send/tip flow that goes through the wallet child and emits the existing `inv`/`rcp`/`tip` frames.
- Keep the existing messenger invite QR (F2/F3) and add a separate receive-address QR for the wallet screen. Don't conflate the two.
**D. TUI integration points to preserve.**
- `node.rs::pay_invoice`, `node.rs::tip`, `node.rs::ingest_receipt` stay the spines; the lifecycle abstraction feeds them a `Wallet` that points at whichever backend is active.
- The outbox/one-shot frame sending for `rcp`/`tip` stays as-is.
- Receipt verification conjunctive match stays as-is; only the daemon behind `get_transfers` changes.
### apk-dev — Android app + SDK surface
**A. Binary packaging for Android.**
Bundle `monero-wallet-rpc` per ABI now; bundle `monerod` per ABI for the local-node path (either from the start or as the heavier opt-in). This is what "in the binary" means. Include the CI for these binaries (see §5).
**B. Android subprocess lifecycle.**
Start/stop/restart the wallet child (and monerod for backend 1), random RPC port, creds in the encrypted store, wallet file + chain dir in app-private storage, restart on resume, kill on shutdown, tolerate the daemon being down. Don't promise "always running" on Android — it won't be.
**C. Android wallet UI.**
Same options as TUI, Android-shaped: local node or remote onion daemon (and explicit clearnet opt-in if you keep it), create/restore wallet with seed backup + passphrase, spend vs view-only with the warning, balance, receive address + QR, recent transfers, send flow through the on-device wallet child emitting the existing frames, sync/daemon state, daemon control, storage/sync honesty.
**D. Android SOCKS path for backend 2.**
If P1 confirms Arti SOCKS is viable, configure the wallet child with `--proxy` to the Arti listener and `--daemon-address` to the remote onion. If not, wire the bundled-Tor-SOCKS path or treat backend 2 on Android as not clean. Don't ship backend 2 on Android without knowing which SOCKS path you're using.
**E. SDK surface.**
Keep the UniFFI surface honest about wallet state: running/not running, balance, receive address, recent transfers, send outcome. The Android app owns the subprocess lifecycle; the SDK exposes wallet state and ops, not the binaries.
### CI (cross-cutting)
- **Native binary build + bundle pipeline** for `monerod` and `monero-wallet-rpc` for TUI assets and Android ABIs, kept current, with whatever verification you want on the bundle/download path. This is the make-or-break for "the bundle is the product." If the binaries aren't reliably built and shipped/current, the wrapper can't deliver.
- **Verification of bundled binaries** — checksums, provenance, whatever you want to trust. Don't hand-wave "we bundled it" without a verification story.
- **Cross-compilation toolchain** for the Monero binaries on CI (NDK for Android; whatever you use for TUI assets). This is heavier than a Rust-only CI.
---
## 5. Proof criteria (done means these work)
- **Local-node pipe works on TUI:** a spawned `monerod` child reaches a usable sync point; a spawned `monero-wallet-rpc` child pointed at it services `create_address`, `get_balance`, `get_transfers` through the existing `Wallet` client.
- **Receipt verification works end to end on the local path:** an incoming `rcp` frame verifies against the local daemon's `get_transfers` conjunctive match, and the UI reflects verified/unverified correctly.
- **Send/tip works end to end on the local path:** `/tip` (or the UI send path) calls the on-device wallet child's `transfer`, gets a txid, signs and sends `rcp` + `tip` one-shot, and the UI shows the result.
- **Remote-onion-daemon pipe works (where viable):** wallet child reaches a remote onion daemon through the chosen SOCKS path and the same wallet ops work; the app surfaces that the chain backend is remote over Tor.
- **Both backends go through the same wallet surface:** the app switches backend without the wallet ops or the payment frames changing shape.
- **Android lifecycle tolerance:** killing the app/daemon and resuming restarts the children and recovers wallet state from disk; the UI reflects daemon-not-running / not-synced states honestly.
- **Storage gate works on Android:** the local-node option is gated by free space vs the pruned target, with the number visible to the user; on a device that can't hold it, local node is off the table and the user gets remote daemon or receive-only.
- **Spend opt-in is honest:** view-only works out of the box; spend requires an explicit seed-backed wallet creation with the spend-authority warning shown.
---
## 6. Documents that must change with the code
- **`docs/WALLET.md`** — new backends (local pruned node, remote onion daemon), the SOCKS path for remote daemon, the wrapper model, spend opt-in, the prune-window history boundary, clearnet opt-in if kept.
- **`docs/THREAT_MODEL.md`** — local node on device (chain + wallet on device, spend key on device, device trust), remote onion daemon (host trust, Tor hides transport not host, daemon sees addresses), SOCKS path and what backs it, clearnet refusal and any explicit clearnet opt-in, Android lifecycle (process kills, daemon not always running), bundle trust (your binaries doing the work).
- **`docs/PROTOCOL.md`** — only if a payment frame changes. The `inv`/`rcp`/`tip` frames stay; don't touch the protocol doc just because the wallet backend changed.
- **`README.md`** — user-facing summary of the payment options (local node vs remote daemon, spend opt-in, storage/sync honesty) once the shapes are real.
- **Skill `onionwire`** — update if the locks/shape change (e.g. the wallet backend abstraction becomes a hard constraint, or the SOCKS path becomes a lock). Don't over-update; only when the rule actually changes.
---
## 7. Out of scope for this plan (don't let them creep in)
- Rewriting Monero in Rust, or embedding the C++ wallet library in-process unless a maintained Rust binding is clearly production-ready for full tx construction (it isn't, as of this write). The wrapper model is the intended shape.
- A full archiving node on mobile. Pruned is the on-device target; full node is not the mobile story.
- Making the wallet RPC speak clearnet by default. Clearnet daemon is an explicit opt-in if kept, not the design center.
- A server-side wallet or a hosted outbox. Still out of scope; the local outbox stays device-only.
- Changing the messenger's Noise / invite / on onion transport for payment. Payment frames are additive; the transport is unchanged.
---
## 7a. Alternative: in-process Cuprate daemon (rust-dev exploration)
A rust-dev card may explore baking a Monero chain daemon directly into the OnionWire binary via [Cuprate](https://github.com/Cuprate/cuprate)'s internal crates, instead of spawning `monerod` as a subprocess. This is an **exploration**, not a commitment. Key facts that decide whether it's viable:
- **Cuprate crates are not published to crates.io** — every `cuprate-*` crate is a `0.0.0-placeholder` name reservation. Using them requires a git dependency on `https://github.com/Cuprate/cuprate` at a specific commit, pinning a pre-1.0 project. The root `Cargo.toml` declares no versions on workspace members (path deps only).
- **`cuprated`'s `Node::launch(config)` API** (`binaries/cuprated/src/lib.rs`) is the in-process entry point. It takes a `Config`, opens the database (fjall), starts consensus, P2P, RPC servers, and the sync loop. A `Node` handle is returned with `blockchain`, `txpool`, `clearnet`/`tor` network interfaces, and a `task_executor` for shutdown. This is a real embeddable API — not CLI-only.
- **Tor is already integrated** via `arti-client` (0.44), `tor-hsservice`, `tor-rtcompat` — the same crates OnionWire uses. Config has a `[tor]` section with `mode = Auto|Daemon|Arti` and onion service settings. OnionWire already uses `arti-client` 0.46, so a version-resolution conflict is a real risk.
- **Cuprate is pre-production** — the user book says `do NOT use cuprated for any serious purposes`. RPC parity with `monerod` is tracked in [issue #278](https://github.com/Cuprate/cuprate/issues/278) and is not complete.
- **No wallet layer in Cuprate.** Cuprate replaces only the `monerod` daemon (chain + P2P + consensus). `monero-wallet-rpc` is still required for wallet operations (`create_address`, `get_transfers`, `get_balance`, `transfer`). On Android, the wallet-rpc subprocess survives but the chain daemon is in-process — so the binary-spawning problem is **halved, not eliminated**.
- **Dependency bloat.** `cuprated`'s `Cargo.toml` pulls in `axum`, `hyper`, `tower-http`, `rayon`, `fjall`, `clap`, `tokio-socks`, plus RandomX and CryptoNight bindings. The combined dependency tree would significantly increase binary size and build time. `axum`/`hyper` are not currently in OnionWire's graph.
- **Database is fjall** (an embedded key-value store, not LMDB or SQLCipher), which means a separate chain data store alongside OnionWire's SQLCipher store.
**Exploration card (confirmed feasible via cargo check):**
- **`rust-dev`: Spike — embed `cuprated` (git dep) alongside `arti-client` 0.46, verify `Node::launch(Config).await` compiles and the documented usage (`node.blockchain.context().chain_height`) type-checks.** PROOF OF CONCEPT: `cargo check` passed (exit 0) with 575 packages; `arti-client` 0.44 (Cuprate) and 0.46 (OnionWire) coexisted. `cuprated::Node::launch(config: impl Into<Arc<Config>>) -> Result<Node, anyhow::Error>` is accessible. `Node` fields: `blockchain`, `txpool`, `clearnet`, `tor`, `config`, `task_executor`; implements `Drop` → `shutdown()`. Config is at `cuprated::config::Config`. See `references/cuprate-integration.md` for full test log.
- **`rust-dev`: If spike passes, actually launch Node::launch on testnet/fakchain, verify sync starts and monerod-compatible JSON-RPC (get_info, get_height) responds with the chain data OnionWire needs for receipt verification.** PROOF: in-process launch on testnet works — `Node::launch` returns in ~2.8 s cold, the unrestricted RPC on `127.0.0.1:18089` answers `get_info` / `/get_height` / `get_block` (heights 0, 1, 2, 1000 all retrievable) with monerod-shaped payloads, and the node synced 0 → 23,758 testnet blocks in ~120 s over its own clearnet P2P. Four parity gaps are recorded (bare HTTP 500 on out-of-range `get_block`, `get_info` peer counts always 0, restricted `get_info` placeholder `database_size`/`version`, and the `0.1.0-preview` version label) in [docs/cuprate-launch-spike.md](cuprate-launch-spike.md). Verdict: Phased Phase 1 is viable, with those gaps handled before `monero-wallet-rpc` is pointed at it.
- **`rust-dev`: If launch spike passes, assess wallet gap.** Since Cuprate has no wallet layer, determine whether to (a) keep `monero-wallet-rpc` as a subprocess and point it at the in-process Cuprate daemon (halves Android binary spawning), or (b) also adopt `monero-oxide`/`monero-wallet` as an in-process wallet to eliminate all subprocesses.
This card does **not** pre-empt the existing subprocess-based cards in §9 — those remain the default path until Cuprate proves itself in-process.
**Strategic recommendation (hybrid phased approach):**
- **Phase 1:** Use Cuprate in-process for the chain daemon (P2P + consensus + RandomX). Keep `monero-wallet-rpc` as a subprocess pointing at the in-process Cuprate node over localhost RPC. Cuprate's RPC mirrors `monerod`'s, so `monero-wallet-rpc` talks to it using the same JSON-RPC calls. This eliminates the ~52 MB `monerod` binary while preserving all wallet code. Binary overhead: +5.6 MB stripped. Android: bundle only `monero-wallet-rpc` (~4 MB/ABI) instead of both `monerod` (~52 MB) + `monero-wallet-rpc`. The Android cross-compile is **verified**: `cargo check --release --target aarch64-linux-android` exits 0 and the binary links as an Android 26 aarch64 ELF — env recipe and the required C++/builtins link args in [`cuprate-android-spike.md`](cuprate-android-spike.md).
- **Phase 2 (future):** Only after Phase 1 is stable, consider replacing `monero-wallet-rpc` with the [`monero-wallet`](https://crates.io/crates/monero-wallet) crate (from the monero-oxide workspace). This is a transaction construction library, not a full wallet — replacing wallet-rpc requires reimplementing seed/key storage, address derivation, balance tracking, and output selection. Major effort.
---
2026-09-13 21:23:27 -04:00
## 8. Key risks to flag in the card descriptions
- **Arti SOCKS feasibility on Android** — backend 2 on Android depends on it. Verify before committing the Android remote-daemon path.
- **Pruned-node history boundary** — receipt verification and old-transfer queries past the prune window may degrade; state it and test it, don't let users assume infinite local history.
- **First sync as the UX cliff** — on both platforms, opting into a local node is signing up for a sync. On a phone it's a lot. Make it visible and controllable; don't pretend it's instant.
- **Android process kills** — the daemon and wallet child will be killed; design for restart-on-resume and honest "not running / not synced" states.
- **Bundle trust + binary maintenance** — the user runs your bundled binaries; keep the CI and verification story real, and keep the binaries current.
- **Spend-authority warning must be unavoidable at wallet creation** — a spend-capable wallet on device is a local spend authority; the warning isn't a tooltip, it's part of the create/restore flow.
---
## 9. Suggested card titles for the kanban
- `rust-dev`: Chain + wallet lifecycle abstraction (local node, remote onion daemon, clearnet opt-in) with shared wallet ops
- `rust-dev`: TUI wallet + node UI — create/restore, spend opt-in, balance, receive + QR, send/tip, daemon control, storage/sync honesty
- `rust-dev`: Wire local-node pipe on TUI (spawn monerod + wallet-rpc, prove create_address / get_balance / get_transfers through the existing Wallet client)
- `rust-dev`: Wire remote-onion-daemon path through SOCKS (wallet child --proxy + --daemon-address), prove the same wallet ops
- `apk-dev`: Bundle monero-wallet-rpc per Android ABI + subprocess lifecycle + wallet UI (wallet-in-binary, remote daemon via SOCKS)
- `apk-dev`: Bundle monerod per Android ABI + local-node opt-in with storage gate + sync controls (full on-device node)
- `apk-dev`: Android receive-address QR for wallet screen (separate from messenger invite QR)
- `ci`: Native binary build + bundle + verification pipeline for monerod and monero-wallet-rpc (TUI assets + Android ABIs)
- `rust-dev`: Spike — embed `cuprated` (git dep) alongside `arti-client` 0.46, verify `Node::launch(Config).await` compiles and the documented usage (`node.blockchain.context().chain_height`) type-checks** — PoC PASSED
- `rust-dev`: If spike passes, actually launch Node::launch on testnet/fakchain, verify sync starts and monerod-compatible JSON-RPC (get_info, get_height) responds
- `rust-dev`: If launch spike passes, assess wallet gap — keep `monero-wallet-rpc` subprocess (daemon in-process only) or also adopt `monero-oxide`/`monero-wallet`
2026-09-13 21:23:27 -04:00
- `docs`: Update WALLET.md + THREAT_MODEL.md for the new backends, SOCKS path, prune-window boundary, spend opt-in, Android lifecycle
Cut releases manually and batched as the repo policy already requires — don't let a payment feature land push a release. CI for the native binaries is part of the work, not a follow-up.