wipeCrossSigning method

Future<void> wipeCrossSigning(
  1. bool wipe
)

Implementation

Future<void> wipeCrossSigning(bool wipe) async {
  if (state != BootstrapState.askWipeCrossSigning) {
    throw BootstrapBadStateException();
  }
  if (wipe) {
    state = BootstrapState.askSetupCrossSigning;
  } else {
    await client.dehydratedDeviceSetup(newSsssKey!);
    checkOnlineKeyBackup();
  }
}