- Describe hash functions with your own words:
Hash functions are unique inputs big or small that it will get back a unique and tailored output directly reflecting the input.
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).
From what Iāve gathered, Hash functions are used to encrypt each block thatās connected to the blockchain. Every following block generated and added to the chain is also encrypted. using SHA256 no matter the size of the input, a fixed output will be the final product. the last block generated has a timestamp along with all the same information from the previous block and ready for new input.
- 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).
From what Iāve gathered, the need to make sure the hash needs to be collision resistant means that no matter how many unique inputs are put in the hash function, that the output of them are rarely if ever equal. if more than one unique input has the same/shared output, there could be a serious flaw in the hash and that there are more options to break the algorithm besides brute force.
i hope iām write, open to corrections!