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

precompiles: Fallback to single mul in BLS MSM #1046

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chfast
Copy link
Member

@chfast chfast commented Oct 9, 2024

If the number of valid and non-zero inputs to BLS MSM is 1 use simpler single point multiplication.

@chfast chfast requested a review from rodiazet October 9, 2024 13:37
@chfast chfast added the precompiles Related to EVM precompiles label Oct 9, 2024
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.21%. Comparing base (8e4a055) to head (01e0cfb).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1046   +/-   ##
=======================================
  Coverage   94.21%   94.21%           
=======================================
  Files         153      153           
  Lines       15934    15940    +6     
=======================================
+ Hits        15012    15018    +6     
  Misses        922      922           
Flag Coverage Δ
eof_execution_spec_tests 17.53% <0.00%> (-0.01%) ⬇️
ethereum_tests 27.33% <0.00%> (-0.02%) ⬇️
ethereum_tests_silkpre 19.14% <0.00%> (-0.02%) ⬇️
execution_spec_tests 20.48% <100.00%> (+0.03%) ⬆️
unittests 89.01% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
lib/evmone_precompiles/bls.cpp 100.00% <100.00%> (ø)

chfast added a commit that referenced this pull request Oct 9, 2024
It may be intentional to do `&v[0]` instead of `v.data()` as a way of
saying "give me the address of the 0th element" instead of "give me
the address of the array of elements".

An example: #1046.
chfast added a commit that referenced this pull request Oct 9, 2024
It may be intentional to do `&v[0]` instead of `v.data()` as a way of
saying "give me the address of the 0th element" instead of "give me the
address of the array of elements".

An example: #1046.
If the number of valid and non-zero inputs to BLS MSM is 1 use
simpler single point multiplication.
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.

1 participant