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

feat: kzg batch verification #24

Merged
merged 40 commits into from
Jan 11, 2025
Merged

feat: kzg batch verification #24

merged 40 commits into from
Jan 11, 2025

Conversation

anupsv
Copy link
Collaborator

@anupsv anupsv commented Jan 6, 2025

Adding batch verification per 4844 specs.
Some cleanup on the existing functions.
Added docs on functions.

@samlaf samlaf changed the title Adding batch verification feat: kzg batch verification Jan 6, 2025
@anupsv anupsv marked this pull request as ready for review January 8, 2025 06:45
@anupsv anupsv requested review from samlaf and bxue-l2 January 8, 2025 06:45
Copy link
Collaborator

@bxue-l2 bxue-l2 left a comment

Choose a reason for hiding this comment

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

A thousand line PR is too heavy.

Suggestion. If we have something like this in the future, please split it, it will be a lot better

This includes code improvement and new feature.

src/errors.rs Outdated Show resolved Hide resolved
src/helpers.rs Show resolved Hide resolved
src/helpers.rs Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
@bxue-l2
Copy link
Collaborator

bxue-l2 commented Jan 8, 2025

Consider split kzg.rs into multiple files, right now, it contains too many orthogonal parts.

for examples

  • commits
  • file loading
  • compute random challenge

src/kzg.rs Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
src/helpers.rs Show resolved Hide resolved
tests/kzg_test.rs Show resolved Hide resolved
tests/kzg_test.rs Show resolved Hide resolved
tests/kzg_test.rs Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
@bxue-l2
Copy link
Collaborator

bxue-l2 commented Jan 9, 2025

I left many comments, but we can leave some of them open, but make sure to make a TODO comment, if not addressed. Of course, if something does not make sense, let me know

Copy link
Contributor

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

First set of comments for all files except kzg.rs

Cargo.toml Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/helpers.rs Outdated Show resolved Hide resolved
src/helpers.rs Outdated Show resolved Hide resolved
tests/error_tests.rs Outdated Show resolved Hide resolved
src/polynomial.rs Outdated Show resolved Hide resolved
src/polynomial.rs Outdated Show resolved Hide resolved
src/kzg.rs Outdated Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
src/kzg.rs Show resolved Hide resolved
Copy link
Contributor

@samlaf samlaf left a comment

Choose a reason for hiding this comment

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

LGTM but let's wait for @bxue-l2's approval

Copy link
Collaborator

@bxue-l2 bxue-l2 left a comment

Choose a reason for hiding this comment

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

just tested everything worked

@anupsv anupsv merged commit 4ad14ea into master Jan 11, 2025
1 check passed
@anupsv anupsv deleted the adding-batch-verification branch January 11, 2025 03:52
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.

3 participants