Skip to main content

plan_ceremony

Function plan_ceremony 

Source
pub fn plan_ceremony(
    request: &CeremonyRequest,
    detection: &Result<Vec<DetectedToken>, DetectionError>,
) -> CeremonyPlan
Expand description

Decide what to do, given a detection result.

A software root is only ever chosen when no token was found, or when the operator explicitly asked for one. A detection failure blocks rather than degrades: not knowing whether hardware is present is not the same as knowing it is absent.