WalletSdk

interface WalletSdk

The SDK object your app creates once. It has both roles: wallet holds and shares credentials, and verifier reads and checks them. Most apps use one of the two.

A phone runs one Bluetooth exchange at a time, so don't present and verify in person at the same moment.

Properties

Link copied to clipboard

What this platform/build actually supports (e.g. iOS wallet cannot present over NFC).

Link copied to clipboard
abstract val verifier: VerifierClient

Reader role: scan and verify credentials.

Link copied to clipboard
abstract val wallet: WalletClient

Holder role: hold and present credentials.

Functions

Link copied to clipboard

Register this wallet as an Android Digital Credentials provider (Credential Manager), so that when a site calls the W3C Digital Credentials API (navigator.credentials.get) Android shows a wallet picker including this app. When the user picks it, Credential Manager launches the app's CredentialManagerPresentmentActivity (declared in the manifest with the androidx.credentials.registry.provider.action.GET_CREDENTIAL intent-filter) to run consent + response.