diff --git a/lbry/extras/daemon/daemon.py b/lbry/extras/daemon/daemon.py index bac6c3e6e..c67a5b7e4 100644 --- a/lbry/extras/daemon/daemon.py +++ b/lbry/extras/daemon/daemon.py @@ -2914,7 +2914,7 @@ class Daemon(metaclass=JSONRPCServerType): wallet, channel_account_id, channel_id, channel_name, for_signing=True ) timestamp = str(int(time.time())) - signature = signing_channel.sign_data(unhexlify(hexdata), timestamp) + signature = signing_channel.sign_data(unhexlify(str(hexdata)), timestamp) return { 'signature': signature, 'signing_ts': timestamp diff --git a/tests/integration/claims/test_claim_commands.py b/tests/integration/claims/test_claim_commands.py index e8b1e0d3f..b5aeefdd0 100644 --- a/tests/integration/claims/test_claim_commands.py +++ b/tests/integration/claims/test_claim_commands.py @@ -1233,6 +1233,8 @@ class ChannelCommands(CommandTestCase): signature2 = await self.out(self.daemon.jsonrpc_channel_sign(channel_id=channel.claim_id, hexdata=data_to_sign)) self.assertTrue(verify(channel, unhexlify(data_to_sign), signature1)) self.assertTrue(verify(channel, unhexlify(data_to_sign), signature2)) + signature3 = await self.out(self.daemon.jsonrpc_channel_sign(channel_id=channel.claim_id, hexdata=99)) + self.assertTrue(verify(channel, unhexlify('99'), signature3)) async def test_channel_export_import_before_sending_channel(self): # export