Skip to content

Commit

Permalink
feat: replace use of as-sha256 in noble hasher for digest64HashObjects
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Jan 6, 2025
1 parent ba53bd3 commit 2b7b280
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/persistent-merkle-tree/src/hasher/noble.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {sha256} from "@noble/hashes/sha256";
import {byteArrayIntoHashObject} from "@chainsafe/as-sha256";
import {digest64HashObjects, byteArrayIntoHashObject} from "@chainsafe/as-sha256";
import type {Hasher} from "./types.js";
import {
BLOCK_SIZE,
Expand Down Expand Up @@ -55,7 +55,7 @@ export const hasher: Hasher = {
}

for (const hc of hcArr) {
hasher.digest64HashObjects(hc.src0, hc.src1, hc.dest);
hc.dest.applyHash(digest64HashObjects(hc.src0, hc.src1));
}
}
},
Expand Down

0 comments on commit 2b7b280

Please sign in to comment.