XdrMuxedAccount
extends XdrMuxedAccountBase
in package
Table of Contents
Properties
- $ed25519 : string|null
- $med25519 : XdrMuxedAccountMed25519|null
- $type : XdrCryptoKeyType
Methods
- __construct() : mixed
- Constructor. Provide $ed25519 or $med25519.
- decode() : static
- encode() : string
- fromBase64Xdr() : static
- fromTxRep() : static
- Deserialize from a compact StrKey address string (G... or M...).
- getDiscriminant() : int
- getEd25519() : string|null
- getMed25519() : XdrMuxedAccountMed25519|null
- getType() : XdrCryptoKeyType
- setEd25519() : void
- setMed25519() : void
- setType() : void
- toBase64Xdr() : string
- toTxRep() : void
- Serialize as a compact StrKey address string.
Properties
$ed25519
public
string|null
$ed25519
= null
$med25519
public
XdrMuxedAccountMed25519|null
$med25519
= null
$type
public
XdrCryptoKeyType
$type
Methods
__construct()
Constructor. Provide $ed25519 or $med25519.
public
__construct([string|null $ed25519 = null ][, XdrMuxedAccountMed25519|null $med25519 = null ]) : mixed
Parameters
- $ed25519 : string|null = null
- $med25519 : XdrMuxedAccountMed25519|null = null
decode()
public
static decode(XdrBuffer $xdr) : static
Parameters
- $xdr : XdrBuffer
Return values
staticencode()
public
encode() : string
Return values
stringfromBase64Xdr()
public
static fromBase64Xdr(string $xdr) : static
Parameters
- $xdr : string
Return values
staticfromTxRep()
Deserialize from a compact StrKey address string (G... or M...).
public
static fromTxRep(array<string, string> $map, string $prefix) : static
Constructs a plain Ed25519 muxed account from a G... address, or a muxed ed25519 account from an M... address.
Parameters
- $map : array<string, string>
-
Parsed TxRep map.
- $prefix : string
-
Key prefix.
Tags
Return values
staticgetDiscriminant()
public
getDiscriminant() : int
Return values
intgetEd25519()
public
getEd25519() : string|null
Return values
string|nullgetMed25519()
public
getMed25519() : XdrMuxedAccountMed25519|null
Return values
XdrMuxedAccountMed25519|nullgetType()
public
getType() : XdrCryptoKeyType
Return values
XdrCryptoKeyTypesetEd25519()
public
setEd25519(string|null $ed25519) : void
Parameters
- $ed25519 : string|null
setMed25519()
public
setMed25519(XdrMuxedAccountMed25519|null $med25519) : void
Parameters
- $med25519 : XdrMuxedAccountMed25519|null
setType()
public
setType(XdrCryptoKeyType $type) : void
Parameters
- $type : XdrCryptoKeyType
toBase64Xdr()
public
toBase64Xdr() : string
Return values
stringtoTxRep()
Serialize as a compact StrKey address string.
public
toTxRep(string $prefix, array<string, string> &$lines) : void
Returns a G... address for plain Ed25519 accounts, or an M... address for muxed (med25519) accounts. Overrides the generated base method, which would expand discriminant and sub-field lines.
Parameters
- $prefix : string
-
Key prefix for the TxRep map.
- $lines : array<string, string>
-
Output map (modified in place).