Requires Rust 1.88 or higher.
Minimum supported Rust version can be changed in the future, but it will be done with a minor version bump.
halo2_proofs currently uses rayon for parallel
computation. The RAYON_NUM_THREADS environment variable can be used to set the number of
threads.
The "multicore" feature also enables parallel Pasta curve multi-scalar multiplication.
You can disable rayon by disabling the "multicore" feature.
Warning! Halo2 will lose access to parallelism if you disable the "multicore" feature.
This will significantly degrade performance.
Verification batches multi-opening denominators into one inversion and expands IPA generator coefficients directly into their owned MSM allocation. Batch verification applies each proof's random weight during coefficient generation and coalesces buffered commitment terms once before the final MSM.
The plonk_verifier Criterion benchmark measures single and batch verification
with an Orchard-shaped instance layout (not the full Orchard circuit):
RAYON_NUM_THREADS=4 cargo bench -p halo2_proofs --bench plonk_verifier
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.