PublicKey(this.curve, BigInt X, BigInt Y) : super.fromXY(X, Y) { // Validate that the point is on the curve if (!curve.isOnCurve(this)) { throw ErrPointNotOnCurve; } }