gskapka / eth-key-gen

Generate ethereum key pairs from given seed/password

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ethereum Key Pair Generator


πŸŽ“ Instructions

1. Clone repo:

❍ git clone https://github.com/gskapka/eth-key-gen.git

2. Switch into directory:

❍ cd eth-key-gen

3. Install dependencies:

❍ pnpm install

4. Generate an ethereum address & private key:

❍ node eth-key-gen --p <your-password-here>


βœ’οΈ Notes for Riccardo

❍ The OPSEC of running this script not very strong! It logs the private key to the console with no warning, so make sure no one is shoulder surfing your!

❍ If you look in ./lib/generate-key-pair.js you'll see line 41 is where the private key is logged to the console. Comment that out if you don't want better OPSEC!

❍ There are no tests because I've just thrown this together in five minutes.

❍ If you don't provide it a password via the --p flag, it'll use a default password of "password".

❍ See the Keythereum & Ethereum Utils github pages to see what's going on under the hood!

πŸ“‹ To Do List for Me

βœ… Use applicatives and partially apply the two curriable, password-requiring functions!

πŸ”² Write tests!

πŸ”² Port to typescript!

About

Generate ethereum key pairs from given seed/password


Languages

Language:JavaScript 100.0%