mirror of
https://github.com/privacy-scaling-explorations/zk-kit.git
synced 2026-04-22 03:00:15 -04:00
docs(readme): update @libsem/identity readme
Former-commit-id: e044389451bfbdc047fadf7be5509039bf0b4dbb [formerly 0a54e01a72]
Former-commit-id: 6db0f3c3bc17430e9a1d364f4f0274391ce2adc3
This commit is contained in:
@@ -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);
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user