spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.44k stars 3.09k forks source link

"No matching pubkey for sign_transaction" when trying to sign PSBT with Ledger Nano S. can't do coinjoin with ledger #6528

Open bilthon opened 4 years ago

bilthon commented 4 years ago

I tried creating an PSBT with Bitcoin Core v0.20.0 that is comprised of 2 inputs from different electrum wallets. I then proceeded to import said PSBT by going to tools -> Load transaction -> From text, and pasted the PSBT with one of the wallets open.

Both wallets are for different accounts of a single seed and managed by a Ledger Nano S.

The PSBT is apparently read as I get the details of a transaction loaded into Electrum. But when I press the "Sign" button with my Ledger unlocked and with the Bitcoin application selected, I get this error message: "No matching pubkey for sign_transaction".

Maybe this (creating a signature for a single input) is not possible at this point?

SomberNight commented 4 years ago

The Ledger plugin code currently assumes that all inputs belong to the wallet (are is_mine). I think most hw wallet plugins do this atm. It would be interesting to see if this restriction could be removed.