checkSeedExist method

Future<bool> checkSeedExist(
  1. KeyType keyType,
  2. String pubKey
)

Implementation

Future<bool> checkSeedExist(KeyType keyType, String pubKey) async {
  switch (keyType) {
    case KeyType.mnemonic:
      return _storage.encryptedMnemonics.val[pubKey] != null;
    case KeyType.rawSeed:
      return _storage.encryptedRawSeeds.val[pubKey] != null;
    default:
      return false;
  }
}