pub struct KeyId {
pub suite: SignatureSuite,
pub name: String,
}Expand description
Canonical key identity: the (suite, name) pair (REQ-708).
Constructed via KeyId::parse, which normalises the surface spelling;
derived equality/ordering are therefore over canonical identity, and the
original spelling is never retained.
Fields§
§suite: SignatureSuite§name: StringImplementations§
Source§impl KeyId
impl KeyId
Sourcepub fn from_multikey(key: &Multikey) -> Result<Self, MultikeyError>
pub fn from_multikey(key: &Multikey) -> Result<Self, MultikeyError>
Explicit opt-in conversion from public Multikey material to a signing identity. Existing parsed principals and attestation preimages are not reinterpreted. Recognition does not establish possession or host trust.
Sourcepub fn parse(spelling: &str) -> Result<Self, KeyIdError>
pub fn parse(spelling: &str) -> Result<Self, KeyIdError>
Parse @[suite:]name into canonical identity (CON-700).
An omitted suite normalises to ed25519 here, at parse — no later
consumer ever sees an “unmarked” key. This is the pure
canonicalisation function cast code can adopt (SPEC-015 review
finding 4).
Sourcepub fn canonical_spelling(&self) -> String
pub fn canonical_spelling(&self) -> String
The canonical spelling, suite always explicit: @<suite>:<name>.
Attestation preimages use this form so both verifier classes (envelope holder, full-message holder) reconstruct identical bytes regardless of how the sender spelled the key (REQ-701).