A BLOCKCHAIN is a digital database or ledger of transactions that is maintained by multiple computers.
The goal of blockchain technology is that transactions can be confirmed without the need of a third party or gatekeeper. Blockchains are therefore called "decentralized" since the full blockchain detailing the history of transactions is distributed across a vast network of computers (called “nodes”).
There are public blockchains (accessible by everyone), and private blockchains (only accessible within an organization, sometimes including partners and/or clients.
Blockchains can be used in various applications such as currencies (called then “cryptocurrencies”), smart contracts (contracts that can embed automatic processes), art, etc. (see below for more applications)
The most renowned blockchain that is handling a cryptocurrency is Bitcoin (the same name for the blockchain and the cryptocurrency). We can also cite Ether on Ethereum blockchain or Ada on Cardano. Below is a list of well-known blockchains:
|
Transactions are stored in blocks of information protected by cryptographic methods. They are validated by a node and propagated to the network. Many blockchains need multiple confirmations from other nodes before the transaction is considered immutable or irreversible. Network confirmations help lessen the risk of any single entity controlling the network, as false transactions propagated to the network will be rejected by other nodes.
Cardano is an example of a decentralized public blockchain, having over 3,000 full nodes that store the full database and validate transactions.
Public blockchains allow any person or entity to authenticate transaction details, whether it be money payments, contracts, ownership of assets, or virtually any other type of information.
One of the earliest influences on blockchain was David Chaum, who in 1983 published a paper about creating anonymous electronic money called eCash, which included the first known proposal for a blockchain protocol. eCash would be digitally stored money on your local computer that was cryptographically signed by a bank. Later in 1991, Stuart Haber and W. Scott Stornetta started work on creating a cryptographically secured chain of blocks with tamper-proof timestamps of documents.
The real revolution of blockchain came from a person, or group of people, who used the pseudonym Satoshi Nakamoto. The identity of Satoshi Nakamato remains a mystery to this day. However, in 2009, Satoshi was able to successfully combine the best of all these previous ideas into a usable solution called Bitcoin, which has become one of the world’s most popular cryptocurrencies. Bitcoin is a decentralized digital currency that can be sent from user to user with no intermediary. In addition, transactions are secured through cryptography and publicly recorded on a blockchain.
Blockchain technology is the foundation of cryptocurrency. In fact, without blockchain technology, decentralized cryptocurrencies like Cardano and Bitcoin wouldn’t be possible. Cryptocurrencies are protocols built on top of the blockchain, using blockchain technology to accurately record transactions. Let’s spend some time learning the basics of blockchain.
Learning blockchain architecture will give you a good understanding of cryptocurrency platforms like Cardano or Bitcoin, which are protocols built on top of blockchains. In a blockchain, the blocks essentially represent a summary of transactions that are added periodically to a chain linked with all other blocks of transactions. With each block, the chain grows longer. For decentralized blockchains, a block of transactions being added to the chain is immutable, which means the transaction cannot be changed or reversed. Let’s look at an illustration of the Cardano public blockchain, which adds a new block of transactions every 20 seconds.
Blockchains are important to cryptocurrencies because they allow a secure, decentralized way for transactions to happen. In decentralized cryptocurrency protocols like Cardano and Bitcoin, a consensus mechanism is used to reject false transactions and validate honest transactions. Below are the steps to submit and finalize a transaction.
How Blockchain technology works
Why would nodes spend computing resources to store the full blockchain and validate transactions? For decentralized blockchains, nodes are compensated for adding new blocks to the blockchain.
Consensus mechanisms are used to validate new transactions that are added to a blockchain. For cryptocurrencies, nodes who validate and add transactions to the blockchain are incentivized to make sure the blockchain only includes valid transactions since they are typically compensated in the native coin of the public blockchain. If the public’s trust in the blockchain declines, so will the value of the coin’s nodes received for adding blocks of transactions.
While there is a growing number of consensus mechanisms, the two main ones are Proof of Work (PoW) and Proof of Stake (PoS). PoW is used by popular blockchains like Bitcoin. PoS is used by Cardano, Solana, Polkadot, and many others.
A decentralized consensus mechanism that requires members, or miners, of a network to expend effort solving an arbitrary mathematical problem that prevents anyone from gaming the system. The mechanism requires “work” because of the computing power required to solve the mathematical puzzle.
In proof-of-work blockchains like bitcoin, there are three types of nodes that validate transactions and secure the blockchain.
Tampering is prevented using hashes, which is a mathematical function that converts an input of arbitrary length into an encrypted output with a fixed length. Hashing requires the miner to process the data from a block through a mathematical function, which produces an output of a fixed length. By using a fixed-length output, security is increased since anyone trying to decrypt the hash won’t be able to tell how long or short the input is by looking at the length of the output.
Putting a set of data through a hash function, such as the SHA-256 cryptographic hash algorithm that bitcoin uses, will only ever generate one hash. A small change in any portion of the original data set will result in a completely different hash output. The hash is one-way, meaning that the hash output cannot be used to obtain the original data. The hash output can only be used to check that the data that generated the hash matches the original data.
To do so, the miner must produce a value that is hashed, or cryptographically encoded, and is less than or equal to the one used in the most recent block accepted by the bitcoin network. The random set of characters is between 0 and a maximum number of 256-bits.
The miner spends computing power testing numerous sets of values to get the target hash. The difficulty level, or length of the target hash, is adjusted every 2,016 blocks so that a block is mined every 10 minutes on average. This computing power needed to determine the target hash is where the “work” comes from in “proof of work” since electricity and a lot of computing resources are required from each miner.
The first miner to get the correct hash gets to add a new block and is compensated in bitcoin. All other miners who didn’t produce a block essentially wasted computing resources to produce the correct hash. Initially, bitcoin mining could be done using the central processing units (CPUs) on modern desktop computers or laptops. To increase their chance of producing a block, over time people have bought specialized hardware called application-specific integrated circuit (ASIC) miners. ASIC miners, which are computerized devices specifically optimized for mining bitcoin or another cryptocurrency, exceed graphic processing units and CPUs in computing power and lower electricity consumption.
Proof of Stake (PoS)
PoS is a consensus mechanism, like PoW, for processing transactions and creating new blocks in a blockchain. PoS was in part formed as a response to the drawbacks of PoW. PoW had very high energy consumption and the decentralization of PoW was questioned for cryptocurrencies like bitcoin as the ASIC miners became more expensive, effectively limiting the mining distribution to entities with substantial capital and energy resources.
Due to high energy costs, many blockchains have moved away from PoW. Below are prominent blockchains, based on market capitalization, and their consensus model:
PoS reduces the amount of computing power needed to validate transactions on a blockchain by changing the way validators, who verify and add blocks to the blockchain, are selected. Instead of racing to solve a hash, validators are randomly selected to mine, or validate a block. Since the selection is random, the competitive energy usage miners typically spend in PoW blockchains is eliminated.
PoS models are not homogenous. Many PoS blockchains have variations in their consensus protocols that make them different from other PoS models.
However, in general for PoS models, a validator’s chance of being selected to add a block is higher based on their amount of “stake”, or the total amount of coins they’ve delegated or deposited to the protocol. Staking means you must delegate or deposit the cryptocurrency, or native coin, of the blockchain you are validating. The validator’s interest is aligned with the security of the blockchain because a drop in the value of the coin would reduce the value of the validator’s personal stake.
In addition, some protocols have implemented slashing, which is a mechanism in some PoS protocols that discourages validator misbehaviors by reducing a predefined percentage of the validator’s stake. Slashing is used to ensure network participation and security by penalizing validators in certain situations. In most blockchains, slashing is based on two conditions: downtime and double signing. Downtime is when validators are not available for a certain amount of time online to sign transactions. Double signing is when validators sign two blocks simultaneously, which results in the network having to work harder to reach a consensus. Downtime and double signing may occur because of a node’s operational setup instead of illicit intent. Other conditions that could lead to slashing include signing false transactions, attacking the network, or running modified software. Polkadot and Ethereum are two protocols that have implemented slashing for the PoS consensus mechanisms.
Blockchain has many applications beyond a medium for transferring an asset of value. Blockchain features such as smart contracts, decentralization, transparency, security, and immutability can be used in many ways. Below are some applications for blockchain:
The legality of decentralized blockchains used in cryptocurrencies that have no government oversight has some political backlash to the asset. Unlike fiat money like the United States dollar or Chinese yuan, no government can control cryptocurrencies like Cardano or Bitcoin. Even if a country banned its citizens from being validators or miners, the cryptocurrency would continue if other full nodes around the world exist. Here are some issues with decentralized blockchains:
Public Policy— Due to the ability of blockchain to make some technologies, such as cryptocurrencies decentralized, it limits the impact of countries’ economic sanctions.
Most personal crypto wallets do not collect identifying information of their users and therefore do not observe the Travel Rule. Many governmental entities, such as the European Union (EU), have passed laws to enact some of FATF recommendations. The EU is moving forward with legislation requiring VASPs, including unhosted wallets, to include information on the source of the asset and its beneficiary for crypto transfers of any value.
If the development companies behind a blockchain or unhosted wallet were compelled to update their software to include regulatory guidelines, anyone could use the code of the blockchain or wallet to create another blockchain or wallet without the new code.
Ethics relate to the moral principles behind one’s actions or behaviors, regardless of whether that action or behavior is illegal. There are often decisions a person could make that may be legal, but unethical. By creating blockchain-based platforms or applications that can avoid government oversight, are the developers making an unethical decision by easing the ability to conduct illicit transactions? Below are a few ethical dilemmas related to blockchain technology.