RepositorySimulator: add support for delegated hash bins
See original GitHub issueDescription of issue or feature request:
Currently repository_tool.py
provides an easy way to distribute a large number of target files over multiple delegated roles (hashed bins). A feature described in PEP458 that would be used in warehouse. https://github.com/theupdateframework/python-tuf/blob/2206fc917e46ff584dcae75e640e1144c8b9f078/tuf/repository_tool.py#L2494
Having such functionality in RepositorySimulator
that uses metadata api
will be useful for testing the newer code.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Design repository library · Issue #1136 · theupdateframework/python ...
lukpueh added this to the Repository Library Refactor milestone on Sep 10, 2020 ... RepositorySimulator: add support for delegated hash bins #1639.
Read more >Blockchain Gateways, Bridges and Delegated Hash-Locks
Abstract: In the current work we discuss the notion of gateways as a means for interoperability across different blockchain systems.
Read more >hitachi cml190sxw samsung: Topics by WorldWideScience.org
With confusing documentation and baffling support, the references provided by phone manufacturers can be intimidating. Enter Samsung Galaxy S 6 For Dummies!
Read more >RepositorySimulator: add support for delegated hash bins ...
Currently repository_tool.py provides an easy way to distribute a large number of target files over multiple delegated roles (hashed bins). A feature described ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The hashed bin delegation code in repository_tool was cleaned up and simplified when the Warehouse work kicked off. See, for example, https://github.com/theupdateframework/python-tuf/pull/1007 and https://github.com/theupdateframework/python-tuf/pull/1012. Specifically:
delegate_hashed_bins()
add_target_to_bin()
remove_target_from_bin()
As a follow-on we refactored some of the helper functions to be public API (see https://github.com/theupdateframework/python-tuf/pull/1058) in repository_lib for use with an early iteration of the metadata API:
create_bin_name()
get_bin_numbers()
find_bin_for_target_hash()
get_target_hash()
absolutely true as the mid/long term goal but it might still make sense to implement in RepositorySimulator first: