What is mining in blockchain?
Understand the consensus of blockchains and how blocks are linked together using proof of work
So far, we have talked about consensus mechanism and little bit about Proof of Work, Now lets see how everything fits together through mining, in a distributed peer to peer network, everyone has the same privileges, so how do we ever confirm that transaction is indeed now confirmed. For example, lets say Alice sends some currency like bitcoin to bob, how does bob know that alice hasnt also been sent this to charlie? this is known as a double spending problem, since there isnt a central entity like a bank to keep track of transactions, people can double spend what they have and this is the problem bitcoin solved in a distributed way.