def verify_item(item):
    try:
        item_no_sig = copy.deepcopy(item)
        raw_sig = item_no_sig['_p4p2p']['signature']
        signature = base64.decodebytes(raw_sig.encode('utf-8'))
        public_key = RSA.importKey(item_no_sig['_p4p2p']['public_key'])
        del item_no_sig['_p4p2p']['signature']
        root_hash = _get_hash(item_no_sig)
        verifier = PKCS1_v1_5.new(public_key)
        return verifier.verify(root_hash, signature)
    except:
        # TODO: do something with this..? (Probably not - tbc)
        pass
    return False
Returns a boolean to indicate if the message can be verified.
dataset/ETHPy150Open ntoll/p4p2p/p4p2p/dht/crypto.py/verify_item