mirror of
https://github.com/arnaucube/circom-compat.git
synced 2026-01-07 22:41:32 +01:00
chore: add files used for tests
This commit is contained in:
15
test-vectors/mycircuit2.circom
Normal file
15
test-vectors/mycircuit2.circom
Normal file
@@ -0,0 +1,15 @@
|
||||
template Multiplier() {
|
||||
signal input a; // 3
|
||||
signal input b; // 3
|
||||
signal input c; // 3
|
||||
signal temp;
|
||||
signal output d; // 27
|
||||
signal output e; // 9
|
||||
|
||||
temp <== a*b;
|
||||
d <== temp*c;
|
||||
e <== b*c;
|
||||
}
|
||||
|
||||
component main{public [a, b]} = Multiplier();
|
||||
|
||||
BIN
test-vectors/mycircuit2.r1cs
Normal file
BIN
test-vectors/mycircuit2.r1cs
Normal file
Binary file not shown.
6
test-vectors/mycircuit2.sym
Normal file
6
test-vectors/mycircuit2.sym
Normal file
@@ -0,0 +1,6 @@
|
||||
1,1,0,main.d
|
||||
2,2,0,main.e
|
||||
3,3,0,main.a
|
||||
4,4,0,main.b
|
||||
5,5,0,main.c
|
||||
6,6,0,main.temp
|
||||
BIN
test-vectors/mycircuit2.wasm
Normal file
BIN
test-vectors/mycircuit2.wasm
Normal file
Binary file not shown.
7
test-vectors/mycircuit2_constraints.json
Normal file
7
test-vectors/mycircuit2_constraints.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"constraints": [
|
||||
[{"3":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"4":"1"},{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
|
||||
[{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"1":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
|
||||
[{"4":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"2":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}]
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user