Post
Topic
Board Beginners & Help
Re: beginners. Understanding bitcoin private key
by
pooya87
on 19/01/2021, 08:47:15 UTC

k(Private Key) ==> Elliptic Curve Cryptography ==> K(Public Key) ==> SHA256 ==> bitcoin address.

Hash algorithm used in addresses (or more accurately in the standard and most common scripts) is usually HASH160 which is RIPEMD160 hash of SHA256 hash of the public key.
It is true for P2PKH, P2WPKH and it is also the same for P2SH (hash of the script).
The only place a single SHA256 is used is in P2WSH (hash of the script not pubkey).