Skip to main content
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
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

Returns

string The message digest.

Example

Source

hash/message.ts:39