class InvalidCurveOrder(ValueError): """Raised when the order of the curve is invalid.""" class PointNotOnCurve(ValueError): """Raised when a point is not on the curve."""