Browse Source

chore: add files used for tests

pull/1/head
dmpierre 6 months ago
parent
commit
a994f89031
5 changed files with 28 additions and 0 deletions
  1. +15
    -0
      test-vectors/mycircuit2.circom
  2. BIN
      test-vectors/mycircuit2.r1cs
  3. +6
    -0
      test-vectors/mycircuit2.sym
  4. BIN
      test-vectors/mycircuit2.wasm
  5. +7
    -0
      test-vectors/mycircuit2_constraints.json

+ 15
- 0
test-vectors/mycircuit2.circom

@ -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


+ 6
- 0
test-vectors/mycircuit2.sym

@ -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


+ 7
- 0
test-vectors/mycircuit2_constraints.json

@ -0,0 +1,7 @@
{
"constraints": [
[{"3":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"4":"1"},{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
[{"6":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"1":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}],
[{"4":"21888242871839275222246405745257275088548364400416034343698204186575808495616"},{"5":"1"},{"2":"21888242871839275222246405745257275088548364400416034343698204186575808495616"}]
]
}

Loading…
Cancel
Save