python-bitcoinlib icon indicating copy to clipboard operation
python-bitcoinlib copied to clipboard

Bug in signature serialize/deserialize

Open krisk0 opened this issue 1 year ago • 2 comments
trafficstars

DERSignature.stream_serialize puts byte 0x30 between r and s. But .stream_deserialize expects 0x02 there.

I think this is a bug in either DERSignature.stream_serialize or DERSignature.stream_deserialize.

krisk0 avatar Dec 12 '23 14:12 krisk0

Adding this for my own notes when I get some time to look into this: https://b10c.me/blog/006-evolution-of-the-bitcoin-signature-length/

petertodd avatar Dec 14 '23 08:12 petertodd