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
|
|
@ -279,7 +279,15 @@ are displayable on demand".
|
|||
reopens on the next start without asking for it again.
|
||||
|
||||
`/wallet import` (`F6` then `i`) → `restore_deterministic_wallet` from a
|
||||
25-word seed. Do not put the seed on the composer.
|
||||
25-word seed. Do not put the seed on the composer. The import also takes an
|
||||
optional **seed-offset passphrase** — a second spend secret mixed into the words
|
||||
at restore time, not the wallet-file passphrase. It is never sealed, never
|
||||
stored, never logged and never on an argv: blank `Enter` skips it, and a wrong
|
||||
offset is *not* an error — the RPC succeeds and opens a different wallet. After
|
||||
an import that used one, `query_key mnemonic` is the mnemonic of the keys the
|
||||
wallet actually holds (the derived seed), so a later seed backup restores this
|
||||
wallet **without** the offset; the original words plus the offset are the other
|
||||
backup, and the app keeps neither.
|
||||
|
||||
RPC must be started with `--wallet-dir` (not only `--wallet-file`). A created
|
||||
wallet gets its own file name (`onionwire-1`, `onionwire-2`, …): `wallet_filename`
|
||||
|
|
|
|||
Loading…
Reference in a new issue