HD Wallets और Derivation Paths की व्याख्या (BIP44)
विषय सूची
जब आप cryptocurrency wallet set up करते हैं और 12-word seed phrase प्राप्त करते हैं, तो वह single backup आपको wallet द्वारा कभी भी बनाए जाने वाले हर account तक पहुंच देता है --- Bitcoin, Ethereum, Solana और किसी भी अन्य supported chain पर। यह संभव बनाने वाले mechanism को HD wallet कहते हैं, और इसके addresses की system derivation paths द्वारा governed है।
यह गाइड समझाती है कि HD wallets एक seed को असीमित keys में कैसे बदलते हैं, m/44'/60'/0'/0/0 जैसे derivation path का वास्तव में क्या मतलब है, और path सही रखना wallets या blockchains के बीच move करते समय क्यों मायने रखता है।
HD Wallet क्या है?¶
HD का मतलब है Hierarchical Deterministic। यह term BIP32 से आता है, 2012 में प्रकाशित एक specification जो define करती है कि single root से cryptographic key pairs का tree कैसे derive करें।
Hierarchical का मतलब है keys tree structure में organized हैं --- parent key child keys produce कर सकती है, और वे children grandchildren produce कर सकते हैं।
Deterministic का मतलब है process repeatable है। Same root (master seed) दिए जाने पर, standard follow करने वाले हर wallet में हर बार same tree of keys produce होता है।
HD wallets से पहले, हर new address के लिए अलग random private key generate और backup करनी पड़ती थी। HD wallets ने यह समस्या समाप्त कर दी। एक बार seed backup करें, और wallet भविष्य में derive करने वाली हर key पहले से उस backup में covered है।
Tree का root BIP39 seed phrase से आता है। Mnemonic PBKDF2 के माध्यम से 512-bit binary seed में convert होता है (जैसा BIP39 Explained में वर्णित है)।
m/44'/60'/0'/0/0 का विश्लेषण¶
derivation path tree में एक specific key identify करने वाला address है। m/44'/60'/0'/0/0, standard Ethereum address के लिए first path, decode करें:
m / 44' / 60' / 0' / 0 / 0
│ │ │ │ │ │
│ │ │ │ │ └── Address index (0 = पहला address)
│ │ │ │ └────── Change (0 = external/receiving, 1 = internal/change)
│ │ │ └─────────── Account (0 = पहला account)
│ │ └───────────────── Coin type (60 = Ethereum)
│ └──────────────────────── Purpose (44 = BIP44 standard)
└──────────────────────────── Master key (tree का root)
m --- Master key। हर derivation path यहां से शुरू होता है।
44' --- Purpose। 44 indicate करता है कि यह path BIP44 standard follow करता है। Apostrophe (') इसे "hardened" derivation mark करता है।
60' --- Coin type। हर cryptocurrency को SLIP-44 द्वारा एक number assign किया जाता है। Ethereum 60 है। Bitcoin 0 है। Solana 501 है।
0' --- Account index। आपके wallet में अलग wallets जैसे। Account 0 default है।
0 --- Change level। Bitcoin के UTXO model में, 0 external (receiving) addresses और 1 internal (change) addresses। Ethereum change addresses same तरीके से उपयोग नहीं करता, लेकिन compatibility के लिए level preserved है।
0 --- Address index। यह final number नए addresses produce करने के लिए increment होता है।
BIP44 और SLIP-44 Coin Types¶
BIP44 ने ऊपर दिखाई derivation path structure standardize की। SLIP-44 coin type numbers की registry maintain करता है। कुछ common assignments:
| Coin Type | Blockchain | Default Path |
|---|---|---|
| 0 | Bitcoin | m/44'/0'/0'/0/0 |
| 2 | Litecoin | m/44'/2'/0'/0/0 |
| 60 | Ethereum (और EVM chains) | m/44'/60'/0'/0/0 |
| 144 | XRP | m/44'/144'/0'/0/0 |
| 195 | Tron | m/44'/195'/0'/0/0 |
| 501 | Solana | m/44'/501'/0'/0' |
ध्यान दें कि Avalanche C-Chain coin type 60 (Ethereum's type) उपयोग करता है क्योंकि उसका C-Chain EVM-compatible है। Polygon, Arbitrum, Optimism और Base पर भी यही लागू होता है --- वे सभी m/44'/60'/0'/0/0 उपयोग करते हैं।
अलग-अलग Chains, अलग-अलग Paths¶
Bitcoin Paths¶
Bitcoin कई address formats से evolve हुआ है:
| Standard | Path | Address Type | Prefix |
|---|---|---|---|
| BIP44 | m/44'/0'/0'/0/0 |
Legacy (P2PKH) | 1... |
| BIP49 | m/49'/0'/0'/0/0 |
Nested SegWit (P2SH-P2WPKH) | 3... |
| BIP84 | m/84'/0'/0'/0/0 |
Native SegWit (bech32) | bc1q... |
| BIP86 | m/86'/0'/0'/0/0 |
Taproot | bc1p... |
अगर आप seed restore करते हैं और funds नहीं दिखते, तो wallet शायद गलत derivation path scan कर रहा है। Bitcoin address formats detail में देखने के लिए Crypto Address Formats Explained पढ़ें।
Solana Paths¶
Solana secp256k1 के बजाय ed25519 उपयोग करता है, इसलिए derivation structurally different है। Standard path m/44'/501'/0'/0' है। Detailed walkthrough के लिए Solana Wallet Generation Guide देखें।
Step-by-Step Key Derivation¶
Seed phrase से usable Ethereum address तक पूरी derivation कैसे काम करती है:
Step 1: Mnemonic से Seed¶
12-word mnemonic PBKDF2-HMAC-SHA512 से 2,048 iterations और salt "mnemonic" के साथ process होता है। Output 512-bit binary seed है।
Step 2: Seed से Master Key¶
512-bit seed HMAC-SHA512 से "Bitcoin seed" key के साथ process होती है। बाएं 256 bits master private key बनते हैं। दाएं 256 bits master chain code बनते हैं।
Step 3: Master Key से Child Keys¶
Master key से शुरू करके, derivation path का हर level child key derivation (CKD) function perform करता है।
Step 4: Private Key से Public Key¶
Final level पर, child private key elliptic curve multiplication से public key में convert होती है।
Step 5: Public Key से Address¶
Public key hash होकर blockchain address produce करती है। Ethereum के लिए Keccak-256 से hash होती है, और आखिरी 20 bytes 0x prefix के साथ address बन जाते हैं।
SafeSeed के Ethereum Address Generator या Bitcoin Address Generator से यह पूरी process action में देखें।
यह Practically क्यों मायने रखता है¶
- Different software में wallet restore करना. सुनिश्चित करें derivation path match करता है। Same seed plus different path equals different addresses।
- Multiple chains access करना. आपकी seed phrase पहले से Polygon, Arbitrum और अन्य EVM chains cover करती है।
- Missing funds debug करना. अगर Bitcoin seed restore करने पर balance नहीं दिखता, BIP44, BIP49 और BIP84 paths toggle करके देखें।
- Specific purposes के लिए addresses generate करना. Account index increment करके, same seed phrase से logically separate wallets बना सकते हैं।
Derivation path system वह है जो single seed phrase को multi-chain, multi-account wallet में transform करता है। एक बार समझ लें, तो आप confidence के साथ wallets, chains और address formats के बीच move कर सकते हैं।