commit fcbe00f325e4402e1028e5d55cdd0d3822798321
parent a74e49ea31a6c4ff9f218e44df111e0a9d8ae8ca
Author: ThomasV <thomasv@electrum.org>
Date: Wed, 18 Oct 2017 10:41:24 +0200
Merge pull request #3054 from SomberNight/py3_signmessage_cmd_str
py3: signmessage cmd return type
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -405,7 +405,7 @@ class Commands:
"""Sign a message with a key. Use quotes if your message contains
whitespaces"""
sig = self.wallet.sign_message(address, message, password)
- return base64.b64encode(sig)
+ return base64.b64encode(sig).decode('ascii')
@command('')
def verifymessage(self, address, signature, message):