mirror of
https://github.com/arnaucube/circom.git
synced 2026-02-07 11:16:42 +01:00
Optimize optimization and fix out<==in
This commit is contained in:
18
test/circuits/inout.circom
Normal file
18
test/circuits/inout.circom
Normal file
@@ -0,0 +1,18 @@
|
||||
template Internal() {
|
||||
signal input in;
|
||||
signal output out;
|
||||
|
||||
out <== in;
|
||||
}
|
||||
|
||||
template InOut() {
|
||||
signal input in;
|
||||
signal output out;
|
||||
|
||||
component internal = Internal();
|
||||
|
||||
internal.in <== in;
|
||||
internal.out ==> out;
|
||||
}
|
||||
|
||||
component main = InOut();
|
||||
Reference in New Issue
Block a user