Repository navigation
[5/6] Avoid zero-padding prover instance commitments - #15
Merged
Merged
Conversation
This was referenced Aug 12, 2026
ebfull
approved these changes
Aug 12, 2026
ValarDragon
force-pushed
the
agent/halo2-sparse-instance-prover
branch
from
August 12, 2026 16:58
12f8d38 to
48baa87
Compare
ValarDragon
marked this pull request as ready for review
August 12, 2026 23:41
ValarDragon
force-pushed
the
agent/halo2-sparse-instance-prover
branch
from
August 13, 2026 14:46
48baa87 to
bf9b0c9
Compare
ValarDragon
force-pushed
the
agent/halo2-sparse-instance-prover
branch
from
August 13, 2026 14:49
bf9b0c9 to
0ec2905
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main-line stack position: 5 of 6
Base:
mainOriginal base:
zcash/halo2 main@cafc26e269e4b1b123af8f2a0aa36bff6474448eMigrates: zcash/halo2#930
Summary
Commit directly to each supplied public-instance prefix plus the blinding
generator. The omitted trailing Lagrange coefficients are structural zeros,
so processing them in the commitment MSM is unnecessary.
The prover still constructs the identical zero-padded polynomial for
interpolation, coset evaluation, and opening. Only the commitment work changes.
The prefix-commitment helper is shared with the preceding verifier layer from
the private
plonkparent module.Measured impact
The original single-thread genuine one-action Orchard benchmark saved roughly
8 ms, or about 0.5%, on the then-current optimization stack.
Validation
The original patch passed formatting, default/no-default library tests, and
Clippy with warnings denied. A focused test proves equivalence with the old
zero-padded commitment for empty input and input containing an internal zero.
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)API, function signature, visibility, feature, ordependency changes. The shared commitment helper remains private.