Generate Ethereum Wallet from Private Key

Many times users have Private Key and they want to generate Ethereum compatible password protected wallet from that key. Here is 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.

Generate Ethereum Wallet from Private Key

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.

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.

Screen-Shot-2019-07-08-at-10.51.38-AM

Pseudo code for better understanding

Make an instance of wallet form the private key

const Wallet = require('ethereumjs-wallet')
const util = require('ethereumjs-util')
let wl=new Wallet(util.toBuffer(PrivateKey))

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

wl.toV3(Password)

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:

____________________________________________________________________________________________________

Follow us at Twitter, Facebook, LinkedIn and Reddit.

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

____________________________________________________________________________________________________
Advertisement
ETHShala Understand Ethereum. Shape the Future.

ETHShala is your gateway to Ethereum Improvement Proposals, core concepts, and ecosystem ideas.

Learn Ethereum Understand EIPs Build the Future
Explore ETHShala →
Promotional Partnerships

We’re opening a limited number of promotional partnerships for web3 ecosystem projects looking to increase their visibility across our media channels.

Partner With Us →
EIPs Insight EIPs Insight Track Ethereum Upgrades & EIPs

Track Ethereum protocol upgrades, EIPs, AllCoreDevs calls, decisions & governance - all in one place.

Explore EIPs Insight →
EtherWorld.co × Avarch Join Our Internship Program

Gain hands-on experience in Web3 media, research, core protocols & developer relations.

Apply Now →
Sponsored Announcement
ETHShala Web3 Education

Understand Ethereum. Shape the Future.

ETHShala is your gateway to the world of Ethereum Improvement Proposals, core concepts, and the ideas shaping the Ethereum ecosystem.

Learn Ethereum Understand EIPs Build the Future
Promotional Partnerships EtherWorld Media

Amplify Your Web3 Ecosystem Project

We’re opening a limited number of promotional partnerships for web3 ecosystem projects looking to increase their visibility across our media channels.

Media Sponsorship Web3 Visibility Ecosystem Reach
EIPs Insight EIPs Insight Protocol Intelligence

Ethereum Protocol & Governance Analytics

Track Ethereum protocol upgrades, EIPs, AllCoreDevs calls, decisions & governance - all in one place.

Protocol Upgrades ACD Call Trackers EIP Analytics
EtherWorld.co × Avarch
Career Opportunity

Join Our Internship Program

Gain hands-on experience in Web3 media, core protocol research, technical writing, and developer relations.

Protocol Research Web3 Media Dev Relations

Subscribe to join the discussion.

Please create an account to become a member and join the discussion.

Already have an account? Sign in

Sign up for EtherWorld.co newsletters.

Stay up to date with curated collection of our top stories.

Please check your inbox and confirm. Something went wrong. Please try again.
0/5 free articles read this week
Sign up free