Get privatekey from master seed CLI action

This commit is contained in:
shortcutme 2018-03-19 02:58:38 +01:00
parent 0533f29e7a
commit ff3fdd4c72
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
2 changed files with 9 additions and 0 deletions

View File

@ -171,6 +171,11 @@ class Config(object):
action.add_argument('sign', help='Signiture for message')
action.add_argument('address', help='Signer\'s address')
# Crypt GetPrivatekey
action = self.subparsers.add_parser("cryptGetPrivatekey", help='Generate a privatekey from master seed')
action.add_argument('master_seed', help='Source master seed')
action.add_argument('site_address_index', help='Site address index', type=int)
action = self.subparsers.add_parser("getConfig", help='Return json-encoded info')
action = self.subparsers.add_parser("testConnection", help='Testing')
action = self.subparsers.add_parser("testAnnounce", help='Testing')

View File

@ -428,6 +428,10 @@ class Actions(object):
from Crypt import CryptBitcoin
print CryptBitcoin.verify(message, address, sign)
def cryptGetPrivatekey(self, master_seed, site_address_index=None):
from Crypt import CryptBitcoin
print CryptBitcoin.hdPrivatekey(master_seed, site_address_index)
# Peer
def peerPing(self, peer_ip, peer_port=None):
if not peer_port: