Stellar PHP SDK API Documentation

SorobanDelegateSignature

Delegate signature node for a Soroban WITH_DELEGATES authorization entry (Protocol 27, CAP-71).

Each node carries the delegate address, a signature value (void XdrSCVal when unsigned), and an optional list of further nested delegates. The address is stored as XdrSCAddress so it can be XDR-encoded for sorting and comparison without a round-trip through strkey.

Invariants:

  • $nestedDelegates must be sorted ascending by the complete XDR-encoded bytes of each node's $address before encoding; no duplicates within one array.
  • $signature is an XdrSCVal::forVoid() when unsigned; callers append signatures via SorobanAuthorizationEntry::sign().
  • This type is not idempotent: signing the same node twice with the same key appends a duplicate that the host will reject. Callers are responsible for call order.
Tags
see
SorobanAddressCredentialsWithDelegates
SorobanAuthorizationEntry
since

Protocol 27 (CAP-71)

Table of Contents

Properties

$address  : XdrSCAddress
$nestedDelegates  : array<string|int, SorobanDelegateSignature>
$signature  : XdrSCVal

Methods

__construct()  : mixed
fromXdr()  : SorobanDelegateSignature
Creates a SorobanDelegateSignature from its XDR representation.
getAddress()  : XdrSCAddress
Returns the address of this delegate node.
getNestedDelegates()  : array<string|int, SorobanDelegateSignature>
Returns the nested delegates array.
getSignature()  : XdrSCVal
Returns the signature value.
setAddress()  : void
Sets the address of this delegate node.
setNestedDelegates()  : void
Sets the nested delegates array.
setSignature()  : void
Sets the signature value.
toXdr()  : XdrSorobanDelegateSignature
Converts this delegate signature to its XDR representation.

Properties

Methods

On this page

Search results