Viewing File: /home/ubuntu/todaykat-frontend-base/node_modules/@ethersproject/keccak256/src.ts/index.ts

"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));
}
Back to Directory File Manager