Skip to main content

rotate_if_needed

Function rotate_if_needed 

Source
pub async fn rotate_if_needed<Context>(
    context: &Context,
) -> Result<bool, KeyPackageMaintenanceError>
where Context: IdentityContext,
Expand description

Upload a fresh key package when rotation is due and return whether it occurred. A confirmed receipt starts retirement of keys published earlier by the backend.