An interactive web application built with Next.js to explore how different Hierarchical Deterministic (HD) wallets (like MetaMask, Phantom, OKX, and Coinbase Wallet) derive addresses across multiple networks using various BIP-44 derivation paths.
This tool helps developers and users understand the relationship between a single mnemonic phrase (seed) and the resulting public addresses on different chains. This doubles a tool for identifying whether or not an address will carry over to another provider given derivation paths may differ.
- Multi-Chain Derivation: Support for Ethereum (ETH), Bitcoin (BTC), Solana (SOL), Aptos (APTOS), Sui (SUI), and Cosmos (COSMOS).
- Bitcoin Address Types: Generate Legacy (P2PKH), Nested SegWit (P2SH-P2WPKH), Native SegWit (P2WPKH), and Taproot (P2TR) addresses.
- Wallet Simulation: Compare derivation logic for:
- MetaMask (ETH focus)
- Phantom (ETH, SOL, SUI, BTC)
- OKX Wallet (ETH, SOL, SUI, BTC)
- Coinbase Wallet (ETH, SOL, BTC)
- Interactive UI: Real-time generation as you change indices or derivation paths.
- Custom Paths: Advanced mode for entering arbitrary derivation paths (e.g.,
m/44'/60'/0'/0/0).
The application uses standard cryptographic libraries (ethers, bip39, bitcoinjs-lib, etc.) to:
- Validate and convert a mnemonic phrase into a seed.
- Derive the "Master Key" using BIP-32/BIP-44 standards.
- Apply specific derivation paths to produce public keys.
- Encode public keys into network-specific address formats (e.g., Bech32 for Cosmos/BTC SegWit, Base58 for Solana).
- Framework: Next.js (App Router)
- Cryptography:
ethers.js,bip39,bitcoinjs-lib,tiny-secp256k1,ed25519-hd-key - Styling: CSS-in-JS (JSX Styles)
NEVER enter a mnemonic phrase that holds real assets into ANY third-party website. This tool is for educational and development purposes only. Always use a freshly generated "test" mnemonic for exploration.
There are no keyloggers here :)
- Node.js (v18 or later)
- npm, yarn, or pnpm
-
Clone the repository:
git clone <your-repo-url> cd hd-wallet-derivation
-
Install dependencies:
npm install
Start the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
src/app/page.js: The main interactive dashboard.src/app/api/btc-address/: Server-side API for complex Bitcoin address generation.src/app/api/cosmos-address/: Server-side API for Cosmos address hashing and encoding.