verifySignature method

Future<Map> verifySignature({
  1. required String message,
  2. required String signature,
})

get signer of a signature. so we can verify the signer.

Implementation

Future<Map> verifySignature(
    {required String message, required String signature}) async {
  final res = await serviceRoot.webView!.evalJavascript(
      'eth.keyring.verifySignature("$message", "$signature")');
  return res;
}