Bitcoin mining is a competition to add blocks, or secure financial records, to the blockchain ledger. Miners do this by racing to guess a 64-digit hexadecimal code in exchange for a hefty Bitcoin reward.