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

EVM: Generic BN254 (alt_BN128) Interface for Precompiles / Use @noble/curves By Default #3564

Merged
merged 32 commits into from
Aug 8, 2024

Conversation

holgerd77
Copy link
Member

Solves #3449 by using native JS implementations for addition, multiplication and pairing from https://github.com/paulmillr/noble-curves, where pairing functionality just has been added (not yet released).

This PR follows the path of the native BLS integration from #3471 and adds a generic interface which allows to replace the native version with the WASM version or alternatively a custom implementation.

WIP

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.92%. Comparing base (f9788a1) to head (3b3e324).

Additional details and impacted files

Impacted file tree graph

Flag Coverage Δ
client ?
genesis 0.00% <ø> (?)
statemanager 65.83% <ø> (ø)
trie 52.27% <ø> (?)
tx ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@acolytec3 acolytec3 left a comment

Choose a reason for hiding this comment

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

LGTM!

@acolytec3 acolytec3 merged commit 6021203 into master Aug 8, 2024
36 checks passed
@acolytec3 acolytec3 deleted the evm-bn254-precompile-native-js branch August 8, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants