isInfinity property
Checks if the Edwards curve point represents the point at infinity.
This method checks whether the Edwards curve point represents the point at infinity, which is defined as either an empty set of coordinates or having both x and y coordinates equal to zero.
Returns:
true
if the point is the point at infinity,false
otherwise.
Implementation
@override
bool get isInfinity =>
_coords.isEmpty ||
(_coords[0] == BigInt.zero || _coords[3] == BigInt.zero);