-
Notifications
You must be signed in to change notification settings - Fork 197
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
Updates for new Trezor and Ledger firmware #340
Conversation
Also update displayaddress test to use --testnet
Just make this easier to read
Rather than relying on the utxos given to determine the signature type, inspect the scripts.
Determine whether the input is segwit based on the script. Also handle when both non_witness_utxo and witness_utxo are provided.
Check if an input is a trustedInput before checking whether it is a witness when determining the flag
Hi there,
Let me know your thoughts. |
Since I've started doing release candidates, I can publish an rc containing the fix that Wasabi can use and test with. |
@achow101 thx, I will keep an eye on it. |
Tested spending a native segwit input with 45dbd08 along with bitcoin/bitcoin#19215
I suggest we clean up the cryptic error when tx info is missing, because users of older Bitcoin Core versions will encounter it. If Trezor firmware version can be obtained, maybe we can even pre-empt the error. |
I added a commit which should give a better error message |
Now it says "Previous transaction ... not available", which is at least a bit better. |
Tested and rather cursory code review ACK 1613a33. I didn't test the BitBox changes. |
I can confirm that fixes Wasabi's issues with Trezor (at least for Mainnet, Testnet is a bit wonky... probably a firmware fault). I compiled this via docker and used that binary in linux. Thanks for this @achow101 :D |
@molnard 1.1.2-rc.2 is available for testing now: https://github.com/bitcoin-core/HWI/releases/tag/1.1.2-rc.2 (I messed up rc.1, so rc.2 is the first release candidate) |
Thank you @achow101 ! |
I'm not sure if this is the appropriate place to post this, but I am struggling to get this working on a Trezor One running 1.9.1. I am getting the same ""Previous transaction ... not available" that @Sjors posted earlier. Where am I supposed to include the previous transaction in the PSBT? EDIT: |
This is a general update to fix many issues related to newly released signing behavior in Trezors and Ledgers.
non_witness_utxo
andwitness_utxo
witness_utxo
,witness_script
, andredeem_script
to determine signing behavior, we instead inspect the scripts using existing template functions to determine their type and base our behavior on that.Note that the Ledger emulator has not been updated to include the Bitcoin app that has the segwit requirements. Also note that the updated app with those requirements seems to have a bug when a transaction has multiple segwit inputs.
Closes #338 and #337