OpenID4VP icon indicating copy to clipboard operation
OpenID4VP copied to clipboard

Clarify unsupported transaction_data error

Open andprian opened this issue 8 months ago • 2 comments

Clause 8.4. Transaction Data states: "If the wallet does not support transaction_data parameter, it MUST return an error."

Clarify what is the error that needs to be returned when transaction_data is not supported.

andprian avatar Mar 13 '25 13:03 andprian

To my understanding, there is not a dedicated error to express that the wallet doesn't support the transaction_data feature.

The invalid_transaction_data is the closest match, since it can be used in case transaction_data

contains an unknown or unsupported transaction data type value,

babisRoutis avatar Mar 18 '25 14:03 babisRoutis

yes, we can clarify that invalid_transaction_data error must be returned.

To my understanding, there is not a dedicated error to express that the wallet doesn't support the transaction_data feature.

Yes, this is because we do not want the wallet to return credentials when the verifier is sending transaction_data. so all wallets need to check if transaction_data parameter is in the request and return an error if they do not support it. we might need to clarify this in the definition of invalid_transaction_data error

The Wallet MUST ignore any unrecognized parameters, other than the transaction_data parameter. One exception to this rule is transaction_data parameter, and the wallets that do not support this parameter MUST reject requests that contain it.

Sakurann avatar Mar 20 '25 09:03 Sakurann