Class SecpXOnlyPubKeyImpl
java.lang.Object
org.bitcoinj.secp.internal.SecpXOnlyPubKeyImpl
- All Implemented Interfaces:
Comparable<ByteArray>, ByteArray, SecpXOnlyPubKey
Simple implementation using {code @byte[]} as internal storage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Get the bytes as an arraygetX()Get X as aBigIntegerbyte[]Serialize as a 32-byte, Big-endian byte arraytoString()
-
Constructor Details
-
SecpXOnlyPubKeyImpl
-
SecpXOnlyPubKeyImpl
public SecpXOnlyPubKeyImpl(byte[] xBytes) -
SecpXOnlyPubKeyImpl
-
-
Method Details
-
getX
Description copied from interface:SecpXOnlyPubKeyGet X as aBigInteger- Specified by:
getXin interfaceSecpXOnlyPubKey- Returns:
- X as a
BigInteger
-
bytes
-
serialize
public byte[] serialize()Description copied from interface:SecpXOnlyPubKeySerialize as a 32-byte, Big-endian byte array- Specified by:
serializein interfaceSecpXOnlyPubKey- Returns:
- Big-endian, 32 bytes
-
toString
-