Latest Update 2021- Bitcoin Mining Explained in Detail

0
193
Bitcoin Mining Explained

Bitcoin Mining Explaind, The Crypto Currency.

In this post you will know more about Bitcoin, Yes. Bitcoin Mining Explaind and  Important of Bitcoin or Crytocurrency and  advantages and more.

A few years ago, if you had mentioned the term “cryptocurrency” to me, I would have imagined some kind of currency involving an underworld banking system, with hooded traders sitting behind shady computers.

We now read about it not only in the business sections of daily websites or financial publications, but on their front page. Entire sections of news publications are becoming devoted to things like Bitcoin.

Jurisdictions around the world are scurrying to put into place legislation and regulations to allow or make it easier for companies to carry out initial coin offerings (ICO’s) or token issuances. Is “cryptocurrency” even the right terminology? Or should it be “digital currency”? “Virtual currency”?

So, the question which we must now ask ourselves: whatever we call it, do cryptocurrencies, really deserve this much attention. Should we care this much? What will the impact of crypto be in the long term?

What is it again?

In essence, cryptocurrency is – as blockchain based platforms are meant to be – completely decentralised. As a financial based blockchain, that means it is not governed by any central bank or monetary authority.

It is rather maintained by a peer-to-peer community computer network made up of users’ machines or “nodes”. If you know what BitTorrent is, the same principle applies.

Using blockchain, it is effectively a digital database – a “distributed public ledger” – which is run via cryptography. Cryptocurrency such as Bitcoin is secure as it has been digitally confirmed by a process called “mining”. Mining is a process where all the information entering the Bitcoin blockchain has been mathematically checked using a highly complex digital code set up on the network.

That blockchain network will confirm and verify all new entries into the ledger, as well as any changes to it.

Note that while it is fundamentally anonymous, the mathematics behind it makes it a global public transaction ledger, so every transaction can ultimately be traced through cryptography.

Why is it so important?

First, note there are various types of cryptocurrencies, and for the purposes of this piece, I’ll focus on easily the most mentioned and used: Bitcoin (BTC) and Ether (ETH).

Bitcoin was the very first blockchain – a financial one – created by an individual (or group, who knows) called Satoshi Nakamoto in 2008. Its value has exponentially increased to a ridiculous level: you may have seen pieces swirling around the Internet such as “if I had brought $100 of bitcoin back in 2010, I’d have over US$100 million now” or about Bitcoin’s first billionaires.

An increasing number of retailers and internet sellers are beginning to accept Bitcoin as a method of payment.

Without going into too much detail, while Ethereum is very similar to Bitcoin, its uses extend beyond the mere financial side of things such as mining, into the provision of services on its own particular blockchain. Ethereum provides built-in software programming languages which can be used to write, for example, smart contracts that can be used for many purposes, including the transfer and mining of its own tradeable digital token, Ether (which is even more complex than Bitcoin).

Prior to Christmas 2017, the cryptocurrency space went through a process called “mooning”1. That is to say, their prices went utterly and completely ridiculously sky high. It became the absolutely wrong time to buy crypto. Because just before Christmas, the entire market utterly crashed, losing approximately 20% of its entire global market cap.

It then bounced up. And then in mid-January, crypto exchanges again crashed, with prices in Ethereum for instance falling approximately 25%.

So, the headlines. Regulators issuing “buyer beware” notices (certainly needed, but also because many central regulators struggle with the notion of regulating a decentralised technology). Investing in initial coin offerings (ICO’s) and in cryptocurrencies is highly speculative and basically you can lose all your money.

And you can indeed. Of course, you can say the public shareholders of Lehman Brothers also did, but unquestionably cryptocurrency exchanges are far more volatile than the stock markets.

But cryptocurrency is important and it is not going away, or be limited to 100 years as others may speculate: transactions are fast, digital, secure and worldwide, which in essence allow the maintenance of records without risk of data being pirated. Fraud is, actually, minimized.

Also, as an aside, digital currency such as Bitcoin should not result in inflation. The total number of bitcoins which can ever be mined is limited to approximately 21 million, so there is no way the total amount of cash in the system can be increased by any central bank.

Bitcoin itself is, by its nature, scarce… though one can certainly argue that cryptocurrencies themselves, are infinite as they can be generated by anyone.

Now let’s take more of our time to read Bitcoin.

What Is Bitcoin?

Bitcoin is the first decentralized digital currency that allows peer-to-peer transfers without any intermediaries such as banks, governments, agents or brokers, using the underlying technology of blockchain.

Anyone around the world on the network can transfer bitcoins to someone else on the network regardless of geographic location; you just need to just open an account on the Bitcoin network and have some bitcoins in it, and then you can transfer those bitcoins. How do you get bitcoins in your account? You can either purchase them online or mine them.

Bitcoin can be used for online purchases and can be used as an investment instrument. Primarily it’s used to buy goods and services.

Bitcoin Advantages

Compared to traditional fiat currencies, assets can be transferred faster on the bitcoin network. The system also has lower transaction fees, because it’s decentralized and there are no intermediaries, and it is cryptographically secure—the identities of the sender and the receiver are kept hidden, and it is impossible to counterfeit or hack the transactions.

Plus, all the information is available on a public ledger, so anyone can view the transactions.

What Is Blockchain?

As mentioned, blockchain is the underlying technology of bitcoin. Blockchain is a public distributed ledger in which transactions are recorded in chronological order. Any record or transaction added to the blockchain cannot be modified or altered, meaning transactions are safe from hacking.

A block is the smallest unit of a blockchain, and it is a container that holds all the transaction details. A block has four fields, or primary attributes:

Previous hash: This attribute stores the value of the hash of the previous block, and that’s how the blocks are linked to one another.

Data: This is the aggregated set of transactions included in this block—the set of transactions that were mined and validated and included in the block.

Nonce: In a “proof of work” consensus algorithm, which bitcoin uses, the nonce is a random value used to vary the output of the hash value. Every block is supposed to generate a hash value, and the nonce is the parameter that is used to generate that hash value. The proof of work is the process of transaction verification done in blockchain.

Hash: This is the value obtained by passing the previous hash value, the data and the nonce through the SHA-256 algorithm; it is the digital signature of the block.

SHA-256 is a cryptographic hash algorithm that produces a unique 256-bit alphanumeric hash value for any given input, and that is the unique feature of this cryptographic algorithm: Whatever input you give, it will always produce a 256-bit hash.

What Is Bitcoin Mining?

Bitcoin mining is the process of verifying bitcoin transactions and recording them in the public blockchain ledger. In blockchain, the transactions are verified by bitcoin users, so basically the transactions have to be verified by the participants of the network. Those who have the required hardware and computing power are called miners.

We will talk more about them later, but the important concept to understand here is that there is nothing like a centralized body—a regulatory body, a governing body, a bank—to make bitcoin transactions go through. Any user with mining hardware and Internet access can be a participant and contribute to the mining community.

The process is solved based on a difficult mathematical puzzle called proof of work. The proof of work is needed to validate the transaction and for the miner to earn a reward.

All the miners are completing amongst themselves to mine a particular transaction; the miner who first solves the puzzle gets the reward. Miners are the network participants who have the necessary hardware and computing power to validate the transactions.

3 Concepts of Blockchain

To understand bitcoin mining, you have to first understand the three major concepts of blockchain.

Public distributed ledger: A distributed ledger is a record of all transactions maintained in the blockchain network across the globe. In the network, the validation of transactions is done by bitcoin users.

SHA-256: Blockchain prevents unauthorized access by using a hash function called SHA-256 to ensure that the blocks are kept secure. They are digitally signed. Their hash value, once generated, cannot be altered. SHA-256 takes an input string of any size and returns a fixed 256-bit output, and it is a one-way function—you cannot derive the reverse of the input reverse fully from the output (what you have generated).

Proof of work: In blockchain mining, miners validate transactions by solving a difficult mathematical puzzle called proof of work. To do that, the primary objective of the miner is to determine the nonce value, and that nonce value is the mathematical puzzle that miners are required to solve to generate a hash that is less than the target defined by the network for a particular block.

Solving the Puzzle

In the bitcoin network, as mentioned, users called miners are trying to solve a mathematical puzzle. The puzzle is solved by varying a nonce that produces a hash value lower than a predefined condition, which is called a target.

A miner verifies a transaction by solving the puzzle and adding the block to the blockchain when it’s confirmed and verified by other users. As of today, Bitcoin miners who solve a puzzle get a reward of 12.5 bitcoins.

Once a block is added to the blockchain, the bitcoins associated with the transactions can be spent and the transfer from one account to the other can be made.

To generate the hash, Bitcoin miners use the SHA-256 hashing algorithm and define the hash value. If it is less than the defined condition (the target), then the puzzle is deemed to be solved. If not, then they keep modifying the nonce value and repeat the SHA-256 hashing function to generate the hash value again, and they keep doing this process until they get the hash value that is less than the target.

Example: Transfer of 10 Bitcoins

Let’s say Beyonce wants to share 10 bitcoins with Jennifer. To do that, what would the steps be? First, transaction data is shared with bitcoin users from the memory pool. The transaction sits in an unmined pool of memory transactions. In a memory pool, unconfirmed transactions wait until they are verified and included in a new block. Bitcoin miners compete to validate the transaction using proof of work.

The miner who solves the puzzle first shares the result across the other nodes. Once the block has been verified, the nonce has been generated, then the nodes will start granting their approval. If maximum nodes grant their approval, the block becomes valid and is added to the blockchain. The miner who has solved the puzzle will also receive a reward of 12.5 bitcoins, which as of today is around $98,000.

The 10 bitcoins for which the transaction was initiated now will be transferred from Beyonce to Jennifer.

Proof of Work: a Closer Look

In proof of work, a predefined condition (the target) is adjusted for every 2,016 blocks, which is approximately every 14 days. The average time to mine a block is 10 minutes, and to keep the time frame for block generation within 10 minutes, the target keeps adjusting itself.

The difficulty of the puzzle changes depending on the time it takes to mine a block. This is how the difficulty of a block is generated: It is the hash target of the first block divided by the hash target of the current block.

This is the difficulty being changed after every 2,016 blocks, so basically it is very hard to generate the proof of work—but it is very easy for the miners to verify once someone have solved the puzzle. And once the majority of the miners reach a consensus, the block gets validated and added to the blockchain.

Since the difficulty depends on the hash target, its value keeps changing after every 2,016 blocks, and from bitcoin’s day of inception in 2009, it requires more hashing power (more computing power) to do the mining today.

Prevention of Hacking

What if someone tries to hack the data? Blockchain, as the name implies, is a chain of blocks—let’s call the blocks A, B and C. Each block has solved a puzzle and generated a hash value of its own, which is its identifier. Now suppose a person tries to tamper with block B and change the data. The data is aggregated in the block, so if the data of the block changes, then the hash value that is the digital signature of the block will also change. It will therefore corrupt the chain after it—the blocks ahead of block B will all get delinked, because the previous hash value of block C will not remain valid.

Interested to learn the Bitcoin Transaction Process? Enroll in the Blockchain Training Course and learn today!

For a hacker to make the entire blockchain valid for the block B that has been changed, he or she would have to change the hash value of all the blocks ahead of block B. This would require a huge amount of computing power and is next to impossible. With this method, blockchain is non-hackable and prevents data modification.

Hardware for Bitcoin Mining

In the early days of bitcoin, miners used to solve the mathematical puzzles using regular processors—controlling processor units (CPUs). It used to take a lot of time for mining Bitcoins and other cryptocurrencies, even though the difficulty levels were easier than today. As mentioned above, the difficulty level keeps changing and growing, so the miners also had to increase their processing power.

They discovered that graphical processing units (GPUs) proved to be more efficient than regular CPUs, but this also had the drawback of consuming more electricity. A miner has to calculate the return on investment based on the hardware and the cost of electricity and other resources needed to do the mining.

Today miners use hardware called ASIC (application-specific integrated circuit), which was specifically introduced for mining Bitcoin and other cryptocurrencies. It consumes less power and has a higher computing power. Miners are profitable when their cost of resources to mine one block is less than the price of the reward.

So, Bitcoin miners use their resources (hardware and electricity) to verify a transaction, and each time a block is mined, new bitcoins are created in the network.

The total supply is limited to 21 million bitcoins; 17 to 18 million bitcoins have already been mined, so only 3 to 4 million are left. As of today, a reward of 12.5 bitcoins is given to the miner who does the transaction verification, but the bitcoin mining reward goes by the halving principle: It is halved every 210,000 blocks, or about every four years, so when that next threshold is reached, the bitcoin reward will go down to 6.25 bitcoins.

Pooling Resources for Bitcoin Mining

Let’s take the example of a lottery in which your chances of winning are difficult. If individuals buy multiple lottery tickets and pool their tickets together, then this will increase their chances of winning. If someone wins the lottery, then based on the contribution, the reward is distributed among all the participants.

The bitcoin mining pool is similar: Multiple nodes share their resources to mine a block. When a block is solved, the miners split the reward based on the amount of processing power they have invested. The pool members generate a final hash value, then the bitcoin reward gets distributed proportionally among the participants based on the resources they contributed.

New to bitcoin and blockchain and want to learn more? Keep Visiting as I will be here to share more.

LEAVE A REPLY

Please enter your comment!
Please enter your name here