
Hash software essentials
Reading time: min
Content List
The requirements you need to know before creation your own hashing algorithm specially for your blockchain which also means crypto currencies
There certain rules and requirements for a hashing algorithm in order to be useful
The first concept that will help you through understanding these rules, is to imagine a fingerprint:
- Time independent(& deterministic)
- A finger print that changes every time, doesn’t help in identifying the person, since it’s always something new
- So we want the person or node to be identified and unique, from other nodes or person
- One way
- You can’t figure details about a person just by their fingerprint, but you can get a fingerprint by the person
- So you do not want the content of your node to be decodable through the hash, but you do need the content to be hashed
- Fast computation
- Time is very important here, and you don’t want the hashing take a lot of time
- The avalanche effect
- Even by the tiniest change possible in the content, the hash has to be completely different, compared to the previous state
- Collisions
- collision means the situation of dealing with two of the same hash
- Although it is possible just like in fingerprints, to find two of the same, but since it is very unlikely, it’s ok
- But what if it was artificial, which would be meant to attack with a certain information that the attacker has got, that you got to manage and prepare
There are many examples already such as
- SHA2
- SHA256
and many more
Was this page helpful?
What was the most helpful point of this page for you?
Thanks for your cooperation!
Excellent post. I definitely appreciate this website. Thanks!