Bitcoin Mining: A Closer Look Under the Hood

March 13, 2017 - Bitcoin
Bitcoin Mining: A Closer Look Under the Hood


Bitcoin mining is an integral part of the cryptocurrency’s infrastructure. The operation helps process transactions, creates new bitcoins and submits the validated transactions to the publicized and immutable distributed ledger.

Currently, the network’s hashrate is running at a phenomenal 3,418,031,852 GH/s, strengthening the bitcoin architecture more so each and every day. But many newcomers hearing about bitcoin for the first time wonder, How does bitcoin mining actually work?


Bitcoin Mining: How it Works

Bitcoin mining requires the use of a specialized mining computer and software to solve mathematical equations. Miners consist of individuals or organizations running this software who compete with each other to solve these puzzles.

Bitcoin Mining: A Closer Look Under the Hood
A mining device and cgminer software.

When people transact with bitcoin, all of the network’s nodes share information about new transactions in a transaction queue called a mempool. Blocks of transactions are not accepted into a blockchain’s ledger until miners perform a hash function solving the puzzle, which in turn verifies the legitimacy of transactions contained in that specific block. This means miners can try and mine blocks of transactions by hashing (attempting to solve the equation) from a string of numbers and letters.

Bitcoin Mining: A Closer Look Under the Hood
An example of a hash function. Hash functions are cryptographically irreversible. Inputs can be any length, but output strings are always predetermined. If any changes are made to the sentence such as— Visit News for the latest bitcoin “articles”— the output string of alphanumeric digits would also change.

A miner solves the problem with another string of random digits by computing a lucky hash result which is followed by a reward of 12.5 bitcoins and all the transaction fees as well. Hashing requires significant processing time and resources to solve these problems. Deciphering the cryptography in a hash function is not easy and requires brute computational force. All of the miners simultaneously trying to solve these problems create the network’s hashrate. Once a puzzle is solved by the miner the result is called proof-of-work.

The mathematical puzzles solved are impossible to predict without overcoming the difficulty of finding a particular hash value. Mining rigs or devices that mine bitcoins continuously try and solve these puzzles over and over until miners get the correct answer.

The process not only incentivizes miners monetarily, but also ensures transactions are validated correctly. Every block also hosts the hash of the previous block mined before it. This, in turn, makes sure the system maintains an accurate chain of information which essentially becomes tamper resistant.

Let’s Recap:

Bitcoin mining can be hard to understand when you’re first introduced to the digital currency. But, once you get a grasp of the concept, it’s not so hard to understand the symbiotic relationship of mining and securing the network.

A more in-depth look at how mining works can be found here at our Wiki page.

Images courtesy of Shutterstock, and