Smart Account Signature
Base sealed class for smart account signature types.
Smart accounts support multiple signature types for transaction authorization:
WebAuthnSignature: Signatures from passkeys (biometric authentication)
Ed25519Signature: Signatures from traditional Ed25519 keypairs
PolicySignature: Policy-based authorization (empty map)
Each signature type can be converted to a Soroban SCVal representation that the smart account contract can verify.
Example usage:
val signature = WebAuthnSignature(
authenticatorData = authenticatorDataBytes,
clientData = clientDataBytes,
signature = signatureBytes
)
val scVal = signature.toScVal()Content copied to clipboard