Skip to content

Clean up trait MiniscriptKey #371

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 5 commits into from
Apr 27, 2022

Conversation

tcharding
Copy link
Member

Improve the code around trait MiniscriptKey by doing

  • Improve docs
  • Add regression tests
  • Refactor the trait

As part of refactoring the trait `MiniscriptKey`; improve the rustdocs
on the trait.
In preparation for refactoring the `MiniscriptKey` implementations add
regression tests.
The `MiniscriptKey` trait has a default implementation for
`is_uncompressed` that returns `false`. No need to re-implement it.
Do minor improvement to the docs for the `bitocin::PublicKey`
implementation of `is_uncompressed`.
All the non-string keys use hash160 hashes, we can simplify the logic
by mirroring the current implementation for `XOnlyPublicKey`.
Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK 3092830. Thank you again for the clean changes

@sanket1729 sanket1729 merged commit 1a2a49a into rust-bitcoin:master Apr 27, 2022
@tcharding tcharding deleted the refactor-miniscritp-key branch April 27, 2022 22:16
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