Iso18013PresentmentRecord
class Iso18013PresentmentRecord(val response: DataItem, val sessionTranscript: DataItem, val request: DataItem, val eDeviceKey: EcPrivateKey?, val encryptionInfo: ByteString?, val origin: String?) : PresentmentRecord
PresentmentRecord for ISO 18013-5 mdoc presentment.
TODO: support recording Annex A, proximity and zero-knowledge presentations as well.
Constructors
Link copied to clipboard
constructor(response: DataItem, sessionTranscript: DataItem, request: DataItem, eDeviceKey: EcPrivateKey?, encryptionInfo: ByteString?, origin: String?)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun verify(atTime: Instant, documentTypeRepository: DocumentTypeRepository?, zkSystemRepository: ZkSystemRepository?): List<VerifiedPresentation>
Verifies the cryptographic validity of the presentment and the issuer trust chain. This includes verifying that the credential holder approved all transactions that apply to the presented credentials, even if no data was sent as a response for a given transaction.
Link copied to clipboard
Verifies that the presentation was bound to the expected nonce.