My Etherwallet Private Key Generation

Posted on
My Etherwallet Private Key Generation Average ratng: 9,7/10 5341 votes
  1. Private Key Bitcoin
  2. Myetherwallet Private Key Generation Review

MyEtherWallet.com will then generate a password-protected private key described as a “Keystore File.” The file can be downloaded in either UTC or JSON format. This file can be used to access your wallet, and it almost goes without saying that keeping it safe is of the utmost importance. Wallet words, private key and address follow MyEtherWallet.com the standard (derivation path m/44'/60'/0'/0/k), and can be restored in most wallets. The private key generated here is never transfered over the internet. This webpage runs entirely in your browser, in Javascript. Feel free to check out the source code on GitHub.

This repository has been archived by the owner. It is now read-only.

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up

Comments

commented Apr 25, 2016

After generating a wallet on https://www.myetherwallet.com/#generate-wallet, there is an option to 'Download JSON file - Geth/Mist Format (encrypted)'. The JSON file that is downloaded contains the key 'Crypto', which contains the key 'cyphertext'. The value is the unencrypted private key for the wallet. I was expecting the value to be the encrypted private key for the wallet.

A safer answer may be just to have the application run another query once it returns from this one. As long as it's done on the back end, the performance penalty should be worth the simplicity of managing the development in groups of people, and it's closer in accordance to standards than some crazy feature with edge cases. Return auto generated key in sql server free. The main value of this feature is to provide a way to make IDENTITY values available to an application that is updating a database table without a requiring a query and a second round-trip to the server. Because SQL Server doesn't support pseudo columns for identifiers, updates that have to use the auto-generated key feature must operate.

commented Apr 25, 2016

While the cipher text may look like a private key (and 'be' a private key) it is not the private key / account that the JSON will unlock and it is not encrypted.

Every 64 hex string will open an account. In this case, that string is NOT the private key, but rather a value being used to check / decrypt the public key / private key derivation. You can read more about it here: https://github.com/ethereum/wiki/wiki/Web3-Secret-Storage-Definition

I just generated a new wallet:

  • Address: 0x2d9C9d03CD1544c86A99380D7aB837BD89Cc1205
  • Unencrypted Private Key: 83d945cc6b0fd190a718ac337d50b9161f5610ddfdee78dd19dc83e4757a5411
  • 'ciphertext':'edcb70e842438e964799c825e23287c3948fcbf75999b6e88c791b5f1729ebd8'

If I paste the unencrypted private key or upload the JSON into view wallet details, it will unlock account 0x2d9C9d03CD1544c86A99380D7aB837BD89Cc1205

If I paste the cipher text, it will unlock 0x96d37eef645a8e582F212d4C17Dc0622Fa72dbA1, a completely different wallet.

commented Apr 25, 2016

Ah, sorry for my ignorance, thanks for the information! In the past when I've used etherwallet the private key was presented in what seems to be an openssl-friendly format beginning with 'Salted_' (U2FsdGVkX1). I've seen this in other wallet generators as well. Was that ever a standard and is the community settled on an official technique? I'm trying to understand what format would be best for a paper wallet.

closed this Apr 25, 2016
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.
HomeEssentialYour First Ethereum Address: Learning to Use MyEtherWallet

In this article we'll go through the process of generating your first Ethereum wallet and sending and receiving ether through the MyEtherWallet interface. For a better understanding of the information which follows, it's recommended you read the following first:

There are many ways to interact with the Ethereum blockchain. In this piece, we'll be using MyEtherWallet (MEW).

Note: After opening the site, please bookmark it so you never have to paste it into your browser again. There are many bad people who want your ether, and they've bought domains similar to the domain of this site hoping you'll fall into that trap by mistyping!

Immediately after loading, the page will display some warnings about them not being a bank and basically not being able to help you if you lose your funds because they don't have access to them. The gist of it is that you're responsible for your own funds.

Creating and Reading an Address

The first screen of MEW is the “input password” screen. Input a password for a new wallet (make it something complex but easy to remember or use a password generator like LastPass).

The address is immediately generated in the background, but MEW won't let you see it yet. For as long as you haven't saved the Keystore file somewhere safe, you cannot proceed. Click “Download Keystore File (UTC / JSON)” and store it on a USB drive, then hide it from curious family members. The file will be called something like UTC--2018-01-26T10-39-56.592Z--d877263725d9247352661e44c444b21dc5a28581. The first part is the date of creation, the second is the address itself. After you've stored it safely, the next screen will display the private key.

Very imporant!! – the private key is equivalent in access level to the file you downloaded previously. Both can be imported into wallet software and used to unlock an address to spend money on it. But there is an important difference – the private key does not require a password! If you enter a private key into another tool like MetaMask, the address will immediately become unlocked without a password and can be used for sending Ether and tokens. If you import the previously downloaded file into any wallet software, it will require a password before letting you access it fully. Therefore, it is safer to only keep one method around – either store the file and remember the password, or store only the private key in a very secure location. Destroy the other method. The fewer ways to access your wallet there are, the safer the money is.

You can generate a Paper Wallet on the same screen. This will open a new tab with a neatly generated printable layout of two QR codes. One is the public key – the address to which you can send funds and tokens, and the other is the private key mentioned above.

If you're planning to use this address for long-term holding of ether, it's smart to print it and store it in a safe as if you had a bond or a big wad of cash.

After these steps have been completed, MEW lets us unlock the wallet and view its info. This can be done in two ways:

  • picking Keystore / JSON file will provide you with a form through which you upload the file you downloaded previously. You'll then be asked for a password.
  • picking private key lets you paste the private key directly into the field, unlocking the address for usage

Unlock your wallet and you should see something like the image below:

This interface lets you print the wallet again if you lost or destroyed the previous one, or to re-download the JSON file if you lost it and accessed the wallet with the private key. The QR code for the private key can be read by clicking the eye icon under the black rectangle in the bottom of the screen.

On the right, you can see your account's balance: 0 Eth. A little lower you can see the Token Balances frame which shows you how many of which tokens you have. Because of a large number of available tokens out there, you first need to click “Show all tokens” to load them.

This screen is visible because you're on the “View Wallet Info” option to which MEW automatically redirects you after creation. When sending tokens or ether the option to use is Send Ether and Tokens.

Receiving Ether

On the “View Wallet Info” screen, the QR code in the lower left is the address to which tokens and ether can be sent. The value of the code is equivalent to the value in “Your Address” at the top, and the “Account Address” value in the right sidebar.

To receive some Ether, let's switch to the Ropsten test network. In the upper right corner of the screen you can pick the network to connect to:

Pick any Ropsten. The screen will refresh and you'll have to re-enter the wallet. After re-entering via the “Send Ether & Tokens” tab, the interface will be a little different. No QR codes and the balance will be in ROPSTEN ETH, not ETH.

Testnets are environments for playing around and testing the Ethereum blockchain without financial consequences. You can find out more about them here. Open the Ropsten faucet next. It's a page which lets us request free Ropsten Ether: http://faucet.ropsten.be:3001

Private Key Bitcoin

In the recipient field, enter your wallet's address. Copy it from the “Account Address” part of MEW.

The Ether should arrive within a minute or two, depending on how busy the testnet is.

Sending Ether

Now let's send some Ether. In a new tab open MEW again and generate another wallet, following instructions from before. Copy this newly generated address' public key (Account Address) to the “To Address” field of the original unlocked wallet with test Ether.

Set the amount to less than maximum and click Generate Transaction. After it's generated, confirm it with Send Transaction.

Another confirmation window will appear, listing all the thus far provided information:

Myetherwallet Private Key Generation Review

  • sender and recipient
  • amount
  • balance of sender's account
  • coin being sent
  • network being used
  • gas limit and price, i.e. the cost of the transaction
  • nonce and data (irrelevant for now)

Confirm the sending. After sending, a green confirmation message should appear at the bottom of the screen with a “Verify” link which lets you look at the transaction on Etherscan, Ethereum's most popular block explorer. Etherscan has access to the Ropsten network and can inspect it.

This is how the TX looks for our case above:

Pending means the transaction is still being processed. The higher the gas price, the faster it turns into Success. Once it's successful, the ROPSTEN ETH state of the second, new address, will change (sometimes a re-unlock is necessary so MEW registers the changes).

Conclusion

MyEtherWallet is a simple and safe tool for interacting with the Ethereum blockchain. You can use it to interact with contracts, register domains (like bitfalls.eth), track accounts, activate smart contracts, send Ether, even run decentralized apps – more on that in a followup post.

But while MEW is a pretty safe option, nothing can match the safety of hardware wallet like Ledger Nano S. Seeing as MEW's interface can seem a little complex, there's a simpler alternative as well – MetaMask.

If you found this article useful or interesting, please consider donating to keep our operation running.