Go to file
Alexey 6c671ff21c bump 2020-12-29 21:58:58 -05:00
.github/workflows fix ci 2020-12-15 21:36:44 +03:00
abi initial 2020-12-15 18:09:41 +03:00
scripts initial 2020-12-15 18:09:41 +03:00
src gas price 2020-12-29 20:44:37 -05:00
test initial 2020-12-15 18:09:41 +03:00
.dockerignore initial 2020-12-15 18:09:41 +03:00
.editorconfig initial 2020-12-15 18:09:41 +03:00
.env.example gas price 2020-12-29 20:44:37 -05:00
.eslintrc initial 2020-12-15 18:09:41 +03:00
.gitignore initial 2020-12-15 18:09:41 +03:00
.prettierrc initial 2020-12-15 18:09:41 +03:00
Dockerfile update docker 2020-12-15 21:32:16 +03:00
LICENSE initial 2020-12-15 18:09:41 +03:00
README.md update readme 2020-12-29 19:43:03 -05:00
docker-compose.yml update docker compose 2020-12-15 21:39:23 +03:00
package.json bump 2020-12-29 21:58:58 -05:00
yarn.lock gas price 2020-12-29 20:44:37 -05:00

README.md

Root updater Build Status Docker Image Version (latest semver)

For Tornado Cash to enable mining, it needs more metadata than is currently available: it needs to know the block number for each Tornado Cash deposit and withdrawal. Since the current version of Tornado cash is immutable the mining system uses a special proxy to collect this data. When users make deposits and withdrawal all necessary data is recorded to the proxy contract. In order to be used in zkSnark proof, this data should be added to the special Merkle trees (deposits Merkle tree and withdrawals Merkle tree). So long as someone out there does this, the system works smoothly and trustlessly.

This software helps to upload deposit and withdrawal metadata from Tornado Cash anonymity mining proxy into the TornadoTrees contract that handles the Merkle trees.

Keep in mind, it could cost some ether to do so.

Usage with docker

wget https://raw.githubusercontent.com/tornadocash/tornado-root-updater/master/docker-compose.yml
wget https://raw.githubusercontent.com/tornadocash/tornado-root-updater/master/.env.example -O .env
vi .env # update env vars
docker-compose up -d

Usage for development

yarn
cp .env.example .env
yarn start

Caches events from both mining and tornado cash instances