Why Nostr? What is Njump?
2024-01-19 15:38:08

raw_avocado on Nostr: Did you know #Bitcoin used DOUBLE hashing everywhere? Why do we use ...

Did you know #Bitcoin used DOUBLE hashing everywhere?

Why do we use Double-Hashing(SHA256) in Bitcoin?
Where is it used?
What is the benefit?


SHA256 is designed & patented (released royalty-free), by the NSA.
Even though paranoia is a minimal requirement in cryptography, I don't think there are backdoors here.
Satoshi may have had his doubts.
Whenever hashing is performed in Bitcoin is done 2 times.


The most obvious use of SHA256 is when doing the PoW, but it is used a a LOT of other places.
All of the done 2 times.
The theory is that Satoshi though it prevents certain( length extension attacks) attacks.
But the reality is it does not really add any benefits.


Even though this fact became more obvious, the double-hashing trend continued with future things that were built.
It seemed it was easier to subscribe to the "superstition", rather than convenience people that hashing once is safe.


The "modern" changes use single hashing, and in some cases, hashing was dropped altogether.
The design choices made by Satoshis are consensus-breaking, which means that changing them would cause a fork, so they will probably stay like this forever.


Thanks for reading and like & repost, if you liked it. :D
Follow for more #Bitcoin facts like this every day!
And the #BitcoinFactOfTheDay was brought to you by BitBox !🇨🇭🔑
Author Public Key
npub1pu5pjm8dzqjtul8t84a3jsehh78jreadp297sqa3as98c5hfym0qu6pn0a