Skip to main content

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

Class: IssueCredential

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

Parameters

NameType
bodyIssueCredentialBody
attachmentsAttachmentDescriptor[]
fromDID
toDID
thid?string
idstring

Returns

IssueCredential

Defined in

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

Properties

attachments

attachments: AttachmentDescriptor[]

Defined in

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


body

body: IssueCredentialBody

Defined in

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


from

from: DID

Defined in

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


id

id: string

Defined in

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


thid

Optional thid: string

Defined in

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


to

to: DID

Defined in

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


type

Static type: ProtocolType = ProtocolType.DidcommIssueCredential

Defined in

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

Methods

getCredentialStrings

getCredentialStrings(): string[]

Returns

string[]

Defined in

src/edge-agent/protocols/issueCredential/IssueCredential.ts:36


makeMessage

makeMessage(): Message

Returns

Message

Defined in

src/edge-agent/protocols/issueCredential/IssueCredential.ts:23


build

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

Type parameters

Name
T

Parameters

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

Returns

IssueCredential

Defined in

src/edge-agent/protocols/issueCredential/IssueCredential.ts:96


fromMessage

fromMessage(fromMessage): IssueCredential

Parameters

NameType
fromMessageMessage

Returns

IssueCredential

Defined in

src/edge-agent/protocols/issueCredential/IssueCredential.ts:49


makeIssueFromRequestCredential

makeIssueFromRequestCredential(msg): IssueCredential

Parameters

NameType
msgMessage

Returns

IssueCredential

Defined in

src/edge-agent/protocols/issueCredential/IssueCredential.ts:80