Basics of hash function and their usage in cryptocurrencies