Skip to main content

AcceptedStateAuthority

Trait AcceptedStateAuthority 

Source
pub trait AcceptedStateAuthority: Send + Sync {
    // Required method
    fn accepted_state(&self, did: &str) -> Option<AcceptedIdentityState>;
}
Expand description

The daemon-owned accepted-state/currentness authority.

Queried at admission time — never snapshotted into the authenticator — so a state advance (rotation) or lapse between admissions takes effect immediately. Implemented by the daemon over its accepted-state store (DiscoveryService / DuplicityGuard in the hyprstream crate); the blanket Fn impl covers closed-staging fixtures and simple adapters.

Required Methods§

Source

fn accepted_state(&self, did: &str) -> Option<AcceptedIdentityState>

The current accepted state for did, or None if the identity is unknown or has no accepted head.

Implementors§