Skip to content

Commit

Permalink
Add documentation for default_keyid
Browse files Browse the repository at this point in the history
  • Loading branch information
mnm678 committed Apr 3, 2020
1 parent e68fe02 commit ea303af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions securesystemslib/keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,10 @@ def format_metadata_to_key(key_metadata, default_keyid=None):
'scheme': scheme,
'keyval': {'public': '...',
'private': '...'}}
default_keyid:
A default keyid associated with the key metadata. If this is not
provided, the keyid will be calculated by _get_keyid using the default
hash algorithm. If provided, the default keyid can be any string.
<Exceptions>
securesystemslib.exceptions.FormatError, if 'key_metadata' does not conform
Expand Down

0 comments on commit ea303af

Please sign in to comment.