From a994f89031c10510cf3de50436525350c7591aef Mon Sep 17 00:00:00 2001 From: dmpierre Date: Wed, 22 May 2024 18:04:11 +0200 Subject: [PATCH] chore: add files used for tests --- test-vectors/mycircuit2.circom | 15 +++++++++++++++ test-vectors/mycircuit2.r1cs | Bin 0 -> 528 bytes test-vectors/mycircuit2.sym | 6 ++++++ test-vectors/mycircuit2.wasm | Bin 0 -> 34377 bytes test-vectors/mycircuit2_constraints.json | 7 +++++++ 5 files changed, 28 insertions(+) create mode 100644 test-vectors/mycircuit2.circom create mode 100644 test-vectors/mycircuit2.r1cs create mode 100644 test-vectors/mycircuit2.sym create mode 100644 test-vectors/mycircuit2.wasm create mode 100644 test-vectors/mycircuit2_constraints.json diff --git a/test-vectors/mycircuit2.circom b/test-vectors/mycircuit2.circom new file mode 100644 index 0000000..4a18598 --- /dev/null +++ b/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(); + diff --git a/test-vectors/mycircuit2.r1cs b/test-vectors/mycircuit2.r1cs new file mode 100644 index 0000000000000000000000000000000000000000..34611b9db030fdfd6452459115270d38e732e74f GIT binary patch literal 528 zcmXRiOfF_*U|?VdVkRKY0C9i-CI)1FnEdsj^TdLkl^!pQHDV(g8@IUz?9g0b_^`+? z#Q>y^1*#rM;RGOcY!F$3<`Juo6=)vRxp?h`sv&4E$R9vJP#v-Mg2Iy+^Blm+7#I|Q yG|;Vh?Pmw70htTJAb)}QAOMO#5VinukO0*0VD%tjkQxwx`jr9X7Z8AkIRgOk=4Q44 literal 0 HcmV?d00001 diff --git a/test-vectors/mycircuit2.sym b/test-vectors/mycircuit2.sym new file mode 100644 index 0000000..10ee4df --- /dev/null +++ b/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 diff --git a/test-vectors/mycircuit2.wasm b/test-vectors/mycircuit2.wasm new file mode 100644 index 0000000000000000000000000000000000000000..5b6786fc2d1a251fcb78ac3d8ad53e95b3d6880c GIT binary patch literal 34377 zcmeHwdypK*dEfNR>~r=pxA)-Q6SGS|1W1BB91Z|Q^MN@KASnVM2#BOeJ%GEt1+a&G z-0d!aI~56>0*RCoebasb-7z>HJ_PpF4n7UDeI61mfN*v_i(%2Y9Fh1I`ikMlIG9~m)o^&b?)NXv(*S< z=X~q(sq^#g>f*_lk5wD3_L`(A7nUR@GeuEUH6}^%L^2k`9sf&`EU{QJiCaugFves_ zmSZtRK?dtjip5f?bS%c41YR;G4P@|_({tH;t}vh>oXuu4dN!9+V{93WVhV%Ee^1uq z4K9T&rO#EnFIC$e=qtUHN90(o*=jo}FH_2i`EKRBlk%w%r1(`i)tzs5rB@2=>inXg zBE34uVF{#uTCFu}UFoyAPPO}NbNOQTRP9`IzAl|9fVU^%RPFOsX9GNWMN-kGOJ^ywZM;J;h*V1@m}E*C zYoveXx7gDClEDmVmm(cd>`?N6lC;wF1Bz~iiU*XUHYFL-9M8vZNh_vXx1zQeBf z3~8SX!Ekx4q!_ZHJb@_ER7z7{Gn6^w%PvJF3iQGyK!M5k$r++#0+b9;7R2e!6%jDS4ef$wy^5h zUWLIa-6_IztK}qeBQMe|e{ktwsg@H4ar4q;Lwy2HMD9cBK5of!I#9PuPZ(5@S1gx= zijw6NugFX1E}P_Xg~ZO3GXb$&u@eT#;FZ`VrML`{B*>5{YthPPqLtOlIgv&QgT(VH z<0_lt;zg3Qz7Xl=E#c8k?(7cVtF9i9K~pJOq7R2m?sRQ8!<07 z;y_;`PLv0ujc9ex-mV~FkgAcENO4soNt)QSS+QyJV$%+YO*z`T;TYgCXcSh&w|dX2l@p#jZaf25~S1 zB8TI_5FB|i90OuF219Ug#im1w4Tu#R3@OG%oDGRM7!r|J_J~s%FZP)B{{~p*%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X%~rKo2j3m>>ZX@_KpCvdtig2+?XAeS7yh6-#BbBAvg9-$}9V( zfaNyW#E={NOY+M8GH|^Yw%IN>4(yOu4vcQIgcjO}O9?9lBy2#!6-c-`lY?Y=NTx%w z0Z3JVRPcaVNH_}#XCdLfdmv2_(u_iyF-S5FNhTo4B&3*v6k|4YjV7yAYIMf3sfbvou|k(cL4G&kEGF=>Ws zHokCJeb33~e6*uJ+A$yPxR3U{k9NYb@W~fkSWo(Lobts! z>E?P72aYQk0x+f4>bwfyUj8)DU53McMwQ~tg|%+A!;-aTtwYagIf>41p;P;ORnZ#N zMytKXBcDazhmNi$$1%)px7weBPoHmsWwR!;nxf2KTs_SsrBhozlakc)jm`p7&(}K( zva;OjC~~u-%8lh1(c>yEjf8p$bB?6VZ5|@_%AB>ttDGZQ&(o!bOJyl8u?AyxS*|t| zd7%N0m6)=;XZixVfCfXVj8p}wbw$chH$Go)@lgwCbegVvG`h}Y5|!4)X1ChT zraIjgp6{UK+~7=JqrrroMNguKs}t7&-5LtiTdifQ=7J~1QekkQm&ax>WP_-_DGy58 zX()2Kh5^jp8J2V+a>fa@k*?&O7$TIQ7CZ@dS}f;Ji}&LDXOSn-t7-pia=@P%^psr* zGVh;l<6qie>;73Sak_i@QmeL@p#aH|jU#}2E^XZ@EziTmV(*NeveFS8$htwI6f$lU Tu~?c(35=jRjrrxIC;a~bxIiEf literal 0 HcmV?d00001 diff --git a/test-vectors/mycircuit2_constraints.json b/test-vectors/mycircuit2_constraints.json new file mode 100644 index 0000000..c0b721d --- /dev/null +++ b/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"}] +] +} \ No newline at end of file