-
Notifications
You must be signed in to change notification settings - Fork 107
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
secp256k1: replace local version with nixpkgs #371
Conversation
34bbcd7
to
f00061f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK f00061f
We use this for JoinMarket because JoinMarket uses rev 0d9540b13ffcd7cd44cc361b8744b93d88aa76ba. Could using a different secp256k1 version lead to problems @kristapsk @AdamISZ? |
@nixbitcoin Likely not, but somebody needs to go through changes and test it carefully. |
(Background: I'll have to go back and check but as I recall fixing that version because coincurve did, and in the absence of secp256k1 releases there was no simple step-change after that. So we should double check if coincurve ever changed it in an update. But complicating this issue considerably: we've almost completely removed the coincurve dependency in Joinmarket (replaced with Simplexum/python-bitcointx), but unfortunately not yet 100%. The main thing that could go wrong is in that dependency; our use of the secp256k1 API is pretty simple. In short: I agree with @kristapsk . It needs to be tested. As well as checking/updating the install script, the test suite is probably sufficient for this though (since it's low level, manual user-level testing isn't needed imo). |
Coincurve has updated secp256k1 to |
Related: the library maintainers are considering providing tagged versions soon (bitcoin-core/secp256k1#286 + bitcoin-core/secp256k1#856), so the situation with packaging the library hopefully gets better soon. |
@nixbitcoin makes a good point. Since libsecp is unreleased, the libraries should come with their own, vendored version of libsecp. I think coincurve does and python-bitcointx doesn't. I hear that python-bitcointx doesn't recommend a specific commit of libsecp and it's test coverage is only "decent". So, I think at this point it's best is to go with whatever joinmarket suggests using. Thanks for your input @kristapsk @AdamISZ and thanks for opening this PR @prusnak. I hope the libsecp maintainers get their act together. |
I agree with the decision to close this PR and I will re-open the PR when libsecp256k1 has a proper versioned release. |
Do you know how coincurve gets its libsecp? |
nixpkgs contains newer version, so we can upgrade