ethers.js/packages/hash/lib/id.js
2022-04-11 17:14:19 -04:00

6 lines
207 B
JavaScript

import { keccak256 } from "@ethersproject/crypto";
import { toUtf8Bytes } from "@ethersproject/strings";
export function id(value) {
return keccak256(toUtf8Bytes(value));
}
//# sourceMappingURL=id.js.map