fromPresentment

suspend fun fromPresentment(sessionTranscript: DataItem, eReaderKey: EcPublicKey? = null, credential: MdocCredential, requestedClaims: List<MdocRequestedClaim>, deviceNamespaces: DeviceNamespaces = buildDeviceNamespaces {}, errors: Map<String, Map<String, Int>> = emptyMap()): MdocDocument

Creates a MdocDocument by presenting claims from an MdocCredential.

Return

a MdocDocument.

Parameters

sessionTranscript

the session transcript to use.

eReaderKey

the ephemeral reader key or null if not using session encryption.

credential

the MdocCredential to present.

requestedClaims

the claims in credential to present.

deviceNamespaces

additional device-signed claims to present.

errors

the errors to return.