diff --git a/src/Config.py b/src/Config.py index 1b60eeb3..3928cdf2 100644 --- a/src/Config.py +++ b/src/Config.py @@ -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') diff --git a/src/main.py b/src/main.py index 193c0f8a..7f393a49 100644 --- a/src/main.py +++ b/src/main.py @@ -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: