ethers.js/src.ts/hash/id.ts
2022-09-05 16:14:43 -04:00

7 lines
187 B
TypeScript

import { keccak256 } from "../crypto/keccak.js";
import { toUtf8Bytes } from "../utils/index.js";
export function id(value: string): string {
return keccak256(toUtf8Bytes(value));
}