Class SecpPubKeyImpl
java.lang.Object
org.bitcoinj.secp.internal.SecpPubKeyImpl
- All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, ECKey, ECPublicKey, Key, PublicKey, SecpPoint, SecpPoint.Point, SecpPoint.Uncompressed, SecpPubKey
Default/Internal SecpPubKey implementation storing as
SecpPointUncompressed.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface SecpPoint
SecpPoint.Compressed, SecpPoint.Infinity, SecpPoint.Point, SecpPoint.Uncompressed -
Field Summary
Fields inherited from interface ECPublicKey
serialVersionUIDFields inherited from interface SecpPoint
POINT_INFINITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompress()Convert to a compressed point.getW()Returns this key as aSecpECPointor, if it is the "point at infinity" it returnsECPoint.POINT_INFINITYbooleanisOdd()Get the parity of the y-coordinate field valuestatic SecpPubKeyConstruct a public key from anECPointpoint()Get the uncompressedSecpPointtoString()x()Get the x-coordinate field valuey()Get the y-coordinate field valueMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SecpPoint.Uncompressed
toECPointMethods inherited from interface SecpPubKey
getAlgorithm, getCompressed, getEncoded, getFormat, getParams, getUncompressed, serialize, serialize, xOnly
-
Constructor Details
-
SecpPubKeyImpl
-
SecpPubKeyImpl
-
SecpPubKeyImpl
-
-
Method Details
-
ofPoint
Construct a public key from anECPoint- Parameters:
ecPoint- the point- Returns:
- the pubkey
-
getW
Description copied from interface:SecpPubKeyReturns this key as aSecpECPointor, if it is the "point at infinity" it returnsECPoint.POINT_INFINITY- Specified by:
getWin interfaceECPublicKey- Specified by:
getWin interfaceSecpPubKey- Returns:
- point as
ECPointor subclass.
-
point
Description copied from interface:SecpPubKeyGet the uncompressedSecpPoint- Specified by:
pointin interfaceSecpPubKey- Returns:
- point
-
toString
-
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
-
x
Description copied from interface:SecpPoint.PointGet the x-coordinate field value- Specified by:
xin interfaceSecpPoint.Point- Returns:
- x-coordinate
-
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
-