-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As part of the implementation of TAP 15 I had to make sure that ngclient supports target metadata files using succinct hash delegations. Some things to keep in mind while reviewing: - first, it should be noted that when succinct hash info is added inside a particular delegated role this means that every possible target has a bin assigned to it - the "name" attribute for DelegatedRole objects has been changed to optional inside TAP 15, because when succinct hash delegations is used "name" becomes redundant - I have added an additional helper function `DelegatedRole._calculate_rolename" for easier testing - I intentially added more tests inside the "get_rolename_dataset" to showcase how succinct hash delegations is using binary prefix instead of hash prefix. Signed-off-by: Martin Vrachev <[email protected]>
- Loading branch information
Showing
3 changed files
with
165 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters