@@ -653,6 +653,29 @@ batcher_send_groth16_bn254_infinite: crates/target/release/aligned ## Send a dif
653653 @mkdir -p scripts/test_files/gnark_groth16_bn254_infinite_script/infinite_proofs
654654 @./crates/cli/send_burst_tasks.sh $(BURST_SIZE ) $(START_COUNTER )
655655
656+ batcher_send_circom_groth16_bn128_task : crates/target/release/aligned # # Send a Circom Groth16 BN128 proof to Batcher. Parameters: RPC_URL, NETWORK
657+ @echo " Sending Circom Groth16 BN128 proof to Batcher..."
658+ @cd crates/cli/ && cargo run --release -- submit \
659+ --proving_system CircomGroth16Bn128 \
660+ --proof ../../scripts/test_files/circom_groth16_bn128_script/proof.json \
661+ --public_input ../../scripts/test_files/circom_groth16_bn128_script/public.json \
662+ --vk ../../scripts/test_files/circom_groth16_bn128_script/verification_key.json \
663+ --proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
664+ --rpc_url $(RPC_URL ) \
665+ --network $(NETWORK )
666+
667+ batcher_send_circom_groth16_bn128_burst : crates/target/release/aligned # # Send a burst of Circom Groth16 BN128 proofs to Batcher. Parameters: RPC_URL, NETWORK, BURST_SIZE
668+ @echo " Sending Circom Groth16 BN128 proof to Batcher..."
669+ @cd crates/cli/ && cargo run --release -- submit \
670+ --proving_system CircomGroth16Bn128 \
671+ --proof ../../scripts/test_files/circom_groth16_bn128_script/proof.json \
672+ --public_input ../../scripts/test_files/circom_groth16_bn128_script/public.json \
673+ --vk ../../scripts/test_files/circom_groth16_bn128_script/verification_key.json \
674+ --proof_generator_addr 0x66f9664f97F2b50F62D13eA064982f936dE76657 \
675+ --repetitions $(BURST_SIZE ) \
676+ --rpc_url $(RPC_URL ) \
677+ --network $(NETWORK )
678+
656679batcher_send_proof_with_random_address : # # Send a proof with a random address to Batcher. Parameters: RPC_URL, NETWORK, PROOF_TYPE, REPETITIONS
657680 @cd crates/cli/ && ./send_proof_with_random_address.sh
658681
@@ -762,6 +785,13 @@ generate_gnark_groth16_bn254_ineq_proof: ## Run the gnark_plonk_bn254_script
762785 @echo " Running gnark_groth_bn254_ineq script..."
763786 @go run scripts/test_files/gnark_groth16_bn254_infinite_script/cmd/main.go 1
764787
788+ generate_circom_groth16_bn128_proof : # # Run the circom_groth16_bn128_script
789+ @echo " Running circom_groth16_bn128 script..."
790+ @cd scripts/test_files/circom_groth16_bn128_script && ./generate_proof.sh
791+
792+ generate_circom_groth16_bn128_setup : # # Run the circom_groth16_bn128_script setup
793+ @echo " Running circom_groth16_bn128 script setup..."
794+ @cd scripts/test_files/circom_groth16_bn128_script && ./generate_setup.sh
765795
766796__CONTRACTS_DEPLOYMENT__ : # # ____
767797deploy_aligned_contracts : # # Deploy Aligned Contracts. Parameters: NETWORK=<mainnet|holesky|sepolia>
@@ -1097,13 +1127,27 @@ docker_batcher_send_groth16_burst:
10971127 --rpc_url $(DOCKER_RPC_URL) \
10981128 --max_fee 0.1ether
10991129
1130+ docker_batcher_send_circom_groth16_bn128_burst :
1131+ @echo " Sending Circom Groth16 BN128 task to Batcher..."
1132+ docker exec $(shell docker ps | grep batcher | awk '{print $$1}') aligned submit \
1133+ --private_key $(DOCKER_PROOFS_PRIVATE_KEY ) \
1134+ --proving_system CircomGroth16Bn128 \
1135+ --proof ./scripts/test_files/circom_groth16_bn128_script/proof.json \
1136+ --public_input ./scripts/test_files/circom_groth16_bn128_script/public.json \
1137+ --vk ./scripts/test_files/circom_groth16_bn128_script/verification_key.json \
1138+ --proof_generator_addr $(PROOF_GENERATOR_ADDRESS ) \
1139+ --repetitions $(DOCKER_BURST_SIZE ) \
1140+ --rpc_url $(DOCKER_RPC_URL ) \
1141+ --max_fee 0.1ether
1142+
11001143# Update target as new proofs are supported.
11011144docker_batcher_send_all_proofs_burst :
11021145 @$(MAKE ) docker_batcher_send_sp1_burst
11031146 @$(MAKE ) docker_batcher_send_risc0_burst
11041147 @$(MAKE ) docker_batcher_send_plonk_bn254_burst
11051148 @$(MAKE ) docker_batcher_send_plonk_bls12_381_burst
11061149 @$(MAKE ) docker_batcher_send_groth16_burst
1150+ @$(MAKE ) docker_batcher_send_circom_groth16_bn128_burst
11071151
11081152docker_batcher_send_infinite_groth16 :
11091153 docker exec $(shell docker ps | grep batcher | awk '{print $$1}') \
@@ -1141,6 +1185,7 @@ docker_verify_proofs_onchain:
11411185 '
11421186
11431187DOCKER_PROOFS_WAIT_TIME =60
1188+ DOCKER_SENT_PROOFS =6
11441189
11451190docker_verify_proof_submission_success :
11461191 @echo " Verifying proofs were successfully submitted..."
@@ -1169,7 +1214,7 @@ docker_verify_proof_submission_success:
11691214 fi ; \
11701215 echo " ---------------------------------------------------------------------------------------------------" ; \
11711216 done ; \
1172- if [ $$ (ls -1 ./aligned_verification_data/* .cbor | wc -l) -ne 5 ]; then \
1217+ if [ $$ (ls -1 ./aligned_verification_data/* .cbor | wc -l) -ne $( DOCKER_SENT_PROOFS ) ]; then \
11731218 echo " ERROR: Some proofs were verified successfully, but some proofs are missing in the aligned_verification_data/ directory" ; \
11741219 exit 1; \
11751220 fi ; \
0 commit comments