What is the complexity of mining and hashrate in the Bitcoin network?


 What is the complexity of mining and hashrate in the Bitcoin network?

2022-09-28

For the first time in two months, the complexity of Bitcoin mining decreased by 2.14%. Mining is the process of mining new coins in networks running on the Proof-of-Work (PoW) consensus algorithm. In PoW networks, new coins are created only through mining.

Miners are nodes of the blockchain network that process, verify and add transactions to blocks. Miners also store a mempool of the blockchain — a record of all transactions that need to be added to the block. For this, they receive a reward in the form of new coins of the network.

To confirm transactions and add them to the block, miners solve special mathematical problems — cryptographic hash functions. To solve such problems, it is necessary to sort through all possible answers until the right one is selected. Therefore, the more powerful the miner's equipment, the more likely it is that it will find the solution to the problem first. Whoever finds the solution first will receive a reward. Mining is a lottery, but the more powerful the miner's computing equipment, the higher his chances of winning it.

Complexity and hashrate are two of the most important indicators of mining in the Bitcoin network. Let's look at them in more detail.

Mining complexity

The complexity of mining determines how difficult it is to find a solution to the hash function. The higher the difficulty, the more powerful the mining equipment should be. At the same time, the higher the complexity of mining, the more the network is protected from DDoS attacks and 51% attacks, in which attackers can gain control of the network.

The complexity of mining is a variable. It changes every 2,016 blocks — on average once every two weeks — and depends on the time spent generating the previous 2,016 blocks. The level of complexity should be such that the selection of a hash function solution takes about 10 minutes. If the block is generated faster, the complexity increases, if it takes longer, it decreases. Adjusting the complexity of mining helps to control the rate of issuance of new bitcoins.

The more miners there are in the network, the higher the complexity of mining. If miners are disconnected from the network, then this indicator decreases.

At the same time, the complexity of mining determines how much equipment should be connected to the network and what its optimal capacity is. The higher the complexity, the higher the miner's costs, and, as a result, the more expensive the cost of bitcoin mining and the higher the break-even price of the BTC (the cost below which miners sell the coin at a loss).

Mining complexity is measured in hashes. When bitcoin was launched in 2009, it was about 1 hash — a simple laptop was enough to mine coins. Now this indicator is already measured in trillions of hashes.

The very complexity of mining depends on:

• network hashrate (the capacity of all mining equipment),

• time spent generating previous blocks,

• energy efficiency of mining equipment.

Also, the complexity depends on the price of bitcoin: the more expensive the coin, the more miners want to mine it and the higher this indicator.

Hashrate

Hashrate is the total computing power of all mining equipment connected to the network. Simply put, this is the mining speed, which is why it is also called the hashing speed. It reflects the amount of resources spent on maintaining the network and mining new bitcoins.

Hashrate is measured in hashes per second and reflects how many calculations per second can be performed. For example, a network hashrate of 1 EH/s means that 1 quintillion (18 zeros) of hash function calculations occur in it every second. About the same amount of bitcoin hashrate was 5 years ago.

Hashrate indicators are constantly changing. They can fluctuate by several percent during the day. But these fluctuations do not necessarily mean that a huge number of miners join the network or disconnect from it. The reason is that the hashrate cannot be calculated accurately and determined in real time: it is estimated based on publicly available data about bitcoin, including network complexity indicators. Therefore, when they talk about hashrate indicators, they mean the weekly average.

The hashrate value depends on the power of the mining devices. If the hashrate is growing, it means that new miners are connecting to the network — it will take less time to generate a block, the complexity of mining is growing. If the hashrate drops, the miners are disconnected — the time spent on the block increases, the complexity decreases.

The level of hashrate is very important to miners: it directly determines the profitability of mining. The higher the hashrate, the lower the profitability of each device. Also, the profitability of mining is affected by the cost of electricity, the power of equipment and the price of bitcoin itself.

Hashrate is an important indicator for evaluating the security of the Bitcoin network. The higher it is, the more difficult it is for attackers to carry out attacks.

In general, the complexity of mining and hashrate are important indicators of the state of the Bitcoin network. But for the most part, they only reflect the general trend and the state of the bitcoin market, and it cannot be said that they affect it.