mirror of
https://github.com/tornadocash/tornado-core.git
synced 2024-11-22 01:37:07 +01:00
update readme
This commit is contained in:
parent
0db7be23b5
commit
6ed28a9a3c
11
README.md
11
README.md
@ -1,14 +1,21 @@
|
||||
## Testing
|
||||
## Testing truffle
|
||||
1. `npm i`
|
||||
2. `npm run build:circuit` (or `cp Verifier.sol.temp build/circuits/Verifier.sol`)
|
||||
2. `npm run build:circuit`
|
||||
2. `npx truffle compile`
|
||||
3. `npx truffle test` - it may fail for the first time, just run one more time.
|
||||
|
||||
## Testing js
|
||||
1. `npm i`
|
||||
2. `npm run build:circuit`
|
||||
3. `cd scripts`
|
||||
4. `node test_snark.js`
|
||||
|
||||
## Deploy
|
||||
1. `npx truffle migrate --network kovan --reset`
|
||||
|
||||
## Requirements
|
||||
1. `node v11.15.0`
|
||||
2. `npm install -g npx`
|
||||
|
||||
|
||||
|
||||
|
@ -4,10 +4,10 @@
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build:circuit:compile": "circom circuits/withdraw.circom -o build/circuits/withdraw.json && snarkjs info -c build/circuits/withdraw.json",
|
||||
"build:circuit:setup": "snarkjs setup --protocol groth -c build/circuits/withdraw.json --pk build/circuits/withdraw_proving_key.json --vk build/circuits/withdraw_verification_key.json",
|
||||
"build:circuit:compile": "npx circom circuits/withdraw.circom -o build/circuits/withdraw.json && npx snarkjs info -c build/circuits/withdraw.json",
|
||||
"build:circuit:setup": "npx snarkjs setup --protocol groth -c build/circuits/withdraw.json --pk build/circuits/withdraw_proving_key.json --vk build/circuits/withdraw_verification_key.json",
|
||||
"build:circuit:bin": "node node_modules/websnark/tools/buildpkey.js -i build/circuits/withdraw_proving_key.json -o build/circuits/withdraw_proving_key.bin",
|
||||
"build:circuit:contract": "snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json",
|
||||
"build:circuit:contract": "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json",
|
||||
"build:circuit": "mkdir -p build/circuits && npm run build:circuit:compile && npm run build:circuit:setup && npm run build:circuit:bin && npm run build:circuit:contract",
|
||||
"build:contract": "npx truffle compile",
|
||||
"test": "npx truffle test",
|
||||
|
Loading…
Reference in New Issue
Block a user