createEd25519Signer

fun createEd25519Signer(ed25519VerifierAddress: String, publicKey: ByteArray): ExternalSigner

Creates an Ed25519 signer (with external verifier).

For Ed25519 keys that need custom verification logic via a verifier contract. The key data is the 32-byte Ed25519 public key.

Return

An ExternalSigner configured for Ed25519 verification

Parameters

ed25519VerifierAddress

Ed25519 verifier contract address (C-address)

publicKey

32-byte Ed25519 public key

Throws

if the verifier address format is invalid

if the public key is not 32 bytes

Example:

val signer = SmartAccountBuilders.createEd25519Signer(
ed25519VerifierAddress = "CDEF5678...",
publicKey = ed25519PublicKey
)