diff --git a/packages/onchfs-js/src/utils/keccak.ts b/packages/onchfs-js/src/utils/keccak.ts index 1547f66..c9dcc2b 100644 --- a/packages/onchfs-js/src/utils/keccak.ts +++ b/packages/onchfs-js/src/utils/keccak.ts @@ -1,9 +1,9 @@ -import { keccak256 } from "js-sha3" +import sha3 from "js-sha3" /** * Hashes some bytes with keccak256. Simple typed wrapper to ease implementation * @param bytes Bytes to hash */ export function keccak(bytes: Uint8Array | string): Uint8Array { - return new Uint8Array(keccak256.digest(bytes)) + return new Uint8Array(sha3.keccak256.digest(bytes)) }