Читать книгу Introduction to Blockchain Technology - Tiana Laurence - Страница 27

Computers that witness

Оглавление

Since their creation computers have been developed to do the work that once was only possible by the human mind. They have allowed us to replace countless numbers of once highly paid and skilled workers, such as the code breakers from World War II. Now networks of computers are doing what was only possible through groups of humans working cooperatively. Blockchain technology is an extension of the public witness concept in that it spreads knowledge, encourages persistence of information, and allows each individual node to make a choice with the information that they are given.

Each node on a blockchain network is witnessing information. It is attesting to its accuracy and truthfulness at a later date, much like how court houses, libraries and archives are places where people store information to reference at another point in time. Blockchains are in essence a digital archive.

Each node holds an independent archive of all the transactions that have occurred on its blockchain network. A node hears a “history” and then “chooses” what to do based on the rules of that blockchain.

Every blockchain creates standard rules for how to treat new information. The majority of nodes agree to these rules and operate under them, but each node has a choice and sometimes nodes break the rules or disagree. When only a few nodes disagree on the history of a blockchain, they are ignored.

However, when a large enough group of nodes no longer agree to the same rules, they will break off and start an independent blockchain. This is called a “hardfork”. Hardforking means there has been a radical modification to the protocol. The protocol is the set of rules that the majority of nodes agree to follow. Hardforks can make previously invalid blocks or transactions valid. This means that hardforks can, in effect, reverse transactions by changing the rules and rewriting the history of that blockchain.

All nodes and users have to upgrade to the latest version of the protocol software in order to process new transactions and to know what was agreed on the state of the blockchain history. This is important because the history lets you know who has what cryptocurrency.

Much of the fighting in the blockchain community came about because of differences of opinion between what rules should govern the network. These disputes have spawned countless new blockchains, and most are hardforks of Bitcoin.

Mining

Traditional currencies that are controlled by governments such as the US dollar, the Euro and the Yuan are created and distributed by central banks. Each country has a central bank that has the right to issue new money. Often it is done to improve or stimulate their economy. The central bank’s job is to keep a country’s money supply in balance, so the economy for that country is strong and competitive.

Cryptocurrency is very different. The algorithm, or rather the rules that govern the blockchain, are in charge of the creation of new cryptocurrency. The algorithm facilitates the role of a central bank by either rewarding miners with new cryptocurrency or restricting the issuance of new coins when the competition is high.

Mining does three main things:

■ Creating new cryptocurrency;

■ Confirming transactions;

■ Securing the blockchain history.

Creating new cryptocurrency

The rate at which new cryptocurrency is created and rewarded to miners is set in the rules that govern that blockchain. Each blockchain has unique rules around how often and who can be rewarded.

It is challenging and almost impossible for miners to cheat the system or create a cryptocurrency out of thin air as fake coins are easily recognized. Fake coins will not have a history that matches the blockchain. Miners have to use their computing power and electricity to generate new cryptocurrency like bitcoins.

The creation of new coins is regulated by an algorithm which adjusts the difficulty of the problem that the mining nodes are attempting to solve. The issuance of new coins is dependent on how quickly blocks are solved within a specific timeframe by miners. The difficulty rises and falls because the blockchain’s algorithm is making sure it is not too easy or too difficult for miners to gain new bitcoins.

Confirm transactions

Miners play a very important role in the processing and confirmation of transactions. A transaction is when you send a cryptocurrency from one address to another and confirmation occurs for your transaction when a miner includes your transaction in the block they are making. Your transaction is only secure and complete once it has been included in a block.

Securing the blockchain

Miners secure their blockchain network by making it difficult for corrupt individuals to attack, modify or stop the network from functioning. The more miners who operate the system, the more secure the blockchain is considered. This is because the more independent nodes that are physically distant from each other, the more challenging it is to compromise them. An attacker would need to gain control of over 51% of the network before they could do any real damage. Distribution and independence keep blockchains secure and safe.

A 51% attack allows a bad actor to spend the same coins multiple times and to stop the transactions of other users.

The reason this type of attack is not more common is that there is a high monetary cost. The attacker would need to own enough equipment and burn enough electricity to overcome all the other mining nodes on the network. When there are not enough nodes a 51% attack becomes much easier and if that blockchain’s cryptocurrency is trading at a higher price than what it would cost to overcome the network, then it is simply a matter of time before the blockchain will be compromised.

Mining’s drive to efficiency

Bitcoin miners must always improve the efficiency of the equipment they are using. They are fighting a constant battle to lower the cost of power their equipment consumes to generate new bitcoins. Miners are fighting a never-ending battle of speed, since in order to stay competitive in the network they need to have the fastest machines.

Since Bitcoin’s release in 2009, mining hardware has evolved quickly as those with the most efficient equipment will gain a majority of the bitcoins at the lowest cost. It used to be possible to mine using your computer’s CPUs or graphic cards. However, the competition for new bitcoins has now become so intense, that in order to have a chance at winning any bitcoin, you will need specialized equipment. The computers that mine bitcoin currently use ASICs chips (Application-Specific Integrated Circuit). ASIC mining chips and the hardware architecture are under continuous pressure to develop. Because electricity is traveling across a switch within the chip, the smaller the distance the faster the chip. When you stack ASICs closer together, they get even faster. With this in mind, bitcoin mining with Yifu Guo’s Avalon was 128 nm in 2013, whilst currently ASICs are being taped out for BTC mining closer to the 7nm. New chips become obsolete almost immediately as new faster chips are created, but the promise of easy and lucrative rewards keeps people buying and upgrading their equipment.

Equipment becomes obsolete quickly for two main reasons. The blockchain itself has rules that increase the difficulty of mining if more computers enter the network. These rules act as a stabilizing force and help protect the integrity of the blockchain history.

Mining cryptocurrency is a cannibalistic arms race. In order to obtain the most cryptocurrency miners need to have the most efficient mining operations. Miners with the newest equipment and cheapest electricity win the most blocks. However, the consensus algorithms for each blockchain are striving to maintain a constant rate of transaction clearing and generation of its cryptocurrency. The consensus algorithms adjust the difficulty rate to match the hash power generated by the miners. The more efficient the miners become, the more difficult the blockchain algorithms become.


Figure 14 The fastest nodes win cryptocurrency.

New distributed network structures

Blockchains are distributed ledgers. They create a nearly unchangeable history of transaction records that are maintained by a decentralized network. All records secured in the blockchain have been approved by an agreed-on rule set called consensus. But not all distributed ledgers are blockchains.

The very public nature of blockchain technology and structure has gained the attention of most governments, banks and businesses. The security that the system offers and the ability to confidently transact with a counterparty directly is fascinating. Many institutions are exploring blockchain technology to create improvements and efficiency in their operations.

But the very public nature of their records is off putting. Many institutions need to keep their records private for a variety of reasons. And because blockchains are often subject to attack and down times that would crash an economy if everyone switched to using a blockchain system, it is unappealing for a country’s critical systems such as to operate based upon blockchain without complete assurance. Large institutions have been picking apart the elements of blockchain they like best. Many institutions see the benefit of having a shared distributed ledger.

Distributed ledger technology, or DLT as it is often called, is a network of known parties collaborating in the creation and balances of a shared record. DLT does not have miners, because everyone who has the ledger and the ability to edit has incentives to maintain its integrity. Because DLT has no mining, it has no cryptocurrency. But oddly enough it can be used to issue a token that can operate like a cryptocurrency.

DLT networks are not decentralized. Whoever creates a distributed ledger has complete control. They manage the structure, purpose and how the network functions. In normal practice there is more than one instance of a ledger’s history stored across many servers, and more than one node works to update and confirm new information. The nodes will communicate with one another to ensure that the most accurate and up-to-date record of transactions is maintained. These types of networks rely on similar principles of consensus just like traditional blockchains. They have rules that help ensure all the nodes are acting correctly, which is important even when all the parties are known.

Introduction to Blockchain Technology

Подняться наверх