|
@ -65,8 +65,6 @@ We are now ready to compile the circuit. Run the following command: |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
circom circuit.circom -o circuit.json |
|
|
circom circuit.circom -o circuit.json |
|
|
|
|
|
|
|
|
// Which is equivalent to "circom circuit.circom -o circuit.json" |
|
|
|
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
to compile the circuit to a file named `circuit.json` |
|
|
to compile the circuit to a file named `circuit.json` |
|
@ -86,13 +84,13 @@ snarkjs --help |
|
|
To show general statistics of this circuit, you can run: |
|
|
To show general statistics of this circuit, you can run: |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
snarkjs printconstraints -c circuit.json |
|
|
|
|
|
|
|
|
snarkjs info -c circuit.json |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
You can also print the constraints of the circuit by running: |
|
|
You can also print the constraints of the circuit by running: |
|
|
|
|
|
|
|
|
```sh |
|
|
```sh |
|
|
snarkjs info -c circuit.json |
|
|
|
|
|
|
|
|
snarkjs printconstraints -c circuit.json |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
|
|
|