package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "name": "circuits",
  3. "version": "1.0.0",
  4. "description": "",
  5. "main": "index.js",
  6. "scripts": {
  7. "build:circuit:compile": "npx circom circuits/withdraw.circom -o build/circuits/withdraw.json && npx snarkjs info -c build/circuits/withdraw.json",
  8. "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",
  9. "build:circuit:bin": "node node_modules/websnark/tools/buildpkey.js -i build/circuits/withdraw_proving_key.json -o build/circuits/withdraw_proving_key.bin",
  10. "build:circuit:contract": "npx snarkjs generateverifier -v build/circuits/Verifier.sol --vk build/circuits/withdraw_verification_key.json",
  11. "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",
  12. "build:contract": "npx truffle compile",
  13. "build:browserify": "npx browserify cli.js -o index.js --exclude worker_threads",
  14. "build": "npm run build:circuit && npm run build:contract && npm run build:browserify",
  15. "browserify": "npm run build:browserify",
  16. "test": "npx truffle test",
  17. "migrate": "npm run migrate:kovan",
  18. "migrate:dev": "npx truffle migrate --network development --reset",
  19. "migrate:kovan": "npx truffle migrate --network kovan --reset",
  20. "migrate:rinkeby": "npx truffle migrate --network rinkeby --reset",
  21. "migrate:mainnet": "npx truffle migrate --network mainnet",
  22. "eslint": "npx eslint --ignore-path .gitignore .",
  23. "flat": "npx truffle-flattener contracts/ETHTornado.sol > ETHTornado_flat.sol && npx truffle-flattener contracts/ERC20Tornado.sol > ERC20Tornado_flat.sol"
  24. },
  25. "keywords": [],
  26. "author": "",
  27. "license": "ISC",
  28. "dependencies": {
  29. "@openzeppelin/contracts": "^2.4.0",
  30. "@truffle/artifactor": "^4.0.38",
  31. "@truffle/contract": "^4.0.39",
  32. "@truffle/hdwallet-provider": "^1.0.24",
  33. "axios": "^0.19.0",
  34. "bn-chai": "^1.0.1",
  35. "browserify": "^16.5.0",
  36. "chai": "^4.2.0",
  37. "chai-as-promised": "^7.1.1",
  38. "circom": "0.0.34",
  39. "circomlib": "git+https://github.com/tornadocash/circomlib.git#347822604996bf25f659f96ee0f02810a1f71bb0",
  40. "dotenv": "^8.2.0",
  41. "eslint": "^6.6.0",
  42. "ganache-cli": "^6.7.0",
  43. "snarkjs": "git+https://github.com/peppersec/snarkjs.git#869181cfaf7526fe8972073d31655493a04326d5",
  44. "truffle": "^5.0.44",
  45. "truffle-flattener": "^1.4.2",
  46. "web3": "^1.2.2",
  47. "web3-utils": "^1.2.2",
  48. "websnark": "git+https://github.com/peppersec/websnark.git#c254b5962287b788081be1047fa0041c2885b39f"
  49. }
  50. }