diff --git a/src/Config.py b/src/Config.py index 98052d39..4304c51e 100644 --- a/src/Config.py +++ b/src/Config.py @@ -165,6 +165,12 @@ class Config(object): action.add_argument('message', help='Message to sign') action.add_argument('privatekey', help='Private key') + # Crypt Verify + action = self.subparsers.add_parser("cryptVerify", help='Verify message using Bitcoin public address') + action.add_argument('message', help='Message to verify') + action.add_argument('sign', help='Signiture for message') + action.add_argument('address', help='Signer\'s address') + action = self.subparsers.add_parser("getConfig", help='Return json-encoded info') # Config parameters diff --git a/src/main.py b/src/main.py index 8cd0b789..8e98f486 100644 --- a/src/main.py +++ b/src/main.py @@ -416,6 +416,10 @@ class Actions(object): from Crypt import CryptBitcoin print CryptBitcoin.sign(message, privatekey) + def cryptVerify(self, message, sign, address): + from Crypt import CryptBitcoin + print CryptBitcoin.verify(message, address, sign) + # Peer def peerPing(self, peer_ip, peer_port=None): if not peer_port: