mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 11:16:42 +01:00
Fixes and tests passed
This commit is contained in:
18
test/circuits/constantinternalcircuit.circom
Normal file
18
test/circuits/constantinternalcircuit.circom
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
template Const() {
|
||||
signal output out[2];
|
||||
|
||||
out[0] <== 2;
|
||||
out[1] <== 2;
|
||||
}
|
||||
|
||||
template Main() {
|
||||
signal input in;
|
||||
signal output out;
|
||||
|
||||
component const = Const();
|
||||
|
||||
out <== const.out[0] + const.out[1] + in;
|
||||
}
|
||||
|
||||
component main = Main();
|
||||
Reference in New Issue
Block a user