What is Cryptocurrency Mining? – dummies

By Peter Kent, Tyler Bain

Cryptocurrency mining involves the addition of transactions to a blockchain by a crypto miner. But, its a bit more complicated than that. Take a look at decentralization and discover the role of the crypto miner.

Cryptocurrencies are decentralized that is, no central bank, no central database, and no single, central authority manages the currency network. The United States, for example, has the Federal Reserve in Washington, the organization that manages the U.S. dollar, and European Central Bank in Frankfurt manages the euro, and all other fiat currencies also have centralized oversight bodies.

However, cryptocurrencies dont have a central authority; rather, the cryptocurrency community and, in particular, cryptocurrency miners and network nodes manage them. For this reason, cryptocurrencies are often referred to as trustless. Because no single party or entity controls how a cryptocurrency is issued, spent, or balanced; you dont have to put your trust in a single authority.

Trustless is a bit of a misnomer. Trust is baked into the system. You dont have to trust a single authority, but your trust in the system and fully auditable codebase is still essential. In fact no form of currency can work without some form of trust or belief. (If nobody trusts the currency, then nobody will accept it or work to maintain it!)

In the trustless cryptocurrency world, you can still trust the cryptocurrency community and its mechanisms to ensure that the blockchain contains an accurate and immutable unchangeable record of cryptocurrency transactions. Cryptocurrencies are established using a set of software rules that ensure that the system can be trusted, and the mining process is part of this system that allows everyone to trust the blockchain.

Cryptocurrencies have no central bank printing new money. Instead, miners dig up new currency according to a preset coin-issue schedule and release it into circulation in a process called mining.

When you compare cryptocurrency mining to gold mining, why the process is referred to as mining becomes clear. In both forms of mining, the miners put in work and are rewarded with an uncirculated asset. In gold mining, naturally occurring gold that was outside the economy is dug up and becomes part of the gold circulating within the economy.

In cryptocurrency mining, work is performed, and the process ends with new cryptocurrency being created and added to the blockchain ledger. In both cases, miners, after receiving their reward the mined gold or the newly created cryptocurrency usually sell it to the public to recoup their operating costs and get their profit, placing the new currency into circulation.

The cryptocurrency miners work is different from that of a gold miner, of course, but the result is much the same: Both make money. For cryptocurrency mining, all of the work happens on a mining computer or rig connected to the cryptocurrency network no burro riding or gap-toothed gold panners required!

Cryptocurrency miners add transactions to the blockchain, but different cryptocurrencies use different mining methods, if the cryptocurrency uses mining at all. (Most cryptocurrencies dont use mining.) Different mining and consensus methods are used to determine who creates new blocks of data and how exactly the blocks are added to the blockchain.

How you mine a particular cryptocurrency varies slightly depending on the type of cryptocurrency being mined, but the basics are still the same: Mining creates a system to build trust between parties without needing a single authority and ensures that everyones cryptocurrency balances are up-to-date and correct in the blockchain ledger.

The work performed by miners consists of a few main actions:

The preceding cryptocurrency mining process is essential work, needed for the continued propagation of the blockchain and its associated transactions. Without it, the blockchain wont function. But why would someone do this work? What are the incentives for the miner?

The bitcoin miner actually has a couple of incentives (other cryptocurrencies may work in a different manner):

Combined, the fees and subsidy are known as the block reward. In Bitcoin, the block subsidy began at 50 BTC. (BTC is the ticker symbol for bitcoin.) The block subsidy at the time of writing is currently 12.5 BTC. The block subsidy is halved every 210,000 blocks, or roughly every four years; sometime around May 2020 it will halve again to 6.25 BTC per block.

The image below, from the BlockChain.com blockchain explorer, shows a block subsidy being paid to an address that is owned by the miner who added the block to the blockchain. Near the top you can see that 12.5 BTC is being paid as the subsidy; the actual sum received by the miner (the full reward, 13.24251028 BTC) is larger, because it also includes the transaction fees for all the transactions in the block.

For a cryptocurrency to function, several conditions must be met by the protocol. Jan Lanksys 6-factor list is particularly helpful. (Jan is a cryptocurrency academic teaching at a university in the Czech Republic). As can be seen, below, mining (in the mineable cryptocurrencies, non-mineable currencies have different mechanisms) is an integral part of making sure these conditions are met.

If even one of these six conditions arent met, a cryptocurrency will fail because it cant build enough trust for people to reliably use it. The process of mining solidifies and satisfies every single one of these conditions.

Theres a mind exercise known as the Byzantine Generals Problem (or the Byzantine Fault, the error avalanche, and various other things) that illustrates the problem that cryptocurrency consensus algorithms seek to solve.

The overall problem? Youre trying to reach consensus; in cryptocurrency, youre trying to reach agreement over the history of currency transactions. But in a cryptocurrency network, a distributed computer system of equals, you have thousands, maybe tens of thousands of computers (nodes); in the Bitcoin network you currently have 80,000 to 100,000 nodes.

But out of those tens of thousands of systems, some are going to have technical problems; hardware faults, misconfiguration, out-of-date software, misfunctioning routers, and so on. Others are going to be untrustworthy; theyre going to be seeking to exploit weaknesses for the financial gain of the people running the node (they are run by traitors). The problem is that for various reasons, some nodes may send conflicting and faulty information.

So someone came up with a sort of parable or metaphor, the Byzantine Generals Problem. (A guy named Leslie Lamport Shostak first told this story back in 1980, in a paper related to general issues of reliability in distributed computer systems.)

Originally named the Albanian Generals Problem, it was renamed after a long-defunct empire so not to offend any Albanians! (Though in this interconnected world of constant social media offense, there must be at least some offended residents of Istanbul.)

Apparently distributed-computing academics like to sit around and devise these little metaphors; theres the dining philosophers problem, the readers/writers problem, and so on. In fact the Byzantine Generals Problem was derived from the Chinese Generals Problem.

Anyway, the idea is this, as described in the original paper:

We imagine that several divisions of the Byzantine army are camped outside an enemy city, each division commanded by its own general. The generals can communicate with one another only by messenger. After observing the enemy, they must decide upon a common plan of action. However, some of the generals may be traitors, trying to prevent the loyal generals from reaching agreement. The generals must have an algorithm to guarantee that A. All loyal generals decide upon the same plan of action.[and] B. A small number of traitors cannot cause the loyal generals to adopt a bad plan.

(Search online for byzantine generals problem leslie lamport robert shostak marshall pease if youre interested in seeing the original paper.)

Thats the problem that cryptocurrency consensus algorithms, as theyre known, are trying to solve. How do the generals (the computer nodes) come up with consensus (all agree on the same plan of actionor transaction ledger), and avoid being led astray by a small number of traitors (faulty equipment and hackers)?

To have a chance at the mining reward, crypto miners must set up their mining rigs (the computer equipment) and run that cryptocurrencys associated mining software.

Depending on how many resources the crypto miner is committing, he or she will have a proportional chance to be the lucky miner who gets to create and chain the latest block; the more resources employed, the higher the chance of winning the reward. Each block has a predetermined amount of payment, which is rewarded to the victorious miner for their hard work to spend as they wish.

So how is the winning miner chosen? That depends. In most cases, one of two basic two methods are used:

When Bitcoin first started, anyone with a simple desktop computer was able to mine. The would-be miner simply downloaded the Bitcoin mining software, installed it, and let the BTC roll in! As time went on, though, competition increased.

Faster and more powerful computers were built and used for mining. Eventually, specialized processing chips called Application Specific Integrated Circuits (ASICs) were developed. An ASIC, as the name implies, is a computer chip designed for a specific purpose, such displaying high-resolution graphics quickly, running a smartphone, or carrying out a particular form of computation.

Specific ASICs have been designed to be highly efficient at the forms of computation required for cryptocurrency mining for example, for Bitcoin mining. Such a chip can be 1,000 times more efficient at Bitcoin mining than the chip in your PC, so in todays Bitcoin mining environment, its go ASIC or go home!

For high-difficulty cryptocurrencies, such as Bitcoin, the ideal mining environment is one with:

Fear not, though! With many different copies and mimicry of Bitcoin running rampant, Bitcoin is no longer the only game in town, and you can find lots of alternative mining choices, with varying levels of required computing power. Today, some of the most profitable cryptocurrencies to mine are lesser known and can be mined using off-the-shelf computer hardware due to less stringent difficulty levels that are associated with lower popularity and adoption.

Currently, a large portion of the global cryptocurrency mining takes place in China, at perhaps three times the rate of the next closest nation (the United States). A combination of cheap electricity and easy access to cheap computer components for building mining rigs gives China an edge that Chinese miners have leveraged and so far, maintained, even with their governments apparent disapproval of cryptocurrencies.

This is a testament to how resilient and difficult to shut down distributed cryptocurrency systems such as Bitcoin are.

A cryptocurrency has value because a large number of people collectively believe that it does. But why do they believe cryptocurrency has value? The answer is trust.

A holder of Bitcoin can trust that their Bitcoin will be in their wallet a day from now or 10 years from now. If they want to research how the system works, they can audit the code base to understand the system on a deeper level to see how trust is maintained.

However, if they do not have the skillset or the computer science knowledge to audit code, they can choose to trust that other people, more knowledgeable than them, understand and monitor the system; they can trust the overall blockchain community that is managing the particular cryptocurrency.

Without the mining functionality underpinning the distributed peer-to-peer cryptocurrency system, this collective trust (based on the proof of collective work towards the chain) would not exist.

Cryptocurrency mining makes sure that your balances wont change without your authorization. It incentivizes everyone to behave correctly and punishes those who dont. It creates a digital form of value transfer that can be trusted by each individual user as an equal peer in the network because every part of the system is aligned for one purpose: providing a secure way to create, verify, and transfer ownership of digitally scarce cryptographic units.

Peter Kent is a longtime technology author who also created the online course Crypto Clear: Bitcoin & Cryptocurrency Made Simple. Tyler Bain is a professional engineer who specializes on the electrical grid. He is also a Certified Bitcoin Professional who focuses on system resiliency and mining mechanics.

Original post:

What is Cryptocurrency Mining? - dummies

Related Posts

Comments are closed.