Rename 'meta' to 'unsigned'

This commit is contained in:
Mark Haines 2014-10-17 16:50:04 +01:00
parent 4d1a7624f4
commit c5cec1cc77
4 changed files with 18 additions and 17 deletions

View file

@ -47,7 +47,9 @@ def check_event_pdu_content_hash(pdu, hash_algorithm=hashlib.sha256):
def _compute_content_hash(pdu, hash_algorithm):
pdu_json = pdu.get_dict()
pdu_json.pop("meta", None)
#TODO: Make "age_ts" key internal
pdu_json.pop("age_ts")
pdu_json.pop("unsigned", None)
pdu_json.pop("signatures", None)
hashes = pdu_json.pop("hashes", {})
pdu_json_bytes = encode_canonical_json(pdu_json)