@libsem/identity
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

Semaphore identities

Library for managing identites for Semaphore and Rln protocols.

Github license NPM version Downloads npm bundle size (scoped) Linter eslint Code style prettier


🛠 Install

npm or yarn

Install the @libsem/identity package with npm:

npm i @libsem/identity

or yarn:

yarn add @libsem/identity

📜 Usage

Import

import { ZkIdentity, Identity } from "@libsem/identity"
const { ZkIdentity } = require("@libsem/identity")

Mainpulation

const identity: ZkIdentity = new ZkIdentity();
const identityCommitment: bigint = identity.genIdentityCommitment();

Serialization

const identity: ZkIdentity = new ZkIdentity();
const serialized: string = identity.serializeIdentity()
const unserialized: ZkIdentity = ZkIdentity.genFromSerialized(serialized);

Readme

Keywords

none

Package Sidebar

Install

npm i @libsem/identity

Weekly Downloads

1

Version

1.0.22

License

MIT

Unpacked Size

32.7 kB

Total Files

16

Last publish

Collaborators

  • akinovak