How must a verifier match an OpenID4VP response to the state it issued?

Exact state correlation for redirect response modesOID4VP 1.0 §8.3MUSTRoles: verifier

Requirement as recorded in the ProtocolSoup registry

Redirect response modes require exact correlation to the state issued in the Authorization Request; a private request_id cannot bypass it. An encrypted response without an outer state is selected only by its ephemeral JWE kid before the decrypted state is compared exactly.

Read §8.3 in OID4VP 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, holding an SD-JWT VC that the issuer issued to it, fetches a direct_post.jwt request object from the request_uri. It encrypts vp_token and the request's state to the verifier's ephemeral ECDH-ES key, with that key's kid in the JWE header, and POSTs only the response parameter to /oid4vp/response. The verifier must select the request by the kid, find the decrypted state equal to the one it issued, and evaluate the presentation, whose result it reports at /oid4vp/result.

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

  1. 1.GET https://protocolsoup.com/oid4vp/request/VTnUy3r7BdpQLLycqSSTn7vU200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oid4vp/request/VTnUy3r7BdpQLLycqSSTn7vU HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 200 OK
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5859af63cdb-MSP
    Content-Length: 1980
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:36 GMT
    Fly-Request-Id: 01M95SDBWG6QVET0K3TXBRM0ME-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    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=FOb51v9Xnyv2rZFC7%2B5687YE5EKHeoRU2VP%2FMY5E1j1Bd3nhbi%2BzAOS%2F%2FQmFgF9P79DblJHslctJpD%2Fe44mLAMWTQa3H9PxvbinQXgoSzMHEVJB%2FQ%2FGvZed%2FYLOcQiR7wBM%3D"}]}
    Server: cloudflare
    Speculation-Rules: "/cdn-cgi/speculation"
    Vary: Origin
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsiZW5jcnlwdGVkX3Jlc3BvbnNlX2VuY192YWx1ZXNfc3VwcG9ydGVkIjpbIkExMjhHQ00iXSwiandrcyI6eyJrZXlzIjpbeyJhbGciOiJFQ0RILUVTIiwiY3J2IjoiUC0yNTYiLCJraWQiOiJzekQ2WlRWNSIsImt0eSI6IkVDIiwidXNlIjoiZW5jIiwieCI6ImF1MVE0eEFxQ2ZzMGJnZU1selU3QU9oaW82bXk1UkFHM0h6TWJodTdoTzAiLCJ5IjoiRE5rUm5RS3k2aWFqSXg5WFdNcGVLOHFaOW9OS3RTVklfbVJfN18wQnFUbyJ9XX0sInZwX2Zvcm1hdHNfc3VwcG9ydGVkIjp7ImRjK3NkLWp3dCI6eyJrYi1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdLCJzZC1qd3RfYWxnX3ZhbHVlcyI6WyJFUzI1NiJdfSwiand0X3ZjX2pzb24iOnsiYWxnX3ZhbHVlcyI6WyJF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7ud05PlNl2KCw0Q_ElM5CfYr38i9elrGP5cTUmCRQCilx6C-v4BfqOVob7R2y5DU66Uvb9-jzRiXnAZ3g7R7YF1Gw0gTVPym-8wYiHbxWgclvmiJyqkVSjHy98kO4Tl7Ph1wPI1RqexLRlzX59fb2D8wxnkFrQbGTw
  2. 2.POST https://protocolsoup.com/oid4vp/response200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/response HTTP/2.0
    Content-Length: 4243
    Content-Type: application/x-www-form-urlencoded
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    response=eyJhbGciOiJFQ0RILUVTIiwiZW5jIjoiQTEyOEdDTSIsImVwayI6eyJrdHkiOiJFQyIsImNydiI6IlAtMjU2IiwieCI6IjVqZWFkLUx5VVA0eVFBaEgxM00tam9oOWJMalVjalZPYnBVQkdlZkhYTzgiLCJ5IjoicXY5emE4Rkp5TllJZHI5ZWRxTnFyeGlBSnhWanNGQjc2ZElkOVFxbzhpbyJ9LCJraWQiOiJzekQ2WlRWNSJ9..CKpyVG6GEXKVs23n.DKz0zZsrdARmAFpWCHIB4YDDJ9lYN6dVs9DA8wXlWWfwTgvcLdqEMzlgUrS9WHfJ4F-0IshTog5zjxJ3xaGVUjAgy_t8cD1BBbyl8w0fqMTGKar66CzzuSDeneprk2WlMZMD83B-QS8ESzu3gjKpflUZs17fS_fYzDxWZg6_Ktw-Jar5ulupp_HWzH5rEMsNQPsIhuJI3Me0l0dVGDA403O-FQcS5esROEaL_3Oa3sl7ASkFtqdhgnZyrqz7ydfFm0KKtEE4nLBPZhMIjq9Anit5TBXIturT3eEvZp5Ws0mbz6_6lJtjzfqWvWlFA8VjN4QwAckCMFCYD8UrbZ23hayruR9dZ3EkN_tDl8rUCN2spWSOXcGY5hpzi03YoNQ0ex7N9qtPw4AB1om6bn4LPCDgfvdx8YStzEi8UpEPU62IdNM4CUez_QbXQupY3c9Hao-sNhNmddBD4sKl1mI71m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rYSm5q1rX958x83hEFdKgfxwNY4zAEzajPd3vRs64DbzBezTnFj2karui8Sspd88pBnhkd6j9zPpN99D8xcKBGkG6KqBmL1IgA2ewsO14dXosU4flzD2XOUoMAO5r24rSLtZCdjpyKSL8b8rHbTwIeGVlV4Uixupi18GyA7gVFz7s9b3aQmcLMj0p_0yPk776thT2mHDuc90Rqi3BfSWWuSJ5mIBp59DVlNDUdzdEytSBIrbxryKR_WSZpkY3lgns60.1MpcLXhgkpAq7P19dW3rYw

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb58bd9253cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:41:37 GMT
    Fly-Request-Id: 01M95SDCVP08BH2XQF14A58WNG-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=YYRpcJsIxqUmjXBnhLXNYgUr0fCcNyQCw57GtDjI36nrkWycpqz3NWao5ibQqcSqBNkWXX5vuC8hCU9k9ujro5KnXOkfQHHge%2FBqz18yG8TMqdZbfg9fTzuCtGD54DjhAvw%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=4,cfOrigin;dur=222
    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
    
    {}
    
  3. 3.GET https://protocolsoup.com/oid4vp/result/VTnUy3r7BdpQLLycqSSTn7vU200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oid4vp/result/VTnUy3r7BdpQLLycqSSTn7vU HTTP/2.0
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 200 OK
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb59218103cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:41:38 GMT
    Fly-Request-Id: 01M95SDDTYEWRRXY7H4WXAC2CS-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=sUeWtVUax%2FIvcl0jYSmDqS55TqC6zV5HqiTeJgz4e7MS3ygVOk4ZO1O8gW2ee4A49gjJTVJwjtHQVcjRyqLbkoDwPDDshlq23ZqtXO4yIblrJ47URUDrChoKIsrkowYLr7M%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=4,cfOrigin;dur=210
    Speculation-Rules: "/cdn-cgi/speculation"
    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
    
    {"request_id":"VTnUy3r7BdpQLLycqSSTn7vU","result":{"nonce_validated":true,"audience_validated":true,"expiry_validated":true,"holder_binding_verified":true,"credential_evidence":{"subject":"alice","format":"dc+sd-jwt","vct":"https://protocolsoup.com/credentials/university_degree","issuer":"https://protocolsoup.com/oid4vci","disclosed_claims":{"degree":"Bachelor of Engineering","department":"Engineering","family_name":"Johnson","given_name":"Alice","graduation_year":2018},"full_claims":{"cnf":{"jwk":{"crv":"P-256","kty":"EC","x":"CGEwLNyDSYXrT0R832CcvZX8XZzti_L3PGlirMepUSU","y":"FMGARa73nqOddtLqBNbKZFrX-lbTXTzVRIw7A7AXNtc"}},"degree":"Bachelor of Engineering","department":"Engineering","exp":1796601600,"family_name":"Johnson","given_name":"Alice","graduation_year":2018,"iat":1796515200,"iss":"https://protocolsoup.com/oid4vci","jti":"ISvVdInimwIcDL9Am1uRRAXl","nbf":1796515200,"sub":"alice","vct":"https://protocolsoup.com/credentials/university_degree"}},"credential_evidence_set":[{"subject":"alice","format":"dc+sd-jwt","vct":"https://protocolsoup.com/credentials/university_degree","issuer":"https://protocolsoup.com/oid4vci","disclosed_claims":{"degree":"Bachelor of Engineering","department":"Engineering","family_name":"Johnson","given_name":"Alice","graduation_year":2018},"full_claims":{"cnf":{"jwk":{"crv":"P-256","kty":"EC","x":"CGEwLNyDSYXrT0R832CcvZX8XZzti_L3PGlirMepUSU","y":"FMGARa73nqOddtLqBNbKZFrX-lbTXTzVRIw7A7AXNtc"}},"degree":"Bachelor of Engineering","department":"Engineering","exp":1796601600,"family_name":"Johnson","given_name":"Alice","graduation_year":2018,"iat":1796515200,"iss":"https://protocolsoup.com/oid4vci","jti":"ISvVdInimwIcDL9Am1uRRAXl","nbf":1796515200,"sub":"alice","vct":"https://protocolsoup.com/credentials/university_degree"}}],"policy":{"allowed":true,"code":"allowed","message":"Presentation accepted","evaluated_at":"2026-12-06T13:41:37.383763829Z"}},"status":"completed"}
    

Failing exchange

Rejected, as requiredConformance client

The conformance client fetches a direct_post request object from the request_uri, then POSTs a valid presentation to /oid4vp/response with the verifier's request_id in place of the state the request object carried. A request_id must not stand in for state on a redirect-invoked request.

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

  1. 1.GET https://protocolsoup.com/oid4vp/request/B_cHUKBsOCM30tUeMjb9S9KG200 OK

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    GET /oid4vp/request/B_cHUKBsOCM30tUeMjb9S9KG HTTP/2.0
    Accept: application/oauth-authz-req+jwt
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    

    Response

    HTTP/2.0 200 OK
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb5bddd913cdb-MSP
    Content-Length: 1650
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:41:45 GMT
    Fly-Request-Id: 01M95SDMNPY880MA26GM93A12Z-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    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=3T2E0YuOwj6LYM0EbuhY87l4%2BD9OLH4qfchToWCbUXSd%2BAv34T8hQqLPWbHRBmurrbDFfAkeBEHdt6FErcg%2FpGDlI2Z4qlwL1p1c%2FQunWOJXlBU%2FB5%2FUDO%2FtnhhVNmFBd%2BE%3D"}]}
    Server: cloudflare
    Speculation-Rules: "/cdn-cgi/speculation"
    Vary: Origin
    Via: 1.1 fly.io, 1.1 fly.io
    X-Content-Type-Options: nosniff
    X-Frame-Options: DENY
    X-Xss-Protection: 1; mode=block
    
    eyJhbGciOiJSUzI1NiIsImtpZCI6InJzYS05YTJlNThlYzVjNjk3NGJmIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoicmVkaXJlY3RfdXJpOmh0dHBzOi8vcHJvdG9jb2xzb3VwLmNvbS9vaWQ0dnAvcmVzcG9uc2UiLCJjbGllbnRfbWV0YWRhdGEiOnsidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il0sInNkLWp3dF9hbGdfdmFsdWVzIjpbIkVTMjU2Il19LCJqd3RfdmNfanNvbiI6eyJhbGdfdmFsdWVzIjpbIkVTMjU2IiwiUlMyNTYiLCJFZERTQSJdfSwibGRwX3ZjIjp7InByb29mX3R5cGVfdmFsdWVzIjpbIkRhdGFJbnRlZ3JpdHlQcm9vZiIsIkVkMjU1MTlTaWduYXR1cmUyMDIwIl19LCJtc29fbWRvYyI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POST https://protocolsoup.com/oid4vp/response400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /oid4vp/response HTTP/2.0
    Content-Length: 2972
    Content-Type: application/json
    Host: protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    
    {"request_id":"B_cHUKBsOCM30tUeMjb9S9KG","vp_token":"{\"degree\":[\"eyJhbGciOiJFUzI1NiIsImtpZCI6Ik5KMER1S0x2M0VsU0tCTWpKMEpkOXdZRkZnbmczVk5GcEwwdzFldDhRMUkiLCJ0eXAiOiJkYytzZC1qd3QiLCJ4NWMiOlsiTUlJQ2ZqQ0NBaVNnQXdJQkFnSVJBS0FCQklSc2hyczRhYVVsbzE4OUY1QXdDZ1lJS29aSXpqMEVBd0l3U1RFTE1Ba0dBMVVFQmhNQ1ZWTXhGVEFUQmdOVkJBb1RERkJ5YjNSdlkyOXNVMjkxY0RFak1DRUdBMVVFQXhNYVVISnZkRzlqYjJ4VGIzVndJRzFFVENCSlFVTkJJRkp2YjNRd0hoY05Nall3TmpJek1USTFOVFF5V2hjTk1qY3dOakl6TVRNd01EUXlXakJQTVFzd0NRWURWUVFHRXdKVlV6RVZNQk1HQTFVRUNoTU1VSEp2ZEc5amIyeFRiM1Z3TVNrd0p3WURWUVFERXlCUWNtOTBiMk52YkZOdmRYQWdiVVJNSUVSdlkzVnRaVzUwSUZOcFoyNWxjakJaTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEEwSUFCUEtJUXE3amRaQmFlQnNFV1BGenRLZGpBeTMwTkxqOFhjdW5FODlmV1hZMzlQUENpOGZyTE5GSkJJajdiRzdHTkthbkd0MFRlSUp1dGxrUytndVNBL1NqZ2VZd2dlTXdEZ1lEVlIwUEFRSC9CQVFEQWdlQU1CSUdBMVVkSlFRTE1Ba0dCeWlCakYwRkFRSXdEQVlEVlIwVEFRSC9CQUl3QURBZEJnTlZIUTRFRmdRVTZzUmZzVXM0c3YxcDRkZGowVUNm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a65bb5c41aeb3cdb-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:41:46 GMT
    Fly-Request-Id: 01M95SDNMWKVVWTW515QYT3QWA-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=oSqm7%2BrH9ackny2MfQT0fjLbSe%2BDZ%2BtTzW3YS51QxHfZcA%2Fo3ftVA9%2BN9to%2B%2BEaKPkfP4NV5T1efg5%2B%2B4yD2MGcDTLMcdKfScKP4Tu%2BW%2BckHyKo3lPghZehfLTVLFMsGEmc%3D"}]}
    Server: cloudflare
    Server-Timing: cfCacheStatus;desc="DYNAMIC"
    Server-Timing: cfEdge;dur=2,cfOrigin;dur=196
    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_request","error_description":"state must exactly match the authorization request"}
    

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

This requirement states how ProtocolSoup's verifier applies several OpenID4VP rules; the sentence itself is not spec text. "Redirect response modes" here means direct_post and direct_post.jwt responses to requests the wallet received by redirect or QR code, as opposed to the Digital Credentials API. For those, the response must carry the state the verifier put in the Authorization Request, and the value must match exactly. Section 5.3 makes this a MUST whenever a presentation without Holder Binding is requested: the Verifier MUST "check that the same state value is returned in the Authorization Response". ProtocolSoup applies it to every redirect-invoked request.

With direct_post.jwt the wallet posts only an encrypted response, so state sits inside the JWE. Section 8.3 gives the verifier a way to find the right key first: "If the selected public key contains a kid parameter, the JWE MUST include the same value in the kid JWE Header Parameter (as defined in Section 4.1.6) of the encrypted response. This enables the Verifier to easily identify the specific public key that was used to encrypt the response." After decryption, the inner state must equal the issued one.

Why it exists

A direct_post response reaches the Response URI from the wallet, not from the browser that started the flow, so the verifier needs a value that ties the response to a request. Section 14.3.2 says "The Verifier SHOULD protect its Response URI from inadvertent requests by checking that the value of the received state parameter corresponds to a recent Authorization Request." state is the value the wallet read from the signed request and sends back. If a second identifier, such as an internal request_id, could stand in for it, the verifier would accept responses that never carried the value the wallet received, and the check would be skipped.

What non-compliance looks like

A verifier looks up the session by an identifier from its own URLs and skips the state comparison when that lookup succeeds. A verifier compares state loosely, by prefix or ignoring case. A verifier selects a session for an encrypted response, decrypts it, and accepts the result without comparing the decrypted state to the session's.

How ProtocolSoup tests it

handleWalletResponse (backend/internal/protocols/oid4vp/handlers.go) rejects any response to a redirect-invoked request whose state is empty or not byte-equal to the issued value, with 400 invalid_request and state must exactly match the authorization request, even when a valid request_id is supplied. When an encrypted response arrives with neither state nor request_id, requestSessionForEncryptedResponse reads the kid from the JWE protected header and selects the single unexpired session whose ephemeral ECDH-ES key has that kid. The code does not rely only on the kid. If the kid is absent or matches no session, it tries to decrypt against each active session key and accepts the single session whose decrypted state equals its own. Whichever way the session is found, the decrypted state is then compared exactly, and a mismatch fails with state mismatch in encrypted response payload.

TestRedirectWalletResponseRequiresExactStateEvenWithRequestID posts a request_id and a vp_token with no state to /oid4vp/response for a direct_post request, and asserts 400 with invalid_request. It does not check the error description and does not try a wrong but non-empty state. TestHAIPDirectPostJWTSDJWTProvisionsECDHESEncryption creates a HAIP direct_post.jwt SD-JWT VC request and asserts that an ECDH-ES response key was provisioned, that A128GCM and A256GCM are advertised, and that a JWE-shaped value whose header carries that key's kid selects that session. It also asserts the request object's aud is https://self-issued.me/v2. Neither test covers the decrypted-state comparison or the fallback used when the kid is missing.

Related requirements

All OID4VP 1.0 requirements · OID4VP protocol page