Refactor circuits, update prover & verifier tests

This commit is contained in:
arnaucube
2020-04-26 21:22:56 +02:00
parent 5b77df54b7
commit d3f43ce1a0
18 changed files with 133 additions and 141 deletions

14
testdata/circuit5k/circuit.circom vendored Normal file
View File

@@ -0,0 +1,14 @@
template TestConstraints(n) {
signal input in;
signal output out;
signal intermediate[n];
intermediate[0] <== in;
for (var i=1; i<n; i++) {
intermediate[i] <== intermediate[i-1] * intermediate[i-1] + i;
}
out <== intermediate[n-1];
}
component main = TestConstraints(5000);

1
testdata/circuit5k/inputs.json vendored Normal file
View File

@@ -0,0 +1 @@
{"in":"1"}