Bitcoin mining is how new bitcoins enter into circulation. It's also a critical component of the security of the blockchain ledger.