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

Failure to parse pk(xprv.../*) descriptor #785

Open
brunoerg opened this issue Dec 18, 2024 · 1 comment
Open

Failure to parse pk(xprv.../*) descriptor #785

brunoerg opened this issue Dec 18, 2024 · 1 comment

Comments

@brunoerg
Copy link
Contributor

See brunoerg/bitcoinfuzz#70.

The following descriptor pk(xprv9s21ZrQH143K31xYSDQpPDxsXRTUcvj2iNHm5NUtrGiGG5e2DtALGdso3pGz6ssrdK4PFmM8NSpSBHNqPqm55Qn3LqFtT2emdEXVYsCzC2U/*) fails to be parsed due to "Public keys must be 64/66/130 characters in size"/"pubkey string should be 66 or 130 digits long, got: 113".

@apoelstra
Copy link
Member

I believe that this is a gap in the definition for DescriptorPublicKey.

It may be that we want to reorganize the type to always have a derivation path (or maybe a vector of derivation paths or something).

The relevant spec is BIP 380 https://github.com/bitcoin/bips/blob/master/bip-0380.mediawiki#user-content-Key_Expressions

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

No branches or pull requests

2 participants