diff --git a/circuits/escalarmulfix.circom b/circuits/escalarmulfix.circom index 4669d36f..907a826f 100644 --- a/circuits/escalarmulfix.circom +++ b/circuits/escalarmulfix.circom @@ -237,7 +237,7 @@ template EscalarMulFix(n, BASE) { signal output out[2]; // Point (Twisted format) var nsegments = (n-1)\246 +1; // 249 probably would work. But I'm not sure and for security I keep 246 - var nlastsegment = n - (nsegments-1)*249; + var nlastsegment = n - (nsegments-1)*246; component segments[nsegments]; @@ -251,13 +251,13 @@ template EscalarMulFix(n, BASE) { for (s=0; s