@Test void succeedsWhenDefaultConstructorReturnsThePointAtInfinity() { G2Point infinity = new G2Point(); assertTrue(infinity.ecp2Point().is_infinity()); assertTrue(infinity.ecp2Point().getX().iszilch()); }
public ECP2 ecp2Point() { return point; }
G2Point implements Group<G2Point> { public ECP2 ecp2Point() { return point; } }
G2Point implements Group<G2Point> { public ECP2 ecp2Point() { return point; } G2Point();  G2Point(ECP2 point); }
G2Point implements Group<G2Point> { public ECP2 ecp2Point() { return point; } G2Point();  G2Point(ECP2 point); static G2Point random(long seed); static G2Point hashToG2(Bytes message); @Override G2Point add(G2Point other); @Override G2Point mul(Scalar scalar); ECP2 getPoint(); Bytes toBytes(); @VisibleForTesting Bytes toBytesCompressed(); static G2Point fromBytes(Bytes bytes); static G2Point fromBytesCompressed(Bytes bytes); static boolean isInGroup(ECP2 point); ECP2 ecp2Point(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
G2Point implements Group<G2Point> { public ECP2 ecp2Point() { return point; } G2Point();  G2Point(ECP2 point); static G2Point random(long seed); static G2Point hashToG2(Bytes message); @Override G2Point add(G2Point other); @Override G2Point mul(Scalar scalar); ECP2 getPoint(); Bytes toBytes(); @VisibleForTesting Bytes toBytesCompressed(); static G2Point fromBytes(Bytes bytes); static G2Point fromBytesCompressed(Bytes bytes); static boolean isInGroup(ECP2 point); ECP2 ecp2Point(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }