pub(super) fn make_rotation_context(
sync: &SyncedAccountData,
trusted_organization_public_keys: &[PublicKey],
trusted_emergency_access_public_keys: &[PublicKey],
upgrade_token_action: UpgradeTokenAction,
ctx: &mut KeyStoreContext<'_, KeySlotIds>,
) -> Result<RotationContext, RotateUserKeysError>Expand description
Generates the new user key and collects the memberships that get a copy of it.
Returns RotateUserKeysError::UntrustedKey if the rotation needs a public key the user has
not confirmed. A public key does not show who owns it, so the user has to confirm it first.