python-bitcoinlib
python-bitcoinlib copied to clipboard
Bug in signature serialize/deserialize
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.
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/