signAuthEntry

abstract suspend fun signAuthEntry(preimageXdr: String, options: SignAuthEntryOptions? = null): SignAuthEntryResult

Signs an authorization preimage with the external wallet.

The SDK sends a base64-encoded HashIDPreimage XDR. The wallet should:

  1. Base64-decode the preimage bytes

  2. SHA-256 hash the preimage bytes

  3. Ed25519-sign the 32-byte hash

  4. Return the 64-byte raw signature as base64

The SDK handles auth entry construction and signature format — the wallet only needs to produce the raw Ed25519 signature.

Return

The signing result with base64-encoded raw Ed25519 signature (64 bytes)

Parameters

preimageXdr

The base64-encoded HashIDPreimage XDR to sign

options

Optional signing options (network passphrase, specific address)

Throws

if signing fails or is rejected