Introduction To Blockchain - Chapter 1
Introduction To Blockchain - Chapter 1
Blockchain
CSEg5304
CHAPTER ONE
A DA M A S C I E N C E A N D T E C H N OLOGY U N IV E R S IT Y
C OE E C – C S E D E PA RT M E N T
Outline
INTRODUCTION TO BLOCKCHAIN TECHNOLOGY
What is Blockchain?
Blockchain Ledgers and Distributed Ledgers
Blockchain Architecture
Elements of Blockchain
Advantages and Disadvantages of Blockchain
Types of Blockchain
History of Bitcoin & Blockchain
The Blockchain Trilemma
Blockchain
Blockchain is a peer-to-peer, distributed ledger that is cryptographically-secure, append-
only, immutable (extremely hard to change), and updateable only via consensus or
agreement among peers.
In essence, it is a chain of blocks, where each BLOCK contains a list of transactions, a
timestamp, and a reference to the previous block, forming a chronological and tamper-
proof record of data (CHAIN).
Key Characteristics
Distributed Ledger: Blockchain operates where copies of the ledger are distributed across multiple nodes in
the network. Each node maintains an identical copy of the ledger. Changes to the ledger are synchronized and
propagated across the network through consensus mechanisms.
Immutability: Once a transaction is recorded on the blockchain and confirmed by consensus, it becomes
virtually impossible to alter or delete. Once data is written to the blockchain, it is extremely difficult to change
it.
Peer-to-Peer: Blockchain operates on a peer-to-peer (P2P) network, where transactions are directly conducted between
participants without the need for intermediaries. P2P architecture enables direct interaction and communication between
network participants, fostering decentralization and eliminating single points of control or failure.
Decentralization: Unlike traditional centralized systems where data is stored in a single location, blockchain operates on a
decentralized network of computers (nodes). Each node maintains a copy of the blockchain, ensuring redundancy, fault
tolerance, and resilience against single points of failure making the system highly available.
Append-Only: Blockchain is append-only, meaning that once data is added to the blockchain, it cannot be modified or
deleted. New data is continuously added to the blockchain in the form of blocks.
Cryptographically Secure: Blockchain employs cryptographic techniques such as hash functions, digital signatures, and
consensus mechanisms to secure the network against fraud, manipulation, tampering and unauthorized access.
Transparency: Transactions recorded on the blockchain are visible to all participants in the network. This transparency
fosters trust and accountability, as anyone can verify the integrity and authenticity of transactions without relying on
intermediaries.
Decentralization: Unlike traditional centralized systems where data is stored in a single location, blockchain operates on a
decentralized network of computers (nodes). Each node maintains a copy of the blockchain, ensuring redundancy, fault
tolerance, and resilience against single points of failure making the system highly available.
Pseudo-anonymous: Blockchains identify owners uniquely but do not maintain or reveal their real-world identity.
The Block and The Chain
The Block - is a list of transactions that occur within a specific time frame. It
contains all the information processed on the network within the past few
minutes.
o A block is merely a selection of transactions bundled together and organized logically. A transaction is a
record of an event, for example, the event of transferring cash from a sender's account to a
beneficiary's account. A block is made up of transactions, and its size varies depending on the type and
design of the blockchain in use.
The Chain - is the sequence of blocks linked together in a specific order. Blocks
are linked to the block before them using cryptographic algorithms.
o Hashing connects each block to the previous block, where the hash of the entire previous block is added
to the beginning of the next block. This creates a chain of blocks, hence the name blockchain. The chain
grows longer over time as new blocks are created. The chain grows longer over time.
o A reference to a previous block is also included in the block unless it is a genesis block. A genesis block is the first
block in the blockchain that is hardcoded at the time the blockchain was first started.
Distributed vs
Centralized vs
Decentralized
In the field of computing, a distributed system is one where
processing is not done solely on one computer. Rather,
computation is shared across several computing resources. These
systems communicate with one another using some form of
messaging.
A distributed system has characteristics of decentralization, in that
the failure of a single entity (or node) does not mean the failure of
the whole network. The common goal is to use processing power
to collectively accomplish a task by distributing responsibility across
many computers. However, decentralization changes the concept
of common goals and messaging.
In a fully decentralized system, a given node does not necessarily
collaborate with every other node to achieve its objective, and
decision-making is done through some form of consensus rather
than having this responsibility rest in the hands of a single entity.
Distributed Vs Centralized Vs
Decentralized
In a centralized database, like a Bank or PayPal, all nodes connect to a single, central
node that is controlled by one entity. There is a primary server, or central servers, and
multiple clients. The servers dictate what the clients can have
1. Decentralization: This is a core concept and benefit of the blockchain. There is no need for a trusted
third party or intermediary to validate transactions; instead, a consensus mechanism is used to agree on
the validity of transactions.
2. Highly secure: All transactions on a blockchain are cryptographically secured and thus provide network
integrity.
3. Transparency and Trust: Because blockchains are shared and everyone can see what is on the
blockchain, this allows the system to be transparent. As a result, trust is established.
Advantages:
4. Immutability: Once the data has been written to the blockchain, it is extremely difficult to change it back.
It is not genuinely immutable, but because changing data is so challenging and nearly impossible, this is seen
as a benefit to maintaining an immutable ledger of transactions.
5. High availability: As the system is based on thousands of nodes in a peer-to-peer network, and the data is
replicated and updated on every node, the system becomes highly available.
6. Cost Reduction: As no trusted third party or clearing house is required in the blockchain model, this can
massively eliminate overhead costs in the form of the fees which are paid to such parties.
7. Programmability: Smart contracts are self-executing contracts with the terms of the agreement directly
written into code. They automate and enforce contractual agreements, reducing the need for intermediaries.
Disadvantages:
As with any technology, some challenges need to be addressed in order to make a system more
robust, useful, and accessible. Blockchain technology is no exception. The most sensitive
blockchain problems are as follows: Scalability, Adaptability, Regulation, Relatively immature
technology, Privacy.
1. Scalability: As the size of the blockchain grows, scalability becomes a challenge. Transaction
processing speed may decrease, affecting the overall efficiency.
2. Lack of Regulation: The absence of clear regulations in many jurisdictions can lead to
uncertainties and challenges, especially in legal and compliance matters.
3. Complexity: Understanding and implementing blockchain technology can be complex for
individuals and organizations. This complexity may hinder widespread adoption.
Disadvantages:
4. Interoperability: Achieving interoperability between different blockchain networks and
traditional systems is a challenge. This can hinder the seamless integration of blockchain into
existing infrastructures.
5. Limited Privacy: While transactions are secure and transparent, the level of privacy is limited.
Some blockchain networks struggle to find a balance between transparency and user privacy.
6. Energy Consumption: Some blockchain networks, particularly those using Proof of Work
(PoW) consensus mechanisms, consume significant amounts of energy. This has raised concerns
about the environmental impact.
Tiers of Blockchain Technology
This versioning is just a logical segregation of various blockchain categories based on the way that they are
currently being used, are evolving, or predicted to evolve. This is a logical categorization of blockchain based on
its evolution and usage.
Blockchain 1.0: This tier was introduced with the invention of Bitcoin, and it is primarily used for
cryptocurrencies. Also, as Bitcoin was the first implementation of cryptocurrencies, it makes sense to categorize
this first generation of blockchain technology to include only cryptographic currencies.
Blockchain 2.0: This second blockchain generation is used by financial services and smart contracts. This tier
includes various financial assets, such as derivatives, options, swaps, and bonds. Applications that go beyond
currency, finance, and markets are incorporated at this tier. Ethereum, Hyperledger, and other newer blockchain
platforms are considered part of Blockchain 2.0.
Blockchain 3.0: This third blockchain generation is used to implement applications beyond the financial services
industry and is used in government, health, media, real estate, arts, and justice.
Blockchain X.0: This generation represents a vision of blockchain singularity where one day there will be a
public blockchain service available that anyone can use just like the Google search engine. It will be a public and
open distributed ledger with general-purpose rational agents running on a blockchain and regulated by code
instead of law or paper contracts.
Types of Blockchain
Different types of blockchains can be classified based on various viewpoints, including their
accessibility, model, and consensus mechanisms. Here's a classification based on these viewpoints:
3. Energy Consumption:
◦ PoW systems, like the one used in Bitcoin, are known for their high energy consumption.
4. Security:
◦ is considered highly secure because altering a block's information would require redoing all
the work.
Proof of Stake (PoS)
1. Consensus Mechanism:
◦ In Proof of Stake, validators are chosen to create a new block and verify transactions based on the amount of
cryptocurrency they hold and are willing to "stake" as collateral.
2. Resource Intensive:
◦ PoS is more resource-efficient compared to PoW since it doesn't require the same level of computational power.
Validators are chosen based on their stake in the network.
3. Energy Consumption:
◦ PoS is generally considered more environmentally friendly because it doesn't involve the energy-intensive mining
process seen in PoW.
4. Security:
◦ PoS relies on the economic incentive of validators not to cheat. Validators have something at stake (their
cryptocurrency holdings), making malicious behavior economically irrational.
Other Types of Blockchains
•Permissioned vs. Permissionless Blockchains:
• Permissionless blockchains grant write access to everyone, where every user or node can verify
transactions and create and add new blocks to the blockchain-data-structure.
• Permissioned blockchains grant write access only to a limited group of preselected nodes or users that
are identified as trustworthy through an on-boarding process.
Ideas that
•The theoretical ability to send small amounts of secured value, as Supported
Bitcoin
E-gold was able to do
E-Cash HashCash
•The creation of money outside of governmental systems, as B- Schemes Computation
Money had proposed
P2P Trustless
•Using proof-of-work to verify validity of digital funds, as Networks
Hashcash was designed to do.
Brief History of Blockchain
Stuart Haber and W. Bitcoin software is
Scott Stornetta released, marking the Blockchain technology
Ethereum goes live, continues to mature, with
propose a launch of the Bitcoin
introducing a new era increasing adoption across
cryptographically blockchain as the first
of blockchain industries beyond finance,
secured chain of implementation of
technology beyond including supply chain
blocks to timestamp blockchain
simple transactions. management, healthcare,
digital documents. technology.
and voting systems.