Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @zk-kit/lean-imt #2184

Merged
merged 3 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update @zk-kit/lean-imt
  • Loading branch information
artwyman committed Dec 10, 2024
commit a2fd02f1c950e22527f3f3be5a52f99b89163dcd
2 changes: 1 addition & 1 deletion packages/lib/pod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"dependencies": {
"@pcd/util": "0.9.0",
"@zk-kit/eddsa-poseidon": "~1.0.4",
"@zk-kit/lean-imt": "^2.2.1",
"@zk-kit/lean-imt": "^2.2.2",
"@zk-kit/utils": "^1.2.1",
"js-sha256": "^0.10.1",
"poseidon-lite": "^0.3.0"
Expand Down
6 changes: 4 additions & 2 deletions packages/lib/pod/test/podTypes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ describe("POD type values should be correct", () => {
});

it("POD_NULL_HASH should be nonzero", () => {
// We don't care what its value is, but some other libraries (e.g. LeanIMT)
// use 0 for special purposes, so we avoid it.
// We don't care what its value is, but some libraries or uses of Merkle
// trees may use 0 for special purposes (e.g. to indicate removal, or a
// missing value in an internal datastrcuture), so we avoid it to avoid
// ambiguity.
expect(POD_NULL_HASH).to.not.eq(0n);
});
});
Loading