retryVault static method

Future<bool> retryVault()

Retries opening a vault that was locked at startup. Returns true once it is usable.

Implementation

static Future<bool> retryVault() async {
  await _ensure();
  final _BucketIndex index = _index(UStorageBucket.vault);
  if (index.available) return true;
  index
    ..available = true
    ..entries.clear();
  await _loadIndex(index);
  return index.available;
}