ethers.js/src.ts/hash/id.ts

7 lines
187 B
TypeScript
Raw Normal View History

2022-09-05 23:14:43 +03:00
import { keccak256 } from "../crypto/keccak.js";
import { toUtf8Bytes } from "../utils/index.js";
export function id(value: string): string {
return keccak256(toUtf8Bytes(value));
}