The repository contains some boilerplate code to get started with CircomJS.
You should check out this section of the docs to get-started with using this starter repository.
Here is the current structure of this repository.
- circuits: contains two circuits addition.circom and multiplication.circom, they generate proofs of valid addition and multiplication of two numbers respectively.
- src: contains a javascript files, that uses CircomJS to do the following:
- compile circuits
- generate proof
- verify proof
- circuit.config.json: configuration file for CircomJS.
You can do the following to see CircomJS in action:
install all npm packages:
npm install
run the javascript file using CircomJS.
node src/index.js