Skip to content
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

Ledger: Fix warning about unverified inputs #2003

Merged

Conversation

EchterAgo
Copy link

Starting in version 1.4.0 of the Ledger Bitcoin app, additional data needs to be sent for inputs to prevent the firmware warning about unverified inputs. See https://donjon.ledger.com/lsb/010/

@EchterAgo
Copy link
Author

I tested this with a Ledger Nano S. I tested P2SH multisig and P2PKH.

@EchterAgo
Copy link
Author

Oh, I also tested multiple outputs in one transaction.

@EchterAgo
Copy link
Author

I want to test this with HW1, so don't merge this yet.

Starting in version 1.4.0 of the Ledger Bitcoin app, additional data
needs to be sent for inputs to prevent the firmware warning about
unverified inputs. See https://donjon.ledger.com/lsb/010/
@EchterAgo
Copy link
Author

Updated to work on HW1. Also removed misleading comment, the witness flag is not needed for CashAddr, it is needed for BIP143 sighash.

This is now tested with a Ledger Nano S and a Ledger HW1 with P2SH and P2PKH.

@cculianu
Copy link
Collaborator

Awesome.. looks good to me. Thanks for addressing this!

@cculianu cculianu merged commit 1f47387 into Electron-Cash:master Sep 28, 2020
@EchterAgo EchterAgo deleted the ledger_fix_unverified_inputs branch September 30, 2020 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants