@@ -185,6 +185,23 @@ batcher_send_burst_groth16: build_batcher_client
185185 @echo " Sending a burst of tasks to Batcher..."
186186 @./batcher/client/send_burst_tasks.sh $(BURST_SIZE )
187187
188+ batcher_send_halo2_ipa_task : batcher/client/target/release/batcher-client
189+ @echo " Sending Halo2 IPA 1!=0 task to Batcher..."
190+ @cd batcher/client/ && cargo run --release -- \
191+ --proving_system Halo2IPA \
192+ --proof test_files/halo2_ipa/proof.bin \
193+ --public_input test_files/halo2_ipa/pub_input.bin \
194+ --vk test_files/halo2_ipa/params.bin \
195+
196+ batcher_send_halo2_ipa_task_burst_5 : batcher/client/target/release/batcher-client
197+ @echo " Sending Halo2 IPA 1!=0 task to Batcher..."
198+ @cd batcher/client/ && cargo run --release -- \
199+ --proving_system Halo2IPA \
200+ --proof test_files/halo2_ipa/proof.bin \
201+ --public_input test_files/halo2_ipa/pub_input.bin \
202+ --vk test_files/halo2_ipa/params.bin \
203+ --repetitions 5
204+
188205__TASK_SENDERS__ :
189206 # TODO add a default proving system
190207
@@ -287,6 +304,27 @@ send_sp1_proof:
287304 --config config-files/config.yaml \
288305 2>&1 | zap-pretty
289306
307+ send_halo2_ipa_proof : # # Send a Halo2 IPA proof using the task sender
308+ @echo " Sending Halo2 IPA proof..."
309+ @go run task_sender/cmd/main.go send-task \
310+ --proving-system halo2_ipa \
311+ --proof task_sender/test_examples/halo2_ipa/proof.bin \
312+ --public-input task_sender/test_examples/halo2_ipa/pub_input.bin \
313+ --verification-key task_sender/test_examples/halo2_ipa/params.bin \
314+ --config config-files/config.yaml \
315+ 2>&1 | zap-pretty
316+
317+ send_halo2_ipa_proof_loop : # # Send a Halo2 IPA proof using the task sender every 10 seconds
318+ @echo " Sending Halo2 IPA proof in a loop every 10 seconds..."
319+ @go run task_sender/cmd/main.go loop-tasks \
320+ --proving-system halo2_ipa \
321+ --proof task_sender/test_examples/halo2_ipa/proof.bin \
322+ --public-input task_sender/test_examples/halo2_ipa/pub_input.bin \
323+ --verification-key task_sender/test_examples/halo2_ipa/params.bin \
324+ --config config-files/config.yaml \
325+ --interval 10 \
326+ 2>&1 | zap-pretty
327+
290328__METRICS__ :
291329run_metrics : # # Run metrics using metrics-docker-compose.yaml
292330 @echo " Running metrics..."
@@ -398,3 +436,34 @@ test_merkle_tree_go_bindings_macos: build_merkle_tree_macos
398436test_merkle_tree_go_bindings_linux : build_merkle_tree_linux
399437 @echo " Testing Merkle Tree Go bindings..."
400438 go test ./operator/merkle_tree/... -v
439+
440+ __HALO2_IPA_FFI__ : # #
441+ build_halo2_ipa_macos :
442+ @cd operator/halo2ipa/lib && cargo build --release
443+ @cp operator/halo2ipa/lib/target/release/libhalo2ipa_verifier_ffi.dylib operator/halo2ipa/lib/libhalo2ipa_verifier.dylib
444+ @cp operator/halo2ipa/lib/target/release/libhalo2ipa_verifier_ffi.a operator/halo2ipa/lib/libhalo2ipa_verifier.a
445+
446+ build_halo2_ipa_linux :
447+ @cd operator/halo2ipa/lib && cargo build --release
448+ @cp operator/halo2ipa/lib/target/release/libhalo2ipa_verifier_ffi.so operator/halo2ipa/lib/libhalo2ipa_verifier.so
449+ @cp operator/halo2ipa/lib/target/release/libhalo2ipa_verifier_ffi.a operator/halo2ipa/lib/libhalo2ipa_verifier.a
450+
451+ test_halo2_ipa_rust_ffi :
452+ @echo " Testing Halo2-KZG Rust FFI source code..."
453+ @cd operator/halo2ipa/lib && cargo t --release
454+
455+ test_halo2_ipa_go_bindings_macos : build_halo2_ipa_macos
456+ @echo " Testing Halo2-KZG Go bindings..."
457+ go test ./operator/halo2ipa/... -v
458+
459+ test_halo2_ipa_go_bindings_linux : build_halo2_ipa_linux
460+ @echo " Testing Halo2-KZG Go bindings..."
461+ go test ./operator/halo2ipa/... -v
462+
463+ generate_halo2_ipa_proof :
464+ @cd task_sender/test_examples/halo2_ipa && \
465+ cargo clean && \
466+ rm params.bin proof.bin pub_input.bin && \
467+ RUST_LOG=info cargo run --release && \
468+ echo " Generating halo2 plonk proof..." && \
469+ echo " Generated halo2 plonk proof!"
0 commit comments