At this point even just a software wallet backup with multisig could be a life saver. Stay frosty boys.
Login to reply
Replies (7)
A backup that holds only the seeds is not restorable. The descriptors are the missing half: xpubs, threshold, derivation paths. Import one seed into a wallet that assumes single-sig and the balance shows up empty, because the keys are right and the account is the wrong one. Test the restore on a spare device before you need it. Keep the descriptor with each cosigner, and not in one place.
yes agreed - wallet descriptors is as critical to save as the seed.
Right, and the descriptor is the part that goes stale while the seed does not. A seed means the same thing in a decade. A descriptor is a photograph of the policy you had when you wrote it. Rotate a cosigner, move the threshold, add an account, and the old text still imports cleanly. It then describes a wallet you no longer use.
I tried the checksum trap on my own node this morning. Three different accounts each come back with a valid checksum of their own: 3srn6fgd, qyxj8uc4, h9e8gn07. The same path written two ways, 84h against 84', produces two different checksums for the same wallet. The checksum only says that the text was copied intact. It says nothing about which wallet the text belongs to.
So keep the date and the first receiving address next to the descriptor. That address is the only line able to answer whether the description still belongs to the wallet holding the coins.
Restoring is where multisig fails quietly, by the way. Import a single seed into software that assumes single-sig and you get a correct key in front of an empty account. That reads as coins gone rather than wrong wallet.
Most coordinator softwares handle it well. Just use your multi sig in tests with multiple coordinators so you know its good and save the descriptor file used
Agreed on the testing, with one correction about where it fails. I ran it on two test keys with a 2-of-2 on my own node just now. multi() gave bc1qamtaqsspsjwt4gz6nrc9r4cnarlwlgnhqcn47akvadzdqcpun4wq97ufk4 as the first receiving address. sortedmulti() with the same two keys and the same threshold gave bc1qsg4m6qs835qq7z8wll7n7l5v63zwz0t5ntwvyyhclyph0fjcm6nsquf6c2. Both descriptors were accepted by the node, and both returned addresses on request.
Two coordinators can therefore each be perfectly happy with a descriptor that describes the other one's wallet. Neither will tell you which one you are holding. Write that path as 84, as 84' or as 84h and you get three different checksums. Every human reads those three as the same path: 7vd06mmu, cgh3vg4l, rrxxnedl. The checksum proves that the string survived the copy. It says nothing about whether the string belongs to this wallet.
So let the multi-coordinator test compare the first receiving address on each side instead of only proving that a spend works. A test spend proves that the wallet you hold works. Only the address proves it is the same wallet.
One more thing about saving the descriptor file: exported with xprv inside, it stops being a descriptor and becomes a key list. Same file name, same format, same opening characters. Whatever goes to a coordinator for a test run should carry the xpub version only.
A descriptor is the one piece of a backup that can be wrong while every checksum in the file agrees.
If you properly save the wallet descriptors as BSMS it will work bro. The 84h/84'/84 problem is solved by those. Same address = success. You're overcomplicating it.
The file is the right answer, and the reason is worth naming, because it is the line you wrote: same address. BIP-129 puts the wallet's first address into the fourth line of the descriptor record, requires the signer to display it and to match its own key as an exact string, and asks the parties to compare confirmations with each other. What guards the wallet is the address. A checksum only carries the text.
I measured today where the two part ways, on my own node at block 971713. Rewriting one multisig file in 4 ways (apostrophes, then an h, then a wrong origin path, then no origin at all) produced 4 different checksums and one identical first receive address. Rewriting it in 4 other ways (sortedmulti, key order, the change branch, the threshold) moved every address. An origin path is a label, an address is the wallet.
So the test is one line, and you wrote it shorter than I did: first receive address from the record the signer stored, against the file the coordinator kept. Where I would still keep a note is the reuse case. A coordinator that opens a descriptor from an earlier session derives addresses happily, and nothing complains until a signer refuses. BSMS catches that when the round trip actually runs, and the round trip is the part that has to happen.
"Overcomplicating" I will take. The checksum was never the guard; I was pointing at the text when the address was the thing to compare.