-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Procedure for validating system libsecp256k1 library #8500
Comments
Not sure I understand the question. Do you mean how you can manually test if it is working? Just try to run electrum, it will try to dynamically load the Line 47 in c851390
Or are you asking for some easy script you can add as an assert into the packaging framework?
Same as above. When we try to load the Line 119 in c851390
|
Thanks for the quick response. I thought I had read something about how Electrum would downgrade to using less efficient mechanisms if libsecp256k1 was not available. Perhaps that was just for an older version of Electrum. Anyway, knowing that an error message will be produced on start if libsecp256k1 is not correctly detected or is missing an important module is very helpful. Currently in Debian there is no error message when Electrum is run, so that would indicate that we have the libsecp256k1 issues sorted out. In case anyone else is interested, this is the result of running the tests:
Nothing there mentions libsecp256k1, nor does any of it appear to be too serious. |
I am working on updating the Debian package to 4.4.5. For some time Debian has maintained a patch to change the so name of the expected libsecp256k1 file because the version included in Debian had a different number. I see that the current version of ecc_fast.py now tries to detect any installed so file. This is a really nice change and allows us to drop the patch that was hardcoding our file name.
But before I went on my merry way I thought it would be a good idea to test to make sure everything was working. I read over all the libsecp256k1 issues I could easily find to see if there were instruction for how to test to make sure everything is working. However, it seems the topic is more complicated that I had originally anticipated, so I thought it might be best if I just ask the following two questions:
What are the testing procedures to make sure that Electrum can find the system libsecp256k1 (Debian's file is currently named libsecp256k1.so.1)?
libsecp256k1 library found but it was built without required module (--enable-module-recovery) #6465 indicates that, at least at one point, the version of libsecp256k1 in Debian was built without an optional but important module. Is there a procedure I can use to test if this is still the case? (If so, I would be willing to put forth some effort to get it included in the Debian package, but first I need a way to test for it.)
For reference, the current Debian package is 0.2.0-2.
The text was updated successfully, but these errors were encountered: