8000 precompiles: Refactor BN254 ecpairing by chfast · Pull Request #1175 · ethereum/evmone · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

precompiles: Refactor BN254 ecpairing #1175

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

Merged
merged 1 commit into from
Mar 21, 2025
Merged

Conversation

chfast
Copy link
Member
@chfast chfast commented Mar 20, 2025

Refactor the loop preparing inputs for the BN254 pairing check.

Refactor the loop preparing inputs for the BN254 pairing check.
@chfast chfast added the precompiles Related to EVM precompiles label Mar 20, 2025
@chfast chfast requested a review from rodiazet March 20, 2025 16:15
Copy link
codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.48%. Comparing base (71730a3) to head (7b456cf).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1175      +/-   ##
==========================================
- Coverage   94.49%   94.48%   -0.01%     
==========================================
  Files         170      170              
  Lines       18024    18020       -4     
==========================================
- Hits        17031    17027       -4     
  Misses        993      993              
Flag Coverage Δ
eof_execution_spec_tests 20.93% <50.00%> (+0.05%) ⬆️
ethereum_tests 27.04% <100.00%> (-0.02%) ⬇️
ethereum_tests_silkpre 19.51% <100.00%> (-0.02%) ⬇️
execution_spec_tests 21.29% <50.00%> (+0.05%) ⬆️
unittests 91.79% <94.44%> (-0.01%) ⬇️

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

Files with missing lines Coverage Δ
test/state/precompiles.cpp 98.97% <100.00%> (-0.02%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chfast chfast enabled auto-merge (squash) March 20, 2025 16:58
static constexpr size_t PAIR_SIZE = 192;
assert(output_size >= OUTPUT_SIZE);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just output_size == OUTPUT_SIZE?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is generic precompile's implementation framework, sometimes it passes bigger buffers, but I don't remember why currently.

Copy link
Contributor
@rodiazet rodiazet left a comment

Choose a reason for hiding this comment

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

Added one comment

@chfast chfast merged commit 64b5c47 into master Mar 21, 2025
25 checks passed
@chfast chfast deleted the precompiles/refactor_ecpairing branch March 21, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
precompiles Related to EVM precompiles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0