wallet: in-app create/import (create takes no key) + opt-in spend policy #66

Merged
sirius merged 1 commit from feat/wallet-create-import into main 2026-09-14 03:31:20 +00:00
Owner

Create generates the wallet on the RPC and shows the seed once for backup; import is the only path that takes a user-supplied seed, collected on a dedicated screen so it never lands in the composer or chat history.

  • wallet.rs: create_wallet (RPC create_wallet then query_key mnemonic), restore_wallet (restore_deterministic_wallet), DEFAULT_WALLET_FILENAME, SPEND_AUTHORITY_WARNING.
  • node.rs: wallet_create / wallet_restore wrappers.
  • tui.rs: /wallet create (type SPEND -> passphrase -> seed shown once -> type SEEN) and /wallet import; F6 wallet screen gains c / i; help overlay and footer updated.
  • docs/THREAT_MODEL.md: payments opt-in, default no spend key, spend is a local authority, chain source is the users choice (spawned local monerod or a supplied daemon address; remote daemons untrusted).
  • docs/WALLET.md, README.md, SDK + Android surface follow the same policy.

RPC must be started with --wallet-dir for create/import.

Tests: canned-RPC create/restore (create sends no seed), slash parse, help overlay; root clippy -D warnings and the SDK suite green.

Create generates the wallet on the RPC and shows the seed once for backup; import is the only path that takes a user-supplied seed, collected on a dedicated screen so it never lands in the composer or chat history. - `wallet.rs`: `create_wallet` (RPC `create_wallet` then `query_key mnemonic`), `restore_wallet` (`restore_deterministic_wallet`), `DEFAULT_WALLET_FILENAME`, `SPEND_AUTHORITY_WARNING`. - `node.rs`: `wallet_create` / `wallet_restore` wrappers. - `tui.rs`: `/wallet create` (type SPEND -> passphrase -> seed shown once -> type SEEN) and `/wallet import`; F6 wallet screen gains `c` / `i`; help overlay and footer updated. - `docs/THREAT_MODEL.md`: payments opt-in, default no spend key, spend is a local authority, chain source is the users choice (spawned local monerod or a supplied daemon address; remote daemons untrusted). - `docs/WALLET.md`, `README.md`, SDK + Android surface follow the same policy. RPC must be started with `--wallet-dir` for create/import. Tests: canned-RPC create/restore (create sends no seed), slash parse, help overlay; root clippy -D warnings and the SDK suite green.
wallet: create/import in-app (no key paste on create) + opt-in spend
All checks were successful
ci / test (pull_request) Successful in 4m15s
ci / sdk (pull_request) Successful in 1m12s
cf0a517cd2
/ 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.
sirius merged commit 87fc3ca1b9 into main 2026-09-14 03:31:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!66
No description provided.