semaphore-protocol / semaphore.js Goto Github PK
View Code? Open in Web Editor NEWA monorepo of Semaphore JavaScript libraries.
Home Page: https://semaphore-protocol.github.io/semaphore.js/
License: MIT License
A monorepo of Semaphore JavaScript libraries.
Home Page: https://semaphore-protocol.github.io/semaphore.js/
License: MIT License
Describe the feature you'd like
The @semaphore-protocol/group
package has a Group
class to create off-chain Semaphore groups, but it still doesn't allow to update group members. An update
method is quite simple to implement, as @zk-kit/incremental-merkle-tree
already has an update
method.
Describe the package you'd like
The package could abstract some parameters and functions of @zk-kit/incremental-merkle-tree
to make it easier to create and manage off-chain groups. Future features could allow the package to store large groups using different storage systems (e.g., MongoDB, IPFS).
Additional context
@semaphore-protocol/group
can also be used by @semaphore-protocol/proof
to automatically generate the Merkle proof inside the generateProof
function. This can reduce the number of steps in the generation phase of zero-knowledge Semaphore proofs.
...
const group = new Group()
group.addMembers(identityCommitments)
...
const fullProof = await generateProof(identity, group, externalNullifier, signal, {
zkeyFilePath: "./semaphore.zkey",
wasmFilePath: "./semaphore.wasm"
})
Describe the package you'd like
The Semaphore subgraph is very useful when it is necessary to fetch group data from contracts, particularly from the Semaphore.sol
contract deployed on Kovan, Goerli and Arbitrum. In fact, to generate an off-chain proof, it is necessary to recreate the group with the @semaphore-protocol/group
library, which must then be passed to the @semaphore-protocol/proof
library. A JavaScript library to query the subgraph on Node.js and on browsers can further simplify the work for developers who intend to integrate Semaphore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.