• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

checksum = SHA256(SHA256(prefix+data)) - why double hashing?

Started by Bitcoin, Feb 22, 2022, 05:57 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

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?