Skip to main content

@atala/prism-wallet-sdk / Exports / OfferCredential

Class: OfferCredential

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new OfferCredential(body, attachments, from?, to?, thid?, id?): OfferCredential

Parameters

NameType
bodyOfferCredentialBody
attachmentsAttachmentDescriptor[]
from?DID
to?DID
thid?string
idstring

Returns

OfferCredential

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:14

Properties

attachments

attachments: AttachmentDescriptor[]

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:16


body

body: OfferCredentialBody

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:15


from

Optional from: DID

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:17


id

id: string

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:20


thid

Optional thid: string

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:19


to

Optional to: DID

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:18


type

Static type: ProtocolType = ProtocolType.DidcommOfferCredential

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:12

Methods

makeMessage

makeMessage(): Message

Returns

Message

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:29


build

build<T>(credentialPreview, fromDID, toDID, thid?, credentials?): OfferCredential

Type parameters

Name
T

Parameters

NameType
credentialPreviewCredentialPreview
fromDIDDID
toDIDDID
thid?string
credentialsMap<string, T>

Returns

OfferCredential

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:86


fromMessage

fromMessage(fromMessage): OfferCredential

Parameters

NameType
fromMessageMessage

Returns

OfferCredential

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:59


makeOfferFromProposedCredential

makeOfferFromProposedCredential(proposed): OfferCredential

Parameters

NameType
proposedProposeCredential

Returns

OfferCredential

Defined in

src/edge-agent/protocols/issueCredential/OfferCredential.ts:42