sign Auth Entry
Signs an authorization entry preimage with the appropriate signer for the given address.
For keypair signers, the preimage XDR is decoded, hashed (SHA-256), and signed directly with the in-memory Ed25519 keypair. For wallet signers, the signing is delegated to the ExternalWalletAdapter.signAuthEntry method.
Keypair signers take precedence over wallet signers when both exist for the same address.
Return
The signing result containing the base64-encoded signature and signer address
Parameters
address
The G-address identifying which signer to use
auth Entry
Base64-encoded HashIdPreimage XDR to sign
Throws
if no signer is available for the address
if the signing operation fails
Example:
val result = manager.signAuthEntry(
address = "GABC123...",
authEntry = preimageXdrBase64
)
println("Signature: ${result.signedAuthEntry}")
println("Signer: ${result.signerAddress}")Content copied to clipboard