Skip to content

Commit

Permalink
More ergonomic verify API
Browse files Browse the repository at this point in the history
Signed-off-by: Mihai Maruseac <[email protected]>
  • Loading branch information
mihaimaruseac committed May 28, 2024
1 parent 2fcab4a commit 86e06bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions model_signing/manifest/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,11 @@ def extract_from_untrusted(file: pathlib.Path) -> Self:
pass

@abstractmethod
def verify(self, objects: list[ManifestItem]) -> bool:
"""Verifies the integrity of the given objects and any constraints."""
def verify(self, only_for_objects: list[ManifestItem]) -> bool:
"""Verifies the integrity of the given objects and any constraints.
If the list of objects is empty, validate all hashes for all objects.
"""
pass

@abstractmethod
Expand Down

0 comments on commit 86e06bf

Please sign in to comment.