Giter VIP home page Giter VIP logo

simple-tornado's Introduction

Simple Tornado

This is a simple version of Tornado Cash which is a private transactions solution based on zkSNARKs. The project rewrites from tornado-core, and it's suitable for a beginner to learn development of applications with Zero Knowledge Proofs.

Tech Stack

  • circom 0.5.45
  • snarkjs 0.4.4
  • circomlib 0.5.2
  • solidity 0.7.0
  • ethers: 5.0.26
  • hardhat
  • typescript

Pre-requisites

  • install Node.js with cmd node
  • Install circom and snarkjs as global command-line
npm install -g circom
npm install -g snarkjs

Build

  • install dependencies
yarn
  • pre-requisites: circom and snarkjs as global command-line
yarn build

Test

  • pre-requisites: run yarn build for circuits and Hasher.json
yarn test

or

npx hardhat test test/FILENAME.test.ts

Questions

  • why we need FIELD_SIZE and ZERO_VALUE in the merkle tree? (seems to be called "snark scalar field")
  • Is it possible to have nullifier equal to secret? (this project implements like this but the original tornado-core divide nullifier and secret)

simple-tornado's People

Contributors

johnson86tw avatar

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.