From e2411f7dfd295a8909b47dad358067887ae9b6dd Mon Sep 17 00:00:00 2001 From: Paul Miller Date: Tue, 21 Mar 2023 06:25:09 +0000 Subject: [PATCH] modular: add comment --- src/abstract/modular.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/abstract/modular.ts b/src/abstract/modular.ts index 84ab0fb..58825e8 100644 --- a/src/abstract/modular.ts +++ b/src/abstract/modular.ts @@ -280,6 +280,7 @@ export function FpPow(f: IField, num: T, power: bigint): T { return p; } +// 0 is non-invertible: non-batched version will throw on 0 export function FpInvertBatch(f: IField, nums: T[]): T[] { const tmp = new Array(nums.length); // Walk from first to last, multiply them by each other MOD p