How can I generate random seed for new account of web3js?

How can I generate random seed for new account of web3js?

Manage alerts

Loading saved threads...

Adil Kadiyawala · External communityPost link
External question — Ethereum Stack Exchange Author: Adil Kadiyawala Original post: https://ethereum.stackexchange.com/questions/76011 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. I had created wallet account using web3.eth.accounts.wallet.create(). Now I want to generate random seed for that address. So which method of web3js will be helpful?
Quote
Report
Sanjay S B · External communityPost link
External answer — Ethereum Stack Exchange Author: Sanjay S B Original post: https://ethereum.stackexchange.com/a/76012 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. You can use the bip39 npm package to generate your random mnemonic. Then using same package convert the mnemonic to seed and use ethereumjs-wallet . Or you can use the truffle's hdwalletprovider to use the mnemonic as such.
Quote
Report

Post Reply

Checking account access…