forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Feb 22, 2022, 05:57 pm

Title: checksum = SHA256(SHA256(prefix+data)) - why double hashing?
Post by: Bitcoin on Feb 22, 2022, 05:57 pm
checksum = SHA256(SHA256(prefix+data)) - why double hashing?

From 'Mastering bitcoin' -


checksum = SHA256(SHA256(prefix+data))

The 'data' is, for example, an address, which was calculated using SHA256 and then RIPEMD160.
Why do we need double hashing when calculating the checksum?


Source: checksum = SHA256(SHA256(prefix+data)) - why double hashing? (https://bitcoin.stackexchange.com/questions/110065/checksum-sha256sha256prefixdata-why-double-hashing)