diff --git a/lib/commands.py b/lib/commands.py index 4dfac4f7b..3a2383674 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -407,6 +407,7 @@ class Commands: def verifymessage(self, address, signature, message): """Verify a signature.""" sig = base64.b64decode(signature) + message = util.to_bytes(message) return bitcoin.verify_message(address, sig, message) def _mktx(self, outputs, fee, change_addr, domain, nocheck, unsigned, rbf, password, locktime=None):