How does an OID4VCI jwt proof name its key when the Credential is bound to a DID?

DID-bound configurations take a DID URL in the proof kidOID4VCI 1.0 §12.2.4 and Appendix F.1MUSTRoles: issuer, wallet

Requirement as recorded in the ProtocolSoup registry

A Credential Configuration bound to a DID lists its DID methods in cryptographic_binding_methods_supported as a did: prefix followed by a method-name, and its jwt proof names the key with a kid that is a DID URL identifying a particular key in the DID Document, without jwk.

Read §12.2.4 and Appendix F.1 in OID4VCI 1.0

Self-test verdict

PassCommit 00bac3fEvaluated

This is ProtocolSoup's result against its own implementation at the commit shown. It is not a certification of ProtocolSoup or of any other product.

Captured from production

Captured Commit 00bac3f

Captured from the deployed ProtocolSoup at the commit shown. Every request and response is shown exactly as sent and received.

Passing exchange

Accepted, as requiredConformance client

The conformance client reads the jwt_vc_json Credential Configuration, whose cryptographic_binding_methods_supported lists DID methods, and sends /oid4vci/credential a jwt proof whose kid is the DID URL of its own key in a did:jwk and which has no jwk header. The issued credential must name that DID as its subject.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.POST https://protocolsoup.com/oid4vci/credential200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vci/credential HTTP/2.0
    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxKV1QiXSwiZXhwIjoxNzk2NTYzNDQyLCJpYXQiOjE3OTY1NjMxNDIsImlzcyI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dmNpIiwianRpIjoianRpLWI1NmU5N2ZhMjMzZTM4ZGIiLCJuYmYiOjE3OTY1NjMxNDIsIm9mZmVyX2lkIjoiWkVYSEo1VWhzbDA3d2hreWdpdmhWaWlVIiwic2NvcGUiOiJ2Yzppc3N1ZSIsInN1YiI6IndhbGxldDpaRVhISjVVaHNsMDd3aGt5Z2l2aFZpaVUifQ.fM3NR4XZ6b-3eV0d_Oi4MKckxleTBuxCzTyOvVnN6kmwyvDnovx9B4NJFV6IF8aU0D6GuhvPYbrr1ztmShKUMtH-_6fH1RFgELJy008ny2kmZ8LXr8IkZU4KSNu7IHbjm4hEJl1ySrc5mgdmY4ccH1ELlBCTu_AHMwPhmNmiPZtd7J9fRkzF7mHt4grroO-s4x7v7y6Fqcs7rkVWM59cWjJlp3-yRSpkzL9zhxlv49n-Mfuj2RHAVgg0RMdd0eVWLsM12N0LqG-bUvSbBuLVn_eSzduRSvS06o0cTyww0yyj7D19WIBt3IsImc2tYhptSWJQAoX84-jaNyuHcIpdLg
    Content-Length: 607
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"credential_configuration_id":"UniversityDegreeCredentialJWT","proofs":{"jwt":["eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDpqd2s6ZXlKamNuWWlPaUpRTFRJMU5pSXNJbXQwZVNJNklrVkRJaXdpZUNJNklrUkdZVXRZWDBkbE1FTkhWVkE0UkRWek4weFFjVVF5T0hRdFkxTmpSM1ZoTFVoNE1WZzFha1pHT1VVaUxDSjVJam9pVFRWeVQydDBhRXg2UTFRMlVVZFlWMk5SYUdNdExXbDFZWGhIVEV4YWNYSXRYM1p0WkRWRE9HWlVZeUo5IzAiLCJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCJ9.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImlhdCI6MTc5NjU2MzE0Mywibm9uY2UiOiItR1VZRU9iMU9Kb3hNbjhOVV8xblBndW0ifQ.DaoyNLnzAfL4LGtWK9LGYmc_se-UqDaanWUcbiv9jagHvkAGOdYTax5H5xfuxwyd9B2LHb2e4mcBwquPgMGoHg"]}}

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b9483ad001425-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:19:04 GMT
    Fly-Request-Id: 01M95R43K1MBKBD5NQ728S9RPF-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=dX9iMOoFg9di4zCq%2F844NPTfGIa4YjqjujgUj2q58mP8%2BvJcS4RlvnsL781bfkVGhk4g4utrx%2Fq7pEY6amwIeoppVzSO2KkYR%2FEx%2BtFckuIuXyeY0Rz1QGLC56V%2BH3mNV0E%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=21,cfOrigin;dur=221
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"credentials":[{"credential":"eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJleHAiOjE3OTY2MDE2MDAsImlzcyI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dmNpIiwibmJmIjoxNzk2NTE1MjAwLCJzdWIiOiJkaWQ6andrOmV5SmpjbllpT2lKUUxUSTFOaUlzSW10MGVTSTZJa1ZESWl3aWVDSTZJa1JHWVV0WVgwZGxNRU5IVlZBNFJEVnpOMHhRY1VReU9IUXRZMU5qUjNWaExVaDRNVmcxYWtaR09VVWlMQ0o1SWpvaVRUVnlUMnQwYUV4NlExUTJVVWRZVjJOUmFHTXRMV2wxWVhoSFRFeGFjWEl0WDNadFpEVkRPR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RMi4CJ7ulmRd3uJHgXzsHvE9BOlspsH"}
    

Failing exchange

Rejected, as requiredConformance client

The conformance client sends /oid4vci/credential, for the same DID-bound Credential Configuration, a jwt proof that carries its key in the jwk header and names no DID.

Requests from ProtocolSoup’s conformance client, which sends malformed messages on purpose. The hosted wallet never sends these.

  1. 1.POST https://protocolsoup.com/oid4vci/credential400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vci/credential HTTP/2.0
    Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoiSldUIn0.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImNyZWRlbnRpYWxfY29uZmlndXJhdGlvbl9pZHMiOlsiVW5pdmVyc2l0eURlZ3JlZUNyZWRlbnRpYWxKV1QiXSwiZXhwIjoxNzk2NTYzNDQ4LCJpYXQiOjE3OTY1NjMxNDgsImlzcyI6Imh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dmNpIiwianRpIjoianRpLWFjMTUzOGY5NzAwZjhhNDMiLCJuYmYiOjE3OTY1NjMxNDgsIm9mZmVyX2lkIjoicS14aHF3c1BDM1k4eWlQaFFGMGRJa2M2Iiwic2NvcGUiOiJ2Yzppc3N1ZSIsInN1YiI6IndhbGxldDpxLXhocXdzUEMzWTh5aVBoUUYwZElrYzYifQ.glGcsP9Y-aTwNV4ExD2zVhHFwLpMYjL-MzYsrmHtyBD6RcNdnfUyj7TxeKgJyTrogXjJid9xXBTvcli6HEDjyeitq9R4waHXRVjKg-OtsxEAlhUV3ZFQSRC21Y-tGmRMAVkzvS0_-zK5UHQ_6GmoMa2FSjuCoo3W_R2qV5VwY87qWcU21VY5QWvmVESa5aVkQli6CZkH2M3IdoFGlQRnt_n3bbxPBuwDF2HY3TvbzKqx7GBFcZ-gGYnMLmQUKxsklbc9Y1ufjRGf8Vns14eTf7SuM-1SOaveuKNuDVTWZLwc8HkS3CpVqdDsUgV99UY7mtRcEBw2Tm7l977b2Klk9w
    Content-Length: 535
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"credential_configuration_id":"UniversityDegreeCredentialJWT","proofs":{"jwt":["eyJhbGciOiJFUzI1NiIsImp3ayI6eyJjcnYiOiJQLTI1NiIsImt0eSI6IkVDIiwieCI6ImtIamVRa1pOa3I1REM2YjU0WlhrOTN2RzA0Ujc2TFhQbXozbXFrX1ROUmMiLCJ5IjoiZFZMSkg4bVB0TUZvVVZYSnR1YXJzOHdYbm4xTFpfS1MxeGsyb2ZnbUZOTSJ9LCJ0eXAiOiJvcGVuaWQ0dmNpLXByb29mK2p3dCJ9.eyJhdWQiOiJodHRwczovL3Byb3RvY29sc291cC5jb20vb2lkNHZjaSIsImlhdCI6MTc5NjU2MzE0OSwibm9uY2UiOiJNZFRWa2pzVnEzdEpZNnRoUWJQd2RCRmIifQ.AyV3RREfM6kDA1itXBJwdp55latjUdHy_PRz3qVdxq9nMf_eoDGh3npHC2ZQIE-uBY04febYp7Vo0l_iwxGAfA"]}}

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65b94a919cb1425-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:19:10 GMT
    Fly-Request-Id: 01M95R49ECM2KQV2XJ02BF0GH3-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Referrer-Policy: strict-origin-when-cross-origin
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=wVUe3Lt48PAhP7JuIaoieqAqM%2BkGRUaDC1WwNmxSHcKQsteUoUvXHtRknuZF65Z20Lyu531pYmWpI143g%2BDxiWpJjhhICKwOwdezk06jXIicYA39Dm1eMPd6selGmmqBIhc%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=17,cfOrigin;dur=208
    Vary: Origin
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    {"error":"invalid_proof","error_description":"this Credential Configuration binds the Credential to a DID (cryptographic_binding_methods_supported [did:jwk did:key]): the proof names its key with a kid that is a DID URL, not with jwk (OID4VCI 1.0 Appendix F.1)"}
    

Run it live

Looking Glass runs the flow that sends the message this requirement governs, against the same server, and decodes each exchange as it happens.

Open the flow in Looking Glass

Tests

Implementation

Explainer

What this requires

OID4VCI 1.0 Section 12.2.4 defines cryptographic_binding_methods_supported as the strings "that identify the representation of the cryptographic key material that the issued Credential is bound to", and says "It MUST be present when Cryptographic Key Binding is required for a Credential, and omitted otherwise." The values are fixed: "Support for keys in JWK format [RFC7517] is indicated by the value jwk. Support for keys expressed as a COSE Key object [RFC8152] (for example, used in [ISO.18013-5]) is indicated by the value cose_key. When the Cryptographic Key Binding method is a DID, valid values are a did: prefix followed by a method-name using a syntax as defined in Section 3.1 of [DID-Core], but without a : and method-specific-id."

Appendix F.1 then says how a jwt proof names the key in each case. For kid: "If the Credential is to be bound to a DID, the kid refers to a DID URL which identifies a particular key in the DID Document that the Credential is to be bound to. It MUST NOT be present if jwk or x5c is present." For jwk: "JOSE Header containing the key material the new Credential is to be bound to. It MUST NOT be present if kid or x5c is present."

Why it exists

A W3C credential names its holder with an identifier in credentialSubject.id, and a Verifier later resolves that identifier to find the holder's key. If the metadata says jwk while the credential carries a DID, a Wallet cannot tell from the metadata what it will receive, and the Issuer has to invent a DID for a key the Wallet never expressed as one. Stating the DID methods, and taking the DID URL from the Wallet, means the identifier in the credential is one the Wallet chose and can resolve.

What non-compliance looks like

An Issuer advertises "cryptographic_binding_methods_supported": ["jwk"] for an ldp_vc or jwt_vc_json configuration and issues a credential whose subject is a DID it derived itself. An Issuer lists a full DID, or did:example:, where the method prefix did:example belongs. A Wallet sends a proof with both kid and jwk, or a kid that is a bare key id with no DID.

How ProtocolSoup tests it

The three VC Data Model 1.1 configurations in backend/internal/protocols/oid4vci/registry.go (jwt_vc_json, jwt_vc_json-ld and ldp_vc) advertise did:jwk and did:key. proofVerificationKeyFromHeader in handlers.go takes, for a configuration that lists only DID methods, a kid whose DID method is in that list, retrieves the key from the DID with the Controlled Identifiers v1.0 Section 3.3 algorithm for the authentication relationship, and verifies the proof under it. Both methods resolve from the DID alone, so the Issuer fetches nothing. A jwk header, a kid of another method and a kid that is not a DID URL are each refused with HTTP 400 invalid_proof. holderDIDFromProofKey in issuance_drivers.go binds the credential to that DID: it becomes credentialSubject.id, and sub in the JWT encodings. The dc+sd-jwt configurations stay bound to jwk and the mso_mdoc configurations to cose_key, both of which take the key in jwk.

The hosted wallet's proofKeyReference (backend/cmd/walletharness/main.go) reads the configuration's binding methods and, when they are DID methods, sends a kid that is a DID URL of its active key: its own did:key or did:jwk when the Issuer lists that method, otherwise one derived from the key.

TestProofKeyReferenceFollowsBindingMethods asserts that a did:jwk and a did:key DID URL resolve to the key and yield that DID as the holder, and that a jwk header on a DID-bound configuration, a DID URL on a jwk configuration, an unlisted method, a plain key id and a DID with no fragment are refused. TestW3CConfigurationsAreBoundToADID asserts the advertised values for all three configurations and that the Credential Endpoint answers a jwk proof with invalid_proof. TestCredentialIssuanceSupportsMultipleFormats issues each format and asserts that the credential's subject is the DID of the proof's kid. TestCredentialProofNamesItsKeyAsTheIssuerBinds asserts the wallet's choice of header for DID, jwk and cose_key lists. did:web and other methods that need a network fetch are not accepted and not tested.

Related requirements

All OID4VCI 1.0 requirements · OID4VCI protocol page