template Square() { signal input in; signal output out; out <== in**2; } template Main(n, nrounds) { signal input in[n]; signal output out[n]; component squares[n][nrounds]; for (var i=0; i out[i]; } } component main = Main(2, 3);