(starting) to adapt README to new circom
This commit is contained in:
parent
4d8721829f
commit
89d9335158
@ -221,9 +221,11 @@ Before we go ahead and create the circuit, we perform a final check and verify t
|
|||||||
### 9. Create the circuit
|
### 9. Create the circuit
|
||||||
```sh
|
```sh
|
||||||
cat <<EOT > circuit.circom
|
cat <<EOT > circuit.circom
|
||||||
|
pragma circom 2.0.0;
|
||||||
|
|
||||||
template Multiplier(n) {
|
template Multiplier(n) {
|
||||||
signal private input a;
|
signal input a;
|
||||||
signal private input b;
|
signal input b;
|
||||||
signal output c;
|
signal output c;
|
||||||
|
|
||||||
signal int[n];
|
signal int[n];
|
||||||
@ -304,7 +306,7 @@ We export `r1cs` to `json` format to make it human readable.
|
|||||||
|
|
||||||
Currently, snarkjs supports 2 proving systems: groth16 and PLONK.
|
Currently, snarkjs supports 2 proving systems: groth16 and PLONK.
|
||||||
|
|
||||||
Groth16 requires a trusted ceremony for each circuit. PLONK does not require it, it's enought with the powers of tau ceremony which is universal.
|
Groth16 requires a trusted ceremony for each circuit. PLONK does not require it, it's enough with the powers of tau ceremony which is universal.
|
||||||
|
|
||||||
#### Plonk
|
#### Plonk
|
||||||
```sh
|
```sh
|
||||||
|
Loading…
Reference in New Issue
Block a user