ethers.js/packages/keccak256/index.js
2019-05-14 18:48:48 -04:00

9 lines
274 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sha3 = require("js-sha3");
var bytes_1 = require("@ethersproject/bytes");
function keccak256(data) {
return '0x' + sha3.keccak_256(bytes_1.arrayify(data));
}
exports.keccak256 = keccak256;