Tornado Cash Classic Merkle tree contracts and circuits
.github/workflows | ||
circuits | ||
contracts | ||
optimize | ||
scripts | ||
src | ||
test | ||
.dockerignore | ||
.editorconfig | ||
.env.example | ||
.eslintrc | ||
.gitattributes | ||
.gitignore | ||
.nvmrc | ||
.prettierignore | ||
.prettierrc | ||
.solhint.json | ||
Dockerfile | ||
hardhat.config.js | ||
LICENSE | ||
package.json | ||
README.md | ||
yarn.lock |
Tornado.cash trees
This repo implements a more optimized version of the TornadoTrees mechanism.
Dependencies
- node 12
- yarn
- 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
circuits/BatchTreeUpdate.circom
contracts/TornadoTrees.sol
tornadoTrees.test.js
build large circuits
- docker build . -t tornadocash/tornado-trees