Skip to main content

local_self_root

Function local_self_root 

Source
pub fn local_self_root(ctx: &AuthsContext) -> Option<String>
Expand description

The verifier’s own root identity DID, implicitly trusted for its own verifications.

Self-trust is the floor of the trust model: a verifier always trusts keys it itself controls, so the signer can verify their own commits and artifacts with zero pinning ceremony. Returns None when no local identity exists (behavior is then unchanged — only explicit pins apply). The returned DID resolves through the same KEL replay as any pinned root; this adds a root, never a shortcut around verification.

Args:

  • ctx: Auths context (identity storage).

Usage:

if let Some(own_root) = local_self_root(&ctx) {
    pinned_roots.push(own_root);
}