@semaphore-protocol/group 3.10.0 → 3.11.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/dist/index.mjs +2 -2
- package/dist/index.node.js +2 -2
- package/package.json +1 -1
- package/src/group.ts +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/group
|
|
3
|
-
* @version 3.
|
|
3
|
+
* @version 3.11.0
|
|
4
4
|
* @file A library to create and manage Semaphore groups.
|
|
5
5
|
* @copyright Ethereum Foundation 2022
|
|
6
6
|
* @license MIT
|
|
@@ -132,7 +132,7 @@ var Group = /** @class */ (function () {
|
|
|
132
132
|
throw new Error("The tree depth must be between 16 and 32");
|
|
133
133
|
}
|
|
134
134
|
this._id = id;
|
|
135
|
-
this.merkleTree = new IncrementalMerkleTree(poseidon2_2, treeDepth, hash(id), 2, members);
|
|
135
|
+
this.merkleTree = new IncrementalMerkleTree(poseidon2_2, treeDepth, hash(id), 2, members.map(BigInt));
|
|
136
136
|
}
|
|
137
137
|
Object.defineProperty(Group.prototype, "id", {
|
|
138
138
|
/**
|
package/dist/index.node.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module @semaphore-protocol/group
|
|
3
|
-
* @version 3.
|
|
3
|
+
* @version 3.11.0
|
|
4
4
|
* @file A library to create and manage Semaphore groups.
|
|
5
5
|
* @copyright Ethereum Foundation 2022
|
|
6
6
|
* @license MIT
|
|
@@ -136,7 +136,7 @@ var Group = /** @class */ (function () {
|
|
|
136
136
|
throw new Error("The tree depth must be between 16 and 32");
|
|
137
137
|
}
|
|
138
138
|
this._id = id;
|
|
139
|
-
this.merkleTree = new incrementalMerkleTree.IncrementalMerkleTree(poseidon2_2, treeDepth, hash(id), 2, members);
|
|
139
|
+
this.merkleTree = new incrementalMerkleTree.IncrementalMerkleTree(poseidon2_2, treeDepth, hash(id), 2, members.map(BigInt));
|
|
140
140
|
}
|
|
141
141
|
Object.defineProperty(Group.prototype, "id", {
|
|
142
142
|
/**
|
package/package.json
CHANGED
package/src/group.ts
CHANGED
|
@@ -20,7 +20,7 @@ export default class Group {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
this._id = id
|
|
23
|
-
this.merkleTree = new IncrementalMerkleTree(poseidon2, treeDepth, hash(id), 2, members)
|
|
23
|
+
this.merkleTree = new IncrementalMerkleTree(poseidon2, treeDepth, hash(id), 2, members.map(BigInt))
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|