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: remove non-endomorphism code #217

Merged
merged 2 commits into from
Sep 30, 2020

Conversation

tarcieri
Copy link
Member

This code was previously gated under the endomorphism-mul feature due to lingering concerns about the "GLV" patents, namely US7110538.

According to @pwuille, a patent attorney he works with has verified that the patent is expired:

https://twitter.com/pwuille/status/1310639051393830912

Likewise non-endomorphism code is being removed from bitcoin-core/secp256k1:

bitcoin-core/secp256k1#826

This commit does the same for k256: it removes all the non-endomorphism code and feature gating from the endomorphism code, making the endomorphism-mul feature a no-op.

We can remove the feature in the next SemVer-breaking release (v0.6.x).

This code was previously gated under the `endomorphism-mul` feature due
to lingering concerns about the "GLV" patents, namely US7110538.

According to @pwuille, a patent attorney he works with has verified that
the patent is expired:

https://twitter.com/pwuille/status/1310639051393830912

Likewise non-endomorphism code is being removed from
`bitcoin-core/secp256k1`:

bitcoin-core/secp256k1#826

This commit does the same for `k256`: it removes all the
non-endomorphism code and feature gating from the endomorphism code,
making the `endomorphism-mul` feature a no-op.

We can remove the feature in the next SemVer-breaking release (v0.6.x)
@tarcieri tarcieri requested a review from fjarri September 29, 2020 23:38
@codecov-commenter
Copy link

codecov-commenter commented Sep 29, 2020

Codecov Report

Merging #217 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #217   +/-   ##
=======================================
  Coverage   58.49%   58.49%           
=======================================
  Files          25       25           
  Lines        3783     3783           
=======================================
  Hits         2213     2213           
  Misses       1570     1570           
Impacted Files Coverage Δ
k256/src/arithmetic/mul.rs 89.06% <ø> (ø)
k256/src/arithmetic/projective.rs 76.73% <ø> (ø)
k256/src/arithmetic/scalar.rs 77.86% <ø> (ø)
k256/src/arithmetic/scalar/scalar_4x64.rs 0.00% <ø> (ø)
k256/src/arithmetic/scalar/scalar_8x32.rs 91.70% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 452f702...32f5e86. Read the comment docs.

@tarcieri tarcieri merged commit 2b8ab1c into master Sep 30, 2020
@tarcieri tarcieri deleted the k256/remove-non-endomorphism-code branch September 30, 2020 17:55
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