Description
Description of issue or feature request:
As per DSSE signing-spec keyid
field must be optional and treated the same as set-but-empty. Currently, securesystemslib Signature and Key Schema don't have keyid
as optional. create_signature()
and verify_signature()
method in keys.py
require them to create and verify signatures.
Current behavior:
There is no support for keyid
as optional field in securesystemslib formats for SIGNATURE
, or KEY_SCHEMA
(e.g. ANYKEY_SCHEMA
in formats.py).
securesystemslib/securesystemslib/formats.py
Lines 220 to 227 in 6f14522
Expected behavior:
securesystemslib should mark keyid
field as optional, which can be any string not just hex? or provide good alternatives to current methods for creation or verification of signatures that doesn't requires keyid
.
Linked Discussion: in-toto#2 (comment)