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

k256: enable endomorphism optimizations by default; remove non-endomorphism code #211

Closed
tarcieri opened this issue Sep 28, 2020 · 2 comments
Labels
k256 secp256k1 crate

Comments

@tarcieri
Copy link
Member

The last of the GLV patents in the US (US7110538B2) expired on September 25th, 2020 (and the European patents have been expired for awhile). IANAL, but from what I'm gathering endomorphisms are no longer patent-encumbered. Relevant story:

https://www.btctimes.com/news/hal-finneys-proposal-for-optimizing-bitcoin-to-be-enabled-in-bitcoin-core

bitcoin-core/secp256k1 is now switching to the endomorphism implementation by default:

bitcoin-core/secp256k1#826

I think it would make sense for us to do the same.

cc @fjarri @tuxxy

@tarcieri tarcieri added the k256 secp256k1 crate label Sep 28, 2020
tarcieri added a commit that referenced this issue Sep 28, 2020
The reason this wasn't enabled-by-default before was due to a lingering
US patent. However, as noted on #211, that patent just expired 🎉

The `bitcoin-core/secp256k1` library is also pursuing a full switch to
endomorphisms: bitcoin-core/secp256k1#826

For now this commit just switches on the feature by default, but in the
future we can eventually rip out the non-endomorphism code and remove
the feature entirely.
tarcieri added a commit that referenced this issue Sep 28, 2020
The reason this wasn't enabled-by-default before was due to a lingering
US patent. However, as noted on #211, that patent just expired 🎉

The `bitcoin-core/secp256k1` library is also pursuing a full switch to
endomorphisms: bitcoin-core/secp256k1#826

For now this commit just switches on the feature by default, but in the
future we can eventually rip out the non-endomorphism code and remove
the feature entirely.
@tarcieri
Copy link
Member Author

#213 enabled the endomorphism-mul feature by default. Now we just need to deprecate/remove the feature and the non-endomorphism code 🎉

@tarcieri
Copy link
Member Author

The non-endomorphism code was removed in #217.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k256 secp256k1 crate
Projects
None yet
Development

No branches or pull requests

2 participants
@tarcieri and others