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

hethers.Wallet.createRandom() not working on node v17,18 #252

Closed
Kalina-Todorova opened this issue Jun 27, 2022 · 1 comment · Fixed by #283
Closed

hethers.Wallet.createRandom() not working on node v17,18 #252

Kalina-Todorova opened this issue Jun 27, 2022 · 1 comment · Fixed by #283
Assignees
Labels
bug Something isn't working

Comments

@Kalina-Todorova
Copy link

Calling hethers.Wallet.createRandom() with node v17
Error:

Error: error:0308010C:digital envelope routines::unsupported
    at new Hash (node:internal/crypto/hash:67:19)
    at createHash (node:crypto:135:10)
    at ripemd160 (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/hdnode/node_modules/@ethersproject/sha2/lib/sha2.js:11:43)
    at new HDNode (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/hdnode/lib/index.js:78:110)
    at Function.HDNode._fromSeed (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/hdnode/lib/index.js:214:16)
    at Function.HDNode.fromMnemonic (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/hdnode/lib/index.js:221:23)
    at Function.Wallet.fromMnemonic (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/wallet/lib/index.js:314:43)
    at Function.Wallet.createRandom (/home/nikolay/Desktop/zqzqzq/hedera-local-node/node_modules/@hethers/wallet/lib/index.js:278:23)
    at Function.generateAccounts (/home/nikolay/Desktop/zqzqzq/hedera-local-node/src/hederaUtils.js:27:35)
    at start (/home/nikolay/Desktop/zqzqzq/hedera-local-node/cli.js:69:23) {
  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
  library: 'digital envelope routines',
  reason: 'unsupported',
  code: 'ERR_OSSL_EVP_UNSUPPORTED'

Calling it with node < v17 (14,16) - works fine.

@Kalina-Todorova Kalina-Todorova added the bug Something isn't working label Jun 27, 2022
@Kalina-Todorova Kalina-Todorova changed the title hethers.Wallet.createRandom() throws ERR_OSSL_EVP_UNSUPPORTED hethers.Wallet.createRandom() not working on node v17,18 Jun 27, 2022
@Kalina-Todorova
Copy link
Author

Related to: ethers-io#3082

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants