changes for new toolchain
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -210,7 +210,7 @@ def android_ext_dir():
|
||||
|
||||
def android_data_dir():
|
||||
import jnius
|
||||
PythonActivity = jnius.autoclass('org.renpy.android.PythonActivity')
|
||||
PythonActivity = jnius.autoclass('org.kivy.android.PythonActivity')
|
||||
return PythonActivity.mActivity.getFilesDir().getPath() + '/data'
|
||||
|
||||
def android_headers_path():
|
||||
|
||||
Reference in New Issue
Block a user