generateMdocResponseElements
open suspend fun generateMdocResponseElements(transactionData: TransactionData<PayloadT>, credential: Credential, userInput: TransactionUserInput?, docRequestId: Int? = null): Map<String, DataItem>
Generates device-signed data elements for an Mdoc credential.
Used for Case 1 (ISO 18013-5) and Case 4 (OpenID4VP).
Return
map of data elements for DeviceSigned.nameSpaces["org.iso.transactiondata"][identifier]
Parameters
transactionData
transaction data
credential
credential being presented
userInput
additional data specified by the user
docRequestId
document request index in ISO 18013-5, null in OpenID4VP