-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown derivation path from Coldcard-generated multisig xpubs #7088
Comments
see #5715 (comment) |
@SomberNight thanks for the quick response, but I think that workaround will only sync the Electrum wallet with the xpubs going forward. What about the existing P2SH address? How can I derive the correct transaction to unlock those funds? |
Oh I've missed the script type issue. That is because we store type information in the xpub. You need to convert them to Zpubs for p2wsh. Line 537 in 7698ab4
see the linked issue for related discussion |
@SomberNight I might be missing something, but how does |
How did you obtain the three xpubs? Do you know what derivation paths were used for them? You said you have a 2of3 p2wsh multisig wallet. |
If you don't have the coldcards anymore, and just want to sign in software, you can do the following instead:
|
@SomberNight the xpubs were originally created with (I also don't care about security at all, this is just a small test and I mainly want to understand how to fix the broken UTXO) |
If restoring from bip39 seed, the wizard asks you for derivation path and script type; that should be sufficient to "fix" your problem. Please try that. |
@SomberNight so the question becomes how to I generate P2SH addresses, or handle P2SH UTXOs, in a wallet that is already configured as P2WSH |
just create a new wallet file in Electrum with the same keys but different script type. |
Success! It took me a while but I finally figured it out, I just had to create a P2SH wallet but with Thanks so much @SomberNight for your guidance and assistance 🙏 |
I've imported three xpubs from three different air-gapped Coldcard mk3 which should form a 2-of-3 mulsitig watch-only wallet.
The original export from the coldcards was P2WSH with
m/48'/0'/0'/2'
but it seems the Electrum import was erroneously marked asP2SH
:All keystores have no derivation path data. In this wallet the first derived receiving address is
3FjFdHR5S6c7bweCME2bgBBChr4p4tqUMc
and was sent some funds for testing purposes, but are currently unrecoverable due to the missing derivation path data and the P2SH-mismatch.Given the BIP39 seeds, what is the proper way to import the privkeys to a new wallet and sign a valid transaction for this UTXO?
The text was updated successfully, but these errors were encountered: