-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: use named exports to expose different hashers (#459)
* Use named exports to expose hashers * Add types reference for named exports
- Loading branch information
1 parent
57d14f1
commit f763c8a
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/lib/hasher/index.js"; | ||
import {hasher} from "@chainsafe/persistent-merkle-tree/lib/hasher/hashtree.js"; | ||
import {setHasher} from "@chainsafe/persistent-merkle-tree"; | ||
import {hasher} from "@chainsafe/persistent-merkle-tree/hashtree"; | ||
setHasher(hasher); | ||
|
||
export {}; |