Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/onchfs-js/src/utils/keccak.ts
Original file line number Diff line number Diff line change
@@ -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))
}