Minimal Anti Collusion Infrastructure (MACI) v2.2.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
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/@zk-kit+baby-jubjub@1.0.1/node_modules/@zk-kit/baby-jubjub/dist/types/baby-jubjub.d.ts:38