forked from tornado-packages/noble-curves
modular: add comment
This commit is contained in:
parent
cb61e4f292
commit
e2411f7dfd
@ -280,6 +280,7 @@ export function FpPow<T>(f: IField<T>, num: T, power: bigint): T {
|
|||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 0 is non-invertible: non-batched version will throw on 0
|
||||||
export function FpInvertBatch<T>(f: IField<T>, nums: T[]): T[] {
|
export function FpInvertBatch<T>(f: IField<T>, nums: T[]): T[] {
|
||||||
const tmp = new Array(nums.length);
|
const tmp = new Array(nums.length);
|
||||||
// Walk from first to last, multiply them by each other MOD p
|
// Walk from first to last, multiply them by each other MOD p
|
||||||
|
Loading…
Reference in New Issue
Block a user