Mining is the activity of adding bitcoin transactions in a block and then add this block to the blockchain. Those who do this are called miners. The miners confirm all transactions by using their computing power to run the bitcoin algorithm which contains hash function.