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

Commit 467022b

Browse files
authored
Merge pull request #786 from ofek/patch-2
fix var name in utils.ecsign
2 parents 7b0f198 + 3f5d7c3 commit 467022b

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)