メインコンテンツへスキップ
注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
Computes the Quai Network equivalent of the EIP-191 personal-sign message digest to sign. This prefixes the message with MessagePrefix and the decimal length of 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.

Parameters

ParameterTypeDescription
messagestring | Uint8ArrayThe message to hash.

Returns

string The message digest.

Example

Source

hash/message.ts:39