Go to file
2021-03-06 15:05:54 +03:00
.github/workflows changeTreeHeight script 2021-02-26 12:14:43 +03:00
circuits pre production config 2021-02-26 11:17:13 +03:00
contracts make findArrayLength internal 2021-03-06 15:05:54 +03:00
optimize init 2021-02-01 16:40:32 +03:00
scripts changeTreeHeight script 2021-02-26 12:14:43 +03:00
src update snarkjs usage 2021-03-04 13:00:14 +03:00
test make findArrayLength internal 2021-03-06 15:05:54 +03:00
.dockerignore init 2021-02-01 16:40:32 +03:00
.editorconfig init 2021-02-01 16:40:32 +03:00
.env.example fix CI 2021-02-05 22:46:25 +03:00
.eslintrc init 2021-02-01 16:40:32 +03:00
.gitattributes init 2021-02-01 16:40:32 +03:00
.gitignore add migration 2021-02-02 14:32:44 -08:00
.nvmrc init 2021-02-01 16:40:32 +03:00
.prettierignore lint 2021-02-02 14:38:11 +03:00
.prettierrc init 2021-02-01 16:40:32 +03:00
.solhint.json init 2021-02-01 16:40:32 +03:00
Dockerfile docker update 2021-02-17 22:15:45 +03:00
hardhat.config.js remove extra config 2021-02-18 20:51:31 +03:00
LICENSE init 2021-02-01 16:40:32 +03:00
package.json update snarkjs usage 2021-03-04 13:00:14 +03:00
README.md configurable CHUNK_TREE_HEIGHT 2021-02-24 22:07:08 +03:00
yarn.lock update snarkjs usage 2021-03-04 13:00:14 +03:00

Tornado.cash trees Build Status

This repo implements a more optimized version of the TornadoTrees mechanism.

Dependencies

  1. node 12
  2. yarn
  3. zkutil (brew install rust && cargo install zkutil)

Start

$ yarn
$ yarn circuit
$ yarn test

Mainnet testing

$ yarn circuit
$ npx hardhat node --fork <https://eth-mainnet.alchemyapi.io/v2/API_KEY> --fork-block-number 11827889
$ npx hardhat test

Checklist for batch size changing

find and replace the CHUNK_TREE_HEIGHT = in following files

  1. circuits/BatchTreeUpdate.circom
  2. contracts/TornadoTrees.sol
  3. tornadoTrees.test.js

build large circuits

  1. docker build . -t tornadocash/tornado-trees