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

Add kzg reference tests support #7571

Merged
merged 4 commits into from
Oct 4, 2023
Merged

Conversation

zilm13
Copy link
Contributor

@zilm13 zilm13 commented Oct 3, 2023

PR Description

Fixed Issue(s)

Fixes #6969

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

Copy link
Member

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

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

LGTM. Just a few suggestions.

import tech.pegasys.teku.spec.config.SpecConfigDeneb;

public abstract class KzgTestExecutor implements TestExecutor {
// We don't support config reloading and all tests are currently for mainnet
Copy link
Member

Choose a reason for hiding this comment

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

Is this something we want to support in the future? If it is, it would be good to have a ticket for it linked here.

Copy link
Contributor Author

@zilm13 zilm13 Oct 4, 2023

Choose a reason for hiding this comment

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

  1. We may need it not only here, Stefan is already following it for another PR Support Deneb fork choice reference tests #7541
  2. There are no kzg reference tests other than for mainnet at the moment, if they are added we start to fail and will notice it
  3. Currently config type is part of the directory name and extracting it looks ugly, so I removed it and harcoded "mainnet". It's not an issue until minimal are added (see №2)

actualVerificationResult =
CKZG4844
.getInstance()
.verifyBlobKzgProofBatch(List.of(blob), List.of(commitment), List.of(proof));
Copy link
Member

Choose a reason for hiding this comment

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

Could you please add a comment that we are using the batch verify because we don't have a "non-batch" implementation? Just to avoid confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's in KzgTests, I will duplicate it here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added 28b053c

@zilm13 zilm13 merged commit 0905125 into Consensys:master Oct 4, 2023
4 checks passed
@zilm13 zilm13 deleted the tests/kzg-reference branch October 4, 2023 18:07
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.

Add support of kzg reference tests
2 participants