MobileStorageAdapter

MobileStorageAdapter is an interface responsible for managing the persistent storage of data related to a mobile client's wallet and cryptographic key shares. It abstracts the underlying storage mechanism, allowing the client to interact with wallet data without needing to know the specifics of how that data is stored (e.g., local database, secure enclave, cloud storage).

Inheritors

Properties

Link copied to clipboard
abstract var api: Api?
Link copied to clipboard
abstract var clientId: String?

Functions

Link copied to clipboard
abstract suspend fun availableRecoveryMethods(namespace: PortalNamespace): List<BackupMethods>
abstract suspend fun availableRecoveryMethods(chainId: String? = null): List<BackupMethods>
Link copied to clipboard
abstract fun deleteAddress(): Boolean
Link copied to clipboard
abstract fun deleteAllEntries(key: String): Boolean
Link copied to clipboard
abstract fun deleteDkgResult(): Boolean
Link copied to clipboard
abstract suspend fun deleteShares()
Link copied to clipboard
abstract suspend fun doesWalletExist(namespace: PortalNamespace): Boolean
abstract suspend fun doesWalletExist(chainId: String? = null): Boolean
Link copied to clipboard
abstract suspend fun getAddress(portalNamespace: PortalNamespace): String?
abstract suspend fun getAddress(chainId: String): String?
Link copied to clipboard
abstract suspend fun getAddresses(): Map<PortalNamespace, String>
Link copied to clipboard
Link copied to clipboard
abstract suspend fun getMetadata(): PortalKeychainClientMetadata?
Link copied to clipboard
abstract suspend fun getShare(namespace: PortalNamespace): PortalMpcGeneratedShare
abstract suspend fun getShare(chainId: String): PortalMpcGeneratedShare
Link copied to clipboard
abstract suspend fun getShares(): PortalKeychainClientShares?
Link copied to clipboard
abstract suspend fun isWalletBackedUp(namespace: PortalNamespace): Boolean
abstract suspend fun isWalletBackedUp(chainId: String? = null): Boolean
Link copied to clipboard
abstract suspend fun isWalletOnDevice(namespace: PortalNamespace): Result<Boolean>
abstract suspend fun isWalletOnDevice(chainId: String? = null): Result<Boolean>
Link copied to clipboard
abstract suspend fun isWalletRecoverable(namespace: PortalNamespace): Boolean
abstract suspend fun isWalletRecoverable(chainId: String? = null): Boolean
Link copied to clipboard
abstract suspend fun loadMetadata()
Link copied to clipboard
abstract suspend fun storeMetadata(metadata: String)
Link copied to clipboard
abstract suspend fun storeShares(shares: String)
Link copied to clipboard
abstract fun validateOperations(): Boolean