Skip to content

[solana-syscalls] clean up abort_on_invalid_curve (SIMD-0137) - #16420

Merged
samkim-crypto merged 2 commits into
anza-xyz:masterfrom
samkim-crypto:cleanup/abort-on-invalid-curve-feature
Oct 27, 2026
Merged

samkim-crypto merged 2 commits into
anza-xyz:masterfrom
samkim-crypto:cleanup/abort-on-invalid-curve-feature

Conversation

@samkim-crypto

Copy link
Copy Markdown

Problem

abort_on_invalid_curve (SIMD-0137) is active on all networks, but the curve syscalls still check it on an unsupported curve ID or group op. This is a follow-up to #13918 (comment) and #16230.

Summary of Changes

Similar to #16230, I cleaned up the abort_on_invalid_curve gate by returning InvalidAttribute unconditionally from the fallback arms in sol_curve_validate_point, sol_curve_group_op and sol_curve_multiscalar_mul, and removed abort_on_invalid_curve from SVMFeatureSet and FeatureSnapshot. The feature definition itself is unchanged.

@samkim-crypto
samkim-crypto marked this pull request as ready for review October 27, 2026 03:10
@samkim-crypto
samkim-crypto requested a review from a team as a code owner October 27, 2026 03:10
buffalojoec
buffalojoec previously approved these changes Oct 27, 2026

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

Thanks!

@samkim-crypto samkim-crypto added the automerge automerge Merge this Pull Request automatically once CI passes label Oct 27, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.4%. Comparing base (f92256b) to head (df71ac4).

Additional details and impacted files
@@            Coverage Diff            @@
##           master   #16420     +/-   ##
=========================================
- Coverage    82.4%    82.4%   -0.1%     
=========================================
  Files         954      954             
  Lines      373595   373580     -15     
=========================================
- Hits       308077   308020     -57     
- Misses      65518    65560     +42     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@samkim-crypto
samkim-crypto added this pull request to the merge queue Oct 27, 2026
Merged via the queue into anza-xyz:master with commit e24bada Oct 27, 2026
59 checks passed
@samkim-crypto
samkim-crypto deleted the cleanup/abort-on-invalid-curve-feature branch October 27, 2026 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge automerge Merge this Pull Request automatically once CI passes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants