mirror of
https://github.com/arnaucube/go-circom-prover-verifier.git
synced 2026-02-06 19:06:43 +01:00
Refactor circuits, update prover & verifier tests
This commit is contained in:
14
testdata/circuit5k/circuit.circom
vendored
Normal file
14
testdata/circuit5k/circuit.circom
vendored
Normal 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
1
testdata/circuit5k/inputs.json
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"in":"1"}
|
||||
Reference in New Issue
Block a user