verifyPersonalMessage method

bool verifyPersonalMessage(
  1. List<int> messageDigest,
  2. List<int> signature, {
  3. bool hashMessage = true,
  4. int? payloadLength,
})

Verifies the signature of a personal message using the public key.

Optionally, hashMessage can be set to false to skip hashing the message before verification. Optionally, payloadLength can be set to specify the payload length for the message.

Implementation

bool verifyPersonalMessage(List<int> messageDigest, List<int> signature,
    {bool hashMessage = true, int? payloadLength}) {
  final verifier = ETHVerifier.fromKeyBytes(toBytes());
  return verifier.verifyPersonalMessage(messageDigest, signature,
      hashMessage: hashMessage, payloadLength: payloadLength);
}