@semaphore-protocol/proof 4.0.0-beta.6 → 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.
- package/dist/index.browser.js +2 -2
- package/dist/index.node.cjs +2 -2
- package/dist/index.node.js +2 -2
- package/package.json +4 -4
- package/src/generate-proof.ts +1 -1
package/dist/index.browser.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/proof
|
|
3
|
-
* @version 4.0.0-beta.
|
|
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] =
|
|
128
|
+
merkleProofSiblings[i] = 0n;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
const { proof, publicSignals } = await groth16.fullProve({
|
package/dist/index.node.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/proof
|
|
3
|
-
* @version 4.0.0-beta.
|
|
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] =
|
|
158
|
+
merkleProofSiblings[i] = 0n;
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
const { proof, publicSignals } = await snarkjs.groth16.fullProve({
|
package/dist/index.node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/proof
|
|
3
|
-
* @version 4.0.0-beta.
|
|
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] =
|
|
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.
|
|
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.
|
|
52
|
-
"@semaphore-protocol/identity": "4.0.0-beta.
|
|
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.
|
|
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"
|
package/src/generate-proof.ts
CHANGED