From ddc1170638484a5536c0a629cea99e5b5dcc7048 Mon Sep 17 00:00:00 2001 From: ran Date: Sat, 25 Nov 2017 11:20:54 +0200 Subject: [PATCH] fixed extr /m in bip32_path --- pywallet/_version.py | 2 +- pywallet/wallet.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pywallet/_version.py b/pywallet/_version.py index 221ce5d..c1336bd 100644 --- a/pywallet/_version.py +++ b/pywallet/_version.py @@ -1 +1 @@ -__version__ = "0.0.4" \ No newline at end of file +__version__ = "0.0.5" \ No newline at end of file diff --git a/pywallet/wallet.py b/pywallet/wallet.py index 4cf6fe0..691c970 100644 --- a/pywallet/wallet.py +++ b/pywallet/wallet.py @@ -52,7 +52,7 @@ def create_address(network='btctest', xpub=None, child=None, path=0): return { "path": "m/" + str(wallet_obj.child_number) + "/" +str(child_wallet.child_number), - "bip32_path": "m/" + net.BIP32_PATH + str(wallet_obj.child_number) + "/" +str(child_wallet.child_number), + "bip32_path": net.BIP32_PATH + str(wallet_obj.child_number) + "/" +str(child_wallet.child_number), "address": child_wallet.to_address(), # "xpublic_key": child_wallet.serialize_b58(private=False), # "wif": child_wallet.export_to_wif() # needs private key