Rev4074, Fix Ecdsa functions in cryptmessage plugin

This commit is contained in:
shortcutme 2019-04-20 09:48:56 +02:00
parent d7d75a1fe8
commit 4bfd4bd714
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
2 changed files with 3 additions and 3 deletions

View file

@ -117,12 +117,12 @@ class UiWebsocketPlugin(object):
if privatekey is None: # Sign using user's privatekey
privatekey = self.user.getAuthPrivatekey(self.site.address)
self.response(to, CryptBitcoin.sign(data.encode("utf8"), privatekey))
self.response(to, CryptBitcoin.sign(data, privatekey))
# Verify data using ECDSA (address is either a address or array of addresses)
# Return: bool
def actionEcdsaVerify(self, to, data, address, signature):
self.response(to, CryptBitcoin.verify(data.encode("utf8"), address, signature))
self.response(to, CryptBitcoin.verify(data, address, signature))
@PluginManager.registerTo("User")

View file

@ -13,7 +13,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.7.0"
self.rev = 4073
self.rev = 4074
self.argv = argv
self.action = None
self.pending_changes = {}