What Is Blockchain?
What is Blockchain?
Blockchain seems complicated, and it definitely can be, but its core concept is really quite simple. A blockchain is a type of database. To be able to understand blockchain, it helps to first understand what a database actually is.
A database is a collection of information that is stored electronically on a computer system. Information, or data, in databases is typically structured in table format to allow for easier searching and filtering for specific information. What is the difference between someone using a spreadsheet to store information rather than a database?
Spreadsheets are designed for one person, or a small group of people, to store and access limited amounts of information. In contrast, a database is designed to house significantly larger amounts of information that can be accessed, filtered, and manipulated quickly and easily by any number of users at once.
Large databases achieve this by housing data on servers that are made of powerful computers. These servers can sometimes be built using hundreds or thousands of computers in order to have the computational power and storage capacity necessary for many users to access the database simultaneously. While a spreadsheet or database may be accessible to any number of people, it is often owned by a business and managed by an appointed individual that has complete control over how it works and the data within it.
So how does a blockchain differ from a database?
One key difference between a typical database and a blockchain is the way the data is structured. A blockchain collects information together in groups, also known as blocks, that hold sets of information. Blocks have certain storage capacities and, when filled, are chained onto the previously filled block, forming a chain of data known as the “blockchain.” All new information that follows that freshly added block is compiled into a newly formed block that will then also be added to the chain once filled.
A database structures its data into tables whereas a blockchain, like its name implies, structures its data into chunks (blocks) that are chained together. This makes it so that all blockchains are databases but not all databases are blockchains. This system also inherently makes an irreversible timeline of data when implemented in a decentralized nature. When a block is filled it is set in stone and becomes a part of this timeline. Each block in the chain is given an exact timestamp when it is added to the chain.
Attributes of Cryptocurrency
For the purpose of understanding blockchain, it is instructive to view it in the context of how it has been implemented by Bitcoin. Like a database, Bitcoin needs a collection of computers to store its blockchain. For Bitcoin, this blockchain is just a specific type of database that stores every Bitcoin transaction ever made. In Bitcoin’s case, and unlike most databases, these computers are not all under one roof, and each computer or group of computers is operated by a unique individual or group of individuals.
Imagine that a company owns a server comprised of 10,000 computers with a database holding all of its client’s account information. This company has a warehouse containing all of these computers under one roof and has full control of each of these computers and all the information contained within them. Similarly, Bitcoin consists of thousands of computers, but each computer or group of computers that hold its blockchain is in a different geographic location and they are all operated by separate individuals or groups of people. These computers that makeup Bitcoin’s network are called nodes.
In this model, Bitcoin’s blockchain is used in a decentralized way. However, private, centralized blockchains, where the computers that make up its network are owned and operated by a single entity, do exist.
In a blockchain, each node has a full record of the data that has been stored on the blockchain since its inception. For Bitcoin, the data is the entire history of all Bitcoin transactions. If one node has an error in its data it can use the thousands of other nodes as a reference point to correct itself. This way, no one node within the network can alter information held within it. Because of this, the history of transactions in each block that make up Bitcoin’s blockchain is irreversible.
If one user tampers with Bitcoin’s record of transactions, all other nodes would cross-reference each other and easily pinpoint the node with the incorrect information. This system helps to establish an exact and transparent order of events. For Bitcoin, this information is a list of transactions, but it also is possible for a blockchain to hold a variety of information like legal contracts, state identifications, or a company’s product inventory.
In order to change how that system works, or the information stored within it, a majority of the decentralized network’s computing power would need to agree on said changes. This ensures that whatever changes do occur are in the best interests of the majority.
What is a Smart Contract?
Smart contracts are programmatic contracts that can be executed or enforced without human interaction on the blockchain. They can be programed to define and execute an agreement or transaction when specific conditions are met. Smart contracts exist on the blockchain and are distributed and immutable.
Once the smart contract is created it cannot change once put on the Blockchain. No third party or contract creator can alter the code of the contract. The output of the smart contract is validated by everyone viewing the Blockchain, which can include stakeholders, or interested third parties.
An example of a real world use case for Smart Contracts would be Automobile Insurance policies. When conditions of a Smart Contract change in an insured event, say an automobile accident, then claims process is triggered automatically. Parameters of the event such as travel speed, location and time of day can be recorded onto the blockchain. If the variables of the smart contract cross certain pre-agreed thresholds, the claims process is triggered immediately and the exact amount of financial payout can be delivered without the need for human intervention.
If you produce, buy or sell goods, the possibility to make each step of a supply chain more transparent may improve your business. Smart contracts allow tracking product movement from the factory to the store shelves. IoT devices can write location data straight to a smart contract, which allows simplifying the tracking process. Such feature provides real-time visibility of an entire supply chain. If sent goods stuck at customs, you’ll know about it immediately. Advanced tracking allows reducing the risk of fraud and theft as well.
Not only does the smart contract reduce the administrative costs associated with fulfilling policies, the transparency and trust in the process is visible to all regulatory bodies and stakeholders.
What is consensus and known variations of consensus?
Consensus usually refers to general agreement among the members of a group or community. In blockchain consensus refers a majority of those that are either mining or have authority stating they sign off on a block of transactions. As mentioned earlier decentralization means that more people are required in decision making processes, consensus is when a decision has been reached.
In a blockchain solution, consensus is necessary for blocks to be recorded on the chain, rejected transactions are not recorded to the chain. This mechanism is what actually makes blockchain technology tamper proof because to add or edit bad data would require compromising the majority of the participants in the network compared to one server in a data center (example: Equifax, Target, etc.).
There are several types of consensus models. These models are either powered by rewarding users in a cryptocurrency or through other means to keep those that make up the consensus honest and motivated to continue validating transactions. Popular consensus models include:
- Proof of Work: A proof of work is a piece of data which is difficult (costly, time-consuming) to produce but easy for others to verify and which satisfies certain requirements. PoW is the consensus model used by Bitcoin and a majority of blockchains to date. It is known to be highly secure but has significant scaling challenges resulting in slow speeds and high transaction fees. PoW also consumes a vast amount of electricity.
- Proof of Stake: In PoS-based cryptocurrencies, the creator of the next block is chosen via various combinations of random selection and wealth or age (i.e., the stake). PoS can be configured to be a more efficient consensus model than PoW resulting in less energy usage, lower transaction fees and possibly higher scalability. Long term security of PoS systems is still being explored.
- Proof of Authority: In PoA-based networks, transactions and blocks are validated by approved accounts, known as validators. Validators run software allowing them to put transactions in blocks. The process is automated and does not require validators to be constantly monitoring their computers. However, it does require maintaining the computer (the authority node) uncompromised. PoA leverages trusted validators to dramatically increase the blockchain efficiency resulting in much greater scalability and lower transaction fees while still maintaining a secure chain.
Because of the decentralized nature of Bitcoin’s blockchain, all transactions can be transparently viewed by either having a personal node or by using blockchain explorers that allow anyone to see transactions occurring live. Each node has its own copy of the chain that gets updated as fresh blocks are confirmed and added. This means that if you wanted to, you could track Bitcoin wherever it goes.
For example, exchanges have been hacked in the past where those who held Bitcoin on the exchange lost everything. While the hacker may be entirely anonymous, the Bitcoins that they extracted are easily traceable. If the Bitcoins that were stolen in some of these hacks were to be moved or spent somewhere, it would be known.
Is Blockchain Secure?
Blockchain technology accounts for the issues of security and trust in several ways. First, new blocks are always stored linearly and chronologically. That is, they are always added to the “end” of the blockchain. If you take a look at Bitcoin’s blockchain, you’ll see that each block has a position on the chain, called a “height.” As of November 2020, the block’s height had reached 656,197 blocks so far.
After a block has been added to the end of the blockchain, it is very difficult to go back and alter the contents of the block unless the majority reached a consensus to do so. That’s because each block contains its own hash, along with the hash of the block before it, as well as the previously mentioned time stamp. Hash codes are created by a math function that turns digital information into a string of numbers and letters. If that information is edited in any way, the hash code changes as well.
Here’s why that’s important to security. Let’s say a hacker wants to alter the blockchain and steal Bitcoin from everyone else. If they were to alter their own single copy, it would no longer align with everyone else’s copy. When everyone else cross-references their copies against each other, they would see this one copy stand out and that hacker’s version of the chain would be cast away as illegitimate.
Succeeding with such a hack would require that the hacker simultaneously control and alter 51% of the copies of the blockchain so that their new copy becomes the majority copy and thus, the agreed-upon chain. Such an attack would also require an immense amount of money and resources as they would need to redo all of the blocks because they would now have different timestamps and hash codes.
Due to the size of Bitcoin’s network and how fast it is growing, the cost to pull off such a feat would probably be insurmountable. Not only would this be extremely expensive, but it would also likely be fruitless. Doing such a thing would not go unnoticed, as network members would see such drastic alterations to the blockchain. The network members would then fork off to a new version of the chain that has not been affected.
This would cause the attacked version of Bitcoin to plummet in value, making the attack ultimately pointless as the bad actor has control of a worthless asset. The same would occur if the bad actor were to attack the new fork of Bitcoin. It is built this way so that taking part in the network is far more economically incentivized than attacking it.
Blockchain vs. Bitcoin
The goal of blockchain is to allow digital information to be recorded and distributed, but not edited. Blockchain technology was first outlined in 1991 by Stuart Haber and W. Scott Stornetta, two researchers who wanted to implement a system where document timestamps could not be tampered with. But it wasn’t until almost two decades later, with the launch of Bitcoin in January 2009, that blockchain had its first real-world application.
The Bitcoin protocol is built on a blockchain. In a research paper introducing the digital currency, Bitcoin’s pseudonymous creator, Satoshi Nakamoto, referred to it as “a new electronic cash system that’s fully peer-to-peer, with no trusted third party.”
The key thing to understand here is that Bitcoin merely uses blockchain as a means to transparently record a ledger of payments, but blockchain can, in theory, be used to immutably record any number of data points. As discussed above, this could be in the form of transactions, votes in an election, product inventories, state identifications, deeds to homes, and much more.
Currently, there is a vast variety of blockchain-based projects looking to implement blockchain in ways to help society other than just recording transactions. One good example is that of blockchain being used as a way to vote in democratic elections. The nature of blockchain’s immutability means that fraudulent voting would become far more difficult to occur.
For example, a voting system could work such that each citizen of a country would be issued a single cryptocurrency or token. Each candidate would then be given a specific wallet address, and the voters would send their token or crypto to whichever candidate’s address they wish to vote for. The transparent and traceable nature of blockchain would eliminate the need for human vote counting as well as the ability of bad actors to tamper with physical ballots.
|Transaction Speed||•Card payments: 24-48 hours
•Checks: 24-72 hours to clear
•ACH: 24-48 hours
•Wire: Within 24 hours unless international
*Bank transfers are typically not processed on weekends or bank holidays
|Bitcoin transactions can take as little as 15 minutes and as much as over an hour depending on network congestion.|
|Transaction Fees||•Card payments: This fee varies based on the card and is not paid by the user directly. Fees are paid to the payment processors by stores and are usually charged per transaction. The effect of this fee can sometimes make the cost of goods and services rise.
•Checks: can cost between $1 and $30 depending on your bank.
•ACH: ACH transfers can cost up to $3 when sending to external accounts.
•Wire: Outgoing domestic wire transfers can cost as much as $25. Outgoing international wire transfers can cost as much as $45.
|Bitcoin has variable transaction fees determined by miners and users. This fee can range between $0 and $50 but users have the ability to determine how much of a fee they are willing to pay. This creates an open marketplace where if the user sets their fee too low their transaction may not be processed.|
|Security||Assuming the client practices solid internet security measures like using secure passwords and two-factor authentication, a bank account’s information is only as secure as the bank’s server that contains client account information.||The larger the Bitcoin network grows the more secure it gets. The level of security a Bitcoin holder has with their own Bitcoin is entirely up to them. For this reason it is recommended that people use cold storage for larger quantities of Bitcoin or any amount that is intended to be held for a long period of time.|
|Privacy||Bank account information is stored on the bank’s private servers and held by the client. Bank account privacy is limited to how secure the bank’s servers are and how well the individual user secures their own information. If the bank’s servers were to be compromised then the individual’s account would be as well.||Bitcoin can be as private as the user wishes. All Bitcoin is traceable but it is impossible to establish who has ownership of Bitcoin if it was purchased anonymously. If Bitcoin is purchased on a KYC exchange then the Bitcoin is directly tied to the holder of the KYC exchange account.|
|Know Your Customer Rules||Bank accounts and other banking products require “Know Your Customer” (KYC) procedures. This means it is legally required for banks to record a customer’s identification prior to opening an account.||Anyone or anything can participate in Bitcoin’s network with no identification. In theory, even an entity equipped with artificial intelligence could participate.|
|Hours open||Typical brick-and-mortar banks are open from 9:00 am to 5:00 pm on weekdays. Some banks are open on weekends but with limited hours. All banks are closed on banking holidays.||No set hours; open 24/7, 365 days a year.|
|Ease of Transfers||Government-issued identification, a bank account, and a mobile phone are the minimum requirements for digital transfers.||An internet connection and a mobile phone are the minimum requirements.|
|Approved Transactions||Banks reserve the right to deny transactions for a variety of reasons. Banks also reserve the right to freeze accounts. If your bank notices purchases in unusual locations or for unusual items they can be denied.||The Bitcoin network itself does not dictate how Bitcoin is used in any shape or form. Users can transact Bitcoin how they see fit but should also adhere to the guidelines of their country or region.|
|Account Seizures||Due to KYC laws, governments can easily track people’s banks accounts and seize the assets within them for a variety of reasons.||If Bitcoin is used anonymously governments would have a hard time tracking it down to seize it.|
How is Blockchain Used?
As we now know, blocks on Bitcoin’s blockchain store data about monetary transactions. But it turns out that blockchain is actually a reliable way of storing data about other types of transactions, as well.
Some companies that have already incorporated blockchain include Walmart, Pfizer, AIG, Siemens, Unilever, and a host of others. For example, VeChain has launched a ‘market ready, blockchain-enabled food safety solution. It bases this on its one-stop data Blockchain-as-a-Service (BaaS) platform which it calls ToolChain to trace the journey that food products take to get to its locations.
Why do this? The food industry has seen countless outbreaks of e Coli, salmonella, listeria, as well as hazardous materials being accidentally introduced to foods. In the past, it has taken weeks to find the source of these outbreaks or the cause of sickness from what people are eating.
Using blockchain gives brands the ability to track a food product’s route from its origin, through each stop it makes, and finally its delivery. If a food is found to be contaminated then it can be traced all the way back through each stop to its origin. Not only that, but these companies can also now see everything else it may have come in contact with, allowing the identification of the problem to occur far sooner, potentially saving lives. This is one example of blockchains in practice, but there are many other forms of blockchain implementation.
Banking and Finance
Perhaps no industry stands to benefit from integrating blockchain into its business operations more than banking. Financial institutions only operate during business hours, five days a week. That means if you try to deposit a check on Friday at 6 p.m., you will likely have to wait until Monday morning to see that money hit your account. Even if you do make your deposit during business hours, the transaction can still take one to three days to verify due to the sheer volume of transactions that banks need to settle. Blockchain, on the other hand, never sleeps.
By integrating blockchain into banks, consumers can see their transactions processed in as little as 10 minutes, basically the time it takes to add a block to the blockchain, regardless of holidays or the time of day or week. With blockchain, banks also have the opportunity to exchange funds between institutions more quickly and securely. In the stock trading business, for example, the settlement and clearing process can take up to three days (or longer, if trading internationally), meaning that the money and shares are frozen for that period of time.
Given the size of the sums involved, even the few days that the money is in transit can carry significant costs and risks for banks. European bank Santander and its research partners put the potential savings at $15 billion to $20 billion a year. Capgemini, a French consultancy, estimates that consumers could save up to $16 billion in banking and insurance fees each year through blockchain-based applications.
Blockchain forms the bedrock for cryptocurrencies like Bitcoin. The U.S. dollar is controlled by the Federal Reserve. Under this central authority system, a user’s data and currency are technically at the whim of their bank or government. If a user’s bank is hacked, the client’s private information is at risk. If the client’s bank collapses or they live in a country with an unstable government, the value of their currency may be at risk. In 2008, some of the banks that ran out of money were bailed out partially using taxpayer money. These are the worries out of which Bitcoin was first conceived and developed.
By spreading its operations across a network of computers, blockchain allows Bitcoin and other cryptocurrencies to operate without the need for a central authority. This not only reduces risk but also eliminates many of the processing and transaction fees. It can also give those in countries with unstable currencies or financial infrastructures a more stable currency with more applications and a wider network of individuals and institutions they can do business with, both domestically and internationally.
Using cryptocurrency wallets for savings accounts or as a means of payment is especially profound for those who have no state identification. Some countries may be war-torn or have governments that lack any real infrastructure to provide identification. Citizens of such countries may not have access to savings or brokerage accounts and therefore, no way to safely store wealth.
Health care providers can leverage blockchain to securely store their patients’ medical records. When a medical record is generated and signed, it can be written into the blockchain, which provides patients with the proof and confidence that the record cannot be changed. These personal health records could be encoded and stored on the blockchain with a private key, so that they are only accessible by certain individuals, thereby ensuring privacy.
Records of Property
If you have ever spent time in your local Recorder’s Office, you will know that the process of recording property rights is both burdensome and inefficient. Today, a physical deed must be delivered to a government employee at the local recording office, where it is manually entered into the county’s central database and public index. In the case of a property dispute, claims to the property must be reconciled with the public index.
This process is not just costly and time-consuming—it is also riddled with human error, where each inaccuracy makes tracking property ownership less efficient. Blockchain has the potential to eliminate the need for scanning documents and tracking down physical files in a local recording office. If property ownership is stored and verified on the blockchain, owners can trust that their deed is accurate and permanently recorded.
In war-torn countries or areas that have little to no government or financial infrastructure, and certainly no “Recorder’s Office,” it can be nearly impossible to prove ownership of a property. If a group of people living in such an area is able to leverage blockchain, transparent and clear timelines of property ownership could be established.
A smart contract is a computer code that can be built into the blockchain to facilitate, verify, or negotiate a contract agreement. Smart contracts operate under a set of conditions that users agree to. When those conditions are met, the terms of the agreement are automatically carried out.
Say, for example, a potential tenant would like to lease an apartment using a smart contract. The landlord agrees to give the tenant the door code to the apartment as soon as the tenant pays the security deposit. Both the tenant and the landlord would send their respective portions of the deal to the smart contract, which would hold onto and automatically exchange the door code for the security deposit on the date the lease begins. If the landlord doesn’t supply the door code by the lease date, the smart contract refunds the security deposit. This would eliminate the fees and processes typically associated with the use of a notary, third-party mediator, or attornies.
As in the Vechain Toolchain food safety solution example, suppliers can use blockchain to record the origins of materials that they have purchased. This would allow companies to verify the authenticity of their products, along with such common labels as “Organic,” “Local,” and “Fair Trade.”
As mentioned, blockchain could be used to facilitate a modern voting system. Voting with blockchain carries the potential to eliminate election fraud and boost voter turnout, as was tested in the November 2018 midterm elections in West Virginia. Using blockchain in this way would make votes nearly impossible to tamper with. The blockchain protocol would also maintain transparency in the electoral process, reducing the personnel needed to conduct an election and providing officials with nearly instant results. This would eliminate the need for recounts or any real concern that fraud might threaten the election.
Advantages of Blockchain
Accuracy of the Chain
Transactions on the blockchain network are approved by a network of thousands of computers. This removes almost all human involvement in the verification process, resulting in less human error and an accurate record of information. Even if a computer on the network were to make a computational mistake, the error would only be made to one copy of the blockchain. In order for that error to spread to the rest of the blockchain, it would need to be made by at least 51% of the network’s computers—a near impossibility for a large and growing network the size of Bitcoin’s.
Typically, consumers pay a bank to verify a transaction, a notary to sign a document, or a minister to perform a marriage. Blockchain eliminates the need for third-party verification and, with it, their associated costs. Business owners incur a small fee whenever they accept payments using credit cards, for example, because banks and payment processing companies have to process those transactions. Bitcoin, on the other hand, does not have a central authority and has limited transaction fees.
Blockchain does not store any of its information in a central location. Instead, the blockchain is copied and spread across a network of computers. Whenever a new block is added to the blockchain, every computer on the network updates its blockchain to reflect the change. By spreading that information across a network, rather than storing it in one central database, blockchain becomes more difficult to tamper with. If a copy of the blockchain fell into the hands of a hacker, only a single copy of the information, rather than the entire network, would be compromised.
Transactions placed through a central authority can take up to a few days to settle. If you attempt to deposit a check on Friday evening, for example, you may not actually see funds in your account until Monday morning. Whereas financial institutions operate during business hours, five days a week, blockchain is working 24 hours a day, seven days a week, and 365 days a year. Transactions can be completed in as little as ten minutes and can be considered secure after just a few hours. This is particularly useful for cross-border trades, which usually take much longer because of time-zone issues and the fact that all parties must confirm payment processing.
Many blockchain networks operate as public databases, meaning that anyone with an internet connection can view a list of the network’s transaction history. Although users can access details about transactions, they cannot access identifying information about the users making those transactions. It is a common misperception that blockchain networks like bitcoin are anonymous, when in fact they are only confidential.
That is, when a user makes public transactions, their unique code called a public key, is recorded on the blockchain, rather than their personal information. If a person has made a Bitcoin purchase on an exchange that requires identification then the person’s identity is still linked to their blockchain address, but a transaction, even when tied to a person’s name, does not reveal any personal information.
Once a transaction is recorded, its authenticity must be verified by the blockchain network. Thousands of computers on the blockchain rush to confirm that the details of the purchase are correct. After a computer has validated the transaction, it is added to the blockchain block. Each block on the blockchain contains its own unique hash, along with the unique hash of the block before it. When the information on a block is edited in any way, that block’s hashcode changes—however, the hash code on the block after it would not. This discrepancy makes it extremely difficult for information on the blockchain to be changed without notice.
Most blockchains are entirely open-source software. This means that anyone and everyone can view its code. This gives auditors the ability to review cryptocurrencies like Bitcoin for security. This also means that there is no real authority on who controls Bitcoin’s code or how it is edited. Because of this, anyone can suggest changes or upgrades to the system. If a majority of the network users agree that the new version of the code with the upgrade is sound and worthwhile then Bitcoin can be updated.
Banking the Unbanked
Perhaps the most profound facet of blockchain and Bitcoin is the ability for anyone, regardless of ethnicity, gender, or cultural background, to use it. According to the world bank there are nearly 2 billion adults that do not have bank accounts or any means of storing their money or wealth.
Nearly all of these individuals live in developing countries where the economy is in its infancy and entirely dependent on cash.
These people often earn little money that is paid in physical cash. They then need to store this physical cash in hidden locations in their homes or places of living leaving them subject to robbery or unnecessary violence. Keys to a Bitcoin wallet can be stored on a piece of paper, a cheap cell phone, or even memorized if necessary. For most people, it is likely that these options are more easily hidden than a small pile of cash under a mattress.
Blockchains of the future are also looking for solutions to not only be a unit of account for wealth storage, but also to store medical records, property rights, and a variety of other legal contracts.