authorize Invocation
Builds and authorizes a new entry from scratch using a KeyPair.
This builds an entry from scratch, allowing you to express authorization as a function of:
a particular identity (signing KeyPair)
approving the execution of an invocation tree
on a particular network
until a particular ledger sequence is reached
Return
A signed Soroban authorization entry
Parameters
The KeyPair to sign with
The exclusive future ledger sequence until which this is valid
The invocation tree being authorized (typically from simulation)
The network (incorporated into the signature for replay protection)
Throws
if authorization fails
Builds and authorizes a new entry from scratch using a custom Signer.
This builds an entry from scratch, allowing you to express authorization as a function of:
a particular identity (custom Signer)
approving the execution of an invocation tree
on a particular network
until a particular ledger sequence is reached
Return
A signed Soroban authorization entry
Parameters
A function that signs the hash of a HashIDPreimage
The public identity of the signer (G... address)
The exclusive future ledger sequence until which this is valid
The invocation tree being authorized (typically from simulation)
The network (incorporated into the signature for replay protection)
Throws
if authorization fails