TransactionDataJson

class TransactionDataJson(type: TransactionType, val base64UrlEncodedJson: String, data: JsonObject = Json.parseToJsonElement(base64UrlEncodedJson.fromBase64Url().decodeToString()).jsonObject) : TransactionData

TransactionData in JSON format as used in OpenID4VP.

Parameters

type

transaction type

base64UrlEncodedJson

transaction data as JSON which is then Base64Url-encoded; this is what is used to compute transaction data hash in OpenID4VP

data

JSON transaction data; must be the same data as in base64UrlEncodedJson

Constructors

Link copied to clipboard
constructor(type: TransactionType, base64UrlEncodedJson: String, data: JsonObject = Json.parseToJsonElement(base64UrlEncodedJson.fromBase64Url().decodeToString()).jsonObject)

Types

Link copied to clipboard
class AttributesJson(val data: JsonObject) : TransactionData.Attributes

Implementation of TransactionData.Attributes for JSON-formatted transactions.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Transaction attributes

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open suspend override fun getHash(algorithm: Algorithm): ByteString

Computes hash of the transaction data.

Link copied to clipboard
open override fun getHashAlgorithm(): Algorithm?

Hash algorithm override for this transaction data.