Bitcoin mining is a peer-to-peer process of adding data into Bitcoin’s public ledger in order to verify and secure a contract. Groups of recorded transactions are gathered in blocks and then added into the Bitcoin blockchain. Bitcoin mining requires a lot of resources to protect the network from the possibility of altering past transaction data by making all attempts in changing blocks inefficient for the intruder. Bitcoin mining is rewarded by the network through transaction fees and subsidies of new coins to encourage miners to spend their resources on mining new Bitcoin blocks. As Bitcoin mining is increasingly difficult, it has become impossible to attempt mining as an individual. As a result, most Bitcoin mining is being done by mining pools, which include several participants sharing their reward. Bitcoin mining is controversial, as it is a great tool for securing transactions but complicating the scaling of the network.
To cut through some of the confusion surrounding bitcoin, we need to separate it into two components. On the one hand, you have bitcoin-the-token, a snippet of code that represents ownership of a digital concept – sort of like a virtual IOU. On the other hand, you have bitcoin-the-protocol, a distributed network that maintains a ledger of balances of bitcoin-the-token. Both are referred to as "bitcoin."
The difficulty is the measure of how difficult it is to find a new block compared to the easiest it can ever be. The rate is recalculated every 2,016 blocks to a value such that the previous 2,016 blocks would have been generated in exactly one fortnight (two weeks) had everyone been mining at this difficulty. This is expected yield, on average, one block every ten minutes.
Nakamoto is estimated to have mined one million bitcoins before disappearing in 2010, when he handed the network alert key and control of the code repository over to Gavin Andresen. Andresen later became lead developer at the Bitcoin Foundation. Andresen then sought to decentralize control. This left opportunity for controversy to develop over the future development path of bitcoin.