Skip to content

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
@codecov
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 auto OUTPUT_SIZE = 32;
static constexpr size_t PAIR_SIZE = 192;
assert(output_size >= OUTPUT_SIZE);
Copy link
Member

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
Member

@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.

3 participants