Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 3f5d7c3

Browse files
authored
fix var name in utils.ecsign
There was a an improper rebase in #777. This restores that fix.
1 parent dddbbcf commit 3f5d7c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ethereum/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def ecrecover_to_pub(rawhash, v, r, s):
105105

106106
def ecsign(rawhash, key):
107107
if coincurve and hasattr(coincurve, 'PrivateKey'):
108-
pk = coincurve.PrivateKey(priv)
108+
pk = coincurve.PrivateKey(key)
109109
signature = pk.sign_recoverable(msghash, hasher=None)
110110
v = safe_ord(signature[64]) + 27
111111
r = big_endian_to_int(signature[0:32])

0 commit comments

Comments
 (0)