Skip to content

Commit

Permalink
Metadata API: Improve docs for RootVerificationResult
Browse files Browse the repository at this point in the history
Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
  • Loading branch information
jku committed Feb 5, 2024
1 parent f60fb4a commit 42d3a75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tuf/api/metadata.py
Expand Up @@ -653,8 +653,8 @@ class VerificationResult:
Attributes:
threshold: Number of required signatures.
signed: dict of keyid:Key containing the keys that have signed.
unsigned: dict of keyid:Key containing the keys that have not signed.
signed: dict of keyid to Key, containing keys that have signed.
unsigned: dict of keyid to Key, containing keys that have not signed.
"""

threshold: int
Expand All @@ -675,8 +675,8 @@ class RootVerificationResult:
"""Signature verification result for root metadata.
Root must be verified by itself and the previous root version. This
dataclass represents that combination. For the edge case of first version
of root, the same VerificationResult can be used twice.
dataclass represents both results. For the edge case of first version
of root, these underlying results are identical.
Note that `signed` and `unsigned` correctness requires the underlying
VerificationResult keys to not conflict (no reusing the same keyid for
Expand Down

0 comments on commit 42d3a75

Please sign in to comment.