hash functions math process that takes a unique input of any size that gives a unique output of a fixed size.
hash functions are used in bitcoin to help it remain decentralized then making it secure.
hash functions need to be collision resistance because the algorithm will be vulnerable to collision attacks which will threaten the overall security of the blockchain.