Minimal Anti Collusion Infrastructure (MACI) v2.5.0 / inCurve
Function: inCurve()
inCurve(
p
):boolean
Determines if a given point lies on the Baby Jubjub elliptic curve by verifying the curve equation.
This function checks if the point satisfies the curve equation ax^2 + y^2 = 1 + dx^2y^2
.
Parameters
• p: Point
<BigNumber
>
The point to check, represented as a pair of bigint values.
Returns
boolean
True if the point is on the curve, otherwise false.
Defined in
node_modules/.pnpm/@[email protected]/node_modules/@zk-kit/baby-jubjub/dist/index.d.ts:41