decrypt

suspend fun decrypt(recipientPrivateKey: AsymmetricKey, encryptionParameters: EncryptionParameters, sessionTranscript: DataItem, transactionDataList: List<List<TransactionData>> = emptyList(), atTime: Instant = Clock.System.now()): EncryptedDocumentsPlaintext

Decrypts the encrypted documents.

After decryption, the same verification checks as in DeviceResponse.verify are performed to verify the integrity of the returned documents.

Return

a EncryptedDocumentsPlaintext.

Parameters

recipientPrivateKey

the private key used for decryption.

encryptionParameters
sessionTranscript

the session transcript.

transactionDataList

list of transaction for each document in this EncryptedDocuments

atTime

the point in time for validating the whether returned documents are valid.