docs(readme): update @libsem/identity readme

Former-commit-id: e044389451bfbdc047fadf7be5509039bf0b4dbb [formerly 0a54e01a72]
Former-commit-id: 6db0f3c3bc17430e9a1d364f4f0274391ce2adc3
This commit is contained in:
Omar Desogus
2021-10-21 10:57:43 +02:00
committed by GitHub
parent 0de41b1689
commit b591f65542

View File

@@ -6,7 +6,7 @@
</p>
<p align="center">
<a href="https://github.com/appliedzkp/libsemaphore/blob/main/LICENSE">
<a href="https://github.com/appliedzkp/libsemaphore/blob/master/LICENSE">
<img alt="Github license" src="https://img.shields.io/github/license/appliedzkp/libsemaphore.svg?style=flat-square">
</a>
<a href="https://www.npmjs.com/package/@libsem/identity">
@@ -50,12 +50,9 @@ yarn add @libsem/identity
```typescript
import { ZkIdentity, Identity } from "@libsem/identity";
```
```javascript
const { ZkIdentity } = require("@libsem/identity");
```
**Mainpulation**
@@ -70,5 +67,4 @@ const identityCommitment: bigint = ZkIdentity.genIdentityCommitment(identity);
const identity: Identity = ZkIdentity.genIdentity();
const serialized: string = ZkIdentity.serializeIdentity(identity);
const unserialized: Identity = ZkIdentity.unSerializeIdentity(serialized);
```