readInputFile method

Future<Either<Exception, VaultStore>> readInputFile(
  1. String inputFile
)

Implementation

Future<Either<Exception, VaultStore>> readInputFile(String inputFile) async {
  try {
    final vaultStore = await dataApi.getMainKeyVaultStore(inputFile);
    return vaultStore;
  } catch (e) {
    return Either.left(
        WalletApiFailure.failedToLoadWallet(context: e.toString()));
  }
}