Skip to content

Commit 3ae2dd1

Browse files
authored
k256: enable endomorphisms by default (#213)
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.
1 parent 8845cc0 commit 3ae2dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

k256/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ proptest = "0.10"
3434
rand_core = { version = "0.5", features = ["getrandom"] }
3535

3636
[features]
37-
default = ["arithmetic", "oid", "std"]
37+
default = ["arithmetic", "endomorphism-mul", "oid", "std"]
3838
arithmetic = ["elliptic-curve/arithmetic"]
3939
digest = ["elliptic-curve/digest", "ecdsa-core/digest"]
4040
ecdh = ["elliptic-curve/ecdh", "zeroize"]
4141
ecdsa = ["arithmetic", "digest", "ecdsa-core/sign", "ecdsa-core/verify", "zeroize"]
42-
endomorphism-mul = []
42+
endomorphism-mul = ["arithmetic"]
4343
expose-field = ["arithmetic"]
4444
field-montgomery = []
4545
force-32-bit = []

0 commit comments

Comments
 (0)