@hyperledger/identus-sdk / Exports / Mercury
Class: Mercury
Mercury is a powerful and flexible library for working with decentralized identifiers and secure communications protocols. Whether you are a developer looking to build a secure and private messaging app or a more complex decentralized system requiring trusted peer-to-peer connections, Mercury provides the tools and features you need to establish, manage, and secure your communications easily.
Export
Mercury
Implements
Table of contents
Constructors
Properties
Methods
- getDIDCommDID
- getDIDCommURL
- makeRequest
- notDid
- packMessage
- prepareForwardMessage
- requiresForwarding
- sendMessage
- sendMessageParseMessage
- unpackMessage
Constructors
constructor
• new Mercury(castor
, protocol
, api
): Mercury
Creates an instance of Mercury.
Parameters
Name | Type |
---|---|
castor | Castor |
protocol | DIDCommProtocol |
api | Api |
Returns
Defined in
Properties
api
• api: Api
Defined in
castor
• castor: Castor
Defined in
protocol
• protocol: DIDCommProtocol
Defined in
Methods
getDIDCommDID
▸ getDIDCommDID(document
): undefined
| DID
Parameters
Name | Type |
---|---|
document | DIDDocument |
Returns
undefined
| DID
Defined in
getDIDCommURL
▸ getDIDCommURL(document
): undefined
| URL
Parameters
Name | Type |
---|---|
document | DIDDocument |
Returns
undefined
| URL
Defined in
makeRequest
▸ makeRequest<T
>(service
, message
): Promise
<T
>