Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Mar 26, 2023
1 parent eb7c807 commit ebe81dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods/sha1/noble.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { sha1 } from "@noble/hashes/sha1"
import type { sha1 } from "@noble/hashes/sha1"
import { Adapter } from "./sha1.js"

export function fromNoble(noble: typeof sha1): Adapter {

class Hasher {
hash = sha1.create()
hash = noble.create()

update(bytes: Uint8Array) {
this.hash.update(bytes)
Expand Down

0 comments on commit ebe81dd

Please sign in to comment.