Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ PyWallet

\

**Simple BIP32 (HD) wallet creation for: BTC, BTG, BCH, ETH, LTC, DASH, DOGE**
**Simple BIP32 (HD) wallet creation for: MXT, BTC, BTG, BCH, ETH, LTC, DASH, DOGE**

BIP32 (or HD for "hierarchical deterministic") wallets allow you to create
child wallets which can only generate public keys and don't expose a
private key to an insecure server.

This library simplify the process of creating new wallets for the
BTC, BTG, BCH, ETH, LTC, DASH and DOGE cryptocurrencies.
MXT, BTC, BTG, BCH, ETH, LTC, DASH and DOGE cryptocurrencies.

Most of the code here is forked from:

Expand Down
2 changes: 1 addition & 1 deletion pywallet/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.1.0"
__version__ = "0.1.1"
22 changes: 22 additions & 0 deletions pywallet/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,28 @@ class DashTestNet(object):
EXT_SECRET_KEY = 0x04358394 # Used to serialize private BIP32 addresses
BIP32_PATH = "m/44'/1'/0'/"

class MarteXMainNet(object):
"""MarteX MainNet version bytes."""
NAME = "MarteX Main Net"
COIN = "MXT"
SCRIPT_ADDRESS = 0x05 # int(0x05) = 05
PUBKEY_ADDRESS = 0x32 # int(0x32) = 50 # Used to create payment addresses
SECRET_KEY = 0xB2 # int(0xB2) = 178 # Used for WIF format
EXT_PUBLIC_KEY = 0X0488B21E # Used to serialize public BIP32 addresses
EXT_SECRET_KEY = 0X0488ADE4 # Used to serialize private BIP32 addresses
BIP32_PATH = "m/44'/180'/0'/"

class MarteXTestNet(object):
"""MarteX TestNet version bytes."""
NAME = "MarteX Test Net"
COIN = "MXT"
SCRIPT_ADDRESS = 0xC4 # int(0xC4) = 196
PUBKEY_ADDRESS = 0x6C # int(0x6F) = 111 # Used to create payment addresses
SECRET_KEY = 0x144 # int(0x144) = 324 # Used for WIF format
EXT_PUBLIC_KEY = 0x043587CF # Used to serialize public BIP32 addresses
EXT_SECRET_KEY = 0x04358394 # Used to serialize private BIP32 addresses
BIP32_PATH = "m/44'/1'/0'/"

class OmniMainNet(object):
"""Bitcoin MainNet version bytes.
From https://github.com/OmniLayer/omnicore/blob/develop/src/chainparams.cpp
Expand Down
4 changes: 4 additions & 0 deletions pywallet/utils/bip32.py
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,10 @@ def get_network(self, network):
response = DashMainNet
elif network == 'dash_testnet' or network == 'DASHTEST':
response = DashTestNet
elif network == "martex" or network == "MXT":
response = MarteXMainNet
elif network == 'martex_testnet' or network == 'MXTTEST':
response = MarteXTestNet
elif network == 'omni' or network == 'OMNI':
response = OmniMainNet
elif network == 'omni_testnet' or network == 'OMNI_TESTNET':
Expand Down
4 changes: 4 additions & 0 deletions pywallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ def get_network(network='btctest'):
return DashMainNet
elif network == "dash_testnet" or network == 'dashtest':
return DashTestNet
elif network == "martex" or network == "mxt":
return MarteXMainNet
elif network == "martex_testnet" or network == 'martextest':
return MarteXTestNet
elif network == 'omni':
return OmniMainNet
elif network == 'omni_testnet':
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def load_version():
setup(
name='pywallet',
version=version,
description="Simple BIP32 (HD) wallet creation for BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE",
description="Simple BIP32 (HD) wallet creation for MXT, BTC, BTG, BCH, LTC, DASH, USDT, QTUM and DOGE",
long_description=long_description,
url='https://github.com/ranaroussi/pywallet',
author='Ran Aroussi',
Expand All @@ -47,7 +47,7 @@ def load_version():
"Programming Language :: Python :: 3.6",
],
platforms = ['any'],
keywords='bitcoin, wallet, litecoin, hd-wallet, dogecoin, dashcoin, python',
keywords='martexcoin, bitcoin, wallet, litecoin, hd-wallet, dogecoin, dashcoin, python',
packages = find_packages(exclude=['contrib', 'docs', 'tests', 'demo', 'demos', 'examples']),
package_data={'': ['AUTHORS', 'LICENSE']},
install_requires=[
Expand Down