Mobile Wallet
class MobileWallet(walletId: String, keyStore: WalletKeyStore, didStore: WalletDidStore, credentialStore: WalletCredentialStore, keyGenerator: suspend (KeyType) -> Key, defaultKeyType: KeyType = KeyType.secp256r1, attestationConfig: WalletAttestationConfig? = null, onEvent: suspend (WalletSessionEvent) -> Unit = {})
Android and iOS facade for the walt.id wallet SDK.
Use MobileWalletFactory to create instances with the correct platform storage, key provider, and SQLDelight driver. The facade keeps the public mobile API intentionally small while delegating protocol work to the core wallet handlers.
Constructors
Link copied to clipboard
constructor(walletId: String, keyStore: WalletKeyStore, didStore: WalletDidStore, credentialStore: WalletCredentialStore, keyGenerator: suspend (KeyType) -> Key, defaultKeyType: KeyType = KeyType.secp256r1, attestationConfig: WalletAttestationConfig? = null, onEvent: suspend (WalletSessionEvent) -> Unit = {})
Functions
Link copied to clipboard
suspend fun bootstrap(keyType: KeyType? = null, didMethod: String = "key"): MobileWalletBootstrapResult
Initializes the wallet by creating or reusing platform-backed key material and a DID.
Link copied to clipboard
Lists all credentials currently stored in the mobile wallet.