Package org.stellar.walletsdk.recovery

Types

Link copied to clipboard
interface AccountRecover
Link copied to clipboard
@Serializable
data class RecoverableAccountInfo(address: PublicKeyPair, identities: List<RecoverableIdentity>, signers: List<RecoverableSigner>)
Link copied to clipboard
@Serializable
data class RecoverableIdentity(role: String, authenticated: Boolean?)
Link copied to clipboard
@Serializable
data class RecoverableSigner(key: PublicKeyPair, added: Instant?)
Link copied to clipboard
data class RecoverableWallet(transaction: Transaction, signers: List<String>)
Link copied to clipboard
data class RecoverableWalletConfig(accountAddress: AccountKeyPair, deviceAddress: AccountKeyPair, accountThreshold: AccountThreshold, accountIdentity: Map<RecoveryServerKey, List<RecoveryAccountIdentity>>, signerWeight: SignerWeight, sponsorAddress: AccountKeyPair?, builderExtra: (CommonTransactionBuilder<*>) -> Unit?)

Configuration for recoverable wallet

Link copied to clipboard
class Recovery : AccountRecover
Link copied to clipboard
@Serializable
data class RecoveryAccount(address: String, identities: List<RecoveryAccountRole>, signers: List<RecoveryAccountSigner>)
Link copied to clipboard
@Serializable
data class RecoveryAccountAuthMethod(type: RecoveryType, value: String)
Link copied to clipboard
@Serializable
data class RecoveryAccountIdentity(role: RecoveryRole, authMethods: List<RecoveryAccountAuthMethod>)
Link copied to clipboard
@Serializable
data class RecoveryAccountRole(role: RecoveryRole, authenticated: Boolean?)
Link copied to clipboard
@Serializable
data class RecoveryAccountSigner(key: String)
Link copied to clipboard
@Serializable
data class RecoveryIdentities(identities: List<RecoveryAccountIdentity>)

A list of identities that if any one is authenticated will be able to gain control of this account.

Link copied to clipboard
@Serializable
enum RecoveryRole : Enum<RecoveryRole>

The role of the identity. This value is not used by the server and is stored and echoed back in responses as a way for a client to know conceptually who each identity represents

Link copied to clipboard
data class RecoveryServer(endpoint: String, authEndpoint: String, homeDomain: String, walletSigner: WalletSigner?, clientDomain: String?)

Recovery server configuration

Link copied to clipboard
value class RecoveryServerKey(name: String)
Link copied to clipboard
data class RecoveryServerSigning(signerAddress: String, authToken: AuthToken)
Link copied to clipboard
@Serializable
enum RecoveryType : Enum<RecoveryType>
Link copied to clipboard
data class SignerWeight(device: Int, recoveryServer: Int)