signAuthDigest

abstract suspend fun signAuthDigest(authDigest: ByteArray, publicKey: ByteArray): ByteArray

Produces a 64-byte Ed25519 signature over authDigest.

Called by the multi-signer pipeline when canSignFor returned true for the same key pair. The pipeline locally verifies the returned signature before incorporating it into the authorization payload.

Return

The 64-byte raw Ed25519 signature over authDigest.

Parameters

authDigest

The 32-byte digest to sign, computed as SHA-256(signaturePayload || contextRuleIds.toXDR()).

publicKey

The 32-byte Ed25519 public key that identifies which key to sign with.