At the moment, there are cases in which calculating with the point at infinity gives unexpected results and others in which an AttributeError is raised:
Point.IDENTITY_ELEMENT + 2 gives 2
Point.IDENTITY_ELEMENT - 2 raises an AttributeError
Point.IDENTITY_ELEMENT * 1.5 raises an AttributeError
In all of these cases I would expect an TypeError.
At the moment, there are cases in which calculating with the point at infinity gives unexpected results and others in which an
AttributeError
is raised:Point.IDENTITY_ELEMENT + 2
gives2
Point.IDENTITY_ELEMENT - 2
raises anAttributeError
Point.IDENTITY_ELEMENT * 1.5
raises anAttributeError
In all of these cases I would expect an
TypeError
.