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

upgrade to libsecp256k1 v0.5.0; improves k1 signing performance ~10% #142

Merged
merged 2 commits into from
May 15, 2024

Conversation

spoonincode
Copy link
Member

Time for another awesome libsecp256k1 update. v0.5.0 improves signing performance by about ~10% in my tests. The improvement is via https://github.com/bitcoin-core/secp256k1/pull/1058

ECMULT_GEN_PREC_BITS=4
ENABLE_MODULE_EXTRAKEYS=1
COMB_BLOCKS=11
COMB_TEETH=6
Copy link
Member Author

Choose a reason for hiding this comment

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

These changes are snooped out via
https://github.com/bitcoin-core/secp256k1/blob/e3a885d42a7800c1ccebad94ad1e2b82c4df5c65/CMakeLists.txt#L104-L119

I needed to add ENABLE_MODULE_EXTRAKEYS to get the tests to compile. That might be an oversight in the upstream project (MODULE_EXTRAKEYS is required by MODULE_SCHNORRSIG -- both enabled by default in default config -- so it may be uncommon to compile without MODULE_EXTRAKEYS). Doesn't really matter though: just some tiny bit of unused-by-spring code added.

@spoonincode spoonincode merged commit 22d970f into main May 15, 2024
36 checks passed
@spoonincode spoonincode deleted the libsecp256k1-0.5.0 branch May 15, 2024 19:11
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: PERFORMANCE
summary: Improve k1 signing performance ~10%, upgrade libsecp256k.
Note:end

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