Skip to content

Commit

Permalink
docs(index.md): remove out of date sections
Browse files Browse the repository at this point in the history
  • Loading branch information
jrhender committed Apr 7, 2022
1 parent 6934d4a commit 5874ed4
Showing 1 changed file with 0 additions and 50 deletions.
50 changes: 0 additions & 50 deletions docs/index.md
Expand Up @@ -9,53 +9,3 @@ A [TypeScript](https://www.typescriptlang.org/) library that provides high-level


You can read more about Decentralized Identifiers (DIDs), Verifiable Credentials and how they provide the mechanisms for identity access and management in EW-DOS [here](https://energy-web-foundation.gitbook.io/energy-web/foundational-concepts/self-sovereign-identity)

### Prerequisites

Node.js (>=10)

### Add library as a dependency

From Git:

```sh
$ npm i https://github.com/energywebfoundation/iam-client-lib.git#branch_name
```

From NPM:

```sh
$ npm i iam-client-lib
```

### Sample Import (TypeScript)
```sh
import { IAM, CacheServerClient } from 'iam-client-lib';

export class Sample {
private _iam: IAM;


constructor() {
// create default cache server client (optional)
const cacheClient = new CacheServerClient({ url: 'http://cache-server.com'})

// create IAM instance with provided rpc URL
this._iam = new IAM({
rpcUrl: 'https://volta-rpc.energyweb.org/',
chainId: 73799,
cacheClient // optional
});
}

async initializeIAM() {
// this will show connection modal and authenticate
const { did, connected } = await this._iam.initializeConnection();

// after successfully authentication you can retrieve the signer
const signer = this._iam.getSigner();
}

```
## License

0 comments on commit 5874ed4

Please sign in to comment.