question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with opening psbt on coldcard for 3-of-2 wallet transacation

See original GitHub issue

Hi everyone.

I’m trying to create a multisig with a coldcard, a ledger, and an electrum wallet, and running into problems when exporting the psbt file to the cold card. When I open it on the cold card I get the following error.

Failure - invalid PSBT - deriv 0 != 4 xpub depth (xfp=mywalletfingerprint) // the fingerprint is the one for the Electrum wallet.

The electrum multisig wallet was created using a BIP39 seed (not an Electrum seed) and the zpub imported successfully into Specter. I was able to import the wallet .txt file back into the Coldcard successfully and was able to sign the transaction on both Ledger and the Electrum. Just wasn’t able to sign the PSBT with the Coldcard.

If I open the transaction that was meant for the Coldcard on the Electrum wallet (not that it would do anything), I get a similar error: “Electrum was unable to parse your transaction: SerializationError('PSBT global xpub has mismatching depth (4) and derivation prefix len (0)’)”

Not sure I’m doing something wrong here, as both Ledger and Electrum are able to sign, the wallet file was imported successfully, and the error message seems to be consistent on both Coldcard and Electrum.

One last note: If I create a 2-of-2 wallet with just the Ledger and the Coldcard, it signs fine. Happy to add more information here in case it’s helpful.

Currently running the up-to-date firmware for Coldcard (4.1.3).

Thanks for any help in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
relativisticelectroncommented, Feb 9, 2022
1reaction
k9ertcommented, Feb 3, 2022

Yes, definitely! This is an issue with the derivation-path. We had it here and i tracked down “deriv 0” to zero slashes in the derivationpath. https://github.com/cryptoadvance/specter-desktop/issues/1452#issuecomment-1006685168

@relativisticelectron any idea what role electrum could play here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trouble Shooting – COLDCARD User Docs
My valid PSBT file produces warning "Troublesome Change Outs". The Coldcard will analyze paths used for change outputs and show a warning if...
Read more >
12. How to sign a "simple" PSBT transaction Air-Gap with ...
In this video you will learn how to sign a simple single signature transaction using COLDCARD and Electrum Wallet. Learn more about COLDCARD...
Read more >
Quick Start Guide - Sparrow Wallet
Sparrow is a modern desktop Bitcoin wallet application supporting most hardware wallets and built on common standards such as PSBT, with an emphasis...
Read more >
Frequently Asked Questions - Specter Desktop Documentation
And with Electrum 4, I get a rawtransaction, not a base64 PSBT. ... 2 Assembling Specter-DIY; 3 Specter-DIY air-gapped open source bitcoin hardware...
Read more >
Hardware wallet - Bitcoin Wiki
1 Security risks; 2 Connecting to a full node; 3 Commercial hardware wallets ... 3.4 Coldcard: Ultra-secure Bitcoin Hardware Wallet; 3.5 CoolWallet: The ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found