Infrastructure update: MSM variants + compact polynomial types#493
Open
srinathsetty wants to merge 2 commits intomainfrom
Open
Infrastructure update: MSM variants + compact polynomial types#493srinathsetty wants to merge 2 commits intomainfrom
srinathsetty wants to merge 2 commits intomainfrom
Conversation
Stores polynomial evaluations as bool/u8/u16/u32/u64/i64 and defers conversion to field elements until bind. First bind promotes the compact representation to field elements in one pass using diff_to_field. Also enables the bn256-table feature for fast small-value Fr conversion: values below 65536 use a precomputed lookup table instead of Montgomery multiplication.
Add signed MSM (msm_signed, msm_signed_windowed) for i128 scalars, splitting into positive/negative u64 parts with optimal small-scalar MSM. Add windowed Pippenger with XYZZ bucket coordinates and signed digit recoding for 33-64 bit scalars. Add batch sparse binary commit (commit_sparse_binary_batch) with shared- index deduplication: when multiple polynomials in a group share the same hot index at a position, the SRS point is accumulated once into a shared sum rather than once per polynomial. Add batch_add_address_grouped for chunked polynomials where the SRS index has address locality, using sequential SRS scans with per-address bitmasks for cache-friendly access. New CommitmentEngineTrait methods: commit_signed, commit_sparse, commit_sparse_binary_batch, with implementations for HyperKZG and Pedersen.
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.
No description provided.