Skip to main content

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

Class: DIDCommWrapper

Implements

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DIDCommWrapper(apollo, castor, pluto): DIDCommWrapper

Parameters

NameType
apolloApollo
castorCastor
plutoPluto

Returns

DIDCommWrapper

Defined in

src/mercury/didcomm/Wrapper.ts:24

Properties

apollo

Readonly apollo: Apollo

Defined in

src/mercury/didcomm/Wrapper.ts:25


castor

Readonly castor: Castor

Defined in

src/mercury/didcomm/Wrapper.ts:26


didResolver

Private Readonly didResolver: DIDResolver

Defined in

src/mercury/didcomm/Wrapper.ts:21


pluto

Readonly pluto: Pluto

Defined in

src/mercury/didcomm/Wrapper.ts:27


secretsResolver

Private Readonly secretsResolver: SecretsResolver

Defined in

src/mercury/didcomm/Wrapper.ts:22


didcomm

Static didcomm: __module

Defined in

src/mercury/didcomm/Wrapper.ts:20

Methods

doesRequireReturnRoute

doesRequireReturnRoute(type): boolean

Parameters

NameType
typestring

Returns

boolean

Defined in

src/mercury/didcomm/Wrapper.ts:55


packEncrypted

packEncrypted(message, toDid, fromDid?): Promise<string>

Parameters

NameType
messageMessage
toDidDID
fromDid?DID

Returns

Promise<string>

Implementation of

DIDCommProtocol.packEncrypted

Defined in

src/mercury/didcomm/Wrapper.ts:71


parseAttachment

parseAttachment(attachment): Attachment

Parameters

NameType
attachmentAttachmentDescriptor

Returns

Attachment

Defined in

src/mercury/didcomm/Wrapper.ts:233


parseAttachmentData

parseAttachmentData(data): AttachmentData

Parameters

NameType
dataAttachmentData

Returns

AttachmentData

Defined in

src/mercury/didcomm/Wrapper.ts:249


parseAttachmentDataToDomain

parseAttachmentDataToDomain(data): AttachmentData

Parameters

NameType
dataAttachmentData

Returns

AttachmentData

Defined in

src/mercury/didcomm/Wrapper.ts:189


parseAttachmentToDomain

parseAttachmentToDomain(attachment): AttachmentDescriptor

Parameters

NameType
attachmentAttachment

Returns

AttachmentDescriptor

Defined in

src/mercury/didcomm/Wrapper.ts:171


parseAttachments

parseAttachments(attachments?): undefined | Attachment[]

Parameters

NameType
attachments?AttachmentDescriptor[]

Returns

undefined | Attachment[]

Defined in

src/mercury/didcomm/Wrapper.ts:220


parseAttachmentsToDomain

parseAttachmentsToDomain(attachments): AttachmentDescriptor[]

Parameters

NameType
attachmentsAttachment[]

Returns

AttachmentDescriptor[]

Defined in

src/mercury/didcomm/Wrapper.ts:155


unpack

unpack(message): Promise<Message>

Parameters

NameType
messagestring

Returns

Promise<Message>

Implementation of

DIDCommProtocol.unpack

Defined in

src/mercury/didcomm/Wrapper.ts:117


getDIDComm

getDIDComm(): Promise<__module>

Returns

Promise<__module>

Defined in

src/mercury/didcomm/Wrapper.ts:33