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

[Merged by Bors] - Add a new bls test #3235

Closed
wants to merge 8 commits into from

Conversation

zsluedem
Copy link
Contributor

@zsluedem zsluedem commented Jun 1, 2022

Issue Addressed

Which issue # does this PR address?
#2629

Proposed Changes

Please list or describe the changes introduced by this PR.

  1. ci would dowload the bls test cases from https://github.com/ethereum/bls12-381-tests/
  2. all the bls test cases(except eth ones) would use cases in the archive from step one
  3. The bls test cases from https://github.com/ethereum/consensus-spec-tests would stay there and no use . For the future , these bls test cases would be remove suggested from BLS tests: only keep the Ethereum specific tests ethereum/consensus-spec-tests#25 . So it would do no harm and compatible for future cases.

Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.

Question:

I am not sure if I should implement tests about deserialization_G1, deserialization_G2 and hash_to_G2 for the issue.

@zsluedem zsluedem force-pushed the add-bls-tests branch 3 times, most recently from c8daf66 to b5b4074 Compare June 3, 2022 01:16
@michaelsproul
Copy link
Member

hi @zsluedem is this ready for review?

@zsluedem
Copy link
Contributor Author

zsluedem commented Jun 6, 2022

hi @zsluedem is this ready for review?

@michaelsproul There is one thing which I am not sure. Do you need the tests deserialization_G1, deserialization_G2 and hash_to_G2. If you don't need that, it is ready to review now.

@michaelsproul michaelsproul added the ready-for-review The code is ready for review label Jun 6, 2022
@paulhauner paulhauner self-requested a review September 29, 2022 23:42
@paulhauner paulhauner self-assigned this Sep 29, 2022
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

This is super clean and tidy, I couldn't have suggested a better method of implementation 🚀

I apologise for letting this PR linger for so long, it's a great contribution and deserved to be merged sooner.

I have a few suggestions here, mostly just minor nit-picks. If I'm clever enough, you might be able to just commit the suggestions and still compile and get past the linter (spoiler, I'm probably not clever enough).

There is a merge conflict for which I couldn't resolve via a suggestion. That should be an easy fix though.

Once again, thanks for this. If you're able to address these comments I'll make sure it gets merged quickly 🙏

testing/ef_tests/src/handler.rs Show resolved Hide resolved
testing/ef_tests/src/cases/common.rs Show resolved Hide resolved
testing/ef_tests/src/cases/bls_batch_verify.rs Outdated Show resolved Hide resolved
testing/ef_tests/src/cases/bls_batch_verify.rs Outdated Show resolved Hide resolved
@paulhauner paulhauner added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Oct 4, 2022
@zsluedem zsluedem force-pushed the add-bls-tests branch 3 times, most recently from 425394e to b952b7f Compare October 5, 2022 03:33
@zsluedem
Copy link
Contributor Author

zsluedem commented Oct 5, 2022

@paulhauner Conflicts resolved and comments addressed.

@michaelsproul michaelsproul added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Oct 5, 2022
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

Great work, thank you!

@paulhauner paulhauner removed the ready-for-review The code is ready for review label Oct 12, 2022
@paulhauner paulhauner added the ready-for-merge This PR is ready to merge. label Oct 12, 2022
@michaelsproul
Copy link
Member

bors r+

bors bot pushed a commit that referenced this pull request Oct 12, 2022
## Issue Addressed

Which issue # does this PR address?
#2629 

## Proposed Changes

Please list or describe the changes introduced by this PR.

1. ci would dowload the bls test cases from https://github.com/ethereum/bls12-381-tests/
2. all the bls test cases(except eth ones) would use cases in the archive from step one
3. The bls test cases from https://github.com/ethereum/consensus-spec-tests would stay there and no use . For the future , these bls test cases would be remove suggested from ethereum/consensus-spec-tests#25 . So it would do no harm and compatible for future cases.

## Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.


Question: 

I am not sure if I should implement tests about `deserialization_G1`, `deserialization_G2` and `hash_to_G2` for the issue.
@bors bors bot changed the title Add a new bls test [Merged by Bors] - Add a new bls test Oct 13, 2022
@bors bors bot closed this Oct 13, 2022
@zsluedem zsluedem deleted the add-bls-tests branch October 13, 2022 02:43
macladson pushed a commit to macladson/lighthouse that referenced this pull request Jan 5, 2023
## Issue Addressed

Which issue # does this PR address?
sigp#2629 

## Proposed Changes

Please list or describe the changes introduced by this PR.

1. ci would dowload the bls test cases from https://github.com/ethereum/bls12-381-tests/
2. all the bls test cases(except eth ones) would use cases in the archive from step one
3. The bls test cases from https://github.com/ethereum/consensus-spec-tests would stay there and no use . For the future , these bls test cases would be remove suggested from ethereum/consensus-spec-tests#25 . So it would do no harm and compatible for future cases.

## Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.


Question: 

I am not sure if I should implement tests about `deserialization_G1`, `deserialization_G2` and `hash_to_G2` for the issue.
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
## Issue Addressed

Which issue # does this PR address?
sigp#2629 

## Proposed Changes

Please list or describe the changes introduced by this PR.

1. ci would dowload the bls test cases from https://github.com/ethereum/bls12-381-tests/
2. all the bls test cases(except eth ones) would use cases in the archive from step one
3. The bls test cases from https://github.com/ethereum/consensus-spec-tests would stay there and no use . For the future , these bls test cases would be remove suggested from ethereum/consensus-spec-tests#25 . So it would do no harm and compatible for future cases.

## Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.


Question: 

I am not sure if I should implement tests about `deserialization_G1`, `deserialization_G2` and `hash_to_G2` for the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants