2020-12-15 16:10:11 +01:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
1. node 12
|
|
|
|
2. yarn
|
|
|
|
3. zkutil (`brew install rust && cargo install zkutil`)
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
git clone --recursive https://github.com/tornadocash/tornado-deploy
|
|
|
|
cd tornado-deploy
|
2020-12-17 21:21:13 +01:00
|
|
|
yarn
|
2020-12-15 16:10:11 +01:00
|
|
|
cp .env.example .env
|
2020-12-17 21:23:14 +01:00
|
|
|
|
|
|
|
# optionally copy production snark circuits
|
|
|
|
mkdir -p tornado-anonymity-mining/build && cp -R ~/Downloads/circuits ./tornado-anonymity-mining/build
|
|
|
|
|
2020-12-17 21:21:13 +01:00
|
|
|
yarn build
|
2020-12-15 16:10:11 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Note: build script will globally `yarn link` `torn-token` package
|
|
|
|
Note: build script will not recompile snark circuit if compilation result already exists
|
|
|
|
|
|
|
|
## Verify addresses
|
|
|
|
|
|
|
|
```
|
|
|
|
cat actions.json | jq '.actions[] | {domain,expectedAddress,contract} '
|
|
|
|
```
|