/circom-lib

Circom circuits library for magnificent ZK applications

Primary LanguageTypeScriptMIT LicenseMIT

License: MIT

Circom Library by Distributed Lab

The library consists of circom circuits that extend the capabilities of solarity/solidity-lib to be used in magnificent ZK applications.

  • Versatile commitment / nullifier circuit.
  • Optimized Sparse Merkle Tree (SMT) data structure.

Powered by hardhat-zkit circom environment.

Overview

Installation

$ npm install @solarity/circom-lib

Tip

No need to install the Circom compiler, the repository leverages hardhat-zkit that does everything for you.

Compile the circuits

You can compile the circuits in the project by executing the following command:

$ npm run zkit-compile

Create verifier contracts for the circuits

Run the following command in order to generate the solidity verifier contracts:

$ npm run zkit-verifiers

License

The library is released under the MIT License.