Wallet
object Wallet
Entry point for the Wallet SDK.
Pick the setup for your app's role: a verifier app checks credentials, a wallet app holds and shares them. create takes every setting at once, for apps that need more control.
// A verifier app
val sdk = Wallet.createVerifier(TrustedIssuers(signedList = issuerList), readerIdentity)
// A wallet app
val sdk = Wallet.createWallet(IssuerConfig(issuerUrl, clientId, redirectUri), TrustedVerifiers(signedList = readerList))Content copied to clipboard
Create it once per app and keep it for the app's lifetime.
Functions
Link copied to clipboard
fun createVerifier(trustedIssuers: TrustedIssuers, readerIdentity: ReaderIdentityConfig?): WalletSdk
A verifier app: checks credentials in person.
fun createVerifier(trustedIssuers: TrustedIssuers, readerIdentity: ReaderIdentityConfig?, credentialTypes: List<CredentialType>): WalletSdk
A verifier app that also checks your own document types (beyond the built-in driving licence).
Link copied to clipboard
A wallet app: holds credentials and shares them.
fun createWallet(issuer: IssuerConfig, trustedVerifiers: TrustedVerifiers, credentialTypes: List<CredentialType>, shareGuard: ShareGuard?): WalletSdk
A wallet app with your own document types and, optionally, a check before sharing.