You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the sample Key IDs in the 1.0 spec were not updated
to the TUF 1.0 algorithm. For example:
```
>>> key_meta = { "keytype": "ed25519", "keyval": { "public": "72378e5bc588793e58f81c8533da64a2e8f1565c1fcc7f253496394ffc52542c" } }
>>> key_update_data = securesystemslib.formats.encode_canonical(key_meta)
>>> digest_object = securesystemslib.hash.digest("sha256")
>>> digest_object.update(key_update_data.encode('utf-8'))
>>> digest_object.hexdigest()
'1a2b4110927d4cba257262f614896179ff85ca1f1353a41b5224ac474ca71cb4'
>>>
>>> key_meta = { "keytype": "ed25519", "scheme": "ed25519", "keyval": { "public": "72378e5bc588793e58f81c8533da64a2e8f1565c1fcc7f253496394ffc52542c" } }
>>> key_update_data = securesystemslib.formats.encode_canonical(key_meta)
>>> digest_object = securesystemslib.hash.digest("sha256")
>>> digest_object.update(key_update_data.encode('utf-8'))
>>> digest_object.hexdigest()
'1bf1c6e3cdd3d3a8420b19199e27511999850f4b376c4547b2f32fba7e80fca3'
```
This updates the keys to be calculated with the new algorithm,
which includes the `"method"` in the key metadata.
0 commit comments