checkSeedExist method

Future<bool> checkSeedExist(
  1. EVMKeyType keyType,
  2. String address
)

Implementation

Future<bool> checkSeedExist(EVMKeyType keyType, String address) async {
  switch (keyType) {
    case EVMKeyType.mnemonic:
      return _storage.encryptedMnemonics.val[address] != null;
    case EVMKeyType.privateKey:
      return _storage.encryptedPrivateKeys.val[address] != null;
    default:
      return false;
  }
}