vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.28k stars 857 forks source link

fix der encoding of signatures #55

Open ghost opened 9 years ago

ghost commented 9 years ago

This patch fixes lack of leading zero byte for numbers which are less than 2**255 and the first bit is set.

ghost commented 9 years ago

@reiven that's strange error, binascii is used in similar way before this patch. Does test.py work for you on current master?

reiven commented 9 years ago

Sry, i've tested on old version of repo.