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

Support for address / scriptPubKey descriptors, or expose the descriptor checksum helper #294

Open
darosior opened this issue Feb 8, 2022 · 4 comments
Labels
partial-descriptors Descriptors that cannot be solved

Comments

@darosior
Copy link
Contributor

darosior commented Feb 8, 2022

We use address descriptors downstream (because bitcoind doesn't support Miniscript descriptors yet), and we can't compute the address descriptor checksum without bitcoind short of copying the checksum code from here. (See revault/revaultd#364.)

If rust-miniscript had support for address or scriptPubKey descriptors this would also solve the issue as we could just leverage their Display implem. It would be a preferable route if we think the checksum computation should be considered internal.

@sanket1729 sanket1729 added the partial-descriptors Descriptors that cannot be solved label Jan 17, 2023
@sanket1729
Copy link
Member

Can look into this once we begin the partial descriptors journey.

@sanket1729
Copy link
Member

Sorry for the year+ late response. The checksum function is fairly stable, we can make this public for other uses for checksum algorithm too.

@sanket1729
Copy link
Member

Made a PR to make checksum pub, keeping this open for more discussion.

I am not sure if we (ever) want to support addr descriptors. cc @apoelstra

@apoelstra
Copy link
Member

Making checksum pub sounds good to me. This may even be useful for elements-miniscript.

+1 to revisiting the addr descriptor once we have partial descriptors. For now though we should not support it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
partial-descriptors Descriptors that cannot be solved
Projects
None yet
Development

No branches or pull requests

3 participants