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

KZG point evaluation precompile #4822

Closed
jflo opened this issue Dec 14, 2022 · 0 comments · Fixed by #4860
Closed

KZG point evaluation precompile #4822

jflo opened this issue Dec 14, 2022 · 0 comments · Fixed by #4860
Assignees

Comments

@jflo
Copy link
Contributor

jflo commented Dec 14, 2022

Leverage the work done by the KZG library being used by Teku: https://github.com/ConsenSys/jc-kzg-4844 from a precompiled contract as specified here:

https://eips.ethereum.org/EIPS/eip-4844#point-evaluation-precompile

  • add dependency on kzg lib above. Figure out how to properly package native code for inclusion in all distros.
  • statics for new precompile reserved address
  • add to mainnet precompile registry - add to Shanghai, or add another for Cancun?
  • truth table style unit tests to validate math is correct - where do we source that from? BLS12 tests have .csv to go with it for validation.
  • higher level tests at the EVM to cover kzg assertion failures are handled properly
  • command line args to override trusted setup file, and documentation for that
  • package the mainnet kzg trusted setup file so it is delivered via distribution in such a way that it can be loaded by native lib from the filesystem; loading from classpath won't work.
  • add support for reftests that cover it
@jflo jflo self-assigned this Dec 15, 2022
@jflo jflo mentioned this issue Dec 22, 2022
2 tasks
@jflo jflo mentioned this issue Jan 23, 2023
22 tasks
@jflo jflo closed this as completed Jan 23, 2023
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 a pull request may close this issue.

1 participant