wallet: create/import in-app (no key paste on create) + opt-in spend
/ wallet create generates a wallet on the RPC and shows the 25-word seed once for backup; /wallet import is the only path that takes an existing seed, and it is collected on a dedicated screen so it never reaches the composer line or chat history. Threat model now states the real policy: payments are opt-in, default is no spend key, spend is a local authority at create/restore, and the chain source is the user's choice (spawned local monerod or a daemon address they supply). WALLET.md and README follow. Tests: canned-RPC create/restore, slash parse, help overlay.
This commit is contained in:
parent
7ad3679b51
commit
cf0a517cd2
12 changed files with 758 additions and 48 deletions
11
README.md
11
README.md
|
|
@ -185,9 +185,14 @@ resume, no images in the TUI.
|
|||
|
||||
`/profile` edits your friend-visible display name, bio, and optional Monero address (64 / 512 byte limits, no images). Enter saves and one-shot sends a signed `prf` frame to the selected friend. `F5` or `/who` shows their last signed profile. There is no directory: unknown pubkeys are ignored.
|
||||
|
||||
## Monero sidecar
|
||||
## Monero (opt-in)
|
||||
|
||||
OnionWire is not a wallet. Optional JSON-RPC to a user-hosted `monero-wallet-rpc`. The wallet **must** use `--rpc-login`; OnionWire refuses an open RPC (HTTP 200 without a Digest challenge) and refuses URLs with no credentials.
|
||||
Chat does not need a wallet. Spend is opt-in at wallet create/restore; default
|
||||
is no spend key on the device. Optional JSON-RPC to `monero-wallet-rpc` on
|
||||
loopback (you run it, or the app spawns it). Chain source is your choice: a
|
||||
spawned local `monerod`, or a daemon address you supply. The wallet **must**
|
||||
use `--rpc-login`; OnionWire refuses an open RPC (HTTP 200 without a Digest
|
||||
challenge) and refuses URLs with no credentials.
|
||||
|
||||
```bash
|
||||
# monero-wallet-rpc --rpc-bind-ip 127.0.0.1 --rpc-bind-port 18083 --rpc-login onionwire:secret
|
||||
|
|
@ -206,6 +211,8 @@ locally before any RPC dial — `/pay` and receipt verification keep working.
|
|||
Details: [docs/WALLET.md](docs/WALLET.md).
|
||||
|
||||
- `/pay <xmr> [memo]` — invoice (we want to receive). Uses a wallet subaddress if RPC is up, else the profile `xmr_addr`.
|
||||
- `/wallet create` — generate a new spend-capable wallet (no key paste; seed shown once). Needs `--wallet-dir` on the RPC.
|
||||
- `/wallet import` — restore from an existing 25-word seed (the only path that takes a secret).
|
||||
- `/tip <xmr> [memo]` — pay the selected friend’s profile address, then send a signed `rcp` (disabled under `ONIONWIRE_WALLET_NO_SPEND`). Incoming receipts stay unverified until RPC `get_transfers` matches.
|
||||
|
||||
## Backup / restore
|
||||
|
|
|
|||
Loading…
Reference in a new issue