Post
Topic
Board Development & Technical Discussion
Re: bitcoin-cli - how to get coinbase address from earlier blocks
by
nc50lc
on 17/06/2020, 03:39:30 UTC
What he meant is P2PK scripts are Pay-to-Public-Key (read it literally to understand  Wink).
You shouldn't derive the address based from that Public Key because even the owner wont be able to spend it using the "P2PKH" script even if he has the private key.

New widely used scripts are P2PKH short for Pay-to-Public-Key-Hash which is RIPEMD160[SHA256(Public Key)],
that's where addresses work.