arnaucube
arnaucube/circomPublic Self-hosted repository
circom/test/circuits/forrolled.circom
test/circuits/forrolled.circomRaw
 1template ForRolled() {
 2    signal input in;
 3    signal output out;
 4
 5    var acc = 0;
 6
 7    for (var i=0; i<in; i = i+1) {
 8        acc = acc + 1;
 9    }
10
11    out <== acc;
12}
13
14component main = ForRolled();