fromDeviceSignedItems

fun fromDeviceSignedItems(namespacedItems: Map<String, List<DeviceSignedItem>>, deviceAuth: CoseSigned<ByteArray>): DeviceSigned(source)

Ensures the serialization of this structure in Document.deviceSigned:

DeviceSigned = {
"nameSpaces" : DeviceNameSpacesBytes ; Returned data elements
"deviceAuth" : DeviceAuth ; Contains the device authentication for mdoc authentication
}
DeviceNameSpaceBytes = #6.24(bstr .cbor DeviceNameSpaces)
DeviceNameSpaces = {
* NameSpace => DeviceSignedItems ; Returned data elements for each namespace
}
DeviceSignedItems = {
+ DataElementIdentifier => DataElementValue ; Returned data element identifier and value
}

See ISO/IEC 18013-5:2021, 8.3.2.1.2.2 Device retrieval mdoc response