1
0

changes for new toolchain

This commit is contained in:
akshayaurora
2016-06-01 01:56:34 +05:30
committed by ThomasV
parent f061fe047d
commit 07c5f02639
6 changed files with 13 additions and 10 deletions

View File

@@ -208,7 +208,9 @@ def i2o_ECPublicKey(pubkey, compressed=False):
############ functions from pywallet #####################
def hash_160(public_key):
md = hashlib.new('ripemd160')
#md = hashlib.new('ripemd')
from Crypto.Hash import RIPEMD
md = RIPEMD.new()
md.update(sha256(public_key))
return md.digest()