1. Describe hash functions with your own words
Hash functions have two distinct characteristics that highlights them :
- Each unique input produces a unique output. That output is the digital fingerprint of the input.
- Hash functions are unilateral, meaning that you can only go from Input to Output and not the other way around. Outputs cannot be reversed to produce the original inputs.
2. 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).
In cryptocurrencies like Bitcoin, hash functions are used to encrypt the information (transactions) processed through the blockchain. The network of miners get rewarded for solving the transactions (represented through hash functions) in the blocks.
3. 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).
Collision resistance is a property of a hash function. Essentially, it means that it is infeasible (not exactly impossible, however) to get identical outputs with multiple differing inputs.