{"id":50699122,"url":"https://github.com/zk-kit/zk-kit","last_synced_at":"2026-06-09T08:01:18.225Z","repository":{"id":37685904,"uuid":"414246849","full_name":"zk-kit/zk-kit","owner":"zk-kit","description":"A monorepo of reusable libraries for zero-knowledge technologies.","archived":false,"fork":false,"pushed_at":"2025-09-18T14:10:51.000Z","size":16239,"stargazers_count":362,"open_issues_count":31,"forks_count":109,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-01-12T12:32:53.389Z","etag":null,"topics":["javascript","monorepo","typescript","zero-knowledge","zk-kit","zk-snarks"],"latest_commit_sha":null,"homepage":"https://zkkit.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zk-kit.png","metadata":{"files":{"readme":"README.md","changelog":"changelogithub.config.json","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-10-06T14:32:29.000Z","updated_at":"2026-01-09T11:41:51.000Z","dependencies_parsed_at":"2023-11-22T13:43:10.168Z","dependency_job_id":"8a791775-4256-402a-9fcc-8e12c1e1024f","html_url":"https://github.com/zk-kit/zk-kit","commit_stats":{"total_commits":1135,"total_committers":31,"mean_commits":36.61290322580645,"dds":"0.42731277533039647","last_synced_commit":"291501fcfbacdc410fe3d60859a55835ce151493"},"previous_names":["appliedzkp/libsemaphore","appliedzkp/zk-kit","privacy-scaling-explorations/zk-kit"],"tags_count":76,"template":false,"template_full_name":null,"purl":"pkg:github/zk-kit/zk-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-kit%2Fzk-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-kit%2Fzk-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-kit%2Fzk-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-kit%2Fzk-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zk-kit","download_url":"https://codeload.github.com/zk-kit/zk-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zk-kit%2Fzk-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34096955,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-09T02:00:06.510Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","monorepo","typescript","zero-knowledge","zk-kit","zk-snarks"],"created_at":"2026-06-09T08:00:58.748Z","updated_at":"2026-06-09T08:01:18.214Z","avatar_url":"https://github.com/zk-kit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003e\n      \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://github.com/zk-kit/zk-kit/assets/11427903/f691c48c-021f-485d-89ef-9ddc8ba74787\"\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://github.com/zk-kit/zk-kit/assets/11427903/f43f4403-846a-48b4-a1fa-0ab234c225e5\"\u003e\n        \u003cimg width=\"250\" alt=\"ZK-Kit logo\" src=\"https://github.com/zk-kit/zk-kit/assets/11427903/f691c48c-021f-485d-89ef-9ddc8ba74787\"\u003e\n      \u003c/picture\u003e\n      \u003csub\u003eJS\u003c/sub\u003e\n    \u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/zk-kit\" target=\"_blank\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/project-PSE-blue.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/zk-kit/zk-kit/blob/main/LICENSE\"\u003e\n        \u003cimg alt=\"Github license\" src=\"https://img.shields.io/github/license/zk-kit/zk-kit.svg?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/zk-kit/zk-kit/actions?query=workflow%3Amain\"\u003e\n        \u003cimg alt=\"GitHub Workflow Tests\" src=\"https://img.shields.io/github/actions/workflow/status/zk-kit/zk-kit/main.yml?branch=main\u0026label=tests\u0026style=flat-square\u0026logo=github\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://coveralls.io/github/zk-kit/zk-kit\"\u003e\n        \u003cimg alt=\"Coveralls\" src=\"https://img.shields.io/coveralls/github/zk-kit/zk-kit?label=coverage (ts)\u0026style=flat-square\u0026logo=coveralls\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://eslint.org/\"\u003e\n        \u003cimg alt=\"Linter eslint\" src=\"https://img.shields.io/badge/linter-eslint-8080f2?style=flat-square\u0026logo=eslint\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://prettier.io/\"\u003e\n        \u003cimg alt=\"Code style prettier\" src=\"https://img.shields.io/badge/code%20style-prettier-f8bc45?style=flat-square\u0026logo=prettier\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"http://commitizen.github.io/cz-cli/\"\u003e\n        \u003cimg alt=\"Commitizen friendly\" src=\"https://img.shields.io/badge/commitizen-friendly-586D76?style=flat-square\"\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://www.gitpoap.io/gh/zk-kit/zk-kit\" target=\"_blank\" \u003e\n        \u003cimg alt=\"GitPOAPs\" src=\"https://public-api.gitpoap.io/v1/repo/zk-kit/zk-kit/badge\"\u003e\n    \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ch4\u003e\n        \u003ca href=\"/CONTRIBUTING.md\"\u003e\n            👥 Contributing\n        \u003c/a\u003e\n        \u003cspan\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n        \u003ca href=\"/CODE_OF_CONDUCT.md\"\u003e\n            🤝 Code of conduct\n        \u003c/a\u003e\n        \u003cspan\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n        \u003ca href=\"https://github.com/zk-kit/zk-kit/issues/new/choose\"\u003e\n            🔎 Issues\n        \u003c/a\u003e\n        \u003cspan\u003e\u0026nbsp;\u0026nbsp;|\u0026nbsp;\u0026nbsp;\u003c/span\u003e\n        \u003ca href=\"https://appliedzkp.org/discord\"\u003e\n            🗣️ Chat \u0026amp; Support\n        \u003c/a\u003e\n    \u003c/h4\u003e\n\u003c/div\u003e\n\n| ZK-Kit is a set of libraries (algorithms or utility functions) that can be reused in different projects and zero-knowledge protocols, making it easier for developers to access user-friendly, tested, and documented code for common tasks. ZK-Kit provides different repositories for each language - this one contains JavaScript code only. |\n| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n\n♚ [Yarn workspaces](https://yarnpkg.com/features/workspaces): minimal monorepo package management (`yarn`, `yarn build`, `yarn docs`)\\\n♛ [Conventional Commits](https://www.conventionalcommits.org): human and machine readable meaning to commit messages (`yarn commit`)\\\n♜ [Jest](https://jestjs.io/): tests and test coverage for all libraries (`yarn test:libraries`)\\\n♞ [ESLint](https://eslint.org/), [Prettier](https://prettier.io/): code quality and formatting (`yarn prettier` \u0026 `yarn lint`)\\\n♝ [Typedocs](https://typedoc.org/): documentation generator for TypeScript (`yarn docs`)\\\n♟ [Benny](https://github.com/caderek/benny): simple benchmarking framework for JavaScript/TypeScript (`yarn benchmarks`)\\\n♟ [Github actions](https://github.com/features/actions): software workflows for automatic testing, documentation deploy and code quality checks\n\n## 🗂️ Repositories\n\n-   Circom: [zk-kit/zk-kit.circom](https://github.com/zk-kit/zk-kit.circom)\n-   Javascript: [zk-kit/zk-kit](https://github.com/zk-kit/zk-kit)\n-   Noir: [zk-kit/zk-kit.noir](https://github.com/zk-kit/zk-kit.noir)\n-   Rust: [zk-kit/zk-kit.rust](https://github.com/zk-kit/zk-kit.rust)\n-   Solidity: [zk-kit/zk-kit.solidity](https://github.com/zk-kit/zk-kit.solidity)\n\n## 📄 Papers\n\n-   LeanIMT ([Download PDF](https://github.com/zk-kit/zk-kit/raw/main/papers/leanimt/paper/leanimt-paper.pdf))\n\n## 📦 Packages\n\n\u003ctable\u003e\n    \u003cth\u003ePackage\u003c/th\u003e\n    \u003cth\u003eVersion\u003c/th\u003e\n    \u003cth\u003eDownloads\u003c/th\u003e\n    \u003cth\u003eSize\u003c/th\u003e\n    \u003cth\u003eAudited\u003c/th\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/eddsa-poseidon\"\u003e\n                    @zk-kit/eddsa-poseidon\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/eddsa-poseidon\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/eddsa-poseidon.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/eddsa-poseidon\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/eddsa-poseidon.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/eddsa-poseidon\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/eddsa-poseidon\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf\"\u003e\n                    ✔️\n                \u003c/a\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/poseidon-cipher\"\u003e\n                    @zk-kit/poseidon-cipher\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/poseidon-cipher\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/poseidon-cipher.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/poseidon-cipher\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/poseidon-cipher.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/poseidon-cipher\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/poseidon-cipher\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                ❌\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/baby-jubjub\"\u003e\n                    @zk-kit/baby-jubjub\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/baby-jubjub\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/baby-jubjub.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/baby-jubjub\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/baby-jubjub.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/baby-jubjub\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/baby-jubjub\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf\"\u003e\n                    ✔️\n                \u003c/a\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/utils\"\u003e\n                    @zk-kit/utils\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/utils\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/utils.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/utils\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/utils.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/utils\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/utils\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf\"\u003e\n                    ✔️\n                \u003c/a\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/imt\"\u003e\n                    @zk-kit/imt\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/imt.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/imt.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/imt\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                ❌\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/lean-imt\"\u003e\n                    @zk-kit/lean-imt\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/lean-imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/lean-imt.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/lean-imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/lean-imt.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/lean-imt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/lean-imt\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://semaphore.pse.dev/Semaphore_4.0.0_Audit.pdf\"\u003e\n                    ✔️\n                \u003c/a\u003e\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/smt\"\u003e\n                    @zk-kit/smt\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/smt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/smt.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/smt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/smt.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/smt\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/smt\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                ❌\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/poseidon-proof\"\u003e\n                    @zk-kit/poseidon-proof\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/poseidon-proof\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/poseidon-proof.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/poseidon-proof\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/poseidon-proof.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/poseidon-proof\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/poseidon-proof\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                ❌\n            \u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\n                \u003ca href=\"https://github.com/zk-kit/zk-kit/tree/main/packages/logical-expressions\"\u003e\n                    @zk-kit/logical-expressions\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- NPM version --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/logical-expressions\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/v/@zk-kit/logical-expressions.svg?style=flat-square\" alt=\"NPM version\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Downloads --\u003e\n                \u003ca href=\"https://npmjs.org/package/@zk-kit/logical-expressions\"\u003e\n                    \u003cimg src=\"https://img.shields.io/npm/dm/@zk-kit/logical-expressions.svg?style=flat-square\" alt=\"Downloads\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                \u003c!-- Size --\u003e\n                \u003ca href=\"https://bundlephobia.com/package/@zk-kit/logical-expressions\"\u003e\n                    \u003cimg src=\"https://img.shields.io/bundlephobia/minzip/@zk-kit/logical-expressions\" alt=\"npm bundle size (scoped)\" /\u003e\n                \u003c/a\u003e\n            \u003c/td\u003e\n            \u003ctd\u003e\n                ❌\n            \u003c/td\u003e\n        \u003c/tr\u003e\n    \u003ctbody\u003e\n\u003c/table\u003e\n\n## 👥 Ways to contribute\n\n-   🔧 Work on [open issues](https://github.com/zk-kit/zk-kit/contribute)\n-   📦 Suggest new [packages](https://github.com/zk-kit/zk-kit/issues/new?assignees=\u0026labels=feature+%3Arocket%3A\u0026template=---package.md\u0026title=)\n-   🚀 Share ideas for new [features](https://github.com/zk-kit/zk-kit/issues/new?assignees=\u0026labels=feature+%3Arocket%3A\u0026template=---feature.md\u0026title=)\n-   🐛 Create a report if you find any [bugs](https://github.com/zk-kit/zk-kit/issues/new?assignees=\u0026labels=bug+%F0%9F%90%9B\u0026template=---bug.md\u0026title=) in the code\n\n## 🛠 Install\n\nClone this repository:\n\n```bash\ngit clone https://github.com/zk-kit/zk-kit.git\n```\n\nand install the dependencies:\n\n```bash\ncd zk-kit \u0026\u0026 yarn\n```\n\n## 📜 Usage\n\n### Code quality and formatting\n\nRun [ESLint](https://eslint.org/) to analyze the code and catch bugs:\n\n```bash\nyarn lint\n```\n\nRun [Prettier](https://prettier.io/) to check formatting rules:\n\n```bash\nyarn format\n```\n\nor to automatically format the code:\n\n```bash\nyarn format:write\n```\n\n### Conventional commits\n\nZK-Kit uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). A [command line utility](https://github.com/commitizen/cz-cli) to commit using the correct syntax can be used by running:\n\n```bash\nyarn commit\n```\n\nIt will also automatically check that the modified files comply with ESLint and Prettier rules.\n\n### Testing\n\nTest the code:\n\n```bash\nyarn test\n```\n\n### Build\n\nBuild all the packages:\n\n```bash\nyarn build\n```\n\nA `dist` folder will be created inside each JavaScript package.\n\n### Documentation\n\nGenerate a documentation website for each package:\n\n```bash\nyarn docs\n```\n\nThe output will be placed on the `docs` folder.\n\n### Releases\n\n1. Bump a new version of the package with:\n\n```bash\nyarn version:bump \u003cpackage-name\u003e \u003cversion\u003e\n# e.g. yarn version:bump utils 2.0.0\n```\n\nThis step creates a commit and a git tag.\n\n2. Push the changes to main:\n\n```bash\ngit push origin main\n```\n\n3. Push the new git tag:\n\n```bash\ngit push origin \u003cpackage-name\u003e-\u003cversion\u003e\n# e.g. git push origin utils-v2.0.0\n```\n\nAfter pushing the new git tag, a workflow will be triggered and will publish the package on [npm](https://www.npmjs.com/) and release a new version on Github with its changelogs automatically.\n\n## ❓ FAQ\n\n#### I have a library that could be reused in other projects. How can I integrate it on ZK-kit?\n\nZK-kit provides a set of pre-configured development tools. All you have to deal with is your own code, testing and documentation. To create a package follow these steps:\n\n1. Fork this repository and clone it (or simply clone it directly if you are a collaborator),\n2. Copy one of our current libraries and update the `README.md` and `package.json` files with your package name:\n\n```bash\ncd zk-kit\ncp -r packages/smt packages/my-package\ncd packages/my-package \u0026\u0026 rm -fr node_modules dist\ngrep -r -l \"smt\" . | xargs sed -i 's/smt/my-package/'\n# Update the remaining description/usage sections, and write your code in the src \u0026 tests folders!\n```\n\n3. Create an [issue](https://github.com/zk-kit/zk-kit/issues/new?assignees=\u0026labels=feature+%3Arocket%3A\u0026template=---package.md\u0026title=) for your package and open a PR.\n\n#### How can I create benchmarks for my library?\n\nYou can see some examples in the `benchmarks` folder. All you have to do is create a file that exports a function to run your benchmark in that folder and add that function to the `index.ts` file. The `yarn benchmarks` command can be run with no parameters (it will run all the benchmarks), or you can specify the name of your benchmark file to run just that. When you run the command it will create a `benchmarks/results` folder with your results.\n\n#### I need to use a Merkle Tree to prove the inclusion or exclusion of data elements within a set. Which type of Merkle Tree should I use?\n\n**Incremental:** Ideal for applications where you frequently add new elements and need to update the tree efficiently.\n\n**Lean Incremental:** A more memory-efficient version of the incremental Merkle tree.\n\n**Sparse:** Particularly useful when you need proof of non-membership.\n\n| Type                 | Library Name                                                                     | Main Feature                            | Used by                                                                                                                 |\n| -------------------- | -------------------------------------------------------------------------------- | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |\n| **Incremental**      | [@zk-kit/imt](https://github.com/zk-kit/zk-kit/tree/main/packages/imt)           | Fastest for incremental updates.        | [Semaphore V3](https://github.com/semaphore-protocol/semaphore/tree/v3.15.2), [Worldcoin](https://github.com/worldcoin) |\n| **Lean Incremental** | [@zk-kit/lean-imt](https://github.com/zk-kit/zk-kit/tree/main/packages/lean-imt) | Optimized for lightweight environments. | [Semaphore V4](https://github.com/semaphore-protocol/semaphore), [Zupass](https://github.com/proofcarryingdata/zupass)  |\n| **Sparse**           | [@zk-kit/smt](https://github.com/zk-kit/zk-kit/tree/main/packages/smt)           | Handles very large sets efficiently.    | [Iden3](https://github.com/iden3)                                                                                       |\n\nFollowing benchmarks data of zk-kit Merkle Trees implementations:\n|8 leafs|insert|delete|update|generate proof|verify proof|\n|--|:--:|:--:|:--:|:--:|:--:|\n|fastest|IMT|IMT ~ SparseMT|LeanIMT|LeanIMT|IMT|\n|slowest|LeanIMT|IMT ~ SparseMT|IMT|SparseMT|SparseMT|\n\n| 128 leafs | insert  |  delete  | update  | generate proof | verify proof |\n| --------- | :-----: | :------: | :-----: | :------------: | :----------: |\n| fastest   |   IMT   | SparseMT | LeanIMT |    LeanIMT     |   SparseMT   |\n| slowest   | LeanIMT |   IMT    |   IMT   |      IMT       |     IMT      |\n\n| 1024 leafs |  insert  |  delete  | update  | generate proof | verify proof |\n| ---------- | :------: | :------: | :-----: | :------------: | :----------: |\n| fastest    | SparseMT | SparseMT | LeanIMT |    LeanIMT     |   SparseMT   |\n| slowest    | LeanIMT  |   IMT    |   IMT   |      IMT       |     IMT      |\n\nFrom the benchmark data we can take another criteria to evaluate which Merkle tree should be used:\n\n-   IMT have the best performance for medium and small size insert related operations.\n-   LeanIMT have the best performance for all the merkle tree sizes for update and generate proof related operations.\n-   Sparse is good for larger data insert, delete and verify proof.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-kit%2Fzk-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzk-kit%2Fzk-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzk-kit%2Fzk-kit/lists"}