Class ECPoint


  • public class ECPoint
    extends Object
    A Point on an Elliptic Curve in barycentric (or affine) coordinates.
    • Field Detail

      • POINT_INFINITY

        public static final ECPoint POINT_INFINITY
        The point on an Elliptic Curve at infinity.
    • Constructor Detail

      • ECPoint

        public ECPoint​(BigInteger affineX,
                       BigInteger affineY)
        Creates a new point at the specified coordinates.
        Parameters:
        affineX - the x-coordinate.
        affineY - the y-coordinate.
    • Method Detail

      • getAffineX

        public BigInteger getAffineX()
        Returns the x-coordinate.
        Returns:
        the x-coordinate, or null for the infinite point.
      • getAffineY

        public BigInteger getAffineY()
        Returns the y-coordinate.
        Returns:
        the y-coordinate, or null fot the infinite point.
      • equals

        public boolean equals​(Object other)
        Returns whether the specified object and this elliptic curve point are equal.
        Overrides:
        equals in class Object
        Parameters:
        other - the object to compare.
        Returns:
        true if the specified object and this elliptic curve point are equal, otherwise false.
        See Also:
        Object.hashCode()