Initial setup

DID


$ npm install @elastosfoundation/did-js-sdk
    

Connectivity and Connectors

Add libraries to the project:


$ npm install @elastosfoundation/elastos-connectivity-sdk-js
$ npm install @elastosfoundation/essentials-connector-client-browser
    

Setup the connectivity SDK and add connectors:


import { connectivity, DID } from "@elastosfoundation/elastos-connectivity-sdk-js";
import { EssentialsConnector } from "@elastosfoundation/essentials-connector-client-browser";

constructor() {
  connectivity.registerConnector(new EssentialsConnector());
}