Skip to main content

@hyperledger/identus-sdk / Exports / Presentation

Class: Presentation

Table of contents

Constructors

Properties

Methods

Constructors

constructor

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

Parameters

NameType
bodyPresentationBody
attachmentsAttachmentDescriptor[]
fromDID
toDID
thid?string
idstring

Returns

Presentation

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:22

Properties

attachments

attachments: AttachmentDescriptor[]

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:24


body

body: PresentationBody

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:23


from

from: DID

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:25


id

id: string

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:28


thid

Optional thid: string

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:27


to

to: DID

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:26


type

Static type: ProtocolType = ProtocolType.DidcommPresentation

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:20

Methods

makeMessage

makeMessage(): Message

Returns

Message

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:43


validate

validate(): void

Returns

void

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:33


fromMessage

fromMessage(fromMessage): Presentation

Parameters

NameType
fromMessageMessage

Returns

Presentation

Defined in

src/edge-agent/protocols/proofPresentation/Presentation.ts:56