From fb97cfa7545ec608b848ddb1be02ebaf0f8a430c Mon Sep 17 00:00:00 2001 From: chiefbiiko <22937570+chiefbiiko@users.noreply.github.com> Date: Mon, 26 Feb 2024 08:59:54 +0100 Subject: [PATCH] fix: pushFieldElements(prime,cur,acc) --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e2fbbd7..c7a54c3 100644 --- a/index.js +++ b/index.js @@ -86,7 +86,7 @@ function toBigInt(x) { function pushFieldElements(prime, inputs, out) { return inputs.reduce((acc, cur) => { if (Array.isArray(cur)) { - return pushFieldElements(cur, acc) + return pushFieldElements(prime, cur, acc) } else { Array.prototype.push.apply(acc, toBytesBE(cur % prime, 32)) return acc