Coder Social home page Coder Social logo

semaphore-protocol / semaphore.js Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 6.0 1.74 MB

A monorepo of Semaphore JavaScript libraries.

Home Page: https://semaphore-protocol.github.io/semaphore.js/

License: MIT License

TypeScript 100.00%
javascript monorepo semaphore typescript zero-knowledge

semaphore.js's People

Contributors

cedoor avatar vivianjeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

semaphore.js's Issues

New group update method

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.

@semaphore-protocol/group

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"
})

@semaphore-protocol/subgraph

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.