serializeJson

abstract fun serializeJson(payload: PayloadT, credentialIds: List<String>, hashAlgorithms: List<Algorithm>? = null): String

Serializes transaction data for use in OpenID4VP protocol.

Return

JSON-serialized (but not Base64Url-encoded!) transaction data

Parameters

payload

transaction-specific data

credentialIds

list of DCQL credential ids to which this transaction should be applied

hashAlgorithms

optional list of hash algorithms that are accepted by the verifier