Get privatekey from master seed CLI action
This commit is contained in:
parent
0533f29e7a
commit
ff3fdd4c72
2 changed files with 9 additions and 0 deletions
|
@ -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')
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue