SmartAccountSignature

Base sealed class for smart account signature types.

Smart accounts support multiple signature types for transaction authorization:

Each signature type can be converted to a Soroban SCVal representation that the smart account contract can verify, and to a ByteArray that is embedded directly in the on-wire auth-payload signers map via toAuthPayloadBytes.

Example usage:

val signature = WebAuthnSignature(
authenticatorData = authenticatorDataBytes,
clientData = clientDataBytes,
signature = signatureBytes
)
val scVal = signature.toScVal()
val payloadBytes = signature.toAuthPayloadBytes()

Inheritors

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard

Returns the raw bytes to embed in the on-wire signers map of the auth payload.

Link copied to clipboard
abstract fun toScVal(): SCValXdr

Converts this signature to its ScVal representation.