Rev4074, Fix Ecdsa functions in cryptmessage plugin
This commit is contained in:
parent
d7d75a1fe8
commit
4bfd4bd714
2 changed files with 3 additions and 3 deletions
|
@ -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")
|
||||
|
|
|
@ -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 = {}
|
||||
|
|
Loading…
Reference in a new issue