- Describe hash functions with your own words.
Hash function is software algorithm that produce a unique digital fingerprint, a sort of computational digital signature. It’s the result of any given data inputted. Any altercation to the original data will give a different hash output. Each input data will result in a distinct hash signature. Hash functions is one way mechanism. Any output data cannot be used to reverse and recalculate the back to the original raw data. Only input data can generate the output hash.
- How are hash functions used in cryptocurrencies like bitcoin? (Try to research this on your own, we will cover this later in the course but challenge yourself and see if you can find information on this already now).
The 64 bit string of numbers and letters is a cryptographic result of SHA 256 is called the hash. A hash function is a type algorithm used in bitcoin called SHA 256, created by NSA, it’s function is sort of a universal translator, in which any data of any size can be input and translate them into 64 alpha numeric strings (can be 128 bit or 256 bits as well).
It’s imperative that the bitcoin blockchain is safe and secure. Each block on the blockchain is cryptographically linked together through the hash function, which unique and cannot be altered. If anyone attempts to alter it the current hash will change.
In order to Mine bitcoin successfully one needs to keep solving a cryptographically puzzle in while in competition with other miners for one’s block to be apprehended to the blockchain network. There are financial rewards and incentives the miners to mine.
- What does it mean when we say that hash functions need to be collision resistant? (We didn’t use the term “collision resistant” in the lecture, but you will easily find this on Google, we add this question intentionally to make you research information on your own, that’s how you learn best).
The hash functions need to be collision resistant in order to avoid to different inputs to produce the same output.