authorizeEntry

suspend fun authorizeEntry(entry: String, signer: KeyPair, validUntilLedgerSeq: Long, network: Network): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a KeyPair.

This "fills out" the authorization entry with a signature, indicating to the InvokeHostFunctionOperation it's attached to that:

  • a particular identity (signing KeyPair) approves

  • the execution of an invocation tree

  • on a particular network (replay protection)

  • until a particular ledger sequence is reached

Return

A signed Soroban authorization entry

Parameters

entry

The base64 encoded unsigned Soroban authorization entry

signer

The KeyPair to sign with (must correspond to the address in the entry)

validUntilLedgerSeq

The exclusive future ledger sequence until which this is valid

network

The network (incorporated into the signature for replay protection)

Throws

if entry cannot be decoded or signature verification fails


suspend fun authorizeEntry(entry: SorobanAuthorizationEntryXdr, signer: KeyPair, validUntilLedgerSeq: Long, network: Network): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a KeyPair.

This "fills out" the authorization entry with a signature, indicating to the InvokeHostFunctionOperation it's attached to that:

  • a particular identity (signing KeyPair) approves

  • the execution of an invocation tree

  • on a particular network (replay protection)

  • until a particular ledger sequence is reached

Return

A signed Soroban authorization entry

Parameters

entry

The unsigned Soroban authorization entry

signer

The KeyPair to sign with (must correspond to the address in the entry)

validUntilLedgerSeq

The exclusive future ledger sequence until which this is valid

network

The network (incorporated into the signature for replay protection)

Throws

if signature verification fails


suspend fun authorizeEntry(entry: String, signer: Auth.Signer, validUntilLedgerSeq: Long, network: Network): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a custom Signer.

This "fills out" the authorization entry with a signature, indicating to the InvokeHostFunctionOperation it's attached to that:

  • a particular identity (custom Signer) approves

  • the execution of an invocation tree

  • on a particular network (replay protection)

  • until a particular ledger sequence is reached

Return

A signed Soroban authorization entry

Parameters

entry

The base64 encoded unsigned Soroban authorization entry

signer

A function that signs the hash of a HashIDPreimage

validUntilLedgerSeq

The exclusive future ledger sequence until which this is valid

network

The network (incorporated into the signature for replay protection)

Throws

if entry cannot be decoded or signature verification fails


suspend fun authorizeEntry(entry: SorobanAuthorizationEntryXdr, signer: Auth.Signer, validUntilLedgerSeq: Long, network: Network): SorobanAuthorizationEntryXdr

Authorizes an existing authorization entry using a custom Signer.

This "fills out" the authorization entry with a signature, indicating to the InvokeHostFunctionOperation it's attached to that:

  • a particular identity (custom Signer) approves

  • the execution of an invocation tree

  • on a particular network (replay protection)

  • until a particular ledger sequence is reached

Return

A signed Soroban authorization entry

Parameters

entry

The unsigned Soroban authorization entry

signer

A function that signs the hash of a HashIDPreimage

validUntilLedgerSeq

The exclusive future ledger sequence until which this is valid

network

The network (incorporated into the signature for replay protection)

Throws

if signature verification fails