mirror of
https://github.com/zkp2p/zkp2p-poc.git
synced 2026-01-10 06:08:01 -05:00
* Add claimId as input to circuit * Add nullifier * Add max amount functionality * Add claim_id to gen_input * Update scripts to use random entropy * Add input.json * Add gen verifier contract server script * Add new verifier contract * Fix contract bugs; Add tests * update scripts
55 lines
2.4 KiB
JSON
55 lines
2.4 KiB
JSON
{
|
|
"name": "zk-starter",
|
|
"version": "1.0.0",
|
|
"description": "",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"chain": "npx hardhat node",
|
|
"compile": "bash ./circuit/scripts/compile_circuit.sh",
|
|
"compileContracts": "npx hardhat compile",
|
|
"testContracts": "npx hardhat test --network hardhat",
|
|
"deploy:localhost": "npx hardhat run scripts/deploy.js --network localhost",
|
|
"deploy:goerli": "npx hardhat run scripts/deploy.js --network goerli",
|
|
"test": "./node_modules/.bin/mocha tests/*.js",
|
|
"genKeyPhase1": "bash ./circuit/scripts/generate_keys_phase1.sh",
|
|
"genKeyPhase2Plonk": "bash ./circuit/scripts/generate_keys_phase2_plonk.sh",
|
|
"genKeyPhase2Groth": "bash ./circuit/scripts/generate_keys_phase2_groth16.sh",
|
|
"genProofPlonk": "bash ./circuit/scripts/generate_proof_plonk.sh",
|
|
"genProofGroth": "bash ./circuit/scripts/generate_proof_groth16.sh",
|
|
"verifyProofPlonk": "bash ./circuit/scripts/verify_proof_plonk.sh",
|
|
"verifyProofGroth": "bash ./circuit/scripts/verify_proof_groth16.sh",
|
|
"bumpSolidity": "node scripts/bump-solidity.js",
|
|
"genContract": "bash ./circuit/scripts/generate_contract.sh && yarn bumpSolidity",
|
|
"genCalldata": "bash ./circuit/scripts/generate_calldata.sh",
|
|
"genWitness": "bash ./circuit/server-scripts/generate_witness.sh",
|
|
"genProofServer": "bash ./circuit/server-scripts/generate_proof.sh",
|
|
"genKeyPhase2GrothServer": "bash ./circuit/server-scripts/generate_keys_phase2_groth16.sh",
|
|
"circuitStats": "bash ./circuit/scripts/circuit_stats.sh",
|
|
"genChunkedZkeyServer": "bash ./circuit/server-scripts/generate_chunked_keys_phase2_groth16.sh",
|
|
"genVkeyServer": "bash ./circuit/server-scripts/generate_verification_key.sh",
|
|
"uploadChunkedKeys": "python3 ./circuit/server-scripts/upload_to_s3.py",
|
|
"genContractServer": "bash ./circuit/server-scripts/generate_contract.sh && yarn bumpSolidity"
|
|
},
|
|
"keywords": [],
|
|
"author": "",
|
|
"license": "ISC",
|
|
"dependencies": {
|
|
"@openzeppelin/contracts": "^4.8.1",
|
|
"chai": "^4.3.7",
|
|
"circom_tester": "^0.0.19",
|
|
"circomlib": "^2.0.5",
|
|
"dotenv": "^16.0.3",
|
|
"mocha": "^10.2.0",
|
|
"snarkjs": "0.4.22"
|
|
},
|
|
"devDependencies": {
|
|
"@nomicfoundation/hardhat-network-helpers": "^1.0.8",
|
|
"@nomiclabs/hardhat-ethers": "^2.2.2",
|
|
"@nomiclabs/hardhat-etherscan": "^3.1.7",
|
|
"ethereum-waffle": "^4.0.10",
|
|
"ethers": "^5.0.0",
|
|
"hardhat": "^2.12.2",
|
|
"hardhat-deploy": "^0.11.25"
|
|
}
|
|
}
|