diff --git a/lbry/extras/daemon/comment_client.py b/lbry/extras/daemon/comment_client.py index 3791f91f6..c836978da 100644 --- a/lbry/extras/daemon/comment_client.py +++ b/lbry/extras/daemon/comment_client.py @@ -26,16 +26,16 @@ def is_comment_signed_by_channel(comment: dict, channel: Output, sign_comment_id if isinstance(channel, Output): try: signing_field = comment['comment_id'] if sign_comment_id else comment['comment'] - return verify(channel, signing_field.encode(), comment) + return verify(channel, signing_field.encode(), comment, cid2hash(comment['channel_id'])) except KeyError: pass return False -def verify(channel, data, signature): +def verify(channel, data, signature, channel_hash=None): pieces = [ signature['signing_ts'].encode(), - channel.claim_hash, + channel_hash or channel.claim_hash, data ] return Output.is_signature_valid(