SorobanDelegateDescriptor

public struct SorobanDelegateDescriptor : Sendable

Descriptor for one node in a CAP-71 delegate tree.

Callers supply an address strkey, an optional pre-built signature (defaults to .void), and an optional array of nested delegate descriptors. The SDK converts descriptors into SorobanDelegateSignatureXDR values, sorts every array by ascending XDR-byte order, and rejects within-array duplicate addresses.

  • Stellar address as a strkey (G… for account, C… for contract).

    Declaration

    Swift

    public let address: String
  • Initial signature for this node. Defaults to .void.

    Pass .void when the node is unsigned at construction time and will be signed separately. Only pass a non-void value when the signature is known at construction.

    Declaration

    Swift

    public let signature: SCValXDR
  • Nested delegate descriptors for this node’s nestedDelegates array.

    Declaration

    Swift

    public let nestedDelegates: [SorobanDelegateDescriptor]
  • Undocumented

    Declaration

    Swift

    public init(
        address: String,
        signature: SCValXDR = .void,
        nestedDelegates: [SorobanDelegateDescriptor] = []
    )