Skip to content

Monti-27/Seedling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

seedling

this is a nodejs tool that generates crypto wallets. it's basically an hd wallet factory. it generates a random 12-word mnemonic, makes a seed from it, and then spits out 5 different ethereum addresses (and their private keys) by incrementing the derivation path index.

how to run

make sure you have dependencies installed:

npm install

then just run:

npm start

(or npx tsx src/index.ts if you want to run the file directly)

recovery mode

you can restore an old wallet by passing the mnemonic flag:

npx tsx src/index.ts --mnemonic="your twelve words here..."

recovery mode screenshot

how it works

here is the flow:

graph TD
    A[start] --> B[generate random mnemonic]
    B --> C[convert to binary seed]
    C --> D{loop 5 times}
    D --> E[derive private key at m/44'/60'/0'/0/i]
    E --> F[convert to eth address]
    F --> G[print row]
    G --> D
    D --> H[done]
Loading

output

it looks like this in the terminal:

terminal screenshot

structure

  • src/core: mnemonic stuff using bip39
  • src/utils: wallet derivation using bip32 and ethers
  • src/config: just the path string
  • src/index.ts: tying it all together

built with typescript because types are good.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors