TransactionDataCbor

TransactionData in CBOR format as used in ISO/IEC 18013-5:2021.

Parameters

type

transaction type

data

transaction data, must be tagged with Tagged.ENCODED_CBOR; transaction hash is computed from the serialized data wrapped in this Tagged.

Constructors

Link copied to clipboard
constructor(type: TransactionType, data: Tagged)

Properties

Link copied to clipboard
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?