Skip to main content

ensure_service_key_sidecars

Function ensure_service_key_sidecars 

Source
pub fn ensure_service_key_sidecars(
    service_dir: &Path,
    service_key: &SigningKey,
) -> Result<()>
Expand description

Write the public sidecars for a service signing key next to its seed:

Both are public trust material (mode 0644) derived from the key’s public half only; the seed never appears in either. Idempotent: a sidecar whose content already matches is left untouched.