1
0

update ripemd module for python3

This commit is contained in:
ThomasV
2017-08-26 07:25:33 +02:00
parent 4df5997940
commit 227a553a99
2 changed files with 10 additions and 17 deletions

View File

@@ -279,9 +279,8 @@ def hash_160(public_key):
md = hashlib.new('ripemd160')
md.update(sha256(public_key))
return md.digest()
except Exception:
# not available in Android SL4a
import ripemd
except BaseException:
from . import ripemd
md = ripemd.new(sha256(public_key))
return md.digest()