Skip to main content

OpenID for Verifiable Credentials: OID4VCI & OID4VP

Learning objectives
  • Explain how OID4VCI and OID4VP reuse OAuth 2.0 and where each sits in the issuer–holder–verifier triangle
  • Walk through pre-authorized and authorization code issuance, including tx_code, the Nonce Endpoint and key proofs
  • Design an OID4VP verifier: DCQL query, signed request, client identifier prefix, direct_post.jwt, nonce and session binding
  • Choose between QR/redirect flows and the W3C Digital Credentials API, and explain their phishing and relay risks
  • List what a bank builds as issuer and as verifier, and how it mitigates the main threats
Fast-moving area

Spec status, browser support and regulatory dates on this page are as of October 2026. Verify them before quoting them in a design document.

TL;DR​

  • OID4VCI 1.0 (OpenID Final, 16 Sep 2025) is OAuth 2.0 for putting a credential into a wallet. The wallet is the OAuth client. It calls the issuer's Credential Endpoint with an access token and a key proof bound to a fresh c_nonce.
  • Issuance starts with a pre-authorized code (the bank already authenticated the user; protect it with a tx_code) or an authorization code flow (the user logs in at the bank's AS).
  • OID4VP 1.0 (OpenID Final, 9 Jul 2025) is an OAuth-style request whose response is a vp_token. DCQL is its only query language; Presentation Exchange was removed in draft 26.
  • Verifiers authenticate with a client identifier prefix (x509_san_dns, x509_hash, verifier_attestation…) and signed requests. Wallets answer with direct_post or the encrypted direct_post.jwt.
  • Replay protection is the nonce and audience inside the holder's key-binding proof. Session binding is a response_code redirect. Cross-device QR flows are phishable; the Digital Credentials API adds origin binding and proximity checks.
  • Formats: SD-JWT VC (dc+sd-jwt) and ISO mdoc (mso_mdoc), profiled by HAIP 1.0 (Final, Dec 2025).
  • EU: wallets by 24 Dec 2026; banks must accept them by 24 Dec 2027. Vietnam: VNeID is a centralized state authentication app, not an OpenID4VC wallet.

Why it matters​

Banks repeat KYC for every product, partner and channel. E-commerce platforms need to check that a buyer is 18+, verify sellers and their bank accounts before payouts, and step up on risky orders. Today each check means copying ID card images or paying an aggregator, which costs money, causes drop-off and leaves personal data you must protect.

With verifiable credentials, the bank that already did the KYC signs a credential into the customer's wallet. The customer shows a verifier only the claims it needs, and the verifier checks the signature without calling the bank. The OpenID4VC family makes this practical because it reuses the OAuth machinery a bank already runs. In the EU, accepting these wallets becomes a legal duty for banks in 2027.

Core concepts​

The trust triangle and the protocol family​

The data model (issuer, holder, verifier, claims, selective disclosure) is in Decentralized Identity: DIDs & Verifiable Credentials. Grant types, PKCE, PAR and DPoP are in OAuth 2.0, OAuth 2.1 & OpenID Connect. This page covers the transport between the three parties. Note that the OAuth roles change between the two protocols:

VC roleIn OID4VCIIn OID4VP
Issuer (bank)Authorization server + Credential EndpointNot involved
Wallet (holder)OAuth clientAnswers the request, like an authorization server
Verifier (shop, another bank)Not involvedOAuth client

There's no blockchain and no mandatory DID in this picture. In the EU and most bank deployments, issuer keys are trusted through X.509 chains and trusted lists, the same PKI model as TLS.

OID4VCI 1.0: issuing a credential​

Issuer metadata at /.well-known/openid-credential-issuer lists the authorization_servers, credential_endpoint, nonce_endpoint, the optional deferred and notification endpoints, batch_credential_issuance (batch_size ≥ 2) and credential_configurations_supported. Each configuration gives a format (dc+sd-jwt with vct, or mso_mdoc with doctype), the binding methods and proof_types_supported.

Credential Offer. The issuer hands the wallet an offer by value (credential_offer) or by reference (credential_offer_uri), through an openid-credential-offer:// link or a QR code:

{
"credential_issuer": "https://vc.bank.example",
"credential_configuration_ids": ["verified_customer_sd_jwt"],
"grants": {
"urn:ietf:params:oauth:grant-type:pre-authorized_code": {
"pre-authorized_code": "SplxlOBeZQQYbYS6WxSbIA",
"tx_code": {
"length": 6,
"input_mode": "numeric",
"description": "Enter the code shown in your banking app"
}
}
}
}

Two grants.

  • Pre-authorized code: the bank has already authenticated the user (banking app, branch, eKYC). The wallet redeems the code at the Token Endpoint. If the offer has a tx_code, the user types a code that arrived through another channel, so someone holding only the QR can't redeem it.
  • Authorization code: a normal OAuth flow with PAR and PKCE, optionally carrying issuer_state from the offer. This is the flow HAIP mandates, and it fits issuance that the user starts from the wallet.

Nonce and key proof. The wallet POSTs to the Nonce Endpoint (no token) and gets a c_nonce. It then signs a key proof JWT with a key, ideally hardware-backed. The header has typ = openid4vci-proof+jwt, an asymmetric alg and one of kid, jwk or x5c, plus an optional key_attestation. The body has aud (the issuer identifier), iat and nonce. The issuer puts that public key in the credential's cnf claim, so a copied credential is useless without the private key.

Credential Endpoint.

POST /credential HTTP/1.1
Host: vc.bank.example
Authorization: DPoP eyJhbGciOiJFUzI1NiIs...
DPoP: eyJ0eXAiOiJkcG9wK2p3dCIs...
Content-Type: application/json

{
"credential_configuration_id": "verified_customer_sd_jwt",
"proofs": { "jwt": ["eyJ0eXAiOiJvcGVuaWQ0dmNp...", "eyJ0eXAiOiJvcGVuaWQ0dmNp..."] }
}
  • Immediate: HTTP 200 with a credentials array and an optional notification_id.
  • Batch: one proof per key, one credential per key, so the wallet can show a different copy to each verifier and stay unlinkable.
  • Deferred: HTTP 202 with transaction_id and interval. The wallet polls the Deferred Credential Endpoint, which suits manual review such as EDD cases.
  • Notification: the wallet reports credential_accepted, credential_failure or credential_deleted, and the issuer answers 204.

Sequence: a bank issues a "verified customer" credential​

The customer is in web banking on a laptop, and the wallet is on their phone. The credential carries KYC level, name, date of birth and a masked account number, so it also proves account ownership.

In the same-device variant, the banking app opens the wallet directly, and many issuers drop the tx_code because the offer never leaves an authenticated session.

OID4VP 1.0: presenting to a verifier​

In production the verifier sends a signed request object (typ = oauth-authz-req+jwt) by reference. The wallet is invoked with client_id and request_uri (an openid4vp:// link, an HTTPS link or a QR code) and fetches the object. The object carries response_type=vp_token, response_mode=direct_post.jwt, response_uri, a fresh nonce, dcql_query, and client_metadata with an ephemeral encryption key.

DCQL (Digital Credentials Query Language) replaced DIF Presentation Exchange, which the working group removed in draft 26 (April 2025) in favour of one simpler query language. This query asks for only age_over_18, from an mDL or an SD-JWT credential:

{
"credentials": [
{
"id": "mdl",
"format": "mso_mdoc",
"meta": { "doctype_value": "org.iso.18013.5.1.mDL" },
"claims": [{ "path": ["org.iso.18013.5.1", "age_over_18"], "intent_to_retain": false }]
},
{
"id": "pid",
"format": "dc+sd-jwt",
"meta": { "vct_values": ["https://credentials.example.com/identity_credential"] },
"claims": [{ "path": ["age_over_18"] }]
}
],
"credential_sets": [{ "options": [["mdl"], ["pid"]] }]
}

The vp_token comes back keyed by query id. For SD-JWT VC, the key-binding JWT (KB-JWT) carries the request nonce and aud = the client identifier. For mdoc, the same binding goes into the SessionTranscript.

Client identifier prefixes tell the wallet how to authenticate the verifier:

PrefixHow the wallet trusts it
x509_san_dnsRequest signed with the leaf certificate key; DNS name matches a SAN; chain validated
x509_hashHash of the leaf certificate; the prefix HAIP requires
verifier_attestationJWT from a party the wallet trusts, binding the verifier's key
openid_federation / decentralized_identifierOpenID Federation trust chain / DID document
redirect_uriNo authentication; the request cannot be signed
originReserved for the DC API; wallets reject it in requests

direct_post and direct_post.jwt. The wallet POSTs the response to response_uri instead of redirecting it through the browser. With .jwt, the body is a JWE encrypted to the verifier's ephemeral key, so gateways and logs never see the claims. In same-device flows, the verifier replies with a redirect_uri carrying a fresh response_code, which the frontend redeems in the original session. That redirect is the session binding.

Sequence: an e-commerce age check​

Cross-device flows and the Digital Credentials API​

A cross-device flow (QR on a laptop, wallet on a phone) can't use the response_code redirect, because the phone's browser doesn't hold the original session. OID4VP's security section describes the relay: an attacker opens a session at a real verifier, forwards the QR to a victim ("scan to get your refund"), and the victim's approval lands in the attacker's session. RFC 10027 (BCP 247, August 2026) calls this cross-device consent and session phishing. HAIP 1.0 requires same-device support and recommends verifiers use only same-device for redirect-based presentation unless they don't rely on session binding.

The W3C Digital Credentials API moves wallet invocation into the browser and OS:

const credential = await navigator.credentials.get({
digital: { requests: [{ protocol: "openid4vp-v1-signed", data: { request: signedRequestJwt } }] },
});
  • The browser passes the wallet the authenticated origin. The presentation's audience becomes origin:https://shop.example, so a phishing site gets a response no other site can use. Signed requests list expected_origins.
  • No custom URL schemes, so no app can hijack openid4vp://.
  • Cross-device uses CTAP hybrid (the passkey transport) with a BLE proximity check, which blocks remote relay.
  • Response modes become dc_api and dc_api.jwt.

As of October 2026 it is a W3C Working Draft (Federated Identity WG) with protocols openid4vp-v1-unsigned, -signed, -multisigned and org-iso-mdoc; issuance (openid4vci-v1) is still in progress. Chrome 141 ships it on by default. Safari 26 ships it for Apple Wallet and third-party wallets, reportedly with only org-iso-mdoc (verify). Firefox doesn't ship it (verify).

Formats, profiles and revocation​

FormatIdentifierStatus (as of 2026)
SD-JWT VCdc+sd-jwt (vc+sd-jwt before late 2024)SD-JWT is RFC 9901 (Nov 2025); SD-JWT VC draft -19 is with the IESG
ISO mdoc / mDLmso_mdocISO/IEC 18013-5:2021 (proximity), ISO/IEC TS 18013-7:2025 (online)
W3C VCDMjwt_vc_json, ldp_vcVCDM 2.0 is a W3C Recommendation (May 2025)
  • HAIP 1.0 (Final, 24 Dec 2025) profiles both protocols for SD-JWT VC and mdoc. It requires the authorization code flow with FAPI 2.0 (PKCE, DPoP), wallet attestation at the token endpoint, DCQL, x509_hash, encrypted responses, ES256 and x5c issuer chains.
  • Revocation: IETF Token Status List (a compressed bit array, in the RFC Editor queue) or W3C Bitstring Status List (Recommendation, May 2025). Verifiers download the whole list, so the issuer can't see which credential is being checked. HAIP requires a random, unique index per credential.
  • SIOPv2 is still a working draft (draft 13, Nov 2023), and HAIP doesn't use it.

EU context: eIDAS 2.0 and the EUDI Wallet​

  • Regulation (EU) 2024/1183 entered into force on 20 May 2024. Its implementing acts (such as CIR 2024/2977) entered into force on 24 Dec 2024.
  • Member states must provide a wallet within 24 months of those acts, so by 24 Dec 2026.
  • Private relying parties required to use strong user authentication, banks included, must accept the wallet at the user's voluntary request within 36 months, so by 24 Dec 2027. Very large online platforms must also accept it. Micro and small enterprises are exempt.
  • ARF v3.0.0 (July 2026) mandates mdoc and SD-JWT VC, with OID4VCI for issuance, OID4VP or ISO 18013-7 for remote presentation, and HAIP. Relying parties register and get access certificates (to authenticate to wallets) and registration certificates (so the wallet can flag requests beyond what was registered). Issuer trust anchors come from trusted lists.
  • Driving licences: Directive (EU) 2025/2205 issues digital licences into the EUDI Wallet after a multi-year transposition (verify dates).
  • Platform wallets: Apple launched a passport-based Digital ID in Wallet on 12 Nov 2025, and Google Wallet supports online ID verification through the DC API. Both use mdoc.

What a bank builds​

As issuer:

  • A Credential Issuer service that maps each credential type to a source of truth (KYC tier, core banking) and an issuance policy. Offers are single-use, short-lived and bound to the customer.
  • AS changes: the pre-authorized grant with tx_code attempt limits, wallet attestation (the OAuth-Client-Attestation headers; IETF draft in last call), and DPoP.
  • Keys: signing keys in an HSM with an X.509 chain to a trust anchor, and a separate key for status lists. Rotate with overlapping certificates.
  • Revocation: an issuance register that maps customers to credential ids and random status indexes without copying the claims. Revoke on account closure, KYC downgrade, device loss or fraud. Combine this with short validity and batch re-issue.
  • Key trust: for high-value credentials, require a key attestation proving hardware storage (for example iso_18045_high).

As verifier:

  • A verifier service that signs requests with its access-certificate key, hosts response_uri, decrypts and validates, and returns a minimal result.
  • A trust anchor store synced from trusted lists and an allow-list of issuers per credential type. Never trust an issuer because of a URL in the credential.
  • Cached status lists with a TTL per risk tier, and a written fail-open or fail-closed rule (see Resilience Patterns).
  • An audit log with transaction id, purpose, issuer, credential type, claim names, result and nonce hash, but no raw vp_token or claim values. If retention rules require evidence, encrypt it in the KYC evidence store (see Compliance).
  • Availability: presentation never calls the issuer, so you depend only on your verifier, the status-list cache and the trust-list sync.

Threats and mitigations​

ThreatMitigations
Cross-device QR relay / consent phishingDC API (origin binding, proximity); same-device with response_code; short-lived single-use requests; no cross-device flow for high-value actions
Credential offer phishingOffers bound to an authenticated session; tx_code out of band; minutes-long TTL; attempt limits
Presentation replayKB-JWT nonce + aud (or mdoc SessionTranscript); single-use nonces; tight iat window
Credential theft / cloningHardware-bound holder key; key and wallet attestation; revoke on device change
Verifier over-askingMinimal DCQL; EU registration certificates; internal query review; age_over_18 instead of birth date
Issuer key compromiseHSM with dual control and volume alerts; revoke the signing certificate; re-issue under a new key; notify relying parties
LinkabilityBatch, one-time-use credentials; random status indexes; no unique ids in disclosed claims

Vietnam lens​

  • VNeID is the national identification app run by the Ministry of Public Security. Under Decree 69/2024/ND-CP (from July 2024), logging in with a level-2 e-ID account counts as presenting the citizen ID card.
  • Banks use it as an online authentication service, not a credential wallet. By July 2024, 22 credit institutions and 13 payment intermediaries used VNeID for account opening, payment authentication and customer verification. BIDV added an app-to-app integration in December 2024 so customers could update biometrics before the SBV Circular 17/2024/TT-NHNN and 18/2024/TT-NHNN rules applied from 1 January 2025.
  • Decree 320/2026/ND-CP (effective 28 Sep 2026) requires electronic transaction accounts in banking and other sectors to be linked to e-ID accounts. Existing banking accounts have until 30 June 2027 (per law-firm summaries; verify).
  • Honestly: as of 2026 there is no public evidence of Vietnamese banks issuing or accepting OpenID4VC credentials in production. Every check goes online to the state system.
  • Where the patterns fit: account-ownership credentials for marketplace seller payouts, age checks without collecting ID images, and reusable KYC inside a banking group. Decree 69 limits sharing authentication results with third parties, so a reusable KYC credential built on VNeID results needs legal review. See Compliance: Vietnam context.

Trade-offs​

OptionStrengthsWeaknessesChoose when
Pre-authorized codeOne tap; user already authenticatedOffer phishing; needs tx_code cross-deviceIssuing from your own app or after eKYC
Authorization code + PAR, PKCE, DPoPStandard OAuth security; HAIP-mandatedExtra login stepWallet-initiated issuance; EU ecosystems
QR / custom schemeWorks everywhere todayRelay, scheme hijackingSame-device or low-risk checks
Digital Credentials APIOrigin binding, proximityWorking Draft; uneven supportNew web verifiers, cross-device
SD-JWT VCJOSE tooling, simple for web teamsSpec still settlingBank-issued attestations, EU PID
ISO mdocProximity + online; Apple and Google walletsCBOR tooling; paid ISO textsIdentity, driving licence, age
Status list vs short-lived credentialsRevoke any time vs no status infrastructureFetch and cache vs frequent re-issueLong-lived vs fast-changing attributes

In practice​

Checking SD-JWT disclosures in Go. After verifying the issuer JWT signature (use a vetted JOSE library and an x5c chain to your trust anchor), check every disclosure against _sd. RFC 9901 hashes the base64url-encoded disclosure string, not the decoded JSON, and that detail trips up many hand-written verifiers. Top-level claims only, standard library only:

package sdjwt

import (
"crypto/sha256"
"encoding/base64"
"encoding/json"
"errors"
"fmt"
"strings"
)

// digest hashes the ASCII bytes of the encoded disclosure (RFC 9901), not the decoded JSON.
func digest(s string) string {
sum := sha256.Sum256([]byte(s))
return base64.RawURLEncoding.EncodeToString(sum[:])
}

// Disclose returns the claims revealed by disclosures. payload is the issuer
// JWT payload, already signature-verified. Nested _sd and array elements are omitted.
func Disclose(payload map[string]any, disclosures []string) (map[string]any, error) {
if alg, ok := payload["_sd_alg"]; ok && alg != "sha-256" {
return nil, fmt.Errorf("sdjwt: unsupported _sd_alg %v", alg)
}
digests := map[string]bool{}
list, _ := payload["_sd"].([]any)
for _, d := range list {
s, ok := d.(string)
if !ok || digests[s] {
return nil, errors.New("sdjwt: invalid or duplicate digest in _sd")
}
digests[s] = true
}

claims := make(map[string]any, len(disclosures))
used := map[string]bool{}
for _, d := range disclosures {
h := digest(d)
if !digests[h] || used[h] {
return nil, errors.New("sdjwt: disclosure not referenced by _sd or used twice")
}
used[h] = true

raw, err := base64.RawURLEncoding.DecodeString(d)
if err != nil {
return nil, fmt.Errorf("sdjwt: decode disclosure: %w", err)
}
var parts []json.RawMessage
if err := json.Unmarshal(raw, &parts); err != nil || len(parts) != 3 {
return nil, errors.New("sdjwt: disclosure must be [salt, name, value]")
}
var name string
if err := json.Unmarshal(parts[1], &name); err != nil {
return nil, errors.New("sdjwt: claim name must be a string")
}
_, inPayload := payload[name]
_, dup := claims[name]
if name == "_sd" || name == "..." || inPayload || dup {
return nil, fmt.Errorf("sdjwt: reserved or duplicate claim %q", name)
}
var value any
if err := json.Unmarshal(parts[2], &value); err != nil {
return nil, fmt.Errorf("sdjwt: claim %q: %w", name, err)
}
claims[name] = value
}
return claims, nil
}

// SDHash is the value the KB-JWT's sd_hash claim must match: the digest of
// "<issuer-jwt>~<d1>~...~<dn>~", everything before the KB-JWT.
func SDHash(issuerJWT string, disclosures []string) string {
var b strings.Builder
b.WriteString(issuerJWT)
b.WriteByte('~')
for _, d := range disclosures {
b.WriteString(d)
b.WriteByte('~')
}
return digest(b.String())
}

The full pipeline is: check the issuer JWT typ (dc+sd-jwt), signature, exp, vct and issuer trust, then run Disclose. If your policy requires holder binding, require a KB-JWT and verify it with the cnf key: typ kb+jwt, nonce, aud, iat and SDHash. Finally check the status bit.

Knobs to decide explicitly (typical starting points, not spec values): offer TTL of a few minutes, 3–5 tx_code attempts, about 5 minutes for request and nonce lifetime, status-list cache TTL per risk tier, and a batch size that covers your expected verifiers between re-issues. Roll out as a verifier first, then issue one low-risk credential (account ownership) from your own app.

Common pitfalls​

  • Hashing the decoded disclosure. Symptom: every disclosure fails, or two libraries in your estate disagree.
  • Accepting SD-JWTs without a KB-JWT because the wallet didn't send one. Symptom: a credential scraped from a backup works. Your policy decides whether binding is required, not the presentation.
  • Skipping the aud and nonce checks. Symptom: a presentation captured by another verifier works at yours.
  • Cross-device QR for high-value actions. Symptom: customers approve an attacker's onboarding session after a phishing SMS.
  • Plain direct_post behind a gateway that logs bodies. Symptom: identity claims sitting in your log platform.
  • Trusting iss instead of trust anchors. Symptom: an attacker hosts their own issuer and your verifier accepts it.

Interview angle​

  • Prompts: "Design reusable KYC across our group", "How do we accept the EUDI Wallet at onboarding?", "Age verification for an alcohol marketplace without storing ID cards".
  • Strong answer: maps the roles, picks a grant with a reason, insists on holder binding and nonce/audience checks, uses direct_post.jwt with the DC API or same-device flows, and covers trust anchors, status lists, HSM keys, minimal audit, fail modes and the relevant regulation.
  • Follow-ups: Issuer down at checkout? Revocation after device loss? Stopping verifier linkability? Rotating the issuer key?
  • Red flags: "put it on a blockchain", calling the issuer on every presentation, no nonce, or treating selective disclosure as encryption.

Self-check​

1. When would a bank pick the pre-authorized code flow over the authorization code flow, and what does tx_code protect against?

Pre-authorized code fits when the bank has already authenticated the customer in its own channel and wants a one-tap handover to the wallet. The authorization code flow fits wallet-initiated issuance and HAIP ecosystems. The tx_code is a second secret sent through another channel, so someone who intercepts or is forwarded the offer QR can't redeem it alone. It does not stop a user who is tricked into reading the code to an attacker.

2. What does a verifier check on an SD-JWT VC presentation, in order?
  • Issuer JWT: signature, typ dc+sd-jwt, x5c chain to a trust anchor, issuer allowed for this vct, exp.
  • Disclosures: digest of each encoded string is in _sd, with no duplicates and no reserved names.
  • KB-JWT when binding is required: cnf key, typ kb+jwt, nonce, aud, iat, sd_hash.
  • Status-list bit, then business rules on the disclosed claims only.
3. Explain the relay attack on cross-device flows and how to mitigate it.

The attacker starts a session at a real verifier and forwards the QR to a victim with a pretext. The victim's wallet posts a valid presentation, and the attacker's session receives the result. A response_code redirect can't help, because the phone's browser never had the original session. Mitigations: the DC API (origin binding plus BLE proximity), same-device flows, short-lived single-use requests, and no cross-device flows for high-value actions.

4. Scenario: a marketplace must verify buyers are 18+ for alcohol. Design it and say what you log.

Send a signed OID4VP request with an x509_* client identifier, direct_post.jwt and a fresh nonce, and a DCQL query for only age_over_18 from an mDL or an SD-JWT credential. Prefer the DC API, falling back to same-device with response_code. Check issuer trust, holder binding, nonce, audience and status. Log the order and transaction ids, issuer, credential type, claim name, result and time, but not the token or birth date. Store only the boolean on the order.

5. Scenario: your credential signing key may be compromised. What do you do?

Stop issuing with it and revoke its certificate, so verifiers validating the chain reject everything it signed. Notify relying parties and the trusted-list operator. Create a new HSM key under dual control and re-issue to genuine customers, using the issuance register to find them. Search signing logs for credentials missing from the register. Then review HSM access, volume alerts and credential validity periods.

6. What does eIDAS 2.0 require from an EU bank, and by when?

Member states must provide an EUDI Wallet by 24 Dec 2026. Banks, as relying parties that must use strong user authentication, must accept it at the user's request by 24 Dec 2027. In practice the bank registers as a relying party, obtains access and registration certificates, and verifies PID in SD-JWT VC or mdoc over OID4VP following HAIP. It also keeps its trust anchors synced from trusted lists.

🧠 Flashcards0/8 learned · 0 retries

Exercise​

Build an account-ownership credential loop for marketplace seller payouts:

  1. Write issuer metadata for one dc+sd-jwt configuration (account_holder_name, bank_code, masked account_number, kyc_level), an offer with tx_code, and the marketplace's DCQL query. Justify each selectively disclosable claim.
  2. In Go, build a Nonce Endpoint and a Credential Endpoint that verify an ES256 proof JWT (typ, aud, iat, single-use nonce) and return an SD-JWT with a cnf key. A JOSE library is fine.
  3. Extend the snippet above into a verifier with signature, KB-JWT (nonce, aud, sd_hash) and a 5-minute single-use nonce store.
  4. Write negative tests for a modified disclosure, a duplicated disclosure, a missing KB-JWT, a reused nonce, a wrong aud and an expired credential.

Done when: a valid presentation reveals only the requested claims, all six negative tests fail with specific errors, the audit log holds no claim values, and you can justify your grant type and transport in two minutes.

Further reading​

Finished this page?

Do the self-check first. Marking it complete schedules spaced reviews (1, 3, 7, 14, 30… days).