Skip to content

Commit

Permalink
fix: ♻️ Addressing comments
Browse files Browse the repository at this point in the history
Signed-off-by: Nishant Arora <1895906+whizzzkid@users.noreply.github.com>
  • Loading branch information
whizzzkid committed Oct 30, 2023
1 parent 23a5d5c commit 81ad51b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/hash-importer.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/* global globalThis */
import { digest as blake3Digest } from 'blake3-multihash'
import { keccak256 } from 'js-sha3'
import { type Hasher, from } from 'multiformats/hashes/hasher'
import * as sha2 from 'multiformats/hashes/sha2'
Expand Down Expand Up @@ -40,6 +39,7 @@ export default async function getHasherForCode (code: number): Promise<Supported
name: 'blake3-multihash',
code,
encode: async (data: Uint8Array): Promise<Uint8Array> => {
const { digest: blake3Digest } = await import('blake3-multihash')
const { digest } = await blake3Digest(data)
return digest
}
Expand Down

0 comments on commit 81ad51b

Please sign in to comment.