circomlib

Prefab library of commonly needed circuits - circomlib is for Circom what @openzeppelin/contracts is for solidity

circomlib is a companion repositoryarrow-up-right to the Circom language officially released and maintained by Iden3. It contains all of the necessary primitives you need for basic operations within your circuits. The circomlib library is similar to @openzeppelin/contractsarrow-up-right for Solidity in premise. Accompanying the main circomlib library is the circomlibjsarrow-up-right JavaScript-based library. All components contained in the circomlib libraryarrow-up-right can be driven using circomlibjs. As you begin to extend these templates into your own circuits, make sure to keep Anonymous Templates arrow-up-rightin mind. Check out Circom Language > Components and Templates > Anonymous Templates for an exploration of the shortcut on one-time use of components.

This section only contains the essential, easy-to-use components provided by circomlib. The components not included are for those who do not need BattleZips!

circle-info

The circomlib repository contains unit testing for all of its templatesarrow-up-right. Use them for additional insight into their integration with your circuits.

Last updated