mirror of
https://github.com/tornadocash/tornado-nova
synced 2024-02-02 14:53:56 +01:00
51 lines
1.8 KiB
Markdown
51 lines
1.8 KiB
Markdown
# Tornado Pool [![Build Status](https://github.com/tornadocash/tornado-pool/workflows/build/badge.svg)](https://github.com/tornadocash/tornado-pool/actions)
|
|
|
|
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](./resources/Zeropool-Tornado.pool-audit.pdf) by Igor Gulamov from Zeropool.
|
|
|
|
This project was presented on LisCon 2021. [Slides](https://docs.google.com/presentation/d/1CbI6fiWvgwoD_1ahcSR62wD7V4TdSzkdL2RwAeMPagQ/edit#slide=id.gf731d8850e_0_133)
|
|
|
|
## Usage
|
|
|
|
```shell
|
|
yarn
|
|
yarn download
|
|
yarn build
|
|
yarn test
|
|
```
|
|
|
|
## Deploy
|
|
|
|
Check config.js for actual values.
|
|
|
|
With `salt` = `0x0000000000000000000000000000000000000000000000000000000047941987` addresses must be:
|
|
|
|
1. `L1Unwrapper` - `0xfEADF5e7e453c664D903d1b1945c524c4328e1c5`
|
|
2. `TornadoPool` - `0x6a1c06C4Af066a35291117611fd0418411c0dbD0`
|
|
|
|
Check addresses with current config:
|
|
|
|
```shell
|
|
yarn compile
|
|
node -e 'require("./src/0_generateAddresses").generateWithLog()'
|
|
```
|
|
|
|
Deploy L1Unwrapper:
|
|
|
|
```shell
|
|
npx hardhat run scripts/deployL1Unwrapper.js --network mainnet
|
|
```
|
|
|
|
Deploy TornadoPool Upgrade:
|
|
|
|
```shell
|
|
npx hardhat run scripts/deployTornadoUpgrade.js --network xdai
|
|
```
|