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

6 lines
208 B
JavaScript
Raw Permalink Normal View History

2020-10-18 23:19:16 -04:00
import { keccak256 } from "@ethersproject/keccak256";
import { toUtf8Bytes } from "@ethersproject/strings";
export function id(text) {
return keccak256(toUtf8Bytes(text));
}
//# sourceMappingURL=id.js.map