Package org.stellar.sdk.xdr
Class MuxedAccount
java.lang.Object
org.stellar.sdk.xdr.MuxedAccount
MuxedAccount's original definition in the XDR file is:
union MuxedAccount switch (CryptoKeyType type) { case KEY_TYPE_ED25519: uint256 ed25519; case KEY_TYPE_MUXED_ED25519: struct { uint64 id; uint256 ed25519; } med25519; };
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
MuxedAccountMed25519's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionMuxedAccount
(CryptoKeyType discriminant, Uint256 ed25519, MuxedAccount.MuxedAccountMed25519 med25519) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static MuxedAccount
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static MuxedAccount
fromXdrBase64
(String xdr) static MuxedAccount
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(CryptoKeyType discriminant) void
setEd25519
(Uint256 ed25519) void
setMed25519
(MuxedAccount.MuxedAccountMed25519 med25519) toString()
default String
default byte[]
-
Constructor Details
-
MuxedAccount
public MuxedAccount() -
MuxedAccount
public MuxedAccount(CryptoKeyType discriminant, Uint256 ed25519, MuxedAccount.MuxedAccountMed25519 med25519)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getEd25519
-
getMed25519
-
setDiscriminant
-
setEd25519
-
setMed25519
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-