create account

Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code by eosnewyork

View this thread on: hive.blogpeakd.comecency.com
· @eosnewyork · (edited)
$24.63
Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code
There are many ways to generate an EOS public / private key pair. Even though there are many third-party options, it is understandable that to be extra cautious about using something not provided by the official EOS.IO team.

The method described in this video relies only on code and commands sourced from the EOS.IO GitHub organization.  While it does require having to execute some JavaScript code, our Lead Software Engineer, Mike Haggerty, meticulously walks through each step to allow non-programmers to perform this important function.

https://www.youtube.com/watch?v=G1GUpjc5hkw

The code used in this video: https://github.com/EOSIO/eosjs-ecc

-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
Step 1. Open command prompt / terminal
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

Windows: https://www.wikihow.com/Open-the-Command-Prompt-in-Windows

Mac: https://www.wikihow.com/Open-a-Terminal-Window-in-Mac

-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
Step 2. Check if Node.js is installed
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

$ node -v
$ npm -v

-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 
Step 3. Download Node.js (if needed)
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  

https://nodejs.org

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 4. Setup workspace
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  

$ mkdir eos_keypair
$ cd eos_keypair

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 5. Download eosjs-ecc NPM package then turn off Wi-Fi
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  

$ npm i eosjs-ecc

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 6. Start Node.js interactive shell
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

$ node


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 7. Execute "four commands"
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

The "four commands" listed on the eosjs-ecc README: https://github.com/EOSIO/eosjs-ecc#usage-object-api

let {PrivateKey, PublicKey, Signature, Aes, key_utils, config} = require('eosjs-ecc')

let privateWif

PrivateKey.randomKey().then(privateKey => privateWif = privateKey.toWif())

pubkey = PrivateKey.fromWif(privateWif).toPublic().toString()

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 8. Output private key
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

' > privateWif

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
Step 9. Register public key
-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 

[Link Here](https://steemit.com/eos/@sandwich/how-to-update-the-eos-public-key-mapped-registered-to-your-ethereum-wallet-with-myetherwallet-mew)

Special thank you to @eosdac for helping us ensure our work is 100%.
_________________________________________________________________________________

EOS New York is a Block Producer Candidate. Always Adding Value. Everything a Block Away.

![DQmeq31UKokuoyvBCrxYhNfinkz5ihNmeTbLUVH9j323cP7.png](https://steemitimages.com/DQmeq31UKokuoyvBCrxYhNfinkz5ihNmeTbLUVH9j323cP7/DQmeq31UKokuoyvBCrxYhNfinkz5ihNmeTbLUVH9j323cP7.png)

[Website](https://www.eosnewyork.io)
[Twitter](https://www.twitter.com/eosnewyork)
[Medium](https://medium.com/@eosnewyork)
[STEEM](https://steemit.com/@eosnewyork/)
[Meetup](meetup.com/EOS-New-York/)
[Youtube](https://www.youtube.com/channel/UCg7aeCSXUTP49w_elxgYIXA)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
authoreosnewyork
permlinksecurely-generating-an-eos-public-private-key-pair-using-official-eos-io-code
categoryeos
json_metadata{"tags":["eos","eosio","blockchain","blockproducer","eosnewyork"],"image":["https://img.youtube.com/vi/G1GUpjc5hkw/0.jpg","https://steemitimages.com/DQmeq31UKokuoyvBCrxYhNfinkz5ihNmeTbLUVH9j323cP7/DQmeq31UKokuoyvBCrxYhNfinkz5ihNmeTbLUVH9j323cP7.png"],"links":["https://www.youtube.com/watch?v=G1GUpjc5hkw","https://github.com/EOSIO/eosjs-ecc","https://www.wikihow.com/Open-the-Command-Prompt-in-Windows","https://www.wikihow.com/Open-a-Terminal-Window-in-Mac","https://nodejs.org","https://github.com/EOSIO/eosjs-ecc#usage-object-api","https://steemit.com/eos/@sandwich/how-to-update-the-eos-public-key-mapped-registered-to-your-ethereum-wallet-with-myetherwallet-mew","https://www.eosnewyork.io","https://www.twitter.com/eosnewyork","https://medium.com/@eosnewyork","https://steemit.com/@eosnewyork/","meetup.com/EOS-New-York/","https://www.youtube.com/channel/UCg7aeCSXUTP49w_elxgYIXA"],"app":"steemit/0.1","format":"markdown","users":["eosdac"]}
created2018-04-05 13:58:27
last_update2018-04-05 15:26:12
depth0
children13
last_payout2018-04-12 13:58:27
cashout_time1969-12-31 23:59:59
total_payout_value20.982 HBD
curator_payout_value3.649 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,992
author_reputation10,191,022,829,674
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,488,832
net_rshares8,079,484,075,881
author_curate_reward""
vote details (49)
@evoman1 · (edited)
$0.08
Very important stuff. Feeling safe with my current MEW wallet for registering my EOS. @eosnewyork got my vote for block producer for sure! Nice walk through from MH. Well done.
👍  
properties (23)
authorevoman1
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180405t171913614z
categoryeos
json_metadata{"tags":["eos"],"users":["eosnewyork"],"app":"steemit/0.1"}
created2018-04-05 17:19:15
last_update2018-04-05 17:25:30
depth1
children0
last_payout2018-04-12 17:19:15
cashout_time1969-12-31 23:59:59
total_payout_value0.061 HBD
curator_payout_value0.019 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length176
author_reputation11,762,792,810,770
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,521,352
net_rshares27,246,449,137
author_curate_reward""
vote details (1)
@fabinhocrypto ·
$0.09
very informative and very safe method!!
thanks a lot for this great quality video. I'm looking at you for your BP campaign!! I am an enthusiastic French EOS!!
👍  , , ,
properties (23)
authorfabinhocrypto
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180406t074822302z
categoryeos
json_metadata{"tags":["eos"],"community":"busy","app":"busy/2.4.0"}
created2018-04-06 07:48:24
last_update2018-04-06 07:48:24
depth1
children0
last_payout2018-04-13 07:48:24
cashout_time1969-12-31 23:59:59
total_payout_value0.071 HBD
curator_payout_value0.020 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length158
author_reputation1,364,396,465,174
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,620,096
net_rshares29,891,138,802
author_curate_reward""
vote details (4)
@gkoberlein ·
Great video!!!  Really helped even though I used an air gapped Linux machine to generate my keys.
properties (22)
authorgkoberlein
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180417t051127216z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-17 05:11:27
last_update2018-04-17 05:11:27
depth1
children0
last_payout2018-04-24 05:11:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length97
author_reputation0
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id50,504,982
net_rshares0
@johnthompson ·
Good stuff!! Follow this, you don't want a repeat of the IOTA generator theft. https://cryptovest.com/news/4m-iota-stolen-from-wallets-which-used-online-seed-generation-websites/
👍  
properties (23)
authorjohnthompson
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180406t003617796z
categoryeos
json_metadata{"tags":["eos"],"links":["https://cryptovest.com/news/4m-iota-stolen-from-wallets-which-used-online-seed-generation-websites/"],"app":"steemit/0.1"}
created2018-04-06 00:36:18
last_update2018-04-06 00:36:18
depth1
children0
last_payout2018-04-13 00:36:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length178
author_reputation6,277,879,437,064
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,573,004
net_rshares0
author_curate_reward""
vote details (1)
@nurhayati ·
$0.12
@eosnewyork, information is very valuable, success for eos movers, greetings from Aceh women
👍  
properties (23)
authornurhayati
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180409t101622238z
categoryeos
json_metadata{"tags":["eos"],"users":["eosnewyork"],"app":"steemit/0.1"}
created2018-04-09 10:16:24
last_update2018-04-09 10:16:24
depth1
children0
last_payout2018-04-16 10:16:24
cashout_time1969-12-31 23:59:59
total_payout_value0.090 HBD
curator_payout_value0.029 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation5,754,775,236,968
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,111,267
net_rshares26,751,515,628
author_curate_reward""
vote details (1)
@nutela ·
Terminal black on white? Fail :D
properties (22)
authornutela
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180405t211659040z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-05 21:17:00
last_update2018-04-05 21:17:00
depth1
children0
last_payout2018-04-12 21:17:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length32
author_reputation12,740,113,194,550
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,552,206
net_rshares0
@recursive · (edited)
$0.83
EOS's lack of standard key generation tool and offline registration instructions this close to launch is an embarassment and a disgrace. Key generation is the absolute base of any crypto system and underpines the entire future security model. With the current confusion around EOS registration and its near entire reliance on third party tools and instructions, for all we know most EOS registered wallets could already be compromised due to third party tools eavesdropping on keys, generating them with too little entropy or using a pseudo-random, reproductible key generation process.

As a very early supporter of Dan's work, I'm deeply disappointed by the careless approach taken by EOS.
👍  , , ,
properties (23)
authorrecursive
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180507t073248707z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-05-07 07:32:39
last_update2018-05-07 07:34:39
depth1
children2
last_payout2018-05-14 07:32:39
cashout_time1969-12-31 23:59:59
total_payout_value0.832 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length691
author_reputation14,577,151,751,433
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,332,762
net_rshares180,843,682,013
author_curate_reward""
vote details (4)
@eosnewyork ·
We share some of your sentiment. We can't speak for Block.One but we can do what we think is best by creating tutorials like these. Thank you for your feedback.
properties (22)
authoreosnewyork
permlinkre-recursive-re-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180507t171528639z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-05-07 17:15:27
last_update2018-05-07 17:15:27
depth2
children0
last_payout2018-05-14 17:15:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length160
author_reputation10,191,022,829,674
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,418,097
net_rshares0
@gleehokie · (edited)
Keygen utility is provided by EOSIO project here https://github.com/EOSIO/genesis/tree/master/tools/keys and you can download pre-built executables (OSX only currently, Windows and Linux coming soon) here https://github.com/EOSIO/genesis/releases

Note that the executables are signed by Block.one.
properties (22)
authorgleehokie
permlinkre-recursive-re-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180508t040731606z
categoryeos
json_metadata{"tags":["eos"],"links":["https://github.com/EOSIO/genesis/tree/master/tools/keys","https://github.com/EOSIO/genesis/releases"],"app":"steemit/0.1"}
created2018-05-08 04:07:30
last_update2018-05-08 04:13:36
depth2
children0
last_payout2018-05-15 04:07:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length298
author_reputation32,976,932,746
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id54,496,582
net_rshares0
@startdominating ·
Hi, I'm getting an error on my command prompt window: " '$' is not recognized as an internal or external command, operable program or batch file".

Any idea how to solve this issue?

Thanks!
properties (22)
authorstartdominating
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180412t205247159z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-12 20:52:48
last_update2018-04-12 20:52:48
depth1
children1
last_payout2018-04-19 20:52:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length190
author_reputation16,328,392,064
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id49,737,480
net_rshares0
@eosnewyork ·
You can reach out to us at community@eosnewyork.io with more details and we can help solve this with you.
properties (22)
authoreosnewyork
permlinkre-startdominating-re-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180417t183910190z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-17 18:39:09
last_update2018-04-17 18:39:09
depth2
children0
last_payout2018-04-24 18:39:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length105
author_reputation10,191,022,829,674
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id50,619,942
net_rshares0
@techstack ·
$0.12
Thanks @eosnewyork for this helpful post. Checkout and claim your free airdropped carmel tokens against the EOS you are holding [carmel.io/SkZND4LiM](carmel.io/SkZND4LiM)
👍  
properties (23)
authortechstack
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180407t125750064z
categoryeos
json_metadata{"tags":["eos"],"users":["eosnewyork"],"links":["carmel.io/SkZND4LiM"],"app":"steemit/0.1"}
created2018-04-07 12:57:48
last_update2018-04-07 12:57:48
depth1
children0
last_payout2018-04-14 12:57:48
cashout_time1969-12-31 23:59:59
total_payout_value0.089 HBD
curator_payout_value0.028 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length170
author_reputation745,033,069,601
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id48,816,989
net_rshares27,297,464,926
author_curate_reward""
vote details (1)
@ultravioletmag ·
I love Eos, I have to move it all off the exchange tho soon I think. is this what this is helping with ?
properties (22)
authorultravioletmag
permlinkre-eosnewyork-securely-generating-an-eos-public-private-key-pair-using-official-eos-io-code-20180428t190237514z
categoryeos
json_metadata{"tags":["eos"],"app":"steemit/0.1"}
created2018-04-28 19:02:36
last_update2018-04-28 19:02:36
depth1
children0
last_payout2018-05-05 19:02:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length104
author_reputation211,440,854,043,157
root_title"Securely Generating an EOS Public / Private Key Pair Using Official EOS.IO Code"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id52,695,033
net_rshares0