hashMessage static method
Implementation
static Uint8List hashMessage(String message) {
return keccak256(
Uint8List.fromList(
utf8.encode(
[
'\x19Ethereum Signed Message:\n',
message.length.toString(),
message,
].join(),
),
),
);
}