fromNamespaces
suspend fun fromNamespaces(sessionTranscript: DataItem, eReaderKey: EcPublicKey? = null, docType: String, issuerAuth: CoseSign1, issuerNamespaces: IssuerNamespaces, deviceNamespaces: DeviceNamespaces, deviceKey: AsymmetricKey, errors: Map<String, Map<String, Int>> = emptyMap()): MdocDocument
Creates a MdocDocument from IssuerNamespaces and DeviceNamespaces.
Return
a MdocDocument.
Parameters
sessionTranscript
the session transcript to use.
eReaderKey
the ephemeral reader key or null if not using session encryption.
docType
the type of the document, e.g. "org.iso.18013.5.1.mDL".
issuerAuth
the issuer-signed MSO.
issuerNamespaces
the issuer-signed data elements to return.
deviceNamespaces
the device-signed data elements to return.
deviceKey
a AsymmetricKey used to generate a signature or MAC.
errors
the errors to return.