v3.10.0
📣 Important news
Off-chain groups
In order for a member of a Semaphore group to generate a valid zero-knowledge proof, it is necessary to create an off-chain group and add all members so that the Merkle proof for that member can be calculated. This step can take place in a server or on the browser, but in any case it is important that the time for adding members is reasonable. The old addMembers
method has been replaced with a third parameter in the Group
class, which is more than 10 times faster.
import { Group } from "@semaphore-protocol/group"
import { SemaphoreSubgraph } from "@semaphore-protocol/data"
const semaphoreSubgraph = new SemaphoreSubgraph()
const members = await semaphoreEthers.getGroupMembers("42")
const group = new Group("42", 20, members)
PR: #322
Documentation
Answers to frequently asked questions have been added to a separate page in the documentation, along with the troubleshooting page and a new guide to fetch on-chain data with the @semaphore-protocol/data
package. Also, the search bar can now also be used in Spanish.
🚀 Features
- @semaphore-protocol/data: Create function to check if a member exists - by @cedoor (9d707)
- @semaphore-protocol/group: Add new class parameter to add members - by @cedoor (ed015)