wallet: optional seed-offset passphrase on import
Monero's `restore_deterministic_wallet` takes a `seed_offset`: a second spend secret mixed into the 25 words at restore time, so the same words with a different offset open a different wallet. It is not the wallet-file passphrase and must never be sealed, stored, logged or put on an argv. - `Wallet::restore_wallet` gains `seed_offset: Option<&str>`: None, empty or whitespace-only leaves the field out of the JSON entirely; otherwise the ends are trimmed and it is sent beside the seed. - `Node::wallet_restore` passes it through and still seals only the file passphrase. - SDK: `import_wallet` keeps its signature (None) and `import_wallet_with_offset` is added (Kotlin `importWalletWithOffset`). - TUI: a new `ImportOffset` step between the seed and the file passphrase (blank Enter skips, a real one is confirmed, a mismatch never dials), and `ImportOffsetSeen` after a successful import that used one -- Esc cannot leave it, only SEEN, and the offset is not drawn anywhere. - Docs: WALLET.md, THREAT_MODEL.md, TUI.md, one README sentence.
This commit is contained in:
parent
6d815b0fe8
commit
f6a7daf892
9 changed files with 623 additions and 34 deletions
|
|
@ -193,6 +193,19 @@ already runs, or one the app spawns. Wallet RPC is never dialed over clearnet or
|
|||
over `.onion` — a remote wallet RPC would move spend authority off the box
|
||||
through a channel the messenger’s `--password` gate does not cover.
|
||||
|
||||
**The seed-offset passphrase is a second spend secret, and it is not stored.**
|
||||
An import may be given Monero's optional `seed_offset`: a phrase mixed into the
|
||||
25 words at restore time, so the same words with a different offset open a
|
||||
different wallet (plausible deniability). It is typed once, travels only in the
|
||||
JSON-RPC body (never argv, never logged, never an error string), is never sealed
|
||||
and never persisted — storing it would defeat the point. It is also not a second
|
||||
gate on an already-imported wallet: whoever can unlock the store can still spend
|
||||
the opened file, because the wallet file's own passphrase *is* sealed (previous
|
||||
paragraph). A wrong offset is silent — the RPC succeeds and the wallet is
|
||||
simply a different one — so the app cannot warn about it, and after such an
|
||||
import a later seed backup is the *derived* mnemonic, which opens the wallet
|
||||
without the offset.
|
||||
|
||||
### Chain source is the user’s choice
|
||||
|
||||
Scan, receipt verification, and spend need a Monero daemon. The user picks one;
|
||||
|
|
|
|||
Loading…
Reference in a new issue