4.5.0 • Published 2 months ago

@semaphore-protocol/identity v4.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago
This library provides a class that can be used to create identities compatible with the Semaphore circuits. Each identity contains two secret values: trapdoor and nullifier, and one public value: commitment. The Poseidon hash of the secret values is the identity secret, and its hash is the identity commitment.

🛠 Install

npm or yarn

Install the @semaphore-protocol/identity package with npm:

npm i @semaphore-protocol/identity

or yarn:

yarn add @semaphore-protocol/identity

📜 Usage

# new Identity(identityOrMessage?: string): Identity

import { Identity } from "@semaphore-protocol/identity"

// The identity can be generated randomly.
const identity1 = new Identity()

// Deterministically from a secret message.
const identity2 = new Identity("secret-message")

// Or it can be retrieved from an existing identity.
const identity3 = new Identity(identity1.toString())

// Trapdoor, nullifier and commitment are the attributes (e.g. JS getters).
const { trapdoor, nullifier, commitment } = identity1
4.5.0

2 months ago

4.4.2

2 months ago

4.4.1

2 months ago

4.4.0

2 months ago

4.3.1

2 months ago

4.2.0

3 months ago

4.1.0

3 months ago

4.3.0

3 months ago

4.0.0-beta.15

6 months ago

4.0.0-beta.14

6 months ago

4.0.0-beta.17

5 months ago

4.0.0-beta.16

6 months ago

4.0.0-beta.13

6 months ago

4.0.0-beta.12

7 months ago

4.0.1

5 months ago

4.0.0

5 months ago

4.0.3

4 months ago

4.0.2

4 months ago

4.0.0-beta.19

5 months ago

4.0.0-beta.18

5 months ago

4.0.0-beta.11

7 months ago

4.0.0-beta.10

7 months ago

4.0.0-beta.9

8 months ago

4.0.0-beta.8

8 months ago

4.0.0-beta.7

9 months ago

4.0.0-beta.6

9 months ago

4.0.0-beta.5

9 months ago

4.0.0-beta.4

9 months ago

4.0.0-beta.3

9 months ago

4.0.0-beta.2

10 months ago

4.0.0-beta

10 months ago

4.0.0-beta.1

10 months ago

4.0.0-alpha.8

10 months ago

4.0.0-alpha.7

10 months ago

4.0.0-alpha.5

11 months ago

4.0.0-alpha.6

11 months ago

4.0.0-alpha.3

11 months ago

4.0.0-alpha.4

11 months ago

4.0.0-alpha.1

11 months ago

4.0.0-alpha.2

11 months ago

4.0.0-alpha

11 months ago

3.15.2

12 months ago

3.15.0

1 year ago

3.12.3

1 year ago

3.14.0

1 year ago

3.12.2

1 year ago

3.15.1

1 year ago

3.11.0

1 year ago

3.13.0

1 year ago

3.12.1

1 year ago

3.12.0

1 year ago

3.11.1

1 year ago

3.10.1

2 years ago

3.10.0

2 years ago

3.6.0-beta.0

2 years ago

3.6.0-beta.1

2 years ago

3.6.0-beta.2

2 years ago

3.6.0-beta.3

2 years ago

3.6.0-beta.4

2 years ago

3.9.0

2 years ago

3.4.0

2 years ago

3.2.2

2 years ago

3.3.0

2 years ago

3.2.1

2 years ago

3.2.0

2 years ago

3.8.0

2 years ago

3.7.0

2 years ago

3.6.0

2 years ago

3.5.0

2 years ago

3.2.3

2 years ago

3.6.0-1

2 years ago

3.1.0

2 years ago

3.0.0

2 years ago

3.0.0-beta.5

2 years ago

3.0.0-beta.7

2 years ago

3.0.0-beta.6

2 years ago

3.0.0-beta.8

2 years ago

2.6.1

2 years ago

2.6.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.0.0

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago