Skip to main content

derived_service_name

Function derived_service_name 

Source
pub fn derived_service_name(
    state: &AcceptedIdentityState,
    now_unix_ms: i64,
) -> Option<&str>
Expand description

The deployment service name an accepted state proves, if any.

Capsule #<name> service entries ∩ the registered factory roster (hyprstream_service::get_factory), which must match exactly ONE service, and the state must carry the deployment invariants (successor epoch > 0 and a bounded expiry — the offline provisioner always stacks a bounded successor, so genesis-only/unbounded states are not deployment-shaped). Zero matches — foreign #id entries, no service entries — ambiguous matches, and invariant-violating states all resolve to None: deny, never a best-effort pick.