Skip to content

Optimize the KZG point evaluation precompile - WIP#4553

Draft
bhartnett wants to merge 3 commits into
masterfrom
kzg-point-eval-optimisations
Draft

Optimize the KZG point evaluation precompile - WIP#4553
bhartnett wants to merge 3 commits into
masterfrom
kzg-point-eval-optimisations

Conversation

@bhartnett

Copy link
Copy Markdown
Contributor

This improves the performance of the point evaluation precompile by:

  • Rearranging the pairing equation to remove expensive G2 scalar multiplication.
  • Precompute Miller-loop lines

The improvement is not that much and it requires accessing the trusted setup which is not yet exported by the nim kzg library. If going ahead with this the optimization it should perhaps be upstreamed into the nim and/or c kzg library.

Before
Screenshot_2026-07-24_01-08-07

After
Screenshot_2026-07-24_01-09-00

@bhartnett bhartnett changed the title Optimise the KZG point evaluation precompile - WIP Optimize the KZG point evaluation precompile - WIP Jul 23, 2026
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.

1 participant