Ed25519Signature
data class Ed25519Signature(val publicKey: ByteArray, val signature: ByteArray) : SmartAccountSignature
Ed25519 signature from a traditional keypair.
Ed25519 signatures are 64 bytes and provide deterministic signing with strong side-channel resistance.
toScVal returns the raw 64-byte signature as SCValXdr.Bytes. The Ed25519 verifier contract expects BytesN<64> directly as sig_data. The corresponding public key is supplied separately from the smart account's on-chain External(verifier, key_data) storage and is NOT transmitted in the auth payload.
The publicKey field is retained on the data class for local Ed25519 signature verification before submission and for content-based equality.
Example:
val ed25519Sig = Ed25519Signature(
publicKey = byteArrayOf(...), // 32-byte Ed25519 public key
signature = byteArrayOf(...) // 64-byte Ed25519 signature
)
val scVal = ed25519Sig.toScVal() // SCValXdr.Bytes holding the raw 64 bytesContent copied to clipboard