Blockchain Notes
Blockchain Notes
~Ajay Kureel
Blockchain technology is pretty revolutionary. At its core, it's a decentralized ledger that records
transactions across many computers. This decentralization ensures that the record can't be altered
retroactively without the alteration of all subsequent blocks, which would require the consensus of
the network majority.
Key Components:
1. Distributed Network:
2. Immutable Ledger:
• Once data is written to the blockchain, it cannot be changed, making it secure and tamper-
proof.
3. Consensus Mechanism:
• Methods like Proof of Work (PoW) or Proof of Stake (PoS) to agree on the validity of
transactions.
4. Cryptography:
How It Works:
1. Transaction Initiation:
2. Transaction Verification:
3. Block Creation:
4. Adding to Chain:
record.
5. Completion:
Applications range from cryptocurrencies like Bitcoin to supply chain management, secure voting
systems, and more.
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
• 2008: An anonymous person (or group) under the pseudonym Satoshi Nakamoto
published the Bitcoin whitepaper, proposing a decentralized digital currency.
• 2009: Bitcoin was launched, marking the first practical application of blockchain
technology.
• Present: Blockchain technology is now used in various fields like supply chain
management, voting systems, and more.
The growth of blockchain technology has been nothing short of meteoric. From its humble beginning
s with Bitcoin to its vast applications today, it's shaping up to be a revolutionary tech.
Early Days:
Institutional Adoption:
Technological Advancements:
• Interoperability: Platforms like Polkadot and Cosmos are working to enable different
blockchains to communicate and share data seamlessly.
Distributed System
Distributed systems are like the brain of the modern digital world, where multiple computers (or
nodes) work together to achieve a common goal. They give the illusion of a single system to the user.
Key Features:
2. Scalability: Easy to add more nodes to the system to handle increased load.
3. Fault Tolerance: If one node fails, the system can continue to function, enhancing reliability.
4. Transparency: Users see the system as a single entity, regardless of the number of nodes.
Examples:
How It Works:
• Coordination: Algorithms ensure all nodes work in harmony, like consensus algorithms in
blockchain.
• Data Replication: Ensures data is consistently available, even if some nodes go down.
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
Think of it like an orchestra, where each musician (node) plays their part, but together they create a
harmonious symphony.
defination of blockchain
Blockchain is a decentralized digital ledger technology that securely records transactions across multi
ple computers. Its key features are:
Blockchain’s most famous application is cryptocurrency, but it’s also used in finance, supply chains, h
ealthcare, and more.
peer to peer
(P2P) is a decentralized network structure where each node (computer) has equal power and can
function both as a client and a server. Unlike traditional client-
server models, P2P networks distribute workloads among all participants, leading to greater
efficiency and fault tolerance.
Key Features:
• Shared Resources: Nodes share resources like bandwidth, storage, and computing power.
• Direct Interaction: Nodes communicate directly with each other, improving speed and efficie
ncy.
Examples:
distributed ledger
A distributed ledger is a digital record of transactions shared and synchronized across multiple
locations or devices. Unlike traditional databases controlled by a central authority, distributed
ledgers spread the data across a network of nodes. This ensures transparency, security, and
decentralization.
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
Key Features:
2. Immutability: Once data is written, it can't be easily altered, ensuring a tamper-proof record.
3. Consensus Mechanism: Nodes agree on the validity of transactions using protocols like Proof
of Work or Proof of Stake.
4. Transparency: All participants can view the entire ledger, promoting trust and accountability.
Applications:
• Supply Chain: Track the movement of goods to ensure authenticity and reduce fraud.
cryptographically secure
When something is cryptographically secure, it means it uses cryptography to ensure confidentiality,
integrity, and authenticity. This involves using complex algorithms and protocols to protect data from
unauthorized access or alterations.
Key Principles:
1. Encryption: Converts plain text into ciphertext using an algorithm and a key.
2. Hashing: Converts data into a fixed-size hash value that is virtually impossible to reverse.
3. Digital Signatures: Validates the authenticity and integrity of a message, software, or digital
document.
Updates via consensus involve the network agreeing that the new block (and its transactions) is valid
before adding it. Different blockchains use different consensus mechanisms:
• Proof of Stake (PoS): Validators are chosen based on the amount of cryptocurrency they
hold and are willing to "stake."
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
4. Hashing: Cryptographic technique to secure the data within each block, making it immutable
.
5. Consensus Mechanism: Protocols like Proof of Work (PoW) or Proof of Stake (PoS) ensure
agreement on the state of the ledger.
7. Encryption: Protects transaction data and ensures only authorized users can access certain
information.
3. Transaction Validation: Nodes validate the transaction using cryptographic algorithms. They
ensure the sender has enough funds and that the transaction follows the network's rules.
4. Block Creation: Validated transactions are grouped together into a block. This block includes
a cryptographic hash of the previous block, ensuring a secure and chronological order.
5. Consensus Mechanism: The network uses a consensus algorithm (like Proof of Work or Proof
of Stake) to agree on the new block's validity. This ensures all nodes are synchronized and
agree on the blockchain's state.
6. Block Addition: Once consensus is reached, the new block is added to the blockchain. Each
new block strengthens the previous blocks, creating an immutable chain.
7. Transaction Completion: The transaction is now complete and recorded on the blockchain.
.
It’s visible to all network participants, ensuring transparency
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
Benefits of blockchain
1. Decentralization: Eliminates the need for a central authority, distributing control across a
network of nodes.
2. Transparency: Every transaction is recorded on a public ledger, available for all participants
to see.
4. Immutability: Once recorded, data cannot be altered or deleted, ensuring the integrity of
transactions.
5. Efficiency: Automates processes through smart contracts, reducing the need for
intermediaries.
6. Trust: Builds trust among participants as the system is transparent and secure.
limitations of blockchain
Blockchain has its fair share of challenges:
1. Scalability: Handling a large number of transactions per second is tough, leading to slower
speeds and higher costs.
2. Energy Consumption: Proof of Work (like Bitcoin) guzzles huge amounts of electricity.
3. Complexity and Cost: Setting up and maintaining blockchain systems can be intricate and
pricey.
4. Regulatory Hurdles: Lack of clear and unified regulations globally makes adoption tricky.
5. Immutability: While generally a strength, it means errors or malicious entries can’t be easily
corrected.
Tiers of Blockchain:
1. Data Layer:
• Hashes and Links: Secure links between blocks, ensuring data integrity.
2. Network Layer:
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
3. Consensus Layer:
• Consensus Algorithms: Mechanisms like Proof of Work (PoW), Proof of Stake (PoS),
ensuring agreement among nodes.
4. Incentive Layer:
• Rewards: Incentives for nodes (miners or validators) to secure and maintain the
network.
5. Contract Layer:
6. Application Layer:
Key Features:
types of blockchain
Blockchain comes in several flavors, each with its own characteristics and use cases:
Public Blockchain:
• Features: Open to everyone. Anyone can join, verify transactions, and participate in
consensus. High transparency and security. However, they can be slower and consume more
energy due to complex consensus mechanisms like Proof of Work.
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
Private Blockchain:
• Features: Access is restricted to specific members. Higher control over participants and
operations. More scalable and faster since fewer nodes need to reach consensus. Less
transparent but offers enhanced privacy and security for internal networks.
Consortium Blockchain:
Hybrid Blockchain:
• Examples: Dragonchain.
• Features: Combines the benefits of public and private blockchains. Certain data is kept public
, while sensitive information remains private. Flexible and customizable, catering to different
needs within the same system. Allows for transparency and privacy simultaneously.
Ledger
A ledger, in the context of blockchain, is a digital record of transactions. Think of it as a digital notebo
ok that logs all actions transparently and immutably.
Types of Ledgers:
1. Centralized Ledger: Controlled by a single entity. Traditional banks use these for recording tra
nsactions.
• Distributed: Exists across a network of computers (nodes) rather than being stored in a singl
e location.
• Transparent: All participants can see the transactions recorded on the ledger.
• Secure: Uses cryptographic techniques to ensure data integrity and prevent fraud.
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
distributed ledger
A distributed ledger is a digital system for recording transactions, where the records are shared
across multiple locations or nodes. This decentralization is one of the key features that sets it apart
from traditional, centralized ledgers.
Key Features:
• Decentralization: No central authority controls the ledger. All participants hold a copy of the
ledger, ensuring transparency and trust.
• Consensus Mechanism: Uses protocols like Proof of Work (PoW) or Proof of Stake (PoS) to
agree on the validity of transactions.
• Transparency: All transactions are visible to all participants, fostering a trustless environment
where no single entity has control.
Applications:
Key Components:
2. Consensus Mechanisms: Protocols like Proof of Work (PoW) or Proof of Stake (PoS) ensure
all nodes agree on the ledger’s state.
3. Security: Uses cryptographic techniques to ensure data integrity and prevent fraud.
Applications:
Consensus
Consensus in blockchain is how all the nodes in a network agree on a single version of the truth. It’s
crucial for maintaining the integrity and security of the blockchain.
• The first to solve the puzzle gets to add the new block to the chain and receives a
reward.
• Validators are chosen based on the amount of cryptocurrency they hold and are
willing to “stake” as collateral.
• Nodes reach consensus by following an algorithm that allows for some nodes to be
faulty or malicious.
CAP Theorem
The CAP Theorem is very relevant in the context of blockchain technology, especially when
considering the different types of blockchains and how they operate.
1. Consistency:
• In a blockchain, consistency means that all nodes agree on the order and content of
transactions. In public blockchains like Bitcoin, once a transaction is confirmed and a
dded to a block, it's consistent across the network.
2. Availability:
Red NOTES Blockchain Technology <unchecked>
~Ajay Kureel
3. Partition Tolerance:
Trade-offs:
• In the case of public blockchains (like Bitcoin or Ethereum), the system prioritizes Partition
Tolerance and Availability, often at the expense of immediate Consistency. This is evident in
scenarios where there's a temporary fork, and eventually, one chain is accepted as valid.
Blockchain’s architecture inherently ensures high availability and partition tolerance, while managing
consistency through mechanisms like consensus algorithms.
1. Public Blockchain: Open to anyone to join and participate in the network. Examples include
Bitcoin and Ethereum.
4. Hybrid Blockchain: Combines elements of public and private blockchains, allowing selective
transparency and privacy.
Intermediation in Blockchain:
Blockchain aims to reduce the need for intermediaries by enabling direct transactions between
parties. However, some level of intermediation still exists, especially in decentralized finance (DeFi)
where smart contracts and decentralized applications (DApps) act as intermediaries.
Contest-Driven Decentralization:
This method involves competition among service providers to be selected for providing services.
While it doesn't achieve complete decentralization, it ensures that no single entity monopolizes the
service. Smart contracts can choose service providers based on criteria like reputation, previous
performance, and quality of service.