Check if a given point (x, y) lies on the curve
bool containsPoint(BigInt x, BigInt y) { final BigInt leftSide = (y * y - ((x * x + a) * x + b)) % p; return leftSide == BigInt.zero; }