isTorsionFree method
Checks whether the point is in the correct G1 subgroup (torsion-free).
Implementation
bool isTorsionFree() {
final minusX = -G1NativeProjective.fromAffine(this).mulByX().mulByX();
final endomorphismP = _endomorphism();
return minusX == endomorphismP.toProjective();
}