Skip to content

Enforce that x-only keys cannot be used in non-tr descriptors #344

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

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

sanket1729
Copy link
Member

Reported by: @afilini .

This was a copy-paste error on my side :(

@sanket1729 sanket1729 added the bug Something isn't working label Apr 13, 2022
@afilini
Copy link
Contributor

afilini commented Apr 13, 2022

ACK for the change, but I was wondering: why aren't you just returning true there?

Unless something recently changed in master, I'm looking at the docs for rc.2 and I don't see how something other than a XOnlyPublicKey would end up there.

@sanket1729 sanket1729 force-pushed the x_only_fixup_04_2022 branch from 9eefe94 to f74fbe3 Compare April 13, 2022 18:24
This commit can be re-arranged to check that this fails before the fix
@sanket1729 sanket1729 force-pushed the x_only_fixup_04_2022 branch from f74fbe3 to 8212b9c Compare April 13, 2022 18:25
@sanket1729
Copy link
Member Author

@afilini, fixed. Thanks for the suggestion

Copy link
Contributor

@afilini afilini left a comment

Choose a reason for hiding this comment

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

ACK 8212b9c

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 8212b9c

lgtm

@sanket1729 sanket1729 merged commit 19f4e06 into rust-bitcoin:master Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants