Repository navigation
[2/6] Speed up IPA generator collapse with batched GLV - #5
Conversation
11eb4d9 to
ec8c403
Compare
ec8c403 to
6d66405
Compare
|
@v12sec pls review |
Analyzed one file, diff |
|
Warning A run is already in progress for this PR. View run |
| // The Fiat-Shamir challenge is public, so variable-time scalar | ||
| // multiplication is appropriate here. |
There was a problem hiding this comment.
Honestly, we don't really make these kinds of distinctions elsewhere in the API. I don't think it really matters.
6d66405 to
307f779
Compare
|
Investigated v12 warning, it seems fine. |
Batch the public same-scalar multiplications in each IPA generator-collapse round so Pasta curves can reuse GLV decomposition and table setup. Enable the vendored pasta_curves glv feature. The stack inherits Rust 1.88 from #2. Co-Authored-By: OpenAI Codex <[email protected]>
307f779 to
d5f4036
Compare
Main-line stack position: 2 of 6
Base:
agent/pasta-batch-same-scalarOriginal base:
zcash/halo2 main@cafc26e269e4b1b123af8f2a0aa36bff6474448eMigrates: zcash/halo2#927
Summary
Batch the scalar multiplications in each IPA generator-collapse round:
Every element in a round shares one public Fiat-Shamir challenge, so the
prover delegates the high-half products to the same-scalar hook from main-line
PR 1, adds the low-half points, and retains the existing batch normalization.
No secret scalar enters this variable-time path.
Repository
mainincludes the Rust 1.88 update from libraries#2. This layermakes no MSRV change; it enables
pasta_curves/glvthrough the existing localpath dependency.
Measured impact
Original single-worker ABBA measurements on arm64:
k = 11k = 13k = 13generator collapse onlyTransactional Orchard bundles are padded to at least two Actions, so this
historical measurement is not a one-Action result. The Orchard and synthetic
circuits are not directly comparable. There is no direct verifier benefit;
verification uses heterogeneous-scalar MSMs.
Validation
The original patch passed Rust 1.63 workspace checks, release tests and
doctests, Clippy, Pallas/Vesta collapse-equivalence tests, and proof/verification
preflights for the
k = 11andk = 13workloads.The Rust 1.88 main-line stack also passed:
cargo +1.88 test -p halo2_proofs --release --libcargo +1.88 test -p halo2_proofs --release --no-default-features --lib-D warningsand only existingbaseline lint categories allowed
cargo +1.88 test -p orchard --releaseAPI surface
No public or
pub(crate)Rust item, signature, visibility, enum variant, orconstructor changes, and no MSRV change; this layer inherits Rust 1.88 from
its base.
halo2_proofsenables the Pastaglvdependency feature. BecauseHalo re-exports Pasta, the enabled
glvmodule is reachable through thatre-export.