Skip to content

Commit 2b7b280

Browse files
committed
feat: replace use of as-sha256 in noble hasher for digest64HashObjects
1 parent ba53bd3 commit 2b7b280

File tree

1 file changed

+2
-2
lines changed
  • packages/persistent-merkle-tree/src/hasher

1 file changed

+2
-2
lines changed

packages/persistent-merkle-tree/src/hasher/noble.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {sha256} from "@noble/hashes/sha256";
2-
import {byteArrayIntoHashObject} from "@chainsafe/as-sha256";
2+
import {digest64HashObjects, byteArrayIntoHashObject} from "@chainsafe/as-sha256";
33
import type {Hasher} from "./types.js";
44
import {
55
BLOCK_SIZE,
@@ -55,7 +55,7 @@ export const hasher: Hasher = {
5555
}
5656

5757
for (const hc of hcArr) {
58-
hasher.digest64HashObjects(hc.src0, hc.src1, hc.dest);
58+
hc.dest.applyHash(digest64HashObjects(hc.src0, hc.src1));
5959
}
6060
}
6161
},

0 commit comments

Comments
 (0)