bootstrap

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

Initializes the wallet by creating or reusing wallet signing 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 used for registering a new DID. The default key method is handled locally.

Throws

When persisted DID state exists without a persisted key.