Optimize variable-base multiplication witnesses - #411
Open
ValarDragon wants to merge 4 commits into
Open
Conversation
|
Note Complete: Audit complete. V12 did not find any issues that need review. Open the full results here. Analyzed two files, diff |
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.
Summary
the accumulator in projective coordinates
x-coordinate materialization
it
helper
This leaves the circuit layout and assigned advice values unchanged. It does not
depend on the prover-wide rational-advice denominator-sharing policy.
Performance
Benchmarked prepared Orchard proving with 2 actions and
RAYON_NUM_THREADS=6. The instrumented phase includes both witness synthesisand rational-advice evaluation, so the batch-inversion accounting is included.
Each result uses alternating A/B/B/A runs with 100 measured samples per leg
(200 control and 200 candidate samples per host), after 10 warmups. Confidence
intervals use 20,000 bootstrap resamples.
The M4 combined-phase mean bootstrap 95% interval is
[-3.83%, -1.32%]. The Linux combined-phase mean interval is[-3.19%, +0.31%]. Full-proof measurements are best characterized as flat toslightly faster: the point estimates improve on both machines, but the effects
are small and the Linux interval crosses zero.
Safety
and the circuit gate equations
singleton, odd, and even batches
zakura-halo2-gadgetsandzakura-orchardlibrary test suitespass
--no-default-featuresand--all-featureschecks pass forzakura-halo2-gadgetsgit diff --checkpassThere are no
puborpub(crate)API changes.