-
Notifications
You must be signed in to change notification settings - Fork 167
Add helpers to convert to DescriptorPublicKey and Descriptor<DefinitePublicKey> data structures #818
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
Add helpers to convert to DescriptorPublicKey and Descriptor<DefinitePublicKey> data structures #818
Conversation
|
In 5937090: I think this is too specific. You're the first person I've encountered who wound up with The I agree that it would be nice if we had a |
Fair enough, I will drop those impl's and run rustfmt |
5937090 to
8b248f6
Compare
|
Removed the Descriptor impl's. Had to make the |
|
Looks like the formatter is still not happy. But concept ACK. |
8b248f6 to
a00c993
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a00c993; successfully ran local tests
|
BTW if you want to use this today, can you do a backport PR to the 12.x branch (along with a minor version bump)? |
3cdd25f bump minor version to 12.3.5 (Philip Robinson) 5019d87 Add helpers to convert from PublicKey & XOnlyPublicKey to Descriptor Keys (Philip Robinson) Pull request description: A backport of #818 to the 12.3 branch ACKs for top commit: apoelstra: ACK 3cdd25f; successfully ran local tests Tree-SHA512: 1812b3656067e3d75cee917fa0355abd04d39c1388db902f1daae1728fc84640b826e896a3591db8879f7fcb97d2af8e101f21a387b05d8ee5bdaa3d3d7de60f
…criptorPublicKey and Descriptor<DefinitePublicKey> data structures a00c99312c216a61280b7513a3c1f1f12bffa478 Add helpers to convert from PublicKey & XOnlyPublicKey to Descriptor Keys (Philip Robinson) Pull request description: closes rust-bitcoin/rust-miniscript#817 I added the common cases of converting from `Descriptor<PublicKey>` and `Descriptor<XOnlyPublicKey>` to `Descriptor<DefinitePublicKey>`. Not sure if this is considered too specific but it feels like a use case that will be very common. ACKs for top commit: apoelstra: ACK a00c99312c216a61280b7513a3c1f1f12bffa478; successfully ran local tests Tree-SHA512: 151296fbeca3ccb3e7e76138cb0ba874de8250e5139f0eae5e407a16573ed312af2e25d8c5b79d7ca59c8d673bd819087381287d6551a08a64fea51d7ddd9f9e
closes #817
I added the common cases of converting from
Descriptor<PublicKey>andDescriptor<XOnlyPublicKey>toDescriptor<DefinitePublicKey>. Not sure if this is considered too specific but it feels like a use case that will be very common.