We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba53bd3 commit 2b7b280Copy full SHA for 2b7b280
packages/persistent-merkle-tree/src/hasher/noble.ts
@@ -1,5 +1,5 @@
1
import {sha256} from "@noble/hashes/sha256";
2
-import {byteArrayIntoHashObject} from "@chainsafe/as-sha256";
+import {digest64HashObjects, byteArrayIntoHashObject} from "@chainsafe/as-sha256";
3
import type {Hasher} from "./types.js";
4
import {
5
BLOCK_SIZE,
@@ -55,7 +55,7 @@ export const hasher: Hasher = {
55
}
56
57
for (const hc of hcArr) {
58
- hasher.digest64HashObjects(hc.src0, hc.src1, hc.dest);
+ hc.dest.applyHash(digest64HashObjects(hc.src0, hc.src1));
59
60
61
},
0 commit comments