ProposeCredential

data class ProposeCredential constructor(val id: String = UUID.randomUUID().toString(), val body: ProposeCredential.Body, val attachments: Array<AttachmentDescriptor>, val thid: String?, val from: DID, val to: DID)(source)

ALL parameters are DIDCOMMV2 format and naming conventions and follows the protocol https://github.com/hyperledger/aries-rfcs/tree/main/features/0453-issue-credential-v2

Constructors

Link copied to clipboard
constructor(id: String = UUID.randomUUID().toString(), body: ProposeCredential.Body, attachments: Array<AttachmentDescriptor>, thid: String?, from: DID, to: DID)

Types

Link copied to clipboard
data class Body constructor(val goalCode: String? = null, val comment: String? = null, val credentialPreview: CredentialPreview)

Represents the body of a message for proposing a credential.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val from: DID
Link copied to clipboard
val id: String
Link copied to clipboard
val thid: String?
Link copied to clipboard
val to: DID
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Checks if this object is equal to the specified other object.

Link copied to clipboard
open override fun hashCode(): Int

Computes the hash code value for this object.

Link copied to clipboard

This function creates a new Message object based on the provided data. The Message object represents a DIDComm message, which is used for secure, decentralized communication in the Atala PRISM architecture. The function sets the id, piuri, from, to, body, attachments, and thid properties of the Message object. The id property is generated using a random UUID, and the body property is encoded as a JSON string using the Json.encodeToString function. The other properties are set based on the values passed as arguments to the function.