toScVal

open override fun toScVal(): SCValXdr

Converts the Ed25519 signature to a Soroban SCVal map.

The resulting map has keys in alphabetical order:

ScVal::Map([
{ Symbol("public_key"), Bytes(publicKey) },
{ Symbol("signature"), Bytes(signature) },
])

Return

SCValXdr.Map with public key and signature bytes