Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions bitcoin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,8 @@ def ecdsa_sign(msg, priv):

def ecdsa_raw_verify(msghash, vrs, pub):
v, r, s = vrs
if not (27 <= v <= 34):
return False
#if not (27 <= v <= 34):
# return False

w = inv(s, N)
z = hash_to_int(msghash)
Expand All @@ -553,8 +553,8 @@ def ecdsa_verify(msg, sig, pub):

def ecdsa_raw_recover(msghash, vrs):
v, r, s = vrs
if not (27 <= v <= 34):
raise ValueError("%d must in range 27-31" % v)
#if not (27 <= v <= 34):
# raise ValueError("%d must in range 27-31" % v)
x = r
xcubedaxb = (x*x*x+A*x+B) % P
beta = pow(xcubedaxb, (P+1)//4, P)
Expand Down