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

charge for ed25519 sig verifies #20639

Merged

Conversation

jackcmay
Copy link
Contributor

Problem

Missed charging for ed25519 signatures.

Summary of Changes

Charge for them, no feature gated needed because ed25519 program ids are rejected until that feature is enabled.

Fixes #

@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #20639 (bc10e1b) into master (60fe29b) will increase coverage by 0.0%.
The diff coverage is 76.5%.

@@           Coverage Diff           @@
##           master   #20639   +/-   ##
=======================================
  Coverage    81.9%    81.9%           
=======================================
  Files         495      495           
  Lines      137701   137770   +69     
=======================================
+ Hits       112832   112930   +98     
+ Misses      24869    24840   -29     

seanyoung
seanyoung previously approved these changes Oct 13, 2021
Copy link
Contributor

@seanyoung seanyoung left a comment

Choose a reason for hiding this comment

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

Thanks for catching that. Very embarrassing. 😳

It could do with a test like fn test_calculate_fee_secp256k1() for ed25519. Happy to do that, the least I could do..

@jackcmay jackcmay force-pushed the charge-sig-fee-for-ed25519-precompiles branch from 10a7958 to 8861d09 Compare October 13, 2021 16:36
@mergify mergify bot dismissed seanyoung’s stale review October 13, 2021 16:36

Pull request has been modified.

@jackcmay jackcmay force-pushed the charge-sig-fee-for-ed25519-precompiles branch from 8861d09 to 21a6e0a Compare October 13, 2021 20:12
@jackcmay jackcmay merged commit 4beabb3 into solana-labs:master Oct 14, 2021
@jackcmay jackcmay deleted the charge-sig-fee-for-ed25519-precompiles branch October 14, 2021 15:53
mergify bot pushed a commit that referenced this pull request Oct 14, 2021
(cherry picked from commit 4beabb3)

# Conflicts:
#	sdk/program/src/message/sanitized.rs
dankelleher pushed a commit to identity-com/solana that referenced this pull request Nov 24, 2021
frits-metalogix added a commit to identity-com/solana that referenced this pull request Nov 24, 2021
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