No description
  • HTML 62.6%
  • JavaScript 37.4%
Find a file
hasky00 35df371ff0
Some checks failed
CI / test (push) Has been cancelled
Early-release note with link to issues
2026-10-29 07:14:59 +01:00
.github/workflows feat(phase0): foundation polish 2026-06-06 22:04:25 +02:00
assets Add native iOS app shell 2026-10-05 02:42:53 +02:00
test Prepare for GitHub Pages and security fixes 2026-02-10 22:33:59 +01:00
vendor feat(phase0): foundation polish 2026-06-06 22:04:25 +02:00
.gitignore Prepare for GitHub Pages and security fixes 2026-02-10 22:33:59 +01:00
app.js Enable hasky THORName affiliate on Bitcoin top-ups 2026-10-28 22:10:52 +01:00
CHANGELOG.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
CODE_ANALYSIS.md Add analysis of missing functionality 2025-11-30 09:38:00 +01:00
eth-wallet-generator.js Prepare for GitHub Pages and security fixes 2026-02-10 22:33:59 +01:00
eth-wallet-production.js Prevent production mnemonic leakage and expand tests 2025-11-30 10:07:36 +01:00
ethereum-wallet.html Make wallet self-custodial focused 2026-07-30 15:27:18 +02:00
GITHUB_SETUP.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
index.html Early-release note with link to issues 2026-10-29 07:14:59 +01:00
LICENSE Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
manifest.json Add native iOS app shell 2026-10-05 02:42:53 +02:00
package.json Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
PRIVACY.md feat(phase0): foundation polish 2026-06-06 22:04:25 +02:00
PROJECT_SUMMARY.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
QUICK_REFERENCE.md Add files via upload 2025-11-28 13:15:24 +01:00
README.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
SECURITY.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
START_HERE.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00
sw.js Early-release note with link to issues 2026-10-29 07:14:59 +01:00
WALLET_DOCUMENTATION.md Add Nostr wallet entry screen 2026-10-05 01:50:48 +02:00

🔐 Ethereum Wallet - Secure Self-Custodial Wallet

A complete Ethereum wallet solution with web interface and secure wallet generation tools following industry best practices and cryptographic standards.

Ethereum JavaScript Node.js

✨ Features

🌐 Web Interface (ethereum-wallet.html)

  • Create New Wallet: Generate secure Ethereum wallets with BIP39 seed phrases + re-type confirmation
  • Import Wallet: Import existing wallets via private key or seed phrase (validated)
  • Send/Receive ETH: Full transaction management with USD conversion, gas estimation, Max button, and Etherscan links
  • Real QR Codes: Scan-friendly QR in the Receive screen (generated 100% client-side)
  • Live Balance + Price: Real-time ETH balance + CoinGecko price feed (with cache)
  • Buy ETH: Direct links to major exchanges (Coinbase, Kraken, Binance, Uniswap)
  • Token Swap: Integration with DEXes (Uniswap, SushiSwap, Curve, 1inch)
  • Merchant Finder: Locate crypto-accepting businesses (CoinMap)
  • ATM Locator: Find cryptocurrency ATMs (CoinATMRadar)
  • PWA Support: Installable on mobile/desktop, basic offline shell
  • Purple Theme: Beautiful gradient UI with black ETH icon
  • Mobile Responsive: Works on desktop and mobile devices
  • Strong warnings: Persistent experimental/testnet banners + clear disclaimers

🔧 Wallet Generator Tools

  • Development Mode (eth-wallet-generator.js): Full output for testing
  • Production Mode (eth-wallet-production.js): Secure wallet generation
  • Standards Compliant: BIP32/BIP39/BIP44 implementation
  • Cryptographic Security: secp256k1, ECDSA, Keccak-256

🚀 Quick Start

Web Interface

  1. Open the HTML file:

    # Simply open in your browser
    open ethereum-wallet.html
    # or
    firefox ethereum-wallet.html
    
  2. Create or Import Wallet:

    • Click "Create Wallet" to generate new wallet
    • Or "Import Wallet" to use existing credentials
  3. Start Using:

    • View your balance
    • Send and receive ETH
    • Access buy/sell/swap features

Command Line Wallet Generator

Prerequisites

npm install ethers@5.7.2

Development Mode (Testing)

node eth-wallet-generator.js
  • Outputs complete wallet details including seed phrase
  • USE ONLY FOR TESTING
  • Never use with real funds

Production Mode (Real Use)

node eth-wallet-production.js
  • Displays seed phrase ONCE for you to write down
  • Secure generation for real wallets
  • USE FOR ACTUAL WALLETS

📁 Project Structure

ethereum-wallet/
├── ethereum-wallet.html          # Web-based wallet interface
├── eth-wallet-generator.js       # Development wallet generator
├── eth-wallet-production.js      # Production wallet generator
├── eth-wallet-output.json        # Example output (development)
├── WALLET_DOCUMENTATION.md       # Comprehensive documentation
└── README.md                     # This file

🔐 Security Features

Cryptographic Standards

  • Curve: secp256k1 (Ethereum standard)
  • Algorithm: ECDSA (Elliptic Curve Digital Signature Algorithm)
  • Hash Function: Keccak-256
  • Key Derivation: BIP32/BIP39/BIP44
  • Derivation Path: m/44'/60'/0'/0/0 (BIP44 standard)
  • Entropy: 128 bits (12-word seed phrase)

Best Practices Implemented

✅ Cryptographically secure random generation
✅ BIP39 mnemonic seed phrases
✅ Standard derivation paths
✅ Client-side only (no server communication)
✅ No data collection or tracking
✅ Source-available and auditable

⚠️ Security Warnings

🔴 CRITICAL - Read Before Use

  1. NEVER share your seed phrase or private key with anyone
  2. Write seed phrase on paper - NEVER digital
  3. Loss of seed phrase = permanent loss of ALL funds
  4. No one can recover lost seed phrases
  5. Always verify addresses before sending large amounts
  6. Test with small amounts first
  7. Use hardware wallet for amounts over $10,000

🚩 Scam Red Flags

  • Anyone asking for your seed phrase is a scammer
  • "Support" requesting private keys
  • Urgent wallet verification messages
  • Free NFT/token offers requiring credentials
  • Emails claiming account suspension

📖 Usage Guide

Creating a New Wallet

Web Interface

  1. Open ethereum-wallet.html in browser
  2. Click "Create Wallet"
  3. IMMEDIATELY write down the 12-word seed phrase
  4. Store seed phrase securely (see Security Instructions)
  5. Click confirm to access wallet

Command Line

node eth-wallet-production.js

Follow the prompts to securely generate and backup your wallet.

Importing Existing Wallet

Web Interface

  1. Click "Import Wallet"
  2. Enter your seed phrase or private key
  3. Click "Import"

Command Line

const ethers = require('ethers');
const wallet = ethers.Wallet.fromMnemonic('your twelve word seed phrase');
console.log('Address:', wallet.address);

Sending ETH

  1. Click "Send" button
  2. Enter recipient address (or paste)
  3. Enter amount in ETH or USD
  4. Confirm transaction
  5. Wait for blockchain confirmation

Receiving ETH

  1. Click "Receive" button
  2. Copy your address
  3. Share with sender
  4. Monitor transaction on Etherscan

🔗 Network Configuration

Ethereum Mainnet

Sepolia Testnet

Layer 2 Options

  • Arbitrum: Lower fees, faster
  • Optimism: Ethereum-equivalent
  • Polygon: High throughput
  • Base: Coinbase L2

💻 Development

Requirements

  • Node.js 14+ (for CLI tools)
  • Modern web browser (for HTML interface)
  • ethers.js v5.7+

Installation

# Clone repository
git clone https://github.com/yourusername/ethereum-wallet.git
cd ethereum-wallet

# Install dependencies
npm install ethers@5.7.2

# Run development generator
node eth-wallet-generator.js

# Run production generator
node eth-wallet-production.js

Testing

# Generate test wallet
node eth-wallet-generator.js > test-wallet.json

# View output
cat test-wallet.json | jq

Customization

Change Derivation Path

// In eth-wallet-generator.js or eth-wallet-production.js
const config = {
    derivation_path: "m/44'/60'/0'/0/0", // Change this
    // ... other config
};

Adjust Security Level

const config = {
    security_level: 'advanced', // basic | standard | advanced
    // ... other config
};

🛠️ API Reference

Wallet Generation

const ethers = require('ethers');

// Create random wallet
const wallet = ethers.Wallet.createRandom();

// From mnemonic
const wallet2 = ethers.Wallet.fromMnemonic('seed phrase');

// From private key
const wallet3 = new ethers.Wallet('0x...');

Transaction Signing

// Sign message
const signature = await wallet.signMessage("Hello");

// Sign transaction
const tx = {
    to: '0x...',
    value: ethers.utils.parseEther('0.1')
};
const signedTx = await wallet.signTransaction(tx);

Balance Checking

const provider = new ethers.providers.JsonRpcProvider('https://cloudflare-eth.com');
const balance = await provider.getBalance(wallet.address);
console.log(ethers.utils.formatEther(balance), 'ETH');

🔒 Backup Instructions

Step 1: Write Down Seed Phrase

  • Use pen and paper (NEVER digital)
  • Write clearly and legibly
  • Verify each word spelling
  • Number the words (1-12)

Step 2: Secure Storage

  • Fireproof/waterproof container
  • Metal backup plates (Cryptosteel, Billfodl)
  • Multiple secure locations
  • Bank safety deposit box (optional)

Step 3: Test Recovery

  • Practice on testnet first
  • Verify you can restore wallet
  • Do BEFORE depositing large amounts

Step 4: Never Do

  • ❌ Screenshot or photograph
  • ❌ Store in cloud/email
  • ❌ Share with anyone
  • ❌ Type in password manager
  • ❌ Print on network printer

🌐 Integration Examples

DeFi Integration

// Connect to Uniswap
const uniswapRouter = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D';
// Use wallet to interact with DeFi protocols

ENS Integration

// Register ENS name
const provider = new ethers.providers.JsonRpcProvider('https://cloudflare-eth.com');
const walletWithProvider = wallet.connect(provider);
// Register yourname.eth

NFT Integration

// Interact with NFT contracts
const nftContract = new ethers.Contract(address, abi, wallet);
await nftContract.mint();

📊 Features Comparison

Feature Web Interface CLI Generator
Create Wallet ✅ ✅
Import Wallet ✅ ✅
Send/Receive ✅ ⚠️ Code Required
Balance Display ✅ ⚠️ Code Required
Buy/Sell Links ✅ ❌
Merchant Finder ✅ ❌
ATM Locator ✅ ❌
Offline Use ✅ ✅
Production Ready ✅ ✅

🤝 Contributing

Contributions welcome! Please:

  1. Fork the repository
  2. Create feature branch
  3. Test thoroughly
  4. Submit pull request

Code Style

  • Use ES6+ features
  • Follow security best practices
  • Comment complex logic
  • Update documentation

📄 Attribution

Hasky Labs - see LICENSE file for details

⚡ Roadmap

  • Hardware wallet integration (Ledger/Trezor)
  • Multi-signature support
  • Token (ERC-20) management
  • NFT (ERC-721/1155) display
  • Transaction history
  • Gas optimization
  • Mobile app version
  • QR code generation/scanning
  • Address book
  • Biometric authentication

📞 Support

  • Documentation: See WALLET_DOCUMENTATION.md
  • Issues: GitHub Issues
  • Security: Report vulnerabilities privately
  • Community: Ethereum Stack Exchange

🙏 Acknowledgments

  • Built with ethers.js
  • Following Ethereum.org standards
  • BIP39/BIP44 specifications
  • Ethereum Foundation guidelines

⚠️ Disclaimer

This software is provided "as is" without warranty. Users are responsible for:

  • Securing their seed phrases
  • Verifying all transactions
  • Understanding cryptocurrency risks
  • Following local regulations

Always verify code before use. Never trust, always verify.



Made with 💜 for the Ethereum community

Your keys, your crypto. Be your own bank. 🏦