Having a digital asset wallet is the first step for users interested in blockchain space. A wallet is basically a pair of Public Key and Private key which is needed together to access any account. Those having reasonable understanding of Public Key and Private Key usually like to play around.

Many times users have Private Key and they want to generate Ethereum compatible password protected wallet from that key. Today, I am sharing a small utility program for Ethereum Blockchain in NodeJS that would help user to generate Ethereum compatible password protected wallet starting just with Private Key.

Wallet software may use a BIP 32 seed to generate many private keys and corresponding public keys from a single secret value. This is called a hierarchical deterministic wallet, or HD wallet for short. The seed value, or master extended key, consists of a 256-bit private key and a. Public keys are used to create Ethereum addresses-Private keys are used to sign Blockchain-based transactions to send and receive Ether. Technical Ethereum Address generation steps:-Generate Private Key using open source libraries such as Ethereumj or SHA256 hash function with a randomly generated number.

I will use a Javascript library ethereumjs-wallet to achieve this. This library provide a function to convert Private key to wallet protected by password.

How to generate Ethereum Wallet from Private Key

I have put together a small utility using above library . All you have to do is to clone this repo and run the utility.

Assumption: nodeJS is already installed on the system.

  • git clone https://github.com/bit-warrior/WalletFromPK
  • go to directory WalletFromPK
  • npm install
  • And follow the steps as shown below

Pseudo code for better understanding

Make an instance of wallet form the private key

And then you can password protect and generate the wallet..

PrivatePrivate

If you find this article helpful, please share. You may reach me at contact@etherworld.co with your comments, questions or suggestions of new topics that you would want to be covered.

Suggested articles:

  • EtherWorld's collection of Good Read on Blockchain & Cryptocurrency.
KeyGenerate Ethereum Private Key Javascript

Generate Ethereum Private Key Javascript Free

____________________________________________________________________________________________________

Follow us at Twitter, Facebook, LinkedIn and Reddit.

Generate Ethereum Private Key Javascript Online

For weekly round up on Ethereum and other blockchain news, technology and projects, subscribe EtherWorld's Blockchain Weekly .

Generate Ethereum Private Key Javascript Download

____________________________________________________________________________________________________