-
Notifications
You must be signed in to change notification settings - Fork 281
Closed
Labels
Description
We tried to fix issues with this in #1478 but apparently failed. Role keyids in data that we deserialize may be unsorted: We must preserve this order as it affects canonical json. Currently we put the keyids in a set which sorts them.
I suppose we have to make Role.keyids a list again: The only "ordered set" in python seems to be a OrderedDict with keys only -- and that would look weird in an API.
The downside of making Role.keyids a list is that now duplicates could be added to Role.keyids . This should not be a big worry as there is proper API for it: Root.add_key()
joshuagl