Skip to content

Conversation

thunderbiscuit
Copy link
Member

Proof of Concept. Will keep iterating. The parsing of some miniscripts that are according to the BIP valid also fails, and I don't know exactly why but assume it's because those are not supported by the miniscript crate? Not sure yet (you can see some of the tests I commented out).

Descriptors taken from the BIPs here: https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki

See #687.

@thunderbiscuit
Copy link
Member Author

thunderbiscuit commented Jul 31, 2025

I removed all tests for descriptors that cannot be parsed by miniscript (as far as I can tell, will need to research a bit more).

These are examples from the BIPs that the library can't parse:

Descriptor("sortedmulti(1,04a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea235,03a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd)", Network.BITCOIN)
Descriptor("combo(04a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea235)", Network.BITCOIN)
Descriptor("raw(512103a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd4104a34b99f22c790c4e36b2b3c2c35a36db06226e41c692fc82b8b56ac1c540c5bd5b8dec5235a0fa8722476c7709c02559e3aa73aa03918ba2d492eea75abea23552ae)", Network.BITCOIN)
Descriptor("addr(3PUNyaW7M55oKWJ3kDukwk9bsKvryra15j)", Network.BITCOIN)

@thunderbiscuit thunderbiscuit requested a review from reez July 31, 2025 13:41
@thunderbiscuit
Copy link
Member Author

This is finally ready for review/merge.

There is much more to do with the Descriptor type, but I don't think it should block this one from moving forward. Non-breaking change.

Copy link
Collaborator

@reez reez left a comment

Choose a reason for hiding this comment

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

ACK 7804543

@thunderbiscuit thunderbiscuit merged commit b79b1a0 into bitcoindevkit:master Aug 1, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants