Skip to content

crypto: Drop unused ecc declarations - #1633

Merged
chfast merged 1 commit into
masterfrom
crypto/drop-dead-declarations
Aug 10, 2026
Merged

crypto: Drop unused ecc declarations#1633
chfast merged 1 commit into
masterfrom
crypto/drop-dead-declarations

Conversation

@chfast

@chfast chfast commented Aug 10, 2026

Copy link
Copy Markdown
Member

Three declarations in the elliptic-curve headers have no users anywhere in the
repository, tests and tools included:

  • ecc::Point, the ValueT-templated affine point — curve points are represented
    by AffinePoint/ProjPoint. It even carried the same doc comment as
    AffinePoint, which is the tell that it is a leftover.
  • ecc::InvFn, a function-pointer alias for an inversion callback.
  • ExtFieldElem::zero() — the zero value is spelled as default-initialization
    everywhere. one() is used and stays.

Deletion only, no behaviour change.

The ValueT-templated ecc::Point, the InvFn function-pointer alias and
ExtFieldElem::zero() have no users: curve points are represented by
AffinePoint and ProjPoint, and the zero value is spelled as
default-initialization everywhere.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Removes unused internal elliptic-curve declarations without changing behavior.

Changes:

  • Removed unused ecc::Point and ecc::InvFn.
  • Removed unused ExtFieldElem::zero().

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
lib/evmone_precompiles/ecc.hpp Removes obsolete ECC declarations.
lib/evmone_precompiles/pairing/field_template.hpp Removes the unused zero factory.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@chfast
chfast merged commit ce6ef36 into master Aug 10, 2026
21 of 22 checks passed
@chfast
chfast deleted the crypto/drop-dead-declarations branch August 10, 2026 19:08
@codecov

codecov Bot commented Aug 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.70%. Comparing base (22c6d37) to head (a1a87ff).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1633   +/-   ##
=======================================
  Coverage   97.70%   97.70%           
=======================================
  Files         171      171           
  Lines       15593    15593           
  Branches     3606     3606           
=======================================
  Hits        15235    15235           
  Misses        269      269           
  Partials       89       89           
Flag Coverage Δ
eest-develop 88.61% <ø> (ø)
eest-develop-gmp 26.66% <ø> (ø)
eest-legacy 17.19% <ø> (ø)
eest-libsecp256k1 28.86% <ø> (ø)
eest-stable 88.61% <ø> (ø)
evmone-unittests 93.13% <ø> (ø)

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

Components Coverage Δ
core 96.08% <ø> (ø)
tooling 91.86% <ø> (ø)
tests 99.80% <ø> (ø)
Files with missing lines Coverage Δ
lib/evmone_precompiles/ecc.hpp 97.24% <ø> (ø)
lib/evmone_precompiles/pairing/field_template.hpp 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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