bitcoinfuzz icon indicating copy to clipboard operation
bitcoinfuzz copied to clipboard

descriptor_parse: crash with `pk(xprv.../*)`

Open brunoerg opened this issue 1 year ago • 2 comments

Input: pk(xprv9s21ZrQH143K31xYSDQpPDxsXRTUcvj2iNHm5NUtrGiGG5e2DtALGdso3pGz6ssrdK4PFmM8NSpSBHNqPqm55Qn3LqFtT2emdEXVYsCzC2U/*)

Bitcoin Core successfully parses it and rust-miniscript returned error "Public keys must be 64/66/130 characters in size"/"pubkey string should be 66 or 130 digits long, got: 113".

brunoerg avatar Dec 18 '24 12:12 brunoerg

Neat! Can you move/copy this to rust-miniscript. I think this is a gap in our definition of DescriptorPublicKey.

apoelstra avatar Dec 18 '24 14:12 apoelstra

Neat! Can you move/copy this to rust-miniscript. I think this is a gap in our definition of DescriptorPublicKey.

Yes! Done. https://github.com/rust-bitcoin/rust-miniscript/issues/785

brunoerg avatar Dec 18 '24 17:12 brunoerg