What is cryptocurrency mining?
We explain how virtual currencies such as Bitcoin and Ether are actually made
The popularity of cryptocurrencies over the past decade has almost been as turbulent and volatile as their monetary valuations. Going through long periods of being considered high-value assets have been offset by anxious times for investors as their values have frequently plummeted, usually tied to prominent criticism, the threat of regulation, or other global events such as the pandemic.
The mining of these cryptocurrencies is how new ‘coins’ are made on some blockchains. Popular cryptocurrencies like Ethereum are now in the process of switching to a model that does not require energy-intensive processes, like the ones involved in mining Bitcoin, and are ultimately much more energy-efficient.
Still, the idea of cryptocurrency mining is still very much in the thoughts of those who believe in the technology that underpins digital currencies. With the right hardware, anyone can essentially ‘print’ their own money and that alone is enough to intrigue anyone.
Simple definition of cryptocurrency mining
In the simplest terms, cryptocurrency mining involves completing ‘work’ on the blockchain’s behalf. The blockchain is the platform on which all the trading of cryptocurrencies is completed and it’s also where new coins can be created. There is one blockchain for each type of cryptocurrency and each of them have a finite number of coins that can be created.
One way of visualising it is by imagining a group of people coming across a giant block of gold. There is only one block and it is only so big, and the only way for people to take some gold for themselves would be for them to get to work and chip away at it until they each get a nugget. This is essentially what cryptocurrency mining is - trading energy or computational power in return for a reward.
There are likely still to be some questions that remain unanswered but the comprehensive guide below explains everything you could ever want to know about cryptocurrency mining, complete with all the context needed to understand the technical details.
How is cryptocurrency mining related to the blockchain?
Digital tokens like Bitcoin can’t be printed like money, and the only way to generate new coins is through the process of mining, although the term 'mining' is perhaps misleading. It stems directly from the specific blockchain that powers each individual cryptocurrency, from Bitcoin to Ether.
Each particular distributed public ledger supports the operation of a corresponding cryptocurrency and records all transactions across the extent of its network. For our guide on how blockchain technology works in more detail, check out our explainer.
The blockchain records every time cryptocurrency is traded, with these records being compiled into an endless line of blocks that are all connected. For transactions to be validated, they will need to be verified by other users on the network. This process is key to the way that cryptocurrencies work and avoids instances whereby individuals try to initiate several transactions using the same units.
Cryptocurrency mining is effectively a process of rewarding network users with Bitcoin for validating these transactions.
How are new coins mined?
When a slew of transactions is assembled into a block, it is then appended to the blockchain. However, in order to be rewarded with Bitcoin, a ‘mining’ user, or ‘miner’, needs to perform two tasks: validate 1MB worth of transactions as well as be the first to find out a unique 64-digit hexadecimal number - also called a hash.
Injecting simplicity, speed, and innovation in core insurance processes
The case for Claims ManagementFree Download
Similarly to the blockchain, the network user, or 'node', also holds a record of every transaction. As it is notified, the transactions are validated with a series of checks in order to make sure they are legitimate. The checks include scanning the transactions for a unique cryptographic signature, which is created at the beginning of the process, and confirming whether it is valid or not.
In order to be within a chance of securing new Bitcoin, every miner seeks to validate 1MB worth of these transactions. If successful, they then also have to solve a numeric problem which is otherwise known as 'proof of work'. Users who are able to triumphantly generate the correct 64-digit hexadecimal number, or 'hash', which is either less than or equal to the target hash associated with the block, are then remunerated with Bitcoin.
Due to the difficulty of the task, the only feasible way to find the right hash is to calculate as many combinations as possible, and then wait until a match is found.
In order to stand a chance in being the first one to guess a hash, a user needs to have a high hash rate, or hash-per-second, and the more powerful setup, the more hashes a user can sift through - such are the high computing costs of mining. In order to visualise it, imagine a competition where contestants have to guess the correct weight of a cake. Participants have an unlimited number of guesses and the first one to submit the correct weight wins. In this competition, the winner is most likely to be the contestant who is capable of making the most guesses at the fastest rate.
Proof-of-work vs. proof-of-stake
Different blockchains operate on different models, and the advantages and disadvantages of each have long been discussed by cryptocurrency enthusiasts. Ethereum recently made the decision to move to a different, more modern and greener type of blockchain, but the complexities involved in doing so have resulted in delays to the switch.
Bitcoin’s blockchain uses a proof-of-work model, which involves computers dedicated to performing calculations on behalf of the blockchain and then earning a Bitcoin reward. This model has been heavily criticised for its energy use, mainly because the system incentivises the formation of large numbers of powerful computers that are able to act as one and effectively muscle other miners out of the way and take the rewards for themselves.
Ethereum’s upcoming proof-of-stake model aims to eliminate both the high energy use and dominance of ‘mining farms’. It assigns computational power used for cryptocurrency mining at random and it promises to drastically reduce energy since mining farms will not be able to secure their previously dominant share of mining. In fact, Ethereum predicts moving to proof-of-stake will cut its energy use by 99%.
The limits of cryptocurrency mining
What this means is that mining for cryptocurrencies is a matter of competing in a highly competitive race against other participants, all hoping to land the winning ticket and grab a payout.
Business value on AWS
Four key dimensions that will help to build a comprehensive business case for the cloudFree Download
However, that’s not the only challenge you will face if you attempt to mine yourself. The difficulty of calculating each hash also increases artificially in order to maintain a steady flow of newly created blocks. This means that as the block count rises, so too does the processing power required to solve each calculation, and therefore the harder it is to mine as a hobbyist. There’s also the issue of hard limits on total circulation. For example, within the Bitcoin blockchain, there will only ever be 21 million coins created in total, a deliberate design to prevent inflation.
In the early days of each cryptocurrency, it’s perfectly possible for everyday users to participate in mining, but given the issues outlined above, the maturity of cryptocurrencies such as Bitcoin means that it’s no longer possible to use standard PCs. The complication of the calculations involved, coupled with the sheer number of other people on the network, means that Bitcoin mining can now only be done with large scale processing ‘farms’ – multiple specialised GPUs working in tandem on a 24-hour basis.
In fact, these days it’s almost impossible to create a return on investment from mining as the energy costs required to power GPU farms typically outweigh the value of the currency itself. Either that, or you’ll be forced to funnel the majority of what you earn into the running and maintenance of the equipment.
As the Bitcoin hype is more or less fully nestled in the wider public consciousness, organisations have invested increasingly considerable sums into it, effectively industrialising cryptocurrency mining. Large warehouses packed to the brim with floor-to-ceiling racks of expensive graphics cards, working towards the sole aim of mining new units of Bitcoin, Ether, Litecoin, and so on, have become the norm.
The Bitcoin network – to add some context – processes 5.5 quintillion hashes per second, which means that unless you have the equipment capable of processing a massive quantity of calculations in a very short space of time, the chances of you being able to compete with the more industrial operations are minuscule.
For this reason, miners often band together and pool resources to maximise their chances of profiting from the cryptocurrency mining game – creating 'mining pools' – sharing their power, as well as any returns their efforts may generate between them.
The legality of cryptocurrency mining
The legality of cryptocurrency mining differs across countries, and bans are usually imposed for one of two reasons. The first is usually linked to a state’s approach to cryptocurrency overall, meaning that if a government is against cryptocurrency trading, it will likely outlaw mining as well.
An example of this is China, where the State Council Financial Stability and Development Committee banned all cryptocurrency trading and mining in 2021 due to its alleged links to illegal activity. Chinese banks and financial institutions are also prohibited from providing cryptocurrency-related services – a move that sent the price of Bitcoin tumbling by roughly 30% in May 2021. Prior to the crackdown, China was home to roughly 65% of the world's cryptocurrency mining. Today, the country’s share of global Bitcoin mining has fallen to effectively zero, according to the Cambridge Bitcoin Electricity Consumption Index.
The second reason that states ban cryptocurrency mining is linked to its immense energy consumption – Bitcoin consumes roughly 148 Terawatt hours (TWh), which is more than entire countries. For instance, Argentina, the Netherlands, and the United Arab Emirates consume 121 TWh, 109 Twh, and 113 Twh respectively. In January 2022, during the “worst energy crisis in a decade” affecting a number of European countries, Kosovo officials banned cryptocurrency mining in an effort to prevent additional electricity blackouts. Prior to the ban, Kosovo was considered a cryptocurrency mining haven due to its low – and often state-subsidised – electricity bills, with some miners refusing to pay them altogether. However, for the time being, the state hasn’t passed any legislation that opposes cryptocurrency trading itself.
The state of Salesforce: Future of business
Three articles that look forward into the changing state of Salesforce and the future of businessFree Download
The mighty struggle to migrate SAP to the cloud may be over
A simplified and unified approach to delivering Enterprise Transformation in the cloudFree Download
The business value of the transformative mainframe
Modernising on the mainframeFree Download
The Total Economic Impact™ Of IBM FlashSystem
Cost savings and business benefits enabled by FlashSystemFree Download