Package org.stellar.sdk.xdr
Class SignerKey
java.lang.Object
org.stellar.sdk.xdr.SignerKey
SignerKey's original definition in the XDR file is:
union SignerKey switch (SignerKeyType type)
{
case SIGNER_KEY_TYPE_ED25519:
uint256 ed25519;
case SIGNER_KEY_TYPE_PRE_AUTH_TX:
/* SHA-256 Hash of TransactionSignaturePayload structure */
uint256 preAuthTx;
case SIGNER_KEY_TYPE_HASH_X:
/* Hash of random 256 bit preimage X */
uint256 hashX;
case SIGNER_KEY_TYPE_ED25519_SIGNED_PAYLOAD:
struct
{
/* Public key that must sign the payload. */
uint256 ed25519;
/* Payload to be raw signed by ed25519. */
opaque payload<64>;
} ed25519SignedPayload;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classSignerKeyEd25519SignedPayload's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionSignerKey(SignerKeyType discriminant, Uint256 ed25519, Uint256 preAuthTx, Uint256 hashX, SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) -
Method Summary
Modifier and TypeMethodDescriptionstatic SignerKey.SignerKeyBuilderbuilder()static SignerKeydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SignerKeyfromXdrBase64(String xdr) static SignerKeyfromXdrByteArray(byte[] xdr) getHashX()inthashCode()voidsetDiscriminant(SignerKeyType discriminant) voidsetEd25519(Uint256 ed25519) voidsetEd25519SignedPayload(SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload) voidvoidsetPreAuthTx(Uint256 preAuthTx) toString()default Stringdefault byte[]
-
Constructor Details
-
SignerKey
public SignerKey() -
SignerKey
public SignerKey(SignerKeyType discriminant, Uint256 ed25519, Uint256 preAuthTx, Uint256 hashX, SignerKey.SignerKeyEd25519SignedPayload ed25519SignedPayload)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getEd25519
-
getPreAuthTx
-
getHashX
-
getEd25519SignedPayload
-
setDiscriminant
-
setEd25519
-
setPreAuthTx
-
setHashX
-
setEd25519SignedPayload
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-