vbuterin / pybitcointools

SImple, common-sense Bitcoin-themed Python ECC library
1.3k stars 860 forks source link

ecdsa_raw_verify() with der_decode_sig() always Error, because of 27 <= None <= 34 #210

Open b0r1ngx opened 2 years ago

b0r1ngx commented 2 years ago

I'm try using blockcypher python library, but problem is in bitcoin lib: image

I just try to navigate at library methods, and see that it always error on this place, because method ecdsa_raw_verify(), always get tuple type (None, Int, Int), and we get in v None always, and then compare it between 27 and 34

image

image

on 529 code line, we always get error image