What exactly is a hash, and why can’t blockchain do without it?
Bitcoin addresses commonly use P2PKH and P2WPKH: the public key is first hashed with SHA-256, then with RIPEMD-160, producing a 160-bit public key hash. With a secure hash function, it is virtually impossible to recover the original input from its hash, or to find two different inputs that produce the same hash.
Proof of work works because hash outputs cannot be predicted in advance. The only way to find a hash that meets the difficulty requirement is to keep trying.
$BTC mining is essentially the repeated calculation of SHA-256 hashes until a result meeting the difficulty requirement is found.
#BTC
Bitcoin addresses commonly use P2PKH and P2WPKH: the public key is first hashed with SHA-256, then with RIPEMD-160, producing a 160-bit public key hash. With a secure hash function, it is virtually impossible to recover the original input from its hash, or to find two different inputs that produce the same hash.
Proof of work works because hash outputs cannot be predicted in advance. The only way to find a hash that meets the difficulty requirement is to keep trying.
$BTC mining is essentially the repeated calculation of SHA-256 hashes until a result meeting the difficulty requirement is found.
#BTC
