5
1
- what is difference between Master Public Key (MPK) and Public Key?
- what is difference between Master Private Key and Private Key?
- should I use master public key (MPK) when generating address or public key?
5
1
9
With "Master public key" you probably refer to deterministic key derivation after bip32.
The correct term is "Master extended private key" (acronym xpriv) and "Master extended public key" (acronym xpub).
The acronyms are "xpriv" and "xpub" because the base58 check prefix results in those 4 characters for a mainnet extended pub/priv key.
The difference between a extended public key and a normal public key is that it also contains information about the bip32 chain (deterministic chain/hierarchy).
It contains:
A normal private- or public-key only contains the last element (32/33byte [public|private]key).
A (simplified) example how you would generate addresses:
m/)m/0')m/0') and derive the first extended private key on the next level (m/0'/0).m/0'/0) to generate the extended public key and take out the "normal public key" (33 bytes) and encode a P2PKH address (or P2WPKH, multisig, etc.) out of it.