Skip to content

Copy of the original Master Branch forked from tornadocash/tornado-nova

Notifications You must be signed in to change notification settings

ytrezq/tornado-nova

This branch is up to date with zku-cohort-3/tornado-nova:master.

Folders and files

NameName
Last commit message
Last commit date
Feb 11, 2022
Nov 10, 2021
Feb 16, 2022
Oct 26, 2021
Feb 11, 2022
Feb 11, 2022
Feb 16, 2022
Apr 9, 2020
Feb 16, 2022
Aug 19, 2021
Jan 22, 2022
Sep 7, 2021
Jun 3, 2021
Jan 22, 2022
Feb 16, 2022
Feb 16, 2022
Feb 16, 2022
Feb 8, 2022
Feb 8, 2022

Repository files navigation

Tornado Pool Build Status

This an experimental version of tornado.cash that allows to deposit arbitrary amounts and make internal(shielded) transfers.

Other facts about this version:

  1. It uses L2 (xdai). Xdai has a ETH(mainnet)<>WETH(xdai) bridge that will be used under hood.
  2. Contracts will be upgradable by tornado-cash governance! xdai bridge supports transferring messages from L1 to L2 and vise versa, so community can always upgrade tornado-pool to a new version in case of an issue.
  3. Since it's a beta version, deposits are limited by 1ETH. Governance can always increase the limit.
  4. Withdrawal amount from pool to L1 has to be larger than 0.05 ETH to prevent spam attack on the bridge.
  5. The code was audited by Igor Gulamov from Zeropool.

This project was presented on LisCon 2021. Slides

Usage

yarn
yarn download
yarn build
yarn test

Deploy

Check config.js for actual values.

With salt = 0x0000000000000000000000000000000000000000000000000000000047941987 addresses must be:

  1. L1Unwrapper - 0x3F615bA21Bc6Cc5D4a6D798c5950cc5c42937fbd
  2. TornadoPool - 0x0CDD3705aF7979fBe80A64288Ebf8A9Fe1151cE1

Check addresses with current config:

yarn compile
node -e 'require("./src/0_generateAddresses").generateWithLog()'

Deploy L1Unwrapper:

npx hardhat run scripts/deployL1Unwrapper.js --network mainnet

Deploy TornadoPool Upgrade:

npx hardhat run scripts/deployTornadoUpgrade.js --network xdai

About

Copy of the original Master Branch forked from tornadocash/tornado-nova

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Solidity 49.3%
  • JavaScript 48.1%
  • Shell 2.6%