Skip to content

Latest commit

 

History

History
116 lines (86 loc) · 2.95 KB

File metadata and controls

116 lines (86 loc) · 2.95 KB

Ethereum Wallet Generator

license bun typescript

Generate secure Ethereum wallets from your terminal. Fast. Simple. Audited.

Why This?

  • Blazing fast - Built on Bun, installs in milliseconds
  • Battle-tested crypto - Uses @scure/bip39 & @scure/bip32, audited by Cure53
  • Privacy first - Secrets hidden by default, reveal only when needed
  • Zero config - Just run it

Quick Start

bunx eth-wallet-generator

That's it. You now have a wallet.

What You Get

┌  Ethereum Wallet Generator
│
◆  Enter a password to encrypt your wallet (optional):
│  ****
└

┌  Your New Wallet
│
│  Address:     0x742d35Cc6634C0532925a3b844Bc454f23412...
│
│  Private Key: ••••••••••••••••••••••••••••••••••••••••
│
│  Mnemonic:    ••••••••••••••••••••••••••••••••••••••••
│
└

◆  What would you like to do?
│  ○ Show Private Key
│  ○ Show Mnemonic
│  ○ Copy Private Key
│  ○ Copy Mnemonic
│  ○ Copy Address
│  ○ Exit
└

Secrets stay hidden. Reveal them when ready. Copy to clipboard with one keystroke.

Install Globally

bun add -g eth-wallet-generator

Then just run:

eth-wallet-generator

Use in Code

import { generateWalletData, isValidMnemonic } from "eth-wallet-generator";

const wallet = generateWalletData({
  password: "optional-passphrase",  // BIP-39 passphrase
  strength: 256,                     // 24 words (default)
});

console.log(wallet.address);    // 0x...
console.log(wallet.privateKey); // 0x...
console.log(wallet.mnemonic);   // 24 words

isValidMnemonic(wallet.mnemonic); // true

Tech Stack

What Why
Bun 10x faster than Node
viem Modern Ethereum library
@scure/bip39 Audited mnemonic generation
@scure/bip32 Audited HD key derivation
@clack/prompts Beautiful CLI prompts
picocolors Tiny, fast terminal colors

All crypto libraries are audited by Cure53 and funded by the Ethereum Foundation.

Security

  • BIP-39 compliant (24-word mnemonic, 256-bit entropy)
  • BIP-44 derivation path (m/44'/60'/0'/0/0)
  • Secrets hidden by default in CLI
  • No network requests, everything runs locally

Development

bun install     # Install deps
bun run start   # Run CLI
bun run dev     # Watch mode

License

MIT