From c090f16dabcab256041f836d3427b6114565dd19 Mon Sep 17 00:00:00 2001 From: agent Date: Wed, 16 Sep 2026 23:15:43 -0400 Subject: [PATCH] docs: add Cuprate phased integration strategy to payment plan Adds strategic recommendation: Phase 1 (Cuprate in-process for chain + monero-wallet-rpc subprocess pointing at it) and Phase 2 (monero-wallet crate for full in-process wallet). Includes RPC compatibility note, binary size comparison (+5.6 MB vs ~52 MB monerod), and version conflict resolution confirmation. See references/cuprate-integration.md and Obsidian notes for full details. --- docs/payment-integration-plan.md | 6 ++++++ 1 file changed, 6 insertions(+) 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