wipeOnlineKeyBackup method

void wipeOnlineKeyBackup(
  1. bool wipe
)

Implementation

void wipeOnlineKeyBackup(bool wipe) {
  if (state != BootstrapState.askWipeOnlineKeyBackup) {
    throw BootstrapBadStateException();
  }
  if (wipe) {
    state = BootstrapState.askSetupOnlineKeyBackup;
  } else {
    state = BootstrapState.done;
  }
}