From 73aa0ea861ea86def159db81b024b13b423afbca Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Tue, 14 Sep 2021 14:33:13 +0200 Subject: signed tree head wire format doesn't include `key_hash` anymore --- siglog-witness.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/siglog-witness.py b/siglog-witness.py index 5a91be2..06e9330 100755 --- a/siglog-witness.py +++ b/siglog-witness.py @@ -111,12 +111,11 @@ def parse_keyval(text): class TreeHead: def __init__(self, sth_data): self._text = parse_keyval(sth_data) - assert(len(self._text) == 5) + assert(len(self._text) == 4) assert('timestamp' in self._text) assert('tree_size' in self._text) assert('root_hash' in self._text) assert('signature' in self._text) - assert('key_hash' in self._text) @property def timestamp(self): @@ -135,7 +134,6 @@ class TreeHead: text += 'tree_size={}\n'.format(self._text['tree_size']) text += 'root_hash={}\n'.format(self._text['root_hash']) text += 'signature={}\n'.format(self._text['signature']) - text += 'key_hash={}\n'.format(self._text['key_hash']) return text.encode('ascii') def serialise(self): -- cgit v1.2.3