TransactionDataJson

class TransactionDataJson(type: TransactionType, val base64UrlEncodedJson: String, val 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
object Companion

Properties

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

Functions

Link copied to clipboard
open override fun getBlob(name: String): ByteString?
Link copied to clipboard
open override fun getBoolean(name: String): Boolean?
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.

Link copied to clipboard
open override fun getLong(name: String): Long?
Link copied to clipboard
open override fun getString(name: String): String?