Skip to main content

DIDCommWrapper

@hyperledger/identus-sdk v7.0.0


@hyperledger/identus-sdk / overview / DIDCommWrapper

Class: DIDCommWrapper

Defined in: src/mercury/didcomm/Wrapper.ts:21

Implements

Constructors

Constructor

new DIDCommWrapper(apollo: Apollo, castor: Castor, pluto: Pluto): DIDCommWrapper

Defined in: src/mercury/didcomm/Wrapper.ts:26

Parameters

ParameterType
apolloApollo
castorCastor
plutoPluto

Returns

DIDCommWrapper

Properties

PropertyModifierTypeDefined in
apolloreadonlyApollosrc/mercury/didcomm/Wrapper.ts:27
castorreadonlyCastorsrc/mercury/didcomm/Wrapper.ts:28
plutoreadonlyPlutosrc/mercury/didcomm/Wrapper.ts:29
didcommstatic__modulesrc/mercury/didcomm/Wrapper.ts:22

Methods

packEncrypted()

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

Defined in: src/mercury/didcomm/Wrapper.ts:60

Parameters

ParameterType
messageMessage
toDidDID
fromDid?DID

Returns

Promise<string>

Implementation of

DIDCommProtocol.packEncrypted


unpack()

unpack(message: string): Promise<Message>

Defined in: src/mercury/didcomm/Wrapper.ts:102

Parameters

ParameterType
messagestring

Returns

Promise<Message>

Implementation of

DIDCommProtocol.unpack


getDIDComm()

static getDIDComm(): Promise<__module>

Defined in: src/mercury/didcomm/Wrapper.ts:35

Returns

Promise<__module>