This library enables the creation of arithmetic circuits from circom programs.
We aim to support canonical circomlib.
Other important components such as circomlib-ml reside under apps.
- Rust: To install, follow the instructions found here.
-
Write your circom program in the
assets
directory under thecircuit.circom
name. -
Build the program
cargo build --release
- Run the compilation
cargo run
The CLI provides options to specify both input and output file paths, allowing flexibility in how you manage your circom program files and the resulting arithmetic circuits.
--input
: Specifies the path to the input circom program file. By default, the program looks forcircuit.circom
in theassets
directory.--output
: Specifies the path to the output directory where the generated arithmetic circuit files will be stored. By default, it's saved in the./output
directory.
To run the program with specific input file path and output directory path, use the following command format:
./target/release/circom --input ./input-path/circuit.circom --output ./output-path/
Contributions are welcome!
This project is licensed under the MIT License - see the LICENSE file for details.