Homework on Hash Function.
Describe hash function with your own words.
- To simply put a Hash is always a one way function. This means each unique input will give you a unique output. You will not be able to find out the input of the hash function through the output.
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 bitcoin hash function is used through mining, transactions and also private and public keys. This property is crucial in bitcoin mining. To successfully solve a block, miners try to combine all of the inputs with their own in such a way that the resulting hash starts with a certain number of zeroes.
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)
- In Hash Function a collision resistant means that it very difficult to find two different input that would result to having the same output in a hash Function.