diff --git a/docs/payment-integration-plan.md b/docs/payment-integration-plan.md index a1d026d..e64ceca 100644 --- a/docs/payment-integration-plan.md +++ b/docs/payment-integration-plan.md @@ -219,6 +219,12 @@ A rust-dev card may explore baking a Monero chain daemon directly into the Onion 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`. + +- **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. + --- ## 8. Key risks to flag in the card descriptions