circomlib

Open Source

The standard library of audited circom circuit templates: hashes, signatures, comparators, Merkle trees, and more.

About

circomlib is iden3's library of reusable circom templates, including Poseidon and MiMC hashes, EdDSA signature verification, comparators, multiplexers, and Merkle tree gadgets. Most production circom projects build on circomlib rather than reimplementing primitives, so its correctness is load-bearing for a large part of the ZK ecosystem. Several historical ZK vulnerabilities (documented in the 0xPARC ZK Bug Tracker) involved misuse of circomlib components such as LessThan range checks, making it important for auditors to understand its assumptions.

Categories

Infrastructure & zkVMs

Chains

circom

Install

npm install circomlib

Related Tools

Quick Info

Pricing
free
Open Source
Yes
Last validated
Jul 2026