@semaphore-protocol/identity 0.2.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,15 +2,15 @@
2
2
  <h1 align="center">
3
3
  Semaphore identity
4
4
  </h1>
5
- <p align="center">A library for managing Semaphore identities.</p>
5
+ <p align="center">A library to create Semaphore identities.</p>
6
6
  </p>
7
7
 
8
8
  <p align="center">
9
- <a href="https://github.com/semaphore-protocol/semaphore.js">
10
- <img src="https://img.shields.io/badge/project-semaphore-blue.svg?style=flat-square">
9
+ <a href="https://github.com/semaphore-protocol">
10
+ <img src="https://img.shields.io/badge/project-Semaphore-blue.svg?style=flat-square">
11
11
  </a>
12
- <a href="https://github.com/semaphore-protocol/semaphore.js/blob/main/packages/identity/LICENSE">
13
- <img alt="Github license" src="https://img.shields.io/github/license/semaphore-protocol/semaphore.js.svg?style=flat-square">
12
+ <a href="https://github.com/semaphore-protocol/semaphore/blob/main/LICENSE">
13
+ <img alt="Github license" src="https://img.shields.io/github/license/semaphore-protocol/semaphore.svg?style=flat-square">
14
14
  </a>
15
15
  <a href="https://www.npmjs.com/package/@semaphore-protocol/identity">
16
16
  <img alt="NPM version" src="https://img.shields.io/npm/v/@semaphore-protocol/identity?style=flat-square" />
@@ -28,17 +28,26 @@
28
28
 
29
29
  <div align="center">
30
30
  <h4>
31
- <a href="https://t.me/joinchat/B-PQx1U3GtAh--Z4Fwo56A">
32
- 🗣️ Chat &amp; Support
31
+ <a href="https://github.com/semaphore-protocol/semaphore/blob/main/CONTRIBUTING.md">
32
+ 👥 Contributing
33
+ </a>
34
+ <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
35
+ <a href="https://github.com/semaphore-protocol/semaphore/blob/main/CODE_OF_CONDUCT.md">
36
+ 🤝 Code of conduct
33
37
  </a>
34
38
  <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
35
- <a href="https://semaphore-protocol.github.io/semaphore.js/identity">
36
- 📘 Docs
39
+ <a href="https://github.com/semaphore-protocol/semaphore/contribute">
40
+ 🔎 Issues
41
+ </a>
42
+ <span>&nbsp;&nbsp;|&nbsp;&nbsp;</span>
43
+ <a href="https://discord.gg/6mSdGHnstH">
44
+ 🗣️ Chat &amp; Support
37
45
  </a>
38
46
  </h4>
39
47
  </div>
40
48
 
41
- ---
49
+ | This library provides a class that can be used to create identities compatible with the Semaphore [circuits](https://github.com/semaphore-protocol/semaphore/tree/main/circuits). Each identity contains two private values (_trapdoor_ and _nullifier_), and the Poseidon hash of these values (_commitment_) is used as the public identifier of the Semaphore identity. |
50
+ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
42
51
 
43
52
  ## 🛠 Install
44
53
 
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/identity
3
- * @version 0.2.2
4
- * @file A library for managing Semaphore identities.
3
+ * @version 2.4.0
4
+ * @file A library to create Semaphore identities.
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
7
- * @see [Github]{@link https://github.com/semaphore-protocol/semaphore.js/tree/main/packages/proof}
7
+ * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/identity}
8
8
  */
9
9
  import { BigNumber } from '@ethersproject/bignumber';
10
10
  import { poseidon } from 'circomlibjs';
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/identity
3
- * @version 0.2.2
4
- * @file A library for managing Semaphore identities.
3
+ * @version 2.4.0
4
+ * @file A library to create Semaphore identities.
5
5
  * @copyright Ethereum Foundation 2022
6
6
  * @license MIT
7
- * @see [Github]{@link https://github.com/semaphore-protocol/semaphore.js/tree/main/packages/proof}
7
+ * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/identity}
8
8
  */
9
9
  'use strict';
10
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/identity",
3
- "version": "0.2.2",
4
- "description": "A library for managing Semaphore identities.",
3
+ "version": "2.4.0",
4
+ "description": "A library to create Semaphore identities.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.node.js",
7
7
  "exports": {
@@ -15,8 +15,11 @@
15
15
  "LICENSE",
16
16
  "README.md"
17
17
  ],
18
- "repository": "https://github.com/semaphore-protocol/semaphore.js",
19
- "homepage": "https://github.com/semaphore-protocol/semaphore.js/tree/main/packages/proof",
18
+ "repository": "https://github.com/semaphore-protocol/semaphore",
19
+ "homepage": "https://github.com/semaphore-protocol/semaphore/tree/main/packages/identity",
20
+ "bugs": {
21
+ "url": "https://github.com/semaphore-protocol/semaphore.git/issues"
22
+ },
20
23
  "scripts": {
21
24
  "build:watch": "rollup -c rollup.config.ts -w --configPlugin typescript",
22
25
  "build": "rimraf dist && rollup -c rollup.config.ts --configPlugin typescript",