user97819: I recently started a Blockchain course and came across the electrum software. While going through the list of wallet addresses and associated private keys I found that  'p2pkh' is placed at the start of every private key, why is that?


user7272: A single private key can lead to different addresses, depending on the script it is used in - These include p2pkh, p2wpkh, p2sh-p2wpkh.
Electrum prepends the script type to the private key during export and import so that it knows which address to derive and check for outputs on.

97819: <p>I recently started a Blockchain course and came across the electrum software. While going through the list of wallet addresses and associated private keys I found that  'p2pkh' is placed at the start of every private key, why is that?
<a href="https://i.stack.imgur.com/ktN7j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ktN7j.png" alt="enter image description here"></a></p>
 7272: <p>A single private key can lead to different addresses, depending on the script it is used in - These include p2pkh, p2wpkh, p2sh-p2wpkh.</p>

<p>Electrum prepends the script type to the private key during export and import so that it knows which address to derive and check for outputs on.</p>
