You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7860bd8
Browse filesBrowse the repository at this point in the historyBrowse files
wallet: Ask for the wallet record before the cards
Restore now takes the master fingerprint from the wallet record before
any card, in the CLI (`ms32 wallet`) and the GUI. While the cards are
entered, a correction whose recovered seed makes that fingerprint
outranks every other candidate and tie-breaker: a wrong seed matches 32
bits only 1 time in 2**32. Shares are judged only by the card that
completes the seed. The operator still compares every suggestion with
the whole card, and the library checks the fingerprint again after
recovery, before any wallet is touched.
"I have no wallet record" still works: it goes to the cards and then to
the same no-record warning as before.
GUI: the record page comes first and can go Back. "Stop" is gone; after
a mismatch, "Start again" appears with advice. Wording follows Ben:
"codex32 checks this before it restores your wallet in Bitcoin Core",
and the library mismatch now says no wallet was created or restored.
Budgets: library 5,025 -> 5,068, GUI 2,063 -> 2,100.
Claude-Session: https://claude.ai/code/session_01N8jLK8HGLaWJq2AJGmxPVe
| Preflight | Before entropy or recovery input, explicit chain arguments probe the five standard local networks for Bitcoin Core 32 or newer. One response is selected automatically; multiple responses require operator selection. |
231
-
| Recovery identity | Restore authenticates a recovered seed before any wallet is listed. Core derives the recovered fingerprint statelessly, and a mismatch raises `FingerprintMismatch` before any wallet RPC. The restore prompt does not show the recovered value, so the operator compares by typing the fingerprint from the wallet record. Without a record, the operator is shown the recovered fingerprint, whether the backup identifier was derived from the seed (the codex32 fingerprint rule, Bails' RIPEMD-160 rule, or its mid-2023 alpha's SHA-256 rule), and a warning, and then chooses. Fresh creation (`ms32 create` or GUI setup) does not authenticate against a pre-existing wallet: it shows the newly created seed's fingerprint and requires the operator to acknowledge recording it. These checks catch mistakes such as wrong or mixed cards; anyone able to replace a threshold of cards could already read them. |
231
+
| Recovery identity | Restore authenticates a recovered seed before any wallet is listed. Core derives the recovered fingerprint statelessly, and a mismatch raises `FingerprintMismatch` before any wallet RPC. The restore prompt does not show the recovered value, so the operator compares by typing the fingerprint from the wallet record. It is typed before the cards, so card correction can prefer a candidate whose recovered seed makes that fingerprint (a wrong seed matches 1 time in 2^32); the operator still compares every suggestion with the whole card, and the identity check runs again after recovery. Without a record, the operator is shown the recovered fingerprint, whether the backup identifier was derived from the seed (the codex32 fingerprint rule, Bails' RIPEMD-160 rule, or its mid-2023 alpha's SHA-256 rule), and a warning, and then chooses. Fresh creation (`ms32 create` or GUI setup) does not authenticate against a pre-existing wallet: it shows the newly created seed's fingerprint and requires the operator to acknowledge recording it. These checks catch mistakes such as wrong or mixed cards; anyone able to replace a threshold of cards could already read them. |
232
232
| Process boundary | codex32 invokes the reviewed `bitcoin-cli` from `PATH` as a child without a shell, direct RPC socket, wallet database, or wallet-creation operation. Every call uses loopback and the selected chain. |
233
233
| Destination | Only an empty descriptor wallet with private keys enabled, no external signer, transactions, descriptors, keypool entries, or active scan is eligible. One eligible wallet is offered directly; multiple wallets are selected by number. New wallets are detected by polling, and rejection returns to every eligible wallet. The escaped name is confirmed exactly. |
234
234
| Seed source | The original ceremony result or validated recovered master seed supplies root-xprv private descriptors for Core's reported chain. After import, Core v32's wallet HD-key RPCs derive the requested BIP44, BIP49, BIP84, and BIP86 account xpubs. |
0 commit comments