From 6482688ad97ebfc5b773a17a8b166ad70f42708e Mon Sep 17 00:00:00 2001 From: 0xThemis <118167989+0xThemis@users.noreply.github.com> Date: Fri, 29 Aug 2025 08:28:33 +0200 Subject: [PATCH] fix: fixes typo in escalarmulfix Co-authored-by: Daniel Kales <11509575+dkales@users.noreply.github.com> --- circuits/escalarmulfix.circom | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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