TransactionData

@Serializable
sealed class TransactionData(source)

OID4VP Draft 24: OPTIONAL. Array of strings, where each string is a base64url encoded JSON object that contains a typed parameter set with details about the transaction that the Verifier is requesting the End-User to authorize.

Inheritors

Properties

Link copied to clipboard
@SerialName(value = "credential_ids")
abstract val credentialIds: Set<String>

OID4VP: REQUIRED. Array of strings each referencing a Credential requested by the Verifier that can be used to authorize this transaction. In Presentation Exchange, the string matches the id field in the Input Descriptor. In the Digital Credentials Query Language, the string matches the id field in the Credential Query. If there is more than one element in the array, the Wallet MUST use only one of the referenced Credentials for transaction authorization.

Link copied to clipboard

OID4VP Annex B.3.3.1: Optional hash algorithms for binding each transaction-data item into the SD-JWT VC Key Binding JWT. For CSC QES signing and approval transactions, this binds the exact request data to the holder's proof of possession. If absent, SHA-256 is used. Values are IANA hash names, and implementations must support sha-256.

Functions

Link copied to clipboard
fun TransactionData.digest(digest: Digest): ByteArray