Master Private Key (MPK) comes from Seed generated from Hierarchical Deterministic (HD) Wallet.
from MPK we can generate Million public (
BTC address) and private key. when still curious about detail, you have read the source: A, B, C.
MPK is Important, you can restore your wallet using it. I don't exactly understand how to get MPK from various BIP39 Wallet. But you can get MPK by running
https://github.com/iancoleman/bip39/releases offline. Just Import
12 or 24 mnemonic seed into
BIP39 Mnemonic box, scrolling down Html and you will find
BIP32 Root Key and
Account Extended Private Key.
Example:BIP39 24 Mnemonic Seedboard produce disorder rib behave harbor border pudding radar hip episode loud energy attack friend idle badge click arctic bridge real rotate link choose
BIP32 Root Keyxprv9s21ZrQH143K413FYiGja2j6ErRSWgZdVfopfqgaNSEJuDkgauSVvw2oCRAXEV6hsi4f9TTxZ5TNNky4zb5vCewdACPnw3XNLKcTzJpMK3U
Account Extended Private Keyxprv9ymVnwPJTZpaUsFLPnSSpqwCqWZgW3ddFhbnwEbQBK2xkjsstMx2dpF5jhemPXaHhSj7mx3bzAVPRb66aewsDQt8qM7nPunfiLRSYS3mwXX
Public key (BTC address)1W8QEako617xt2R1F6jQqx1k6qF25uQAB
14LrwCWqR4nYzLzDaDjgURtXfcnAJGyiTe
17a4wdA4QmNKm2Q82waWehQuWTDuTBJd3D
16YrfyvfzzpXAQ188TVdbR2MzD1sp8neVZ
19L8MKgSDHSHFKhmJ7majiZ1AH1iPSTuC6
1FZ8sJkerQrc8PNPgWJ7zBaaw2k1Hwvr2g
1NiBBgWt4yfPL6M5EcRbQa48mjLYv3Um3c
1BuVM5skScCLngMhnusbMqytdb2JuQHM1f
19UWDgvdhPBdsm54HbGyQwdyWvdtNWK9js
1NiHRRYgQPHKNKrEJMsSMLLQsfXQy7C3HQ
18ffV1ErZQWbEMb5XBXWLvwn2JNiJd1oBi
Okay, Let's experience, close Iancoleman Html, and open it again by import
BIP32 Root Key to BIP32 Root Key box, Are you got the same public key? Of course yes. we will get the same
BTC Address. But can we get the same address by importing
Account Extended Private Key into the BIP32 Root Key box?, of course, yes, but you need Clicking specific path -
BIP32 tab, The BIP32 derivation path and extended keys are the basis for the derived addresses.
Okay, Let's experience by importing BIP32 Root Key into electrum wallet. Create new wallet, on keystore box ticking
use master key,
you will get address:1L1oES4VVTVPhzC1ELDpyRH1CB7x13eiDY
1M5xHAJTKGFkz9Lh7sMoURLLbBjmKcDwPq
16mjp7TkWRYXiT4f1MvgpwoPYpBNnm1d2L
1Nh63pNWKmtP8mLz64SbJHxWskhumHJxLV
12xZpEEJUgPQFF7Gef4eCo7RupFQHrq9jr
159KmH1wZoUYVnpeqyyJtYhccjHxQWGgbH
16LSzyxnfhxNvTJkn9EYpZ5EwBM4msyKRi
126nQtKwr4Ln4YmyvFBd9C8TDH3DzWuYVb
1GjrMQhvH9x9JGSXkzWU1vo6JdVXkQFsWw
1PPTfF7TfqBv1H59hkHXMBNDh5AGKJXmXd
1L9BNXffxA39Fhi5VvgxoRifCG2NZ7eswq
It will get the same address if importing it into Iancoleman HTML to BIP32 Root Key box and select BIP 32 in Derivation Path.
How to get the same address when importing MPK into electrum?, by importing
Account Extended Private Key into Keystore box when begin to create a new wallet.
Can we import electrum MPK? sure. I did a test. how to get MPK?, go to console and write
getmasterprivate()Electrum Seedeast alpha glare jealous federal rail bless staff banner unfold crystal excite
Master Private KeyzprvAZrVEE8P7AUEdxJZFPgVz9cuDbYackc5Gnk6F8ekEMFdCDa7icALWk9edVxT3hm2gqF8sqEEWR8vzaxnWAGqi6wUbh8Hpi5Ng7R8xXRpme8
Public key (BTC address)bc1qymy0auqu48yzd9aqswfzu753txu6rsux6epm0h
bc1qfxrjyq78z7puvcjegfx957vldhfdawjzwcsdv9
bc1qv2g455q2cfwn7nzzp0h7qd5cg73wzh2u3z4jyy
bc1qxhp3eukw9qt9ptvf6rfgem4hy90xtrxy68kmaj
bc1qx3mc6390qud2uyn8tkyja7a7hy9we82vjrt9yy
bc1qysz4gtl3jr0jsyrv4xquc44nfscff94vqwvkkk
bc1q7yxjm6ed5ck5gty35x4epzep7rfjqj43h97tcr
bc1q3aayrtmgseugru39cj7fwhaqjak22lwstm7thp
bc1qdzfcxymmy6fwkcghj5m754elj2myk80pmzkfzs
bc1qnwrwky7gdm8lwv0w94sxj86kg5ghfk63hsu6nq
bc1qygmtr6x0a62yc3nrys2t575v8d2256yuu397e4
By importing MPK into
BIP32 Root Key in iancoleman html then select
BIP141 on derivation path tab, choose P2PWKH
You will get the same address as an Electrum wallet.
Okay, this guide may be difficult when reading either, you must practice using that tool and create your own experience using it. because
Experience Is The Best TeacherCreating this guide, beginners do not worried if you lost a wallet and still keeping MPK only, but it's more technically difficult to recover an account. So, please keep you 12 or 24 seed in a safe place you will be saved.
A.
https://learnmeabitcoin.com/beginners/keys_addressesB.
https://bitcointalk.org/index.php?topic=19137C.
https://github.com/bitcoin/bips/blob/master/bip-0032.mediawikiD.
https://ethereum.stackexchange.com/questions/40821/difference-between-account-extended-private-key-and-bip32-extended-private-key