Package org.stellar.sdk.xdr
Class SignerKey.SignerKeyEd25519SignedPayload
java.lang.Object
org.stellar.sdk.xdr.SignerKey.SignerKeyEd25519SignedPayload
- All Implemented Interfaces:
XdrElement
- Enclosing class:
SignerKey
SignerKeyEd25519SignedPayload's original definition in the XDR file is:
struct
{
/* Public key that must sign the payload. */
uint256 ed25519;
/* Payload to be raw signed by ed25519. */
opaque payload<64>;
}
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionSignerKeyEd25519SignedPayload(Uint256 ed25519, byte[] payload) Creates a newSignerKeyEd25519SignedPayloadinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()decode(XdrDataInputStream stream) decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanfromXdrBase64(String xdr) fromXdrByteArray(byte[] xdr) Value of theed25519field.byte[]Value of thepayloadfield.inthashCode()voidsetEd25519(Uint256 ed25519) Value of theed25519field.voidsetPayload(byte[] payload) Value of thepayloadfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SignerKeyEd25519SignedPayload
public SignerKeyEd25519SignedPayload() -
SignerKeyEd25519SignedPayload
Creates a newSignerKeyEd25519SignedPayloadinstance.- Parameters:
ed25519- theed25519field valuepayload- thepayloadfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static SignerKey.SignerKeyEd25519SignedPayload decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
public static SignerKey.SignerKeyEd25519SignedPayload decode(XdrDataInputStream stream) throws IOException - Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
public static SignerKey.SignerKeyEd25519SignedPayload fromXdrByteArray(byte[] xdr) throws IOException - Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
public static SignerKey.SignerKeyEd25519SignedPayload.SignerKeyEd25519SignedPayloadBuilder builder() -
toBuilder
-
getEd25519
Value of theed25519field.- Returns:
- the
ed25519field value
-
getPayload
public byte[] getPayload()Value of thepayloadfield.- Returns:
- the
payloadfield value
-
setEd25519
Value of theed25519field.- Parameters:
ed25519- theed25519field value
-
setPayload
public void setPayload(byte[] payload) Value of thepayloadfield.- Parameters:
payload- thepayloadfield value
-
equals
-
hashCode
public int hashCode() -
toString
-