From b1261a6c0e6247d4109026cf5f367caca30f4651 Mon Sep 17 00:00:00 2001 From: bmng-dev Date: Wed, 21 May 2014 10:15:07 +0000 Subject: [PATCH] Move pointMult to highlevelcrypto Update pointMult calls to highlevelcrypto.pointMult --- src/class_singleWorker.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/class_singleWorker.py b/src/class_singleWorker.py index 4b43c22f..18fdf9f3 100644 --- a/src/class_singleWorker.py +++ b/src/class_singleWorker.py @@ -8,7 +8,6 @@ from addresses import * import highlevelcrypto import proofofwork import sys -from class_addressGenerator import pointMult import tr from debug import logger from helper_sql import * @@ -304,7 +303,7 @@ class singleWorker(threading.Thread): addressVersionNumber) + encodeVarint(streamNumber) + hash).digest()).digest() payload += doubleHashOfAddressData[32:] # the tag privEncryptionKey = doubleHashOfAddressData[:32] - pubEncryptionKey = pointMult(privEncryptionKey) + pubEncryptionKey = highlevelcrypto.pointMult(privEncryptionKey) payload += highlevelcrypto.encrypt( dataToEncrypt, pubEncryptionKey.encode('hex')) @@ -415,7 +414,7 @@ class singleWorker(threading.Thread): else: privEncryptionKey = doubleHashOfAddressData[:32] - pubEncryptionKey = pointMult(privEncryptionKey) + pubEncryptionKey = highlevelcrypto.pointMult(privEncryptionKey) payload += highlevelcrypto.encrypt( dataToEncrypt, pubEncryptionKey.encode('hex'))