Go to file
2021-12-30 13:34:30 +03:00
.github/workflows fix ci 2020-12-15 21:36:44 +03:00
abi update abi 2021-03-16 01:08:51 +03:00
cache feat: update cache 2021-12-30 13:32:46 +03:00
src fix: duplicate events goerli 2021-06-05 12:57:05 +03:00
test initial 2020-12-15 18:09:41 +03:00
.dockerignore fix get pending caches 2021-04-01 21:09:48 +03:00
.editorconfig initial 2020-12-15 18:09:41 +03:00
.env.example fix: update docker 2021-05-05 20:43:32 +03:00
.eslintrc initial 2020-12-15 18:09:41 +03:00
.gitignore upload updates using snark 2021-02-18 20:46:48 +03:00
.prettierrc initial 2020-12-15 18:09:41 +03:00
docker-compose.yml fix: update encode data 2021-05-24 20:06:30 +03:00
Dockerfile fix: update docker entrypoint 2021-05-05 17:37:14 +03:00
LICENSE initial 2020-12-15 18:09:41 +03:00
package.json feat: update cache 2021-12-30 13:32:46 +03:00
README.md Update README.md 2021-12-30 13:34:30 +03:00
updateEvents.js feat: update cache 2021-12-30 13:32:46 +03:00
yarn.lock feat: update cache 2021-12-30 13:32:46 +03:00

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 for development

brew install redis
redis-server

yarn
cp .env.example .env
vi .env
# download and unzip snark keys from https://tornado-trees-circuit.s3-eu-west-1.amazonaws.com/tornado-trees-circuit.tar.gz to `snarks` directory
yarn start

Caches events from both mining and tornado cash instances

Update cached events

yarn
cp .env.example .env
vi .env

yarn update:cache

docker build . -t tornadocash/tornado-root-updater:server
docker compose up -d