signEd25519AuthDigest

suspend fun signEd25519AuthDigest(verifierAddress: String, publicKey: ByteArray, authDigest: ByteArray): ByteArray

Produces a 64-byte Ed25519 signature over authDigest.

Resolves the signing source using the adapter-first precedence rule: the adapter is consulted first via OZExternalEd25519SignerAdapter.canSignFor. If the adapter claims it can sign, it is invoked via OZExternalEd25519SignerAdapter.signAuthDigest. Otherwise the in-memory keypair registry is used. Throws when neither source is available.

The registry lock is never held while the adapter's OZExternalEd25519SignerAdapter.signAuthDigest is awaited, preventing deadlock with adapters that may call back into the manager.

Return

The 64-byte raw Ed25519 signature over authDigest.

Parameters

verifierAddress

The C-strkey of the Ed25519 verifier contract.

publicKey

The 32-byte Ed25519 public key identifying the signer slot.

authDigest

The 32-byte auth digest to sign.

Throws

when no signing source is registered.

when the adapter or in-memory keypair fails.