alt="Bullet"/> Identifying the three types of blockchains
Deepening your knowledge of how blockchains work
Originally, blockchain was just the computer science term for how to structure and share data. Today, blockchains are hailed as the “fifth evolution” of computing.
Blockchains are a novel approach to the distributed database. The innovation comes from incorporating old technology in new ways. You can think of blockchains as distributed databases that a group of individuals control and that store and share information.
Many different types of blockchains and blockchain applications exist. Blockchain is an all-encompassing technology that is integrating across platforms and hardware all over the world.
Beginning at the Beginning: What Blockchains Are
A blockchain is a data structure that makes it possible to create a digital ledger of data and share it among a network of independent parties. Many different types of blockchains exist:
Public blockchains: Public blockchains, such as Bitcoin, are large, distributed networks that are run through a native cryptocurrency. A cryptocurrency (introduced in Book 1) is a unique bit of data that can be traded between two parties. Public blockchains are open for anyone to participate at any level and have open-source code that their community maintains.
Permissioned blockchains: Permissioned blockchains, such as Ripple, control roles that individuals can play within the network. They’re still large and distributed systems that use a native token. Their core code may or may not be open source.
Private blockchains: Private blockchains, also known as distributed ledger technology (DLT), tend to be smaller and do not utilize a token or cryptocurrency. Their membership is closely controlled. These types of blockchains are favored by consortiums that have trusted members and trade confidential information.
All three types of blockchains use cryptography to allow each participant on any given network to manage the ledger in a secure way without the need for a central authority to enforce the rules. The removal of central authority from the database structure is one of the most important and powerful aspects of blockchains.
Blockchains create permanent records and histories of transactions, but nothing is really permanent. The permanence of the record is based on the dependability and health of the network. In the context of blockchains, this means that if a large portion of the blockchain community wanted to change information written to their blockchain, they could. Cryptocurrency is used as a reward to incentivize lots of users to facilitate the healthy function of the network through competition. If the records are changed inappropriately, this is known as a 51 percent attack. Small networks with few independent minors are vulnerable because it doesn’t take much effort to change their information, and powerful miners could do so and gain extra cryptocurrency. Ethereum Classic experienced just this type of attack.
When data is recorded in a blockchain, it’s extremely difficult to change or remove it. When someone wants to add a record to a blockchain, also called making a transaction or entry, users in the network who have validation control verify the proposed transaction. This is where things get tricky because every blockchain has a slightly different spin on how this works and who can validate a transaction.
What blockchains do
A blockchain is a peer-to-peer system with no central authority managing data flow. One of the key ways to remove central control while maintaining data integrity is to have a large, distributed network of independent users. This means that the computers that make up the network are in more than one location. These computers are often referred to as full nodes.
Figure 1-1 shows a visualization of the structure of the Bitcoin blockchain network. You can see it in action at http://dailyblockchain.github.io
.
FIGURE 1-1: The structure of the Bitcoin blockchain network.
To prevent the network from being corrupted, not only are blockchains decentralized, but they often also utilize a cryptocurrency. Blockchain networks produce cryptocurrencies as an incentive to maintain the integrity of the network. Many cryptocurrencies are traded on exchanges like stocks.
Cryptocurrencies work a little differently on each blockchain. Basically, the software pays the hardware to operate. The software is the blockchain protocol. Well-known blockchain protocols include Bitcoin, Ethereum, Ripple, Bitcoin Cash, Stellar, and EOS. The hardware consists of the full nodes that are securing the data in the network. Book 3 covers Bitcoin, and Book 4 covers Ethereum.
Why blockchains matter
Blockchains are recognized as the “fifth evolution” of computing because they’re a new trust layer for the Internet. Before blockchains, trust was established by central authorities that would issue certificates. One you may be familiar with is Secure Sockets Layer (SSL) client certificates. An SSL certificate is the “green lock” that appears next to a web domain. It lets you know you’re on a secure website. SSL certificates have proven not to be foolproof. Certificates have been stolen from the domains of the Central Intelligence Agency (CIA), the U.K.’s Secret Intelligence Service (commonly known as MI6), Microsoft, Yahoo!, Skype, Facebook, and Twitter. Relying on a third party allows for a single point of failure.
Blockchains, on the other hand, establish trust in novel ways. Proof-of-work (PoW) blockchains require miners to have a full and accurate history of their transactions to participate on the network. Proof-of-stake (PoS) blockchains create trust by requiring nodes that are processing transactions to “stake” some cryptocurrency that may be forfeited if they’re caught defrauding the network. Private blockchains build confidence by distributing data across a network of connected but independent participants that are known by each other and can be held accountable. Each type of blockchain uses different incentive systems to establish trust that each participant in the network will cooperate in keeping a full and unaltered history of each transaction or entry that is made within the database they share.
When data is permanent and reliable in a digital format, you can transact business online in ways that, in the past, were only possible offline. Everything that has stayed analog, including property rights and identity, can now be created and maintained online. Slow business and banking processes, such as money wires and fund settlements, can now be done nearly instantaneously. The implications for secure digital records are enormous for the global economy.
Blockchains are important because they allow for new efficiency and reliability in the exchange of valuable and private information that once required a third party to facilitate, such as the movement of money and the authenticity of identity. This is a big deal because much of our society and economy has been structured around establishing trust, enforcing trust when it’s broken, and third parties that facilitate trust. You can imagine how this simple software can be utilized to fix areas that have proven not to be foolproof, such as voting, supply chain management, money movement, and the exchange of property.
The Structure of Blockchains
Each blockchain