pub struct SigningKey {
pub key_id: Option<String>,
pub key_scheme: Option<String>,
pub key_type: Option<String>,
pub public_key_value: Option<String>,
}Expand description
This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { “key_id”: “776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0…”, “key_type”: “rsa”, “public_key_value”: “—–BEGIN PUBLIC KEY—–\nMIIBojANBgkqhkiG9w0B…”, “key_scheme”: “rsassa-pss-sha256” } The format for in-toto’s key definition can be found in section 4.2 of the in-toto specification.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key_id: Option<String>key_id is an identifier for the signing key.
key_scheme: Option<String>This field contains the corresponding signature scheme. Eg: “rsassa-pss-sha256”.
key_type: Option<String>This field identifies the specific signing method. Eg: “rsa”, “ed25519”, and “ecdsa”.
public_key_value: Option<String>This field contains the actual public key.
Trait Implementations§
Source§impl Clone for SigningKey
impl Clone for SigningKey
Source§fn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more