checkPassword method

Future<bool> checkPassword(
  1. String? pubKey,
  2. dynamic pass
)

check password of account

Implementation

Future<bool> checkPassword(String? pubKey, pass) async {
  final res = await serviceRoot.webView!
      .evalJavascript('keyring.checkPassword("$pubKey", "$pass")');
  if (res == null) {
    return false;
  }
  return true;
}