bitpay / bitcore

A full stack for bitcoin and blockchain-based applications
https://bitcore.io/
MIT License
4.83k stars 2.08k forks source link

Signing error: digital envelope routines #3538

Open antmaster2001 opened 1 year ago

antmaster2001 commented 1 year ago

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 commented 1 year ago

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?