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 Either.right(vaultStore);
  } catch (e) {
    return Either.left(
        WalletApiFailure.failedToLoadWallet(context: e.toString()));
  }
}