SorobanDelegateSignature class
A single delegate node in a WITH_DELEGATES authorization tree (protocol 27+).
Each node holds:
- address The SCAddress of the delegate (account or contract; never muxed).
- signature The delegate's signature as an XdrSCVal (void until signed).
- nestedDelegates Child delegates authorized by this delegate.
Sorting invariant: within any nestedDelegates list, delegates are ordered ascending by the lexicographic comparison of their complete XDR-encoded XdrSCAddress bytes. Build trees with SorobanDelegateDescriptor and SorobanAuthorizationEntry.withDelegates; that API enforces the sort order.
Signing semantics: all delegates at any depth sign the same preimage hash as the top-level credentials; delegates carry no nonce or expiration. Signing the same node twice with the same key appends a duplicate that the host rejects.
Constructors
-
SorobanDelegateSignature(XdrSCAddress address, XdrSCVal signature, List<
SorobanDelegateSignature> nestedDelegates)
Properties
- address ↔ XdrSCAddress
-
The SCAddress of this delegate.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
nestedDelegates
↔ List<
SorobanDelegateSignature> -
Child delegates authorized by this delegate. Must be sorted ascending by
the XDR-encoded bytes of each child's address; no duplicates within this list.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature ↔ XdrSCVal
-
The delegate's signature (void until explicitly signed).
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXdr(
) → XdrSorobanDelegateSignature - Converts this delegate to its XDR representation.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromXdr(
XdrSorobanDelegateSignature xdr) → SorobanDelegateSignature - Creates a SorobanDelegateSignature from its XDR representation.