Zero knowledge puzzles to learn writing circuits in circom lang.
Circom compiler requires rust . For MacOs and Linux users,
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
Clone the circom repository
git clone https://github.com/iden3/circom.git
Enter the repository
cargo build --release
Install
cargo install --path circom
yarn install
Ensure you have docker installed and running in your system
Then to run a test against the circuit, please pass the relative path to the Javascript test file
yarn run docker:test test/Add.js
Write your solution .
Then run the following command
yarn test ./test/<TestName>.js
- Addition
- Equality
- NotEqual
- Poseidon
- ForLoop
- Power
- Range
- Salt
- QuadraticEquation
- Compile
- Sudoku
- Sujiko
Congrats on completing all the challenges, you can play Sujiko Game .
- Go to Frontend directory
- Install libraries using
npm install
- Then, start the front end:-
npm run dev
Mac users getting this error on circom installation
error: linking with `cc` failed: exit status: 1
Install xcode , then restart your mac .
xcode-select --install