bitcoinjs-lib icon indicating copy to clipboard operation
bitcoinjs-lib copied to clipboard

TODO: [PSBT] Support Electrum bip32Derivation style

Open junderw opened this issue 4 years ago • 5 comments
trafficstars

When Electrum doesn't know the masterFingerprint it uses the fingerprint of the xpub, and the path is from the xpub (as m)

Perhaps we could make this a separate method?

junderw avatar Jan 07 '21 08:01 junderw

Is there an example available how this can be handled at the moment?

When working on PSBT integration I had a lot of trouble getting it to work. Turns out that this was the issue. I was not aware that electrum is not following the standard here. It's interesting that they still don't allow masterFingerprints to be imported by default. The only way I found is by using the integrated CLI, but that's not really feasible for regular users.

AndreasGassmann avatar Apr 08 '21 15:04 AndreasGassmann

you have to check the bip32Derivation, derive the keys, and use sign

signHD doesn't support it yet.

junderw avatar Apr 09 '21 06:04 junderw

I know this is a rather old issue, but

The only way I found is by using the integrated CLI, but that's not really feasible for regular users.

@AndreasGassmann once imported the master fingerprint, is there a way of signing a transaction with Vault? It seems like it just doesn't recognize any of the Electrum generated QR codes.

massimopavoni avatar Jan 23 '24 17:01 massimopavoni

Is has been a long while, so I don't remember exactly anymore. But I'm pretty sure that when you import the masterFingerprint in Electrum, then it worked.

When you try it, what exactly didn't work? Maybe you can reach out on our social media channels so we can look into this.

AndreasGassmann avatar Jan 23 '24 17:01 AndreasGassmann

Essentially I tried to create a dummy transaction, that I wouldn't effectively broadcast afterwards, to see if I could sign it with the scanner in Vault, but the QR codes generated by Electrum, when scanned, trigger the incompatible code in the app. It does say I could "relay" it to the Wallet app, but I would rather keep my offline device with only one application.

massimopavoni avatar Jan 23 '24 20:01 massimopavoni