diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-09-28 22:47:28 +0200 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2021-09-28 23:47:11 +0200 |
commit | 35e3fdcee8d3660998cb8a7a6959e0a56255f425 (patch) | |
tree | 405fce495400fc5698e775e09905906aaf32d56a | |
parent | fef460586e847e378a197381ef1ae3a64e6ea38b (diff) |
removed unused Trunnel structure
-rw-r--r-- | doc/api.md | 18 |
1 files changed, 5 insertions, 13 deletions
@@ -93,21 +93,13 @@ an [attack](https://git.sigsum.org/sigsum/tree/archive/2021-08-10-witnessing-bro in multi-log ecosystems. #### 2.3.2 - (Co)signed tree head -A signed tree head contains a tree head and a signature. -``` -struct signed_tree_head { - struct tree_head tree_head; - u8 signature[64]; -}; -``` - -`tree_head` describes a log's state, see Section 2.3.1. +A signed tree head is composed of a tree head and a signature. This structure +does not have a Trunnel definition because it is neither signed nor logged. -`signature` is a log's signature over `tree_head`. +Logs and witnesses sign the same `tree_head` structure, see Section 2.3.1. -A witness cosigns the same serialized _tree head_. Note that tree heads are -scoped to a specific log to ensure that a witness signature for log X cannot be -confused with a witness signature for log Y. +Note that tree heads are scoped to a specific log to ensure that a witness +signature for log X cannot be confused with a witness signature for log Y. A witness must not cosign a tree head if it is inconsistent with prior history or if the timestamp is backdated more than 5 minutes. A witness can be viewed |