Bitcoin
$18,315.53 -0.34%
BTC · 3w

Why does everything in bitcoin use double hash (HASH256) except BIP141?

UPDATE: Answered on [twitter](https://twitter.com/pwuille/status/1319899568905965568) *** Going through the protocol, it seems like everything uses a double hash (`OP_HASH256`, `OP_HASH160`), except [BIP-141](https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki#p2wsh) which uses the single hash (`OP_SHA256`) function. Any reason why double-hash seemed to be agreed upon everywhere in the protocol, but was not deemed necessary for P2WSH or BIP16-P2WSH?
Go to self.Bitcoin
No posts found
Recent news
No posts found