What must a wallet do with a transaction_data parameter it does not support?

Error on transaction_data when the wallet does not support itOID4VP 1.0 §8.4MUSTRoles: wallet

Requirement as recorded in the ProtocolSoup registry

If the Wallet does not support transaction_data parameter, it MUST return an error upon receiving a request that includes it.

Read §8.4 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

Not captured: The hosted wallet supports no transaction data type, so it refuses every request carrying transaction_data; there is no request with transaction_data it accepts.

Failing exchange

Rejected, as requiredConformance counterparty

The conformance client asks the hosted wallet to resolve a counterparty request_uri whose signed request object carries a transaction_data entry of a type no wallet implements. The wallet, which supports no transaction data type, returns invalid_transaction_data instead of ignoring the parameter.

Messages from a deliberately broken conformance counterparty, to show how the hosted wallet refuses them.

  1. 1.POST https://wallet.protocolsoup.com/api/resolve400 Bad Request

    TLS: TLS 1.3 · TLS_AES_128_GCM_SHA256 · h2

    Request

    POST /api/resolve HTTP/2.0
    Accept: application/json
    Content-Length: 84
    Content-Type: application/json
    Host: wallet.protocolsoup.com
    User-Agent: ProtocolSoup-Conformance-Client/1
    X-Wallet-Session: conformance-09a27d58-fa2a-4990-a0e8-6720217a52e5
    
    {"request_uri":"https://protocolsoup-counterparty.fly.dev/scenarios/vp-011/request"}

    Response

    HTTP/2.0 400 Bad Request
    Cache-Control: no-store
    Cf-Cache-Status: DYNAMIC
    Cf-Ray: a65bb63aef309bd0-MSP
    Content-Type: application/json
    Date: Sun, 06 Dec 2026 13:42:05 GMT
    Fly-Request-Id: 01M95SE86NYWZSZ4T2FBQ0WA1X-ord
    Nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
    Pragma: no-cache
    Report-To: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=I3pwqUT3sAE%2Fhl9xedNiJKeLbXbNA0bIbG2JFL0AWY1CiDQTZ1ke2eUtNntBB0liRBbgkwuQlRgUwhqyTOZPq%2F4T9Nm9lyQsySlkGrFlPdCjB2JeBc1AAmhAIuwZhZBU%2FFdXRGs9dZZK"}]}
    Server: cloudflare
    Vary: accept-encoding
    Via: 1.1 fly.io, 1.1 fly.io
    
    {"_protocol_exchanges":[{"step":"Fetch Request Object","rfc_reference":"RFC 9101 Section 5.2.3","method":"GET","url":"https://protocolsoup-counterparty.fly.dev/scenarios/vp-011/request","request_headers":{"Accept":"application/oauth-authz-req+jwt"},"response_status":200,"response_headers":{"Cache-Control":"no-store","Content-Length":"1624","Content-Type":"application/oauth-authz-req+jwt","Date":"Sun, 06 Dec 2026 13:42:05 GMT","Fly-Request-Id":"01M95SE89P4Z55GS8YGBCS1PDT-syd","Server":"Fly/9bb2ac9a88 (2026-11-23)","Via":"2 fly.io","X-Conformance-Counterparty":"ProtocolSoup conformance counterparty: serves deliberately invalid protocol messages for conformance capture. Do not use as an issuer or verifier.","X-Robots-Tag":"noindex, nofollow"},"response_body":"eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMTEjcmVxdWVzdC1zaWduaW5nIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoiZGVjZW50cmFsaXplZF9pZGVudGlmaWVyOmRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMTEiLCJjbGllbnRfbWV0YWRhdGEiOnsiY2xpZW50X25hbWUiOiJQcm90b2NvbFNvdXAgQ29uZm9ybWFuY2UgQ291bnRlcnBhcnR5IiwidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2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pJOrai4AOw_u_Z42gg__F8qW_ELYuJ7s_bEfeJIk6WKMhB15yVXP9o3SQMepcnm169HrOFxRQ","duration_ms":5,"actor":"wallet→verifier"}],"error":"invalid_transaction_data","error_description":"invalid_transaction_data: transaction data type \"https://protocolsoup-counterparty.fly.dev/scenarios/vp-011/transaction-type\" is not supported"}
  2. 2.GET https://protocolsoup-counterparty.fly.dev/scenarios/vp-011/request200 OK

    Recorded by the hosted wallet: its own record of a request it sent, returned in the response above.

    Request

    Accept: application/oauth-authz-req+jwt

    No bytes captured.

    Response

    Cache-Control: no-store
    Content-Length: 1624
    Content-Type: application/oauth-authz-req+jwt
    Date: Sun, 06 Dec 2026 13:42:05 GMT
    Fly-Request-Id: 01M95SE89P4Z55GS8YGBCS1PDT-syd
    Server: Fly/9bb2ac9a88 (2026-11-23)
    Via: 2 fly.io
    X-Conformance-Counterparty: ProtocolSoup conformance counterparty: serves deliberately invalid protocol messages for conformance capture. Do not use as an issuer or verifier.
    X-Robots-Tag: noindex, nofollow
    eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMTEjcmVxdWVzdC1zaWduaW5nIiwidHlwIjoib2F1dGgtYXV0aHotcmVxK2p3dCJ9.eyJhdWQiOiJodHRwczovL3NlbGYtaXNzdWVkLm1lL3YyIiwiY2xpZW50X2lkIjoiZGVjZW50cmFsaXplZF9pZGVudGlmaWVyOmRpZDp3ZWI6cHJvdG9jb2xzb3VwLWNvdW50ZXJwYXJ0eS5mbHkuZGV2OnNjZW5hcmlvczp2cC0wMTEiLCJjbGllbnRfbWV0YWRhdGEiOnsiY2xpZW50X25hbWUiOiJQcm90b2NvbFNvdXAgQ29uZm9ybWFuY2UgQ291bnRlcnBhcnR5IiwidnBfZm9ybWF0c19zdXBwb3J0ZWQiOnsiZGMrc2Qtand0Ijp7ImtiLWp3dF9hbGdfdmFsdWV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bEfeJIk6WKMhB15yVXP9o3SQMepcnm169HrOFxRQ

Tests

Implementation

Explainer

What this requires

Section 8.4 says "If the Wallet does not support transaction_data parameter, it MUST return an error upon receiving a request that includes it." Section 5 repeats the rule as the exception to ignoring unknown parameters: "Wallets that do not support this parameter MUST reject requests that contain it." Section 5.1 extends it to wallets that do support the parameter: "The Wallet MUST return an error if a request contains even one unrecognized transaction data type or transaction data not conforming to the respective type definition."

Section 8.5 defines the error code. invalid_transaction_data applies when, among other cases, an object in the transaction_data structure "contains an unknown or unsupported transaction data type value".

Why it exists

Section 8.4 describes what the parameter is for: "The transaction data mechanism enables a binding between the user's identification/authentication and the user’s authorization, for example to complete a payment transaction, or to sign specific document(s) using QES (Qualified Electronic Signatures)." It also says "The Wallet that received the transaction_data parameter in the request MUST include a representation or reference to the data in the respective Credential presentation."

A wallet that silently drops the parameter returns an ordinary presentation. The user was never shown the transaction, and the presentation is not bound to it. A verifier that does not check for the binding could then treat proof of identity as authorisation of a payment or signature the user never saw.

What non-compliance looks like

The wallet treats transaction_data like any other unknown parameter: it shows the normal consent screen, presents the credential, and posts a vp_token with no transaction binding to the Response URI. Nothing on the wire signals that the transaction was ignored.

How ProtocolSoup tests it

The hosted wallet implements no transaction data type. After decoding a request object and checking its typ, resolveRequestEnvelope (backend/cmd/walletharness/main.go) calls rejectUnsupportedTransactionData, which refuses every request object carrying transaction_data. A malformed value (not a non-empty array, an entry that is not a base64url string, not a JSON object, or without a type) gets a description of the defect. A well-formed entry fails with transaction data type "..." is not supported. Every resolve, preview, present and submit API returns HTTP 400 with "error": "invalid_transaction_data" and that description. The error goes back to the caller of the wallet's API, which is the wallet UI or Looking Glass. The wallet does not send an Authorization Error Response to the verifier's Response URI.

TestPresentationAPIsRejectUnsupportedTransactionData builds request objects with typ oauth-authz-req+jwt that carry either a well-formed entry of type https://example.com/transaction or the malformed value %%%. It posts each one to the resolve, preview, present and submit handlers, and asserts a 400 status, invalid_transaction_data, and the expected text in error_description for every combination. It proves that no wallet entry point presents with an unsupported transaction_data. It does not cover delivery of the error to the verifier.

Related requirements

All OID4VP 1.0 requirements · OID4VP protocol page