Skip to content

Commit

Permalink
fix: correctly export hashers from persistent-merkle-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
nflaig committed Jan 23, 2025
1 parent 7e0a540 commit 8dac20f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Binary file not shown.
6 changes: 3 additions & 3 deletions packages/persistent-merkle-tree/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"import": "./lib/index.js",
"types": "./lib/index.d.ts"
},
"./hashtree": {
"./hasher/hashtree": {
"import": "./lib/hasher/hashtree.js",
"types": "./lib/hasher/hashtree.d.ts"
},
"./noble": {
"./hasher/noble": {
"import": "./lib/hasher/noble.js",
"types": "./lib/hasher/noble.d.ts"
},
"./as-sha256": {
"./hasher/as-sha256": {
"import": "./lib/hasher/as-sha256.js",
"types": "./lib/hasher/as-sha256.d.ts"
}
Expand Down
2 changes: 1 addition & 1 deletion setHasher.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Set the hasher to hashtree
// Used to run benchmarks with with visibility into hashtree performance, useful for Lodestar
import {setHasher} from "@chainsafe/persistent-merkle-tree";
import {hasher} from "@chainsafe/persistent-merkle-tree/hashtree";
import {hasher} from "@chainsafe/persistent-merkle-tree/hasher/hashtree";
setHasher(hasher);

export {};

0 comments on commit 8dac20f

Please sign in to comment.