-
Notifications
You must be signed in to change notification settings - Fork 99
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
Warning: "secp256k1 unavailable, reverting to browser version" #86
Comments
the openssl_config_path is wrong in the binding.gyp file
which gives this error when you try to build it
I downloaded a standard openssl config I then changed the path to where i had that file, and then I ran that built the file then when you try to run index.js, it is now able to load the file, and avoids the catch block this makes the error go away, and you are using the native bindings |
I may try to figure out a way to programatically find the correct file, and submit a PR, but I'm not sure where that file is normally located, and probably it varies a lot, due to usage of nvm, or different installs. I suppose another option would be to add an optional command line argument so you could specify it for your system, because right now, while the error is "fixed" on my machine, any install will break it again |
also, at the very least, the error message doesn't really point in the right direction, as i already got secp256k1 to install correctly, it was |
Hi @joshuarossi, do you know if any PR has fixed this issue at all? Thanks! |
Hey @joshuarossi, not sure if you still remember, I tried to update the ...
"conditions": [
[
"target_arch=='ia32'", {
"variables": {
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
}
}
],
[
"target_arch=='x64'", {
"variables": {
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
},
}
],
[
"target_arch=='arm'", {
"variables": {
"openssl_config_path": "/private/etc/ssl/openssl.cnf"
}
}
],
],
... But still have the same error: Any hints? |
Thanks @joshuarossi for ...
try {
var secp256k1 = require("secp256k1");
var ecdh = require("ecdh");
}
.... Then just in |
How can we install this library that it will use a native compilation for secp256k1 instead of the slow browser version?
I found the root cause of this warning at the
index.js
of eccrypto:Obviously, one should do something that will build some stuff at a subfolder called "./build/Release". I could not find any further explanation.
How can we achieve that? What needs to be done?
The text was updated successfully, but these errors were encountered: