/snarkyjs

Typescript/Javascript framework for zk-SNARKs and zkApps

Primary LanguageJavaScriptApache License 2.0Apache-2.0

SnarkyJS

To write a zkApp, we recommend using the zkApp CLI, which makes writing a zkApp easy by including SnarkyJS & providing project scaffolding, a test framework, and formatting.

SnarkyJS's documentation is available here.

See CHANGELOG.md for a list of changes between versions.

Run examples in Node

npm install
npm run build

./run src/examples/api_exploration.ts

Build and run web version

npm install
npm run start:web

Then go to http://localhost:8000/

Run tests

npm run test

Contributing

We appreciate any community contributions to SnarkyJS! Below are some steps that will help you get your changes in main as quickly as possible.

  1. Create a new issue for your proposed changes (or use an existing issue if a relevant one exists).
  2. Write an RFC in your issue outlining your proposed changes and motivation. Example Note: if you are proposing a smaller change your RFC will be smaller, and that's ok! :)
  3. One of the maintainers will review your RFC and work with you until it is approved.
  4. Fork the repository and implement your changes.
  5. Submit pull request and wait for code review :)