Thanks to visit codestin.com
Credit goes to github.com

Skip to content

KritimPrasadKafle/HDWallet

Repository files navigation

Multi-Chain HD Wallet Manager

A secure React application for generating and managing HD wallets for Solana and Ethereum from a single seed phrase.

Features

  • 🔐 Generate or import BIP39 seed phrases
  • 🌐 Create Solana and Ethereum wallets
  • 👁️ Show/hide private keys and seed phrases
  • 📋 Copy addresses and keys with one click
  • 🗑️ Add and remove wallets as needed
  • ⚡ Real-time mnemonic validation

Quick Start

Prerequisites

  • Node.js 16+
  • npm or yarn

Installation

# Clone and install
git clone [email protected]:KritimPrasadKafle/HDWallet.git
cd HDWallet
npm install

# Start development server
npm run dev

Open http://localhost:5173 in your browser.

Usage

Generate New Wallet

  1. Click "Generate New" to create a 12-word seed phrase
  2. Save your seed phrase securely - anyone with it can access your funds
  3. Click "Add Wallet" under Solana or Ethereum sections
  4. Copy addresses and private keys as needed

Import Existing Wallet

  1. Paste your 12 or 24-word seed phrase in the import section
  2. Click "Import Seed Phrase"
  3. Generate wallets for your preferred networks

Derivation Paths

  • Solana: m/44'/501'/[index]'/0'
  • Ethereum: m/44'/60'/[index]

Dependencies

Blockchain Libraries

  • bip39 - Mnemonic generation and validation
  • @solana/web3.js - Solana wallet creation
  • @ethersproject/hdnode - Ethereum HD wallets
  • ed25519-hd-key - Solana key derivation
  • tweetnacl - Cryptographic functions

UI

  • React + TypeScript + Vite
  • Tailwind CSS - Styling
  • lucide-react - Icons

Development

npm run dev          # Start dev server
npm run build        # Build for production
npm run preview      # Preview production build
npm run lint         # Run ESLint

Security Warnings

⚠️ CRITICAL SECURITY NOTES:

  • Never share your seed phrase - Anyone with it can steal your funds
  • All keys are generated locally in your browser
  • Test with small amounts first
  • This is for educational/development purposes
  • Not audited for production use with real funds

Project Structure

src/
├── App.tsx          # Main application component
├── main.tsx         # App entry point
├── index.css        # Global styles
└── assets/          # Static assets

Support

For issues or questions, please create an issue in the repository.


⚠️ Use at your own risk. Always backup your seed phrases securely.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published