1 A hash function is any function that can be used to map data of arbitrary size to fixed-size values.
The values returned by a hash function are called hash values,
hash codes, digests, or simply hashes.
2 In the bitcoin protocol, hash functions are part of the block hashing algorithm which is used to
write new transactions into the blockchain through the mining process.
3Collision resistance is a property of cryptographic hash functions: a hash function H is collision resistant if it is
hard to find two inputs that hash to the same output;
that is, two inputs a and b such that H(a) = H(b), and a â b