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

Change the parameter for control block verification #845

Merged
merged 1 commit into from Mar 4, 2022

Conversation

sanket1729
Copy link
Member

@sanket1729 sanket1729 commented Feb 25, 2022

  • Changes the API from TweakedPublicKey to XonlyPublicKey. I believe we
    introduced TweakedPublicKey to guard against creating address API. This
    is confusing because when we want to verify control block we have to
    call dangerous_assume_tweak.
  • This is in true in most cases that the key would be tweaked, but we only
    want to guard in while creating a new address. If we want to verify
    blocks, we should deal with native X-only-keys regardless of how they
    were created
  • Also removes the & from a 32 Copy byte as discussed elsewhere.

@sanket1729 sanket1729 added this to the 0.28.0 milestone Feb 25, 2022
Kixunil
Kixunil previously approved these changes Feb 25, 2022
Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK af09900

@tcharding
Copy link
Member

FWIW looks good to me.

Changes the API from TweakedPublicKey to XonlyPublicKey. I believe we
introduced TweakedPublicKey to guard against creating address API. This
is confusing because when we want to verify control block we have to
call dangerous_assume_tweak.
This is in true in most cases that the key would be tweaked, but we only
want to guard in while creating a new address. If we want to verify
blocks, we should deal with native X-only-keys regardless of how they
were created
Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

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

ACK 91c5d71

@Kixunil Kixunil added one ack PRs that have one ACK, so one more can progress them trivial Obvious, easy and quick to review (few lines or doc-only...) labels Mar 3, 2022
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 91c5d71

@apoelstra apoelstra merged commit f733dc0 into rust-bitcoin:master Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
one ack PRs that have one ACK, so one more can progress them trivial Obvious, easy and quick to review (few lines or doc-only...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants