message
and
computes the keccak256 digest.
If message
is a string, it is converted to its UTF-8 bytes first. To compute the digest of a
DataHexString, it must be converted to bytes.
Parameter | Type | Description |
---|---|---|
message | string | Uint8Array | The message to hash. |
string
The message digest.