From be5ab22d16670d91abe15a1de6af63c8fdc1365c Mon Sep 17 00:00:00 2001 From: bmng-dev Date: Sun, 8 Jun 2014 14:07:28 +0000 Subject: [PATCH] Fix name error --- src/highlevelcrypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/highlevelcrypto.py b/src/highlevelcrypto.py index 28439c8d..90a32435 100644 --- a/src/highlevelcrypto.py +++ b/src/highlevelcrypto.py @@ -4,7 +4,7 @@ def makeCryptor(privkey): private_key = a.changebase(privkey, 16, 256, minlen=32) public_key = pointMult(private_key) privkey_bin = '\x02\xca\x00\x20' + private_key - pubkey_bin = '\x02\xca\x00\x20' + public_key[1:-32] + '\x00\x20' + pubkey[-32:] + pubkey_bin = '\x02\xca\x00\x20' + public_key[1:-32] + '\x00\x20' + public_key[-32:] cryptor = pyelliptic.ECC(curve='secp256k1',privkey=privkey_bin,pubkey=pubkey_bin) return cryptor def hexToPubkey(pubkey):