def _validate(self, message):
    key = self.keys[message.tags['signature']['origin']]['public']
    signature = base64.b64decode(message.tags['signature'].pop('hash'))
    payload = serialize(message)
    validate(payload, signature, key)
    message.tags.pop('signature')
def _validate(self, message):
    key = self.keys[message.tags['signature']['origin']]['public']
    signature = base64.b64decode(message.tags['signature'].pop('hash'))
    payload = serialize(message)
    validate(payload, signature, key)
    message.tags.pop('signature')