hashMessage static method

Uint8List hashMessage(
  1. String message
)

Implementation

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