참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function id(value): string
A simple hashing function which operates on UTF-8 strings to compute an 32-byte identifier. This simply computes the UTF-8 bytes and computes the keccak256.

Parameters

ParameterTypeDescription
valuestringThe string to hash.

Returns

string The 32-byte identifier.

Example

id('hello world');

Source

hash/id.ts:19