pub struct TrustedKey {
pub kid: String,
pub alg: SigAlg,
pub key_material: String,
}Expand description
A public key trusted to sign peer AgentCards, keyed by kid.
This is the trust anchor for card signature verification: the operator configures
one entry per peer agent whose signature should be honored. There is no automatic
key discovery (see the module docs for why jku fetch is deferred).
key_material accepts either a JWK JSON object ({"kty":"EC","crv":"P-256","x":...,"y":...})
or a PEM-encoded SubjectPublicKeyInfo. Parsing happens lazily on each verification
attempt — verification is not on a hot path (AgentRegistry::discover has no runtime
caller yet, see D3), so caching the parsed key is not worth the complexity.
Fields§
§kid: StringKey identifier, matched against the kid in a signature’s protected header.
alg: SigAlgAlgorithm this key is trusted to verify.
key_material: StringJWK JSON or PEM-encoded public key material.
Trait Implementations§
Source§impl Clone for TrustedKey
impl Clone for TrustedKey
Source§fn clone(&self) -> TrustedKey
fn clone(&self) -> TrustedKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more