fromDeviceEngagement
fun fromDeviceEngagement(encodedDeviceRetrievalMethod: ByteArray, senderRole: MdocRole = MdocRole.MDOC): List<MdocConnectionMethod>
Decodes a single DeviceRetrievalMethod CBOR byte array into one or more single-mode MdocConnectionMethod instances (or an empty list if the method type/version is unsupported).
Return
the decoded single-mode MdocConnectionMethod instances.
Parameters
encodedDeviceRetrievalMethod
the bytes of DeviceRetrievalMethod CBOR.
senderRole
the MdocRole of the peer that authored the DeviceRetrievalMethod.
Throws
if the given CBOR is malformed.