{
  "name": "@getwax/circuits",
  "version": "0.0.1",
  "description": "Simple ZKP verification for ERC-4337. Based on circuits in https://github.com/privacy-scaling-explorations/zkp-app-boilerplate",
  "repository": "https://github.com/getwax/wax/zkp/circuits",
  "author": "jacque006",
  "main": "dist/src/index.js",
  "types": "src/index.ts",
  "files": [
    "src",
    "dist",
    "zk",
    "circuits",
    "browser"
  ],
  "scripts": {
    "pretest": "tsc -p tsconfig.json",
    "test": "ts-mocha -p tsconfig.json test/**/*.ts --timeout 30000 --exit",
    "precompile": "scripts/prerequisites.sh && mkdir -p zk/circuits zk/zkeys zk/vkeys zk/verifiers",
    "compile": "for circuit in circuits/*.circom; do circom $circuit --r1cs --sym --wasm -o zk/circuits;done && tsc",
    "export:sample-zkey": "for circuit in zk/circuits/*.r1cs; do snarkjs groth16 setup $circuit powersOfTau28_hez_final_15.ptau zk/zkeys/$(basename -- $circuit .r1cs).zkey;done",
    "export:vkey": "for zkey in zk/zkeys/*.zkey; do snarkjs zkey export verificationkey $zkey zk/vkeys/$(basename -- $zkey .zkey).json;done",
    "export:verifier": "for zkey in zk/zkeys/*.zkey; do snarkjs zkey export solidityverifier $zkey zk/verifiers/$(basename -- $zkey .zkey | perl -nE 'say ucfirst').sol;done",
    "build": "yarn compile && yarn export:sample-zkey && yarn export:vkey && yarn export:verifier",
    "postbuild": "cp -r ./zk/* ./dist/zk",
    "prelink": "yarn build"
  },
  "license": "MIT",
  "dependencies": {
    "circomlib": "2.0.5",
    "circomlibjs": "0.1.7",
    "eslint": "^7.32.0",
    "eslint-config-prettier": "^8.10.0",
    "eslint-config-standard": "^16.0.3",
    "eslint-plugin-import": "^2.28.1",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prettier": "^3.4.1",
    "eslint-plugin-promise": "^5.2.0",
    "ethers": "^6.7.1",
    "snarkjs": "0.7.1"
  },
  "devDependencies": {
    "@types/chai": "^4.3.6",
    "@types/mocha": "^9.1.1",
    "@types/node": "^18",
    "@typescript-eslint/eslint-plugin": "^4.33.0",
    "@typescript-eslint/parser": "^4.33.0",
    "chai": "^4.3.8",
    "mocha": "^9.2.2",
    "ts-mocha": "^9.0.2",
    "ts-node": "^10.9.1",
    "typescript": "^4.5.4"
  },
  "engines": {
    "node": ">=18 <19",
    "yarn": "=1"
  }
}
