makeMessage

Creates a Message object representing a DIDComm message. This function is used to generate a Message object based on the current state of an IssueCredential object.

Return

A Message object with the following properties:

  • id: A unique identifier generated using UUID.randomUUID.

  • piuri: The type of the message.

  • from: The sender's DID (Decentralized Identifier).

  • to: The recipient's DID.

  • body: The JSON-encoded body of the message.

  • attachments: An array of AttachmentDescriptor objects.

  • thid: The thread ID.