openExistingSsss method

Future<void> openExistingSsss()

Implementation

Future<void> openExistingSsss() async {
  final newSsssKey = this.newSsssKey;
  if (state != BootstrapState.openExistingSsss || newSsssKey == null) {
    throw BootstrapBadStateException();
  }
  if (!newSsssKey.isUnlocked) {
    throw BootstrapBadStateException('Key not unlocked');
  }
  Logs().v('Maybe cache all...');
  await newSsssKey.maybeCacheAll();
  checkCrossSigning();
}