Bump to secp256k1 0.20 and don't enable recovery of secp256k1 in the dependency declaration#545
Conversation
This version removes the fuzztarget and endomorphism features.
sgeisler
left a comment
There was a problem hiding this comment.
Looks good, but I'd like to hear @stevenroose's opinion.
|
I think we meant to turn off the default features in our secp dep. |
sgeisler
left a comment
There was a problem hiding this comment.
ACK 8f071d116262b8596df4ee7890e9fe5c9405e6e8
apoelstra
left a comment
There was a problem hiding this comment.
concept nack removing the feature - can you instead change this to disable the secp default features so that secp/recovery actually does something?
|
I'm a bit curious @apoelstra, what's the thought behind feature-gating key recovery? There aren't any more deps afaik. Is it so unstable? I'm pretty sure that LN invoices use this and it seems to be fine. |
|
@sgeisler it pulls in the key recovery module from libsecp. This is morally an extra dep, and on code with a questionable patent story and no non-legacy usecases. If we had been better about feature-gating this historically maybe LN would not have used it :( |
4dab9d1 to
b5f1fda
Compare
secp-recovery featurerecovery of secp256k1 by default
Enabling this feature in the dependency declaration defeats the point of exposing a feature in rust-bitcoin that enables this because cargo currently does not provide a way to disable a once activated feature.
b5f1fda to
e52e48e
Compare
recovery of secp256k1 by defaultrecovery of secp256k1 in the dependency declaration
Is e52e48e what you had in mind? |
|
Side note: removing a feature from defaults is also semver breaking (although this PR is breaking anyway). |
|
Yep, this looks great! Can you also add a commit which sets |
|
Actually we don't need this. See rust-bitcoin/rust-secp256k1#269 |
apoelstra
left a comment
There was a problem hiding this comment.
ack 8f071d116262b8596df4ee7890e9fe5c9405e6e8
rust-secp256k1version 0.20 was recently released: rust-bitcoin/rust-secp256k1#257This PR updates
rust-bitcointo this latest version.