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

Improvements and bug fixes for BIP 371 support #134

Merged
merged 1 commit into from
Aug 21, 2024

Conversation

t-bast
Copy link
Member

@t-bast t-bast commented Aug 21, 2024

This commit fixes my comments made on #128 and adds a few improvements:

  • fix a bug in the index used for previous inputs
  • use InvalidTxOutput for invalid taproot output fields
  • add test vectors from BIP 371
  • reformat to match the rest of the file

Note that I updated the "build and sign a BIP86 psbt" test to include a non-segwit input, this way it fails without the fix to the input index.

Note: this is a PR targetting the #128 branch.

- fix a bug in the index used for previous inputs
- use `InvalidTxOutput` for invalid taproot output fields
- add test vectors from BIP 371
- reformat to match the rest of the file

Note that I updated the "build and sign a BIP86 psbt" test to include a
non-segwit input, this way it fails without the fix to the input index.
@t-bast t-bast requested a review from sstone August 21, 2024 08:35
@t-bast t-bast changed the title Improvements and bug fixes Improvements and bug fixes for BIP 371 support Aug 21, 2024
Copy link
Member

@sstone sstone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a nits but it can be merged as is. Thanks!

@t-bast t-bast merged commit 50e7487 into snapshot/psbt-v2 Aug 21, 2024
4 checks passed
@t-bast t-bast deleted the snapshot/psbt-v2-bast branch August 21, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants