The sender address.
The hash of the message.
The Ethers signature.
import { Web3 } from 'web3';
import * as web3Accounts from 'web3-eth-accounts';
const wallet = web3Accounts.create();
const ADDRESS = wallet.address;
const PRIVATE_KEY = wallet.privateKey;
const context = new Web3('some-rpc-url');
const message = "Hello, world!";
const signature = await new Wallet(PRIVATE_KEY).signMessage(message);
const isValidSignature = await utils.isMessageSignatureCorrect(
           web3,
           ADDRESS,
           message,
           signature,
       );
// isValidSignature = true
Returns whether the account abstraction message signature is correct. Signature can be created using EIP1271 or ECDSA.