python-tuf/tuf/api
Jussi Kukkonen 37a4d41aad Metadata API: Implement threshold verification
The delegating Metadata (root or targets) verifies that the delegated
metadata is signed by required threshold of keys for the delegated
role.

Calling the function on non-delegator-metadata or giving a rolename
that is not actually delegated by the delegator is considered a
programming error and ValueError is raised.

If the threshold is not reached, UnsignedMetadataError is raised.

Tweak type annotation of Delegations.keys to match the one for
Root.keys (so they can be assigned to same local variable).

Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
2021-07-05 15:13:00 +03:00
..
serialization Metadata API: Use TYPE_CHECKING for cyclic import 2021-05-19 14:26:55 +03:00
__init__.py tuf/api: Expose tuf.api as a package 2020-10-15 14:35:14 +01:00
metadata.py Metadata API: Implement threshold verification 2021-07-05 15:13:00 +03:00
pylintrc Metadata API/pylintrc: Use old style logging 2021-05-11 11:47:38 +03:00