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.
This commit is contained in:
parent
598270b519
commit
c090f16dab
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue