@atala/prism-wallet-sdk / Exports / DIDCommWrapper
Class: DIDCommWrapper
Implements
Table of contents
Constructors
Properties
Methods
- doesRequireReturnRoute
- packEncrypted
- parseAttachment
- parseAttachmentData
- parseAttachmentDataToDomain
- parseAttachmentToDomain
- parseAttachments
- parseAttachmentsToDomain
- unpack
- getDIDComm
Constructors
constructor
• new DIDCommWrapper(apollo
, castor
, pluto
): DIDCommWrapper
Parameters
Name | Type |
---|---|
apollo | Apollo |
castor | Castor |
pluto | Pluto |
Returns
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
Name | Type |
---|---|
type | string |
Returns
boolean
Defined in
src/mercury/didcomm/Wrapper.ts:55
packEncrypted
▸ packEncrypted(message
, toDid
, fromDid?
): Promise
<string
>
Parameters
Name | Type |
---|---|
message | Message |
toDid | DID |
fromDid? | DID |
Returns
Promise
<string
>
Implementation of
Defined in
src/mercury/didcomm/Wrapper.ts:71
parseAttachment
▸ parseAttachment(attachment
): Attachment
Parameters
Name | Type |
---|---|
attachment | AttachmentDescriptor |
Returns
Attachment
Defined in
src/mercury/didcomm/Wrapper.ts:233
parseAttachmentData
▸ parseAttachmentData(data
): AttachmentData
Parameters
Name | Type |
---|---|
data | AttachmentData |
Returns
AttachmentData
Defined in
src/mercury/didcomm/Wrapper.ts:249
parseAttachmentDataToDomain
▸ parseAttachmentDataToDomain(data
): AttachmentData
Parameters
Name | Type |
---|---|
data | AttachmentData |
Returns
Defined in
src/mercury/didcomm/Wrapper.ts:189
parseAttachmentToDomain
▸ parseAttachmentToDomain(attachment
): AttachmentDescriptor
Parameters
Name | Type |
---|---|
attachment | Attachment |
Returns
Defined in
src/mercury/didcomm/Wrapper.ts:171
parseAttachments
▸ parseAttachments(attachments?
): undefined
| Attachment
[]
Parameters
Name | Type |
---|---|
attachments? | AttachmentDescriptor [] |
Returns
undefined
| Attachment
[]
Defined in
src/mercury/didcomm/Wrapper.ts:220
parseAttachmentsToDomain
▸ parseAttachmentsToDomain(attachments
): AttachmentDescriptor
[]
Parameters
Name | Type |
---|---|
attachments | Attachment [] |
Returns
Defined in
src/mercury/didcomm/Wrapper.ts:155
unpack
▸ unpack(message
): Promise
<Message
>
Parameters
Name | Type |
---|---|
message | string |
Returns
Promise
<Message
>
Implementation of
Defined in
src/mercury/didcomm/Wrapper.ts:117
getDIDComm
▸ getDIDComm(): Promise
<__module
>
Returns
Promise
<__module
>