fromFile static method

dynamic fromFile(
  1. String keyStore,
  2. String? passphrase
)

Implementation

static fromFile(String keyStore, String? passphrase) async {
  // String newPrvKey = await decrypt(json.decode(keyStore), passphrase);
  try {
    String? newPrvKey = await asyncDecrypt(json.decode(keyStore), passphrase);
    return new Account(newPrvKey);
  } catch (e) {
    rethrow;
  }
}