You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockvote/node_modules/@ethersproject/keccak256/src.ts/index.ts

10 lines
211 B

"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));
}