Skip to content

Conversation

@yelhousni
Copy link
Contributor

Description

Fixes #1213

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Same tests.

How has this been benchmarked?

no change.

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I did not modify files generated from templates
  • golangci-lint does not output errors locally
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@yelhousni yelhousni self-assigned this Jul 19, 2024
@yelhousni yelhousni added type: bug Something isn't working dep: linea Issues affecting Linea downstream labels Jul 19, 2024
@yelhousni yelhousni requested a review from ivokub July 19, 2024 10:56
@yelhousni yelhousni added the priority: P1-high Issue priority: high label Jul 19, 2024
@yelhousni yelhousni added this to the v0.9.0 milestone Jul 19, 2024
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

LGTM

@yelhousni yelhousni requested a review from ivokub July 19, 2024 11:12
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

I think it is sufficient that the hint returns error when previous Miller Loop result is zero. Imo it cannot really happen in any valid cases and would probably mean that the input wasn't previous Miller loop result or the accumulator was not correctly initialized.

@yelhousni yelhousni merged commit 02ff590 into master Jul 19, 2024
@yelhousni yelhousni deleted the fix/BN254-finalExp branch July 19, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dep: linea Issues affecting Linea downstream priority: P1-high Issue priority: high type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: malicious hint in BN254 final exp check

3 participants