OfferCredential

data class OfferCredential constructor(val id: String = UUID.randomUUID().toString(), val body: OfferCredential.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: OfferCredential.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 replacementId: String? = null, val multipleAvailable: String? = null, val credentialPreview: CredentialPreview)

Represents the body of an OfferCredential message.

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 the current instance of OfferCredential is equal to the given object.

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

Calculates the hash code for the current instance of the OfferCredential class.

Link copied to clipboard

Creates a Message object with the provided data and returns it. The Message object includes information about the sender, recipient, message body, and other metadata. The Message object is typically used for secure, decentralized communication in the Atala PRISM architecture.