@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
Name | Type |
---|---|
body | IssueCredentialBody |
attachments | AttachmentDescriptor [] |
from | DID |
to | DID |
thid? | string |
id | string |
Returns
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
Defined in
src/edge-agent/protocols/issueCredential/IssueCredential.ts:23
build
▸ build<T
>(fromDID
, toDID
, thid?
, credentials?
): IssueCredential
Type parameters
Name |
---|
T |
Parameters
Name | Type |
---|---|
fromDID | DID |
toDID | DID |
thid? | string |
credentials | Map <string , T > |
Returns
Defined in
src/edge-agent/protocols/issueCredential/IssueCredential.ts:96
fromMessage
▸ fromMessage(fromMessage
): IssueCredential
Parameters
Name | Type |
---|---|
fromMessage | Message |
Returns
Defined in
src/edge-agent/protocols/issueCredential/IssueCredential.ts:49
makeIssueFromRequestCredential
▸ makeIssueFromRequestCredential(msg
): IssueCredential
Parameters
Name | Type |
---|---|
msg | Message |
Returns
Defined in
src/edge-agent/protocols/issueCredential/IssueCredential.ts:80