ethers.js/lib.commonjs/hash/id.js

10 lines
341 B
JavaScript
Raw Normal View History

2022-09-05 23:57:11 +03:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.id = void 0;
2022-09-16 05:58:45 +03:00
const index_js_1 = require("../crypto/index.js");
const index_js_2 = require("../utils/index.js");
2022-09-05 23:57:11 +03:00
function id(value) {
2022-09-16 05:58:45 +03:00
return (0, index_js_1.keccak256)((0, index_js_2.toUtf8Bytes)(value));
2022-09-05 23:57:11 +03:00
}
exports.id = id;
//# sourceMappingURL=id.js.map