recoverEthMessageSigner function
Implementation
String recoverEthMessageSigner({
required String message,
required String signature,
}) {
final messageHash = _createEthStyleMessageHash(message);
final sig = _parseEthSignature(signature);
final recoveredSignerPubKey = recoverPublicKey(messageHash, sig);
final recoveredSignerAddress =
publicKeyToAddress(recoveredSignerPubKey).toHex;
return toChecksumAddress("0x" + recoveredSignerAddress);
}