Package org.stellar.sdk.xdr
Class PublicKey
java.lang.Object
org.stellar.sdk.xdr.PublicKey
PublicKey's original definition in the XDR file is:
union PublicKey switch (PublicKeyType type) { case PUBLIC_KEY_TYPE_ED25519: uint256 ed25519; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PublicKey.PublicKeyBuilder
builder()
static PublicKey
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PublicKey
fromXdrBase64
(String xdr) static PublicKey
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(PublicKeyType discriminant) void
setEd25519
(Uint256 ed25519) toString()
default String
default byte[]
-
Constructor Details
-
PublicKey
public PublicKey() -
PublicKey
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getEd25519
-
setDiscriminant
-
setEd25519
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-