@semaphore-protocol/group 4.0.1 → 4.0.2
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.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/group
|
|
3
|
-
* @version 4.0.
|
|
3
|
+
* @version 4.0.2
|
|
4
4
|
* @file A library to create and manage Semaphore groups.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -241,7 +241,7 @@ class Group {
|
|
|
241
241
|
*/
|
|
242
242
|
static import(nodes) {
|
|
243
243
|
const group = new Group();
|
|
244
|
-
group.leanIMT.import(nodes);
|
|
244
|
+
group.leanIMT = leanImt.LeanIMT.import((a, b) => poseidon2_2([a, b]), nodes);
|
|
245
245
|
return group;
|
|
246
246
|
}
|
|
247
247
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/group
|
|
3
|
-
* @version 4.0.
|
|
3
|
+
* @version 4.0.2
|
|
4
4
|
* @file A library to create and manage Semaphore groups.
|
|
5
5
|
* @copyright Ethereum Foundation 2024
|
|
6
6
|
* @license MIT
|
|
@@ -239,7 +239,7 @@ class Group {
|
|
|
239
239
|
*/
|
|
240
240
|
static import(nodes) {
|
|
241
241
|
const group = new Group();
|
|
242
|
-
group.leanIMT.import(nodes);
|
|
242
|
+
group.leanIMT = LeanIMT.import((a, b) => poseidon2_2([a, b]), nodes);
|
|
243
243
|
return group;
|
|
244
244
|
}
|
|
245
245
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semaphore-protocol/group",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "A library to create and manage Semaphore groups.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"rollup-plugin-cleanup": "^3.2.1"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@zk-kit/lean-imt": "2.0
|
|
42
|
+
"@zk-kit/lean-imt": "2.1.0",
|
|
43
43
|
"@zk-kit/utils": "1.0.0"
|
|
44
44
|
}
|
|
45
45
|
}
|
package/src/index.ts
CHANGED