diff --git a/circuits/finite_field.circom b/circuits/finite_field.circom index 9916350..f7cf239 100644 --- a/circuits/finite_field.circom +++ b/circuits/finite_field.circom @@ -2,13 +2,16 @@ pragma circom 2.1.9; include "circomlib/circuits/bitify.circom"; +// Finite field addition, the signal variable plus a compile-time constant template FieldAddConst(c) { signal input in[8]; + // control bit, if 0, then do not perform addition signal input control; signal output out[8]; for (var i=0; i<8; i++) { if(c & (1<