@semaphore-protocol/proof 4.0.0-beta.5 → 4.0.0-beta.7

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/proof
3
- * @version 4.0.0-beta.5
3
+ * @version 4.0.0-beta.7
4
4
  * @file A library to generate and verify Semaphore proofs.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -125,7 +125,7 @@ async function generateProof(identity, groupOrMerkleProof, message, scope, merkl
125
125
  for (let i = 0; i < merkleTreeDepth; i += 1) {
126
126
  merkleProofIndices.push((merkleProof.index >> i) & 1);
127
127
  if (merkleProofSiblings[i] === undefined) {
128
- merkleProofSiblings[i] = "0";
128
+ merkleProofSiblings[i] = 0n;
129
129
  }
130
130
  }
131
131
  const { proof, publicSignals } = await groth16.fullProve({
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/proof
3
- * @version 4.0.0-beta.5
3
+ * @version 4.0.0-beta.7
4
4
  * @file A library to generate and verify Semaphore proofs.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -155,7 +155,7 @@ async function generateProof(identity, groupOrMerkleProof, message, scope, merkl
155
155
  for (let i = 0; i < merkleTreeDepth; i += 1) {
156
156
  merkleProofIndices.push((merkleProof.index >> i) & 1);
157
157
  if (merkleProofSiblings[i] === undefined) {
158
- merkleProofSiblings[i] = "0";
158
+ merkleProofSiblings[i] = 0n;
159
159
  }
160
160
  }
161
161
  const { proof, publicSignals } = await snarkjs.groth16.fullProve({
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/proof
3
- * @version 4.0.0-beta.5
3
+ * @version 4.0.0-beta.7
4
4
  * @file A library to generate and verify Semaphore proofs.
5
5
  * @copyright Ethereum Foundation 2024
6
6
  * @license MIT
@@ -154,7 +154,7 @@ async function generateProof(identity, groupOrMerkleProof, message, scope, merkl
154
154
  for (let i = 0; i < merkleTreeDepth; i += 1) {
155
155
  merkleProofIndices.push((merkleProof.index >> i) & 1);
156
156
  if (merkleProofSiblings[i] === undefined) {
157
- merkleProofSiblings[i] = "0";
157
+ merkleProofSiblings[i] = 0n;
158
158
  }
159
159
  }
160
160
  const { proof, publicSignals } = await groth16.fullProve({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/proof",
3
- "version": "4.0.0-beta.5",
3
+ "version": "4.0.0-beta.7",
4
4
  "description": "A library to generate and verify Semaphore proofs.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,11 +48,11 @@
48
48
  "rollup-plugin-cleanup": "^3.2.1"
49
49
  },
50
50
  "peerDependencies": {
51
- "@semaphore-protocol/group": "4.0.0-beta.5",
52
- "@semaphore-protocol/identity": "4.0.0-beta.5"
51
+ "@semaphore-protocol/group": "4.0.0-beta.7",
52
+ "@semaphore-protocol/identity": "4.0.0-beta.7"
53
53
  },
54
54
  "dependencies": {
55
- "@semaphore-protocol/utils": "4.0.0-beta.5",
55
+ "@semaphore-protocol/utils": "4.0.0-beta.7",
56
56
  "@zk-kit/utils": "0.8.1",
57
57
  "ethers": "6.10.0",
58
58
  "snarkjs": "0.7.3"
@@ -96,7 +96,7 @@ export default async function generateProof(
96
96
  merkleProofIndices.push((merkleProof.index >> i) & 1)
97
97
 
98
98
  if (merkleProofSiblings[i] === undefined) {
99
- merkleProofSiblings[i] = "0"
99
+ merkleProofSiblings[i] = 0n
100
100
  }
101
101
  }
102
102