ethers.js/packages/hash/lib/id.js

6 lines
207 B
JavaScript
Raw Permalink Normal View History

2022-04-11 17:14:19 -04:00
import { keccak256 } from "@ethersproject/crypto";
import { toUtf8Bytes } from "@ethersproject/strings";
export function id(value) {
return keccak256(toUtf8Bytes(value));
}
//# sourceMappingURL=id.js.map