Add testdata big&small circuits, update proof parsers, add compile-circuits.sh

This commit is contained in:
arnaucube
2020-04-06 13:50:02 +02:00
parent c03cb1af00
commit 7aa69a5b2c
11 changed files with 119 additions and 234 deletions

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

@@ -0,0 +1,14 @@
template A(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 = A(1000); // bigger takes too much time on generating trusted setup

1
testdata/big/input.json vendored Normal file
View File

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