32
4
According to the wiki specification of the bitcoin protocol, hashes are typically "computed twice". For example:
hello
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 (first round of sha-256)
9595c9df90075148eb06860365df33584b75bff782a510c6cd4883a419833d50 (second round of sha-256)
What is the reasoning for this? I imagine it somehow provides additional security, or protection against potential attack vectors, but I can't reason what those attacks might be.
7That may be what the Wiki says, but that is not actually what it does. A collision in the single version (
hash(x)==hash(y)) implies a collision in the double version. So the Wiki article is wrong. – mikeazo – 2017-01-05T18:34:22.890The wiki answer is wrong. See my answer below for a more thorough explanation – Zain Rizvi – 2018-04-10T20:17:33.353