And another quesion. Is this adresses also generating from the same space of numbers as P2PKH keys? I mean, that for example I have a private key
-snip-
For this key I have two P2PKH adresses 1AxSQFHqQ2nFUbZwcWSmHYrYumuQnK2nYG 12b9TofPY9R5gtKRUHBWjQrNP6mBYZuFqr. Can I generate also P2SH adress using this key?
The first address is generated from the uncompressed public key pair of that private key.
The next address is from the compressed public key.
More info here:
learnmeabitcoin.com/technical/public-key