Closed brunoerg closed 3 weeks ago
Hello, I tried to find the root cause of this bug and there seem to be atleast 2 issues present:
type_value
is u8 which is wrong. According to the documentation, it should be a VarInt(check keytype documentation in specification)cc: @apoelstra
Thanks for finding this! I have subscribed to the repo so you hopefully won't need to ping me in future.
This looks reasonably straightforward to fix although it will involve prodding the psbt
module which is in a state of limbo as we explore rewriting it.
Thank you, @apoelstra.
Closed as resolved. All impl has fixed it.
We just got a crash on psbt target.
rust-miniscript
successfully deserializes a PSBT while Bitcoin Core fails due toReadCompactSize(): size too large
. This failure happens during key type checking.Base64: cHNidP8BABwAAAAFAAL9///+/wAAAAAALwBzYnT/AQAAAQEAdP90/wEAHAAAAAUAAv3///4B///Q////xgBzYnT/AQEAAC0AHAAx/3V0LakrcP8BdP8BAAAB/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD3/Mf91L62pK6k=