vbuterin / pybitcointools

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

Fix ecdsa_raw verify and recover #146

Open wizardofozzie opened 7 years ago

wizardofozzie commented 7 years ago

ecdsa v value fix (tests working!)

wizardofozzie commented 7 years ago

v = 0 fails on ecdsa_raw_recover and ecdsa_raw_verify (False and ValueError, respectively) since v value is lost with DER encoding

wizardofozzie commented 7 years ago

@vbuterin this code fixes failing tests

reiven commented 7 years ago

@vbuterin can this be merged, so tests stops failing? thanks