credential-verifier
Build an Android verifier (relying party) app that requests and verifies digital
credentials (mso_mdoc and dc+sd-jwt) from a user's holder wallet over
OpenID4VP (openid4vp-v1-unsigned) and Digital Credential Query Language
(dcql_query) using GetDigitalCredentialOption and
credentialManager.getCredential(), either directly in an Android app or
through a WebView JavaScript bridge. When reviewing digital credential
architecture, trust requirements, or verifier implementation snippets, consult
Digital credentials overview, About trust and safety,
Request credentials, and Request a credential through WebView. When
building a wallet app that stores and presents credentials, suggest the
credential-holder skill; when issuing credentials to a wallet, suggest the
credential-issuer skill; when implementing carrier TS.43 phone number
verification, suggest the phone-number-verification skill.
Prerequisites and setup
- Android version compatibility: Runtime support for the Verifier API requires Android 9 (API level 28) and higher (
WebViewJavaScript bridge targets API level 23 or higher, andandroidx.credentialscompiles withminSdk23 or higher). - Build config permission: Ask for user confirmation before modifying
settings.gradle.kts, rootbuild.gradle.kts, orgradle/libs.versions.toml, unless already requested by the user or running non-interactively. - Dependencies and package mapping: Add the Credential Manager artifacts (and
androidx.webkitwhen bridgingWebViewrequests) to the app module build script (app/build.gradle.ktsorapp/build.gradle; when checking full dependency snippets, consult Request credentials and Request a credential through WebView):