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

tristan/war-628-sylow-revm-precompile-compatability #35

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

trbritt
Copy link
Collaborator

@trbritt trbritt commented Sep 6, 2024

this makes the necessary changes for being able to replace bn128.rs in reth which currently performs the bn254 arithmetic via bn, and includes the actual code to copy paste into reth in order to do it.

biggest feature change is makinthe batch pairing public, as well as taking into account the fact that reth / geth expect the serialization of points at infinity to be [0u64; 64], which is not technically precise, but nonetheless is the expection. the result of that is the addition of a new method to_be_bytes_scrubbed that handles this case of the point at infinity.

Copy link

linear bot commented Sep 6, 2024

@trbritt trbritt merged commit 1a8d881 into main Sep 6, 2024
14 checks passed
@trbritt trbritt deleted the tristan/war-628-sylow-revm-precompile-compatability branch September 6, 2024 19:05
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.

2 participants