hasEncryptionSetup static method

Future<bool> hasEncryptionSetup()

Check if verification key exists (meaning encryption was set up).

Implementation

static Future<bool> hasEncryptionSetup() async {
  try {
    final verificationKey = await KeyManager.getVerificationKey();
    return verificationKey.isNotEmpty;
  } catch (_) {
    return false;
  }
}