bootstrap

suspend fun bootstrap(keyType: KeyType? = null, didMethod: String = "key"): MobileWalletBootstrapResult

Initializes the wallet by creating or reusing platform-backed key material and a DID.

If the wallet already contains persisted DIDs, the first persisted DID and key are reused.

Return

The key identifier and DID used by this wallet.

Parameters

keyType

Optional key type override. When omitted, MobileWalletConfig.defaultKeyType is used.

didMethod

DID method passed to DidService.registerByKey, for example key.

Throws

When persisted DID state exists without a persisted key.