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

adjust the cost of secp256k1_verify upwards by 450k #314

Merged
merged 1 commit into from
Jun 15, 2023
Merged

Conversation

arvidn
Copy link
Contributor

@arvidn arvidn commented Jun 15, 2023

Since the secp256 operators are implemented using the unknown operators, the opcode determine its cost, and vice versa. In order to alter the cost, this patch also need to alter the opcode.

The new secp256k1_verify opcode is: 0x13d61f00
The new cost of secp256k1_verify is: 1300000 (the cost is fixed, not related to what arguments are passed)

@arvidn arvidn marked this pull request as ready for review June 15, 2023 09:10
@arvidn arvidn requested a review from richardkiss June 15, 2023 09:10
@coveralls-official
Copy link

Pull Request Test Coverage Report for Build 5276757095

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 92.937%

Totals Coverage Status
Change from base Build 5276652808: 0.0%
Covered Lines: 5092
Relevant Lines: 5479

💛 - Coveralls

@arvidn arvidn requested a review from AmineKhaldi June 15, 2023 10:39
Copy link
Member

@hoffmang9 hoffmang9 left a comment

Choose a reason for hiding this comment

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

lgtm

@arvidn arvidn merged commit dce0245 into main Jun 15, 2023
@arvidn arvidn deleted the secpk1-cost branch June 15, 2023 22:10
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.

4 participants