ethers.js/src.ts/hash/id.ts
2022-09-15 22:31:00 -04:00

7 lines
186 B
TypeScript

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