create

actual suspend fun create(config: MobileWalletConfig): MobileWallet

Creates an Android mobile wallet for config.

The database is named from MobileWalletConfig.walletId. The factory wires the Android managed-key provider together with the Crypto2 software-key fallback used for supported unprotected requests.


actual suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.

Pin X.509 trust anchors on ClientIdTrustConfiguration.x509TrustAnchors to allow OpenID4VP x509_san_dns and x509_hash clients. An empty list fails those prefixes closed. decentralized_identifier clients still authenticate through DID resolution.

Consuming apps pin their own CAs. walt.id Verifier2's verifier-service.conf publishes a demo x5c for x509_san_dns:verifier.example.com that wallets can copy as a starting PEM.

expect suspend fun create(config: MobileWalletConfig = MobileWalletConfig()): MobileWallet

Creates a mobile wallet instance for the current platform.

Parameters

config

Wallet configuration. Defaults use the stable default wallet identifier and P-256 key material.


expect suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.

Pin X.509 trust anchors on ClientIdTrustConfiguration.x509TrustAnchors to allow OpenID4VP x509_san_dns and x509_hash clients. An empty list fails those prefixes closed. decentralized_identifier clients still authenticate through DID resolution.

Consuming apps pin their own CAs. walt.id Verifier2's verifier-service.conf publishes a demo x5c for x509_san_dns:verifier.example.com that wallets can copy as a starting PEM.

actual suspend fun create(config: MobileWalletConfig): MobileWallet

Creates an iOS mobile wallet using native SQLDelight storage and the default iOS platform key provider.


actual suspend fun create(config: MobileWalletConfig, clientIdTrustConfiguration: ClientIdTrustConfiguration): MobileWallet

Creates a mobile wallet with explicit verifier client-ID trust configuration.

Pin X.509 trust anchors on ClientIdTrustConfiguration.x509TrustAnchors to allow OpenID4VP x509_san_dns and x509_hash clients. An empty list fails those prefixes closed. decentralized_identifier clients still authenticate through DID resolution.

Consuming apps pin their own CAs. walt.id Verifier2's verifier-service.conf publishes a demo x5c for x509_san_dns:verifier.example.com that wallets can copy as a starting PEM.