Class SecpECPoint
java.lang.Object
java.security.spec.ECPoint
org.bitcoinj.secp.internal.SecpECPoint
- All Implemented Interfaces:
SecpPoint, SecpPoint.Point, SecpPoint.Uncompressed
An
ECPoint that has been validated to also be a SecpPoint. This class cannot
represent the "point at infinity", if you need it use ECPoint.POINT_INFINITY and the
superclass ECPoint.-
Nested Class Summary
Nested classes/interfaces inherited from interface SecpPoint
SecpPoint.Compressed, SecpPoint.Infinity, SecpPoint.Point, SecpPoint.Uncompressed -
Field Summary
Fields inherited from class ECPoint
POINT_INFINITYFields inherited from interface SecpPoint
POINT_INFINITY -
Constructor Summary
ConstructorsConstructorDescriptionSecpECPoint(BigInteger x, BigInteger y) Creates an ECPoint from the specified affine x-coordinatexand affine y-coordinatey. -
Method Summary
Methods inherited from class ECPoint
equals, getAffineX, getAffineY, hashCodeMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SecpPoint.Uncompressed
serialize, toECPoint
-
Constructor Details
-
SecpECPoint
Creates an ECPoint from the specified affine x-coordinatexand affine y-coordinatey.- Parameters:
x- the affine x-coordinate.y- the affine y-coordinate.- Throws:
NullPointerException- ifxoryis null.
-
SecpECPoint
-
-
Method Details
-
x
Description copied from interface:SecpPoint.PointGet the x-coordinate field value- Specified by:
xin interfaceSecpPoint.Point- Returns:
- x-coordinate
-
y
Description copied from interface:SecpPoint.UncompressedGet the y-coordinate field value- Specified by:
yin interfaceSecpPoint.Uncompressed- Returns:
- y-coordinate
-
compress
Description copied from interface:SecpPoint.UncompressedConvert to a compressed point.- Specified by:
compressin interfaceSecpPoint.Uncompressed- Returns:
- compressed point
-
isOdd
public boolean isOdd()Description copied from interface:SecpPoint.PointGet the parity of the y-coordinate field value- Specified by:
isOddin interfaceSecpPoint.Point- Returns:
trueif odd,falseif even
-