checkPassword method

Future<bool> checkPassword(
  1. EthWalletData account,
  2. String pass
)

check password of account

Implementation

Future<bool> checkPassword(EthWalletData account, String pass) async {
  try {
    Wallet.fromJson(jsonEncode(account.toJson()), pass);
    return true;
  } catch (err) {
    print(err.toString());
    // ignore
  }
  return false;
}