Skip to content

Commit

Permalink
k256: enable endomorphisms by default
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tarcieri committed Sep 28, 2020
1 parent 8845cc0 commit 4858cb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions k256/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ proptest = "0.10"
rand_core = { version = "0.5", features = ["getrandom"] }

[features]
default = ["arithmetic", "oid", "std"]
default = ["arithmetic", "endomorphism-mul", "oid", "std"]
arithmetic = ["elliptic-curve/arithmetic"]
digest = ["elliptic-curve/digest", "ecdsa-core/digest"]
ecdh = ["elliptic-curve/ecdh", "zeroize"]
ecdsa = ["arithmetic", "digest", "ecdsa-core/sign", "ecdsa-core/verify", "zeroize"]
endomorphism-mul = []
endomorphism-mul = ["arithmetic"]
expose-field = ["arithmetic"]
field-montgomery = []
force-32-bit = []
Expand Down

0 comments on commit 4858cb0

Please sign in to comment.