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.