Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch multi poly multi point #1

Merged
merged 14 commits into from
Apr 16, 2021
Merged

Conversation

phoinic
Copy link
Collaborator

@phoinic phoinic commented Feb 12, 2021

No description provided.

src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/data_structures.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
for (
(_point_label, (point, _labels)),
labeled_polynomial
) in query_to_labels_map.into_iter().zip(polys_iter) {
Copy link
Collaborator

@DanieleDiBenedetto DanieleDiBenedetto Feb 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Plus, can we parallelize this ?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll unresolve this just to keep track of it (maybe we can open a separate issue). The prover is quite slow, and it's highly affected also by this portion of computation.
We need to parallelize the underlying polynomial arithmetic ( HorizenOfficial/ginger-lib#87 ), use the Horner scheme to evaluate the polynomial (arkworks has a function horner_evaluate) and other optimizations to the underlying arithmetic, see the performances and compare them by doing everything in serial and parallelize the for loop instead.
This is not urgent for now but it will be in the future.

src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
src/lib.rs Outdated Show resolved Hide resolved
Copy link

@UlrichHaboeck75 UlrichHaboeck75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to decide whether we keep just with the Fiat-Shamir transform split between outside and inside the batch_open_individual_opening_challenges() (with a "quick and dirty" modification of what to hash when producing the new query point), or directly move to a clean separation. For detailed explanation, see the inline comment for batch_open_individual_opening_challenges().

src/ipa_pc/data_structures.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Show resolved Hide resolved
src/ipa_pc/mod.rs Outdated Show resolved Hide resolved
Copy link

@UlrichHaboeck75 UlrichHaboeck75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mentioned the note/todo we should put to the declaration of batch_open_individual_opening_challenges() in one of my comments. Please copy paste it.

Copy link

@UlrichHaboeck75 UlrichHaboeck75 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for that late request, but I discovered a little Fiat-Shamir related gap (see the comments).

@albertog78 albertog78 merged commit 52e5404 into dev Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants