-
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.
SuccinctHashDelegations with unique role name id
Add a unique identifier for delegated roles using a succinct hash delegations. This functionality is required by our implementation of Delegations.roles where the keys are DelegatedRole.name attributes and values are DelegatedRole objects and the fact that when succinct hash delegations are used DelegatedRole.name should be populated with "None". Mypy complained that it's possible to have DelegatedRole.name with a value of "None" which is not a string. That's why I had to add special handling for this special case when succinct hash delegations are used and return the name of the first bin as the supposed DelegatedRole.name. Solves: #1943 Signed-off-by: Martin Vrachev <[email protected]>
- Loading branch information
Showing
2 changed files
with
20 additions
and
7 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