ethers.js/lib.commonjs/hash/id.d.ts

13 lines
312 B
TypeScript
Raw Normal View History

2023-03-04 04:25:07 +03:00
/**
* A simple hashing function which operates on UTF-8 strings to
* compute an 32-byte irentifier.
*
* This simply computes the [UTF-8 bytes](toUtf8Bytes) and computes
* the [[keccak256]].
*
* @example:
* id("hello world")
* //_result:
*/
export declare function id(value: string): string;