Skip to content
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

Signing error: digital envelope routines #3538

Open
antmaster2001 opened this issue Feb 13, 2023 · 1 comment
Open

Signing error: digital envelope routines #3538

antmaster2001 opened this issue Feb 13, 2023 · 1 comment

Comments

@antmaster2001
Copy link

antmaster2001 commented Feb 13, 2023

Whenever I run the .sign() function in bitcore-lib on node v18.4.0 I get hit with the error:0308010C:digital envelope routines::unsupported error message. After doing some debugging I've found that it's related to the ripemd160 function in hash.js and that it's now deprecated in Node 18.

The only way to fix it so far is running the application with export SET NODE_OPTIONS=--openssl-legacy-provider && npm run start but that's really not ideal. Is there any permanent solution in the works?

@escottalexander
Copy link
Contributor

I have not encountered any issues when running bitcore-lib with Node v18.13 LTS with the sign method or with ripemd160 hashing. How are you using it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants