Skip to main content

resolve_authoritative_alias

Function resolve_authoritative_alias 

Source
pub fn resolve_authoritative_alias(
    classical_did: &Did,
    classical_aka_at9p: &Did,
    verified: &VerifiedCapsule,
) -> Result<AuthoritativeIdentity>
Expand description

Resolve the authoritative identity for classical_did via mutual alsoKnownAs attestation with a GATE-verified did:at9p capsule.

  • classical_did — the classical (did:web / did:key / did:plc) identity the caller reached.
  • classical_aka_at9p — the classical leg’s claim: the did:at9p the classical DID document names in its own alsoKnownAs. Classical-signed, best-effort.
  • verified — the capsule leg: the VerifiedCapsule fetched for classical_aka_at9p and passed by the GATE pipeline. Its own alsoKnownAs is the hybrid-signed reciprocal vouch.

Returns the authoritative at9p identity at PqHybrid assurance when both legs name each other; fail-closed (Err) on any one-way or unattested claim. See the module docs for the full rule.