From 5733ec836348952006bc41b3eb4b33fe84d6d49a Mon Sep 17 00:00:00 2001 From: Ivanq Date: Fri, 19 Apr 2019 22:16:59 +0300 Subject: [PATCH] Fix --- plugins/CryptMessage/CryptMessagePlugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/CryptMessage/CryptMessagePlugin.py b/plugins/CryptMessage/CryptMessagePlugin.py index 5abb95ed..7198ed08 100644 --- a/plugins/CryptMessage/CryptMessagePlugin.py +++ b/plugins/CryptMessage/CryptMessagePlugin.py @@ -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")