TransactionData

class TransactionData(val hash: ByteString, val hashAlgorithm: Algorithm?, val type: String, val data: JsonObject)

An object that describes transaction data item in the context of OpenID4VP.

TODO: perhaps we need to make this a base sealed class and have one variant for JSON-based workflows and another for CBOR ones?

Parameters

hash

hash of encoded transaction data item, calculated using hashAlgorithm or SHA256 if not explicitly specified

hashAlgorithm

algorithm, only if it was explicitly specified in transaction data

type

type of the transaction data item

data

JSON object that represents the transaction data item

Constructors

Link copied to clipboard
constructor(hash: ByteString, hashAlgorithm: Algorithm?, type: String, data: JsonObject)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val data: JsonObject
Link copied to clipboard
val hash: ByteString
Link copied to clipboard
Link copied to clipboard