Sep30RequestIdentity

data class Sep30RequestIdentity(val role: String, val authMethods: List<Sep30AuthMethod>)

Represents an identity configuration for SEP-30 account recovery requests.

Each identity defines a role and a list of authMethods that the recovery server uses to verify the identity during account recovery operations.

Roles

  • "owner": Can sign transactions and modify account identities on the recovery server.

  • "other": Can only sign transactions (additional signers).

Usage

val emailAuth = Sep30AuthMethod(type = "email", value = "user@example.com")
val phoneAuth = Sep30AuthMethod(type = "phone_number", value = "+14155551234")

val ownerIdentity = Sep30RequestIdentity(
role = "owner",
authMethods = listOf(emailAuth, phoneAuth)
)

See also

Constructors

Link copied to clipboard
constructor(role: String, authMethods: List<Sep30AuthMethod>)

Properties

Link copied to clipboard

The list of authentication methods for verifying this identity

Link copied to clipboard

The role of this identity ("owner" or "other")

Functions

Link copied to clipboard
fun toJson(): Map<String, Any?>

Converts this request identity to a JSON-compatible map.