Stellar PHP SDK API Documentation

SignedPayloadSigner
in package

Data model for the <a href="https://github.com/stellar/stellar-protocol/blob/master/core/cap-0040.md#xdr-changes">signed payload signer </a>

Table of Contents

Methods

__construct()  : mixed
fromAccountId()  : SignedPayloadSigner
fromPublicKey()  : SignedPayloadSigner
getPayload()  : string
getSignerAccountId()  : XdrAccountID

Methods

__construct()

public __construct(XdrAccountID $signerAccountId, string $payload) : mixed
Parameters
$signerAccountId : XdrAccountID

ed25519 account id ("G...") of the signer

$payload : string
Tags
throws
InvalidArgumentException

when $payload is empty or longer than 64 bytes, or when $signerAccountId does not hold a valid "G..." strkey

fromAccountId()

public static fromAccountId(string $accountId, string $payload) : SignedPayloadSigner
Parameters
$accountId : string

ed25519 account id ("G...")

$payload : string
Tags
throws
InvalidArgumentException

when $payload is empty or longer than 64 bytes, or when $accountId is not a valid "G..." strkey

Return values
SignedPayloadSigner

fromPublicKey()

public static fromPublicKey(string $publicKey, string $payload) : SignedPayloadSigner
Parameters
$publicKey : string

bytes of ED25519 public key

$payload : string
Tags
throws
InvalidArgumentException

when $payload is empty or longer than 64 bytes, or when $publicKey is not 32 bytes long

Return values
SignedPayloadSigner
On this page

Search results