From edac7b03ecfd5fdf841582013e518b3dd1a605ca Mon Sep 17 00:00:00 2001 From: ran Date: Mon, 22 Jan 2018 16:50:43 +0200 Subject: [PATCH] fixed Lightcoin xpub (issue #6) --- pywallet/network.py | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/pywallet/network.py b/pywallet/network.py index 976207f..339f11b 100644 --- a/pywallet/network.py +++ b/pywallet/network.py @@ -91,10 +91,15 @@ class LitecoinMainNet(object): # Unofficial extended version bytes taken from # https://bitcointalk.org/index.php?topic=453395.0 - EXT_PUBLIC_KEY = 0x019da462 - EXT_SECRET_KEY = 0x019d9cfe - BIP32_PATH = "m/44'/2'/0'/" + # EXT_PUBLIC_KEY = 0x019da462 + # EXT_SECRET_KEY = 0x019d9cfe + # same as Bitcoin's + # https://github.com/ranaroussi/pywallet/issues/6 + EXT_PUBLIC_KEY = 0x0488B21E + EXT_SECRET_KEY = 0x0488ADE4 + + BIP32_PATH = "m/44'/2'/0'/" class LitecoinTestNet(object): """Litecoin TestNet version bytes @@ -113,8 +118,14 @@ class LitecoinTestNet(object): # Unofficial extended version bytes taken from # https://bitcointalk.org/index.php?topic=453395.0 - EXT_PUBLIC_KEY = 0x0436f6e1 - EXT_SECRET_KEY = 0x0436ef7d + # EXT_PUBLIC_KEY = 0x0436f6e1 + # EXT_SECRET_KEY = 0x0436ef7d + + # same as Bitcoin's + # https://github.com/ranaroussi/pywallet/issues/6 + EXT_PUBLIC_KEY = 0x043587CF + EXT_SECRET_KEY = 0x04358394 + BIP32_PATH = "m/44'/1'/0'/"