verifyPersonalMessage method
Verifies an Ethereum signature of a personal message against the message digest.
Parameters:
message: The personal message.signature: The signature bytes.hashMessage: Whether to hash the message before verification (default is true).payloadLength: An optional payload length to include in the message prefix.
Implementation
bool verifyPersonalMessage(
List<int> message,
List<int> signature, {
bool hashMessage = true,
int? payloadLength,
}) {
final List<int> messagaeHash = _hashMessage(
message,
hashMessage: hashMessage,
payloadLength: payloadLength,
);
return _verifyEcdsa(
messagaeHash,
signature.sublist(0, CryptoSignerConst.ecdsaSignatureLength),
);
}