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!