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
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"
31 changes: 31 additions & 0 deletions pywallet/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,34 @@ class QtumTestNet(object):
EXT_PUBLIC_KEY = 0x043587CF
EXT_SECRET_KEY = 0x04358394
BIP32_PATH = "m/44'/88'/0'/"


class RavenMainNet(object):
"""Raven MainNet version bytes

Primary version bytes from:
https://github.com/ravenproject/ravencoin/blob/master/src/chainparams.cpp
"""
NAME = "Raven Main Net"
COIN = "RVN"
SCRIPT_ADDRESS = 0x7A # int(0x6e) = 122
PUBKEY_ADDRESS = 0x3C # int(0x78) = 60
SECRET_KEY = 0x80 # int(0xef) = 128
EXT_PUBLIC_KEY = 0x0488B21E
EXT_SECRET_KEY = 0x0488ADE4
BIP32_PATH = "m/44'/175'/0'/"

class RavenTestNet(object):
"""Raven TestNet version bytes

Primary version bytes from:
https://github.com/ravenproject/ravencoin/blob/master/src/chainparams.cpp
"""
NAME = "Raven Test Net"
COIN = "RVN"
SCRIPT_ADDRESS = 0xC4 # int(0x6e) = 196
PUBKEY_ADDRESS = 0x6F # int(0x78) = 111
SECRET_KEY = 0xEF # int(0xef) = 239
EXT_PUBLIC_KEY = 0x043587CF
EXT_SECRET_KEY = 0x04358394
BIP32_PATH = "m/44'/175'/0'/"
4 changes: 4 additions & 0 deletions pywallet/utils/bip32.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,10 @@ def get_network(self, network):
response = QtumMainNet
elif network == 'qtum_testnet' or network == 'QTUMTEST':
response = QtumTestNet
elif network == 'raven' or network == 'RVN':
response = RavenMainNet
elif network == 'raven_testnet' or network == 'RVNTEST':
response = RavenTestNet
else:
response = network
return response
Expand Down
4 changes: 4 additions & 0 deletions pywallet/wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def get_network(network='btctest'):
return QtumMainNet
elif network == "qtum_testnet" or network == "qtumtest":
return QtumTestNet
elif network == "raven" or network == "rvn":
return RavenMainNet
elif network == "raven_testnet" or network == "rvntest":
return RavenTestNet

return BitcoinTestNet

Expand Down