-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Labels
discussionDiscussions related to the design, implementation and operation of the projectDiscussions related to the design, implementation and operation of the project
Description
verify_delegate() is currently an instance method of Metadata. It could be an instance method of Signed since it does not need anything from metadata and since this would lead to cleaner code.
- Generally code that uses tuf.repository can mostly look clean as it does not need to deal with the actual
Metadata:This no longer works if one wants to verify a delegate just because of API designroot = repo.root() print (f"root version is {root.version}") - We could add a
Signed.verify_delegate()and similar code should work:root = repo.root() root.verify_delegate("targets", metadata) - nothing prevents leaving
Metadata.verify_delegate()in place as a deprecated method
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
discussionDiscussions related to the design, implementation and operation of the projectDiscussions related to the design, implementation and operation of the project