"use strict";

import sha3 = require("js-sha3");

import { arrayify, BytesLike } from "@ethersproject/bytes";

export function keccak256(data: BytesLike): string {
    return '0x' + sha3.keccak_256(arrayify(data));
}

"use strict";

import sha3 from "js-sha3";

import { arrayify, BytesLike } from "@ethersproject/bytes";

export function keccak256(data: BytesLike): string {
    return '0x' + sha3.keccak_256(arrayify(data));
}

Fix non-ES6 import in keccak256.
Fix non-ES6 import in keccak256.
