bct unit - 4(.pdfguf in cr uiigftyyyyfffghhh

22u45a0508 29 views 20 slides Aug 29, 2025
Slide 1
Slide 1 of 20
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20

About This Presentation

Bcg


Slide Content

Let’s break down **crash faults** in a blockchain network with an easy-to-follow example.

### What It Means:
A crash fault is simply when one of the computers or "nodes" in the network stops working suddenly.
This could happen due to a power failure, hardware crash, or even a software issue. When a node
crashes, it can’t send or receive information from the other nodes in the network until it is restarted or
repaired. The node essentially goes offline.

### How It Affects Blockchain:
In a blockchain, nodes work together to validate transactions and update the network with new
information. When some nodes go down, it means there are fewer nodes left to do these tasks.
However, crash faults are usually not a big issue in blockchain systems. Since the crash is not malicious
(no one is trying to cheat or break the network), the blockchain can keep operating without those nodes.

Most blockchains, especially large ones, are built to handle situations where some nodes go offline
temporarily. So, even if a few nodes crash, the blockchain still works smoothly because other nodes pick
up the workload.

### Example:
Imagine you’re in a Proof-of-Work (PoW) blockchain network with multiple miners who are trying to add
new blocks by solving complex puzzles.

1. **Scenario**: Let’s say one miner’s computer stops working because of a hardware issue. It’s like one
player in a soccer game having to leave the field – the rest of the players keep playing.
2. **What Happens Next**: The other miners in the blockchain continue working to solve the puzzle
and add new blocks.
3. **Blockchain Resilience**: Since other miners are still online, they can validate transactions and add
blocks as usual. The blockchain network stays functional and secure, even though one miner is
temporarily offline.

### Key Takeaway:

A crash fault (like a miner’s computer stopping) is typically manageable in a blockchain because other
nodes keep the network running. The system can tolerate some offline nodes without any serious issues,
as long as the majority of nodes are still operational. This resilience is one of the reasons why blockchain
is considered robust and fault-tolerant.Let’s explore **Byzantine faults** in a blockchain network with a
straightforward example.

### What It Means:
Byzantine faults are a more challenging type of problem because they occur when a node doesn’t just
stop working, but instead behaves unpredictably or even maliciously. A node with a Byzantine fault
might send different data to different nodes, creating confusion across the network. This kind of
behavior could involve lying, sending false information, or actively trying to disrupt consensus.

### How It Affects Blockchain:
In a blockchain, reaching consensus means that all nodes in the network agree on the state of the ledger
(i.e., which transactions are valid). However, if some nodes start behaving in a way that disrupts or
deceives the network, it becomes much harder to achieve a consensus. For example, if a node tries to
double-spend money (spending the same funds twice), the network could end up accepting false
information if it’s not careful.

To guard against Byzantine faults, blockchain systems use specialized algorithms like **Practical
Byzantine Fault Tolerance (PBFT)** or **Proof-of-Work (PoW)**. These algorithms are designed to
maintain security even if a small number of nodes are acting maliciously. They help ensure that only
valid transactions are confirmed and that dishonest nodes don’t disrupt the network.

### Example:
Imagine a blockchain network with several nodes (computers) working together to validate transactions.
Here’s a scenario with a Byzantine fault:

1. **Scenario**: Suppose one node in the network gets compromised. Instead of following the normal
rules, this node sends conflicting data to other nodes. It might tell half the network, “Alice paid Bob 1
BTC,” while telling the other half, “Alice didn’t pay Bob anything.”

2. **What Happens Next**: Now, there’s confusion. Some nodes think that Alice made a payment to
Bob, while others think she didn’t. This conflicting information can make it hard for the network to
decide on the correct state of transactions.

3. **Blockchain Resilience**: To handle such situations, the blockchain uses a consensus algorithm like
PBFT or PoW, which requires the majority of honest nodes to agree before a transaction is confirmed. So,
if the majority of nodes report that “Alice did pay Bob,” the network can ignore the compromised node’s
false data. In PoW, for instance, only blocks with verified, consensus-approved transactions are added to
the chain, making it harder for a single malicious node to succeed.

### Key Takeaway:
Byzantine faults (like a node sending false information) are serious but manageable with the right
protocols. Algorithms such as PBFT and PoW allow blockchains to tolerate a limited number of dishonest
nodes without compromising the network. This resilience to Byzantine faults is essential for maintaining
trust and security in a decentralized environment.Let’s break down **network faults** in a blockchain
system with an easy-to-understand example.

### What It Means:
Network faults happen when there are communication issues between nodes in a network. These issues
could include delays, disconnections, or packet losses, which mean that some nodes might not receive
information from others as quickly or reliably as expected. This isn’t usually caused by malicious
behavior but by technical issues, such as poor internet connection or temporary network congestion.

### How It Affects Blockchain:
In a blockchain, all nodes need to stay in sync with each other to maintain an accurate and up-to-date
ledger. If some nodes get delayed or disconnected, they might miss out on new transactions or blocks.
This can lead to temporary inconsistencies, as disconnected nodes may not have the latest data that the
rest of the network has. While network faults don’t usually harm the system intentionally, they can slow
down transaction confirmations and reduce efficiency.

### Example:
Imagine a blockchain network where multiple nodes (computers) are constantly sharing information to
validate and add new blocks. Here’s a scenario involving a network fault:

1. **Scenario**: Suppose a group of nodes gets temporarily disconnected from the main network due
to a network issue, like a regional internet outage or heavy network congestion. This group of nodes
can’t communicate with the rest of the network until the connection is restored.

2. **What Happens Next**: While disconnected, these isolated nodes might start creating and
confirming transactions within their own smaller network, forming a separate chain, or “fork,” of the
blockchain. Meanwhile, the main network continues to process transactions and add blocks.

3. **Reconnecting**: Once the connection is restored, the isolated nodes reconnect to the main
network and realize that their version of the blockchain is different. In most blockchains (like those using
Proof-of-Work), the network will follow the longest chain rule, which means nodes will discard the
shorter “forked” chain and adopt the longest chain as the valid one.

4. **Resolution**: The isolated nodes then “catch up” by syncing with the main network’s chain, and
the temporary fork is resolved. The transactions in the isolated chain that didn’t make it to the main
chain may need to be reprocessed, ensuring the network remains unified and up-to-date.

### Key Takeaway:
Network faults, like temporary disconnections, can cause delays and temporary forks in the blockchain,
but they are typically resolved when communication is restored. Consensus mechanisms allow the
network to handle these faults smoothly, ensuring that all nodes eventually converge on a single,
correct chain. Although network faults reduce efficiency temporarily, they don’t usually threaten the
security or accuracy of the blockchain.

How are the four Byzantine general problems handled when the two
Lieutenants are faulty? Explain.
In the Byzantine Generals Problem, the goal is for the generals (or nodes) in a system to agree on a plan
of action despite the presence of faulty or traitorous generals who might send conflicting information.
When **two lieutenants** are faulty, the handling of the problem depends on how many generals are
present and how the system ensures consensus.

Here’s how the problem works and is handled in cases where **two lieutenants** are faulty:

### Problem Setup:
1. There are several generals, and each general has to agree on whether to **attack** or **retreat**.
2. Some generals might be faulty and try to confuse or mislead the others.
3. The goal is to find a way to ensure that the system can still reach a consensus despite faulty behavior.

### The Four Scenarios (with two faulty lieutenants):

#### 1. **Commander is Honest, Both Lieutenants are Faulty:**
- **What Happens:** The commander sends the correct order (e.g., "Attack"), but the two faulty
lieutenants might send conflicting or incorrect messages to other generals, confusing them.
- **How it’s Handled:**
- Honest generals compare what they’ve received from each general.
- Since there are at least **one honest lieutenant**, the system uses **majority voting** to decide
on the correct action. The faulty lieutenants’ messages are outvoted.
- **Solution:** The system works as long as there are enough generals so that the majority can make
the right decision. If there are 7 generals (3 faulty generals and 4 honest ones), the majority will lead to
the right consensus.

#### 2. **Commander is Faulty, Both Lieutenants are Faulty:**
- **What Happens:** The commander might send an incorrect or conflicting order to the lieutenants.
Both lieutenants are also faulty and could send conflicting messages to the other generals.
- **How it’s Handled:**
- Honest generals will communicate with each other and exchange information.
- Even though both the commander and the lieutenants are faulty, honest generals can still use
**majority voting** to determine the right action.

- **Solution:** The system will work if there are enough honest generals to outvote the faulty ones.
Again, at least 7 generals are needed for consensus.

#### 3. **Commander is Honest, One Lieutenant is Faulty, One is Honest:**
- **What Happens:** The commander sends the correct order, but one lieutenant might send an
incorrect message to other generals.
- **How it’s Handled:**
- The honest lieutenant will communicate the correct order.
- Honest generals will use **majority voting** to disregard the false message from the faulty
lieutenant.
- **Solution:** The majority of generals (honest ones) will reach the correct decision.

#### 4. **Commander is Faulty, One Lieutenant is Faulty, One Lieutenant is Honest:**
- **What Happens:** The commander and one lieutenant are faulty, while the other lieutenant is
honest. The faulty ones could send misleading messages.
- **How it’s Handled:**
- The honest lieutenant will send the correct message.
- Honest generals will compare messages from each general and use **majority voting** to ignore
the faulty ones’ messages.
- **Solution:** Honest generals will use majority voting to reach the correct decision, even if two
generals are faulty.

### General Solution:

- **Majority Voting:** The system relies on the majority decision, where the honest generals can
outvote the faulty ones.
- **Fault Tolerance Bound:** To handle up to 2 faulty generals (in this case, the two faulty lieutenants),
there must be enough total generals. Specifically, there need to be **at least 7 generals** in total (since

\( n \geq 3f + 1 \), where \( f \) is the number of faulty generals). This way, the 5 honest generals can still
agree on the correct decision.

### Conclusion:
In all these cases, as long as there are enough generals to form a majority, the Byzantine Generals
Problem can be solved. The faulty generals (the commander or the lieutenants) cannot confuse the
majority of honest generals, and they can still reach a consensus on the correct plan.


**Hyperledger Fabric**
**Hyperledger Fabric** is a special type of blockchain designed specifically for businesses. It’s secure,
private, and can handle large amounts of transactions quickly. Unlike public blockchains (such as Bitcoin),
where anyone can join, Hyperledger Fabric allows only approved participants to access the network.
This makes it great for businesses that need privacy and trust.

### Main Components of Hyperledger Fabric

1. **Peers**
- **What They Are**: Peers are computers that are part of the network. They store data and help
execute the rules of the blockchain (called "smart contracts").
- **Types**:
- **Endorsing Peers**: These peers check and validate transactions.
- **Committing Peers**: These peers store the approved transactions in the ledger.
- **Example**: In a car manufacturing network, a peer could represent a company that supplies car
parts, and it keeps track of transactions like orders or shipments relevant to it.

2. **Orderer (Ordering Service)**
- **What It Does**: The orderer organizes transactions from different peers, turns them into blocks
(like pages in a record book), and sends these blocks to the network.

- **Example**: In a financial network, the orderer organizes money transfer transactions from various
branches, so they all see them in the same order, preventing issues like spending the same money twice.

3. **Channel**
- **What It Is**: Channels allow private communication between specific participants on the network.
Each channel has its own ledger (record of transactions).
- **Example**: In a hospital and insurance company network, a private channel could be set up
between the two to share patient data securely, so only they can see it.

4. **Smart Contracts (Chaincode)**
- **What They Do**: Smart contracts are scripts that define business rules (like, “If X happens, then do
Y”). In Hyperledger Fabric, these scripts are called "chaincode."
- **Example**: In a supply chain, a smart contract might automatically release payment to a supplier
once the goods are delivered and confirmed.

5. **Ledger**
- **What It Is**: The ledger is where all transaction records are stored. Hyperledger Fabric’s ledger has
two parts:
- The **blockchain**, which is a permanent, unchangeable record of transactions.
- The **world state**, which shows the latest status of each data item.
- **Example**: In a retail business, the ledger would keep track of inventory transactions, showing the
current stock and past movements.

6. **Membership Service Provider (MSP)**
- **What It Does**: The MSP manages identities (IDs) and permissions of everyone in the network. It
makes sure only approved participants can perform certain actions.
- **Example**: In a government network, the MSP might allow only certain agencies access to
particular records while restricting others.

7. **Certificate Authority (CA)**
- **What It Does**: The CA issues digital certificates to authenticate participants and prove their
identity on the network.
- **Example**: In a business collaboration network, the CA verifies each company’s identity before
they can interact, ensuring that only trusted entities are involved.

### How It Works (Example Scenario)

Imagine a **supply chain network** with suppliers, manufacturers, and retailers as participants:

1. When a **supplier** ships products, a **transaction** is created by their peer.
2. The **endorser** peer (supplier’s peer) checks the transaction, ensuring it meets the rules.
3. The **orderer** then organizes this transaction into a block and distributes it to the relevant network
participants.
4. A **smart contract** could trigger an automatic payment to the supplier once the manufacturer
confirms receipt of goods.
5. The **ledger** records all these activities, creating a permanent record.
6. A **channel** ensures that only the supplier and manufacturer see this transaction, keeping it
private from other participants.
7. The **MSP** checks that each participant has the right permissions, and the **CA** ensures
everyone’s identity is verified.

This allows different companies to securely and efficiently manage business processes while ensuring
privacy and trust.

**consensus algorithm**
A **consensus algorithm** is a method used in distributed systems (like blockchains) to ensure that all
participants (nodes) agree on the same data or decision, even if some of them fail or act maliciously. To
work properly, a consensus algorithm must satisfy three main requirements:

---

### 1. **Agreement (Consistency)**:
- **What it Means:** All the honest nodes (those working correctly) must agree on the same decision
or value.
- **Why It’s Important:** If some nodes decide one thing and others decide something different, the
system will break because the data won’t match across all nodes.
- **Example:** Imagine a group of friends deciding on a movie to watch. If everyone agrees on the
same movie, they can proceed. If half choose one movie and the other half choose another, the group
can’t move forward.
- **How It’s Achieved in Systems:**
- Nodes exchange information and follow strict rules to ensure they all agree on one decision.
- If a node sends conflicting or invalid information, the system ignores it.

---

### 2. **Termination (Liveness)**:
- **What it Means:** The algorithm must eventually make a decision, no matter what happens (like
network delays or node failures).
- **Why It’s Important:** Without termination, the system could get stuck waiting forever for
responses, which would stop progress.
- **Example:** If the friends are deciding on a movie but never make a decision because one friend
keeps changing their mind, they’ll never start watching. The group needs a rule to finalize the choice,
even if someone disagrees.
- **How It’s Achieved in Systems:**
- Systems set time limits for communication. If a node doesn’t respond in time, it’s ignored.
- Some systems elect a "leader" to help speed up the decision-making process.

---

### 3. **Fault Tolerance**:
- **What it Means:** The system must still work correctly even if some nodes fail or act maliciously
(e.g., lying, sending wrong data, or not responding).
- **Why It’s Important:** In real-world systems, failures are common (due to hardware issues,
network problems, or attacks). The system must continue functioning despite these problems.
- **Example:** If two friends leave the group or deliberately suggest random movies to confuse others,
the rest of the group should still be able to decide on a movie.
- **How It’s Achieved in Systems:**
- The system uses "majority rule." As long as most nodes are honest, the system can ignore the faulty
ones.
- For very malicious nodes, advanced techniques like "Byzantine Fault Tolerance" can handle the issue.

---

### Summary:
To make a consensus algorithm work:
1. **Agreement:** Everyone must agree on the same result.
2. **Termination:** A decision must be made eventually.
3. **Fault Tolerance:** The system must handle failures and malicious behavior.

Think of it as a group decision-making process with rules to ensure everyone ends up on the same page,
no matter the obstacles.

Ethereum and Bitcoin are both blockchain-based systems, but they have distinct goals and primary
functionalities. Here's a comparison that highlights their differences:

---

### **1. Primary Purpose:**
- **Bitcoin:**
- Designed as a **decentralized digital currency**.
- Its main goal is to serve as a **store of value** and a **medium of exchange** (digital money).
- It focuses on secure, peer-to-peer transfer of cryptocurrency (BTC) without the need for
intermediaries.
- **Ethereum:**
- Designed as a **decentralized platform for smart contracts** and **decentralized applications
(dApps)**.
- Its primary goal is to provide a programmable blockchain where developers can build and execute
self-executing contracts and applications.
- Ethereum’s cryptocurrency, **Ether (ETH)**, is used as "fuel" to power these applications.

---

### **2. Smart Contracts:**
- **Bitcoin:**
- Bitcoin has a limited scripting language for simple transactions, such as sending money or multi-
signature wallets.
- It is not designed for complex programmable logic.
- **Ethereum:**
- Ethereum introduced **smart contracts**, which are self-executing contracts with pre-defined
conditions.
- Developers use Ethereum's programming language (**Solidity**) to create and deploy these
contracts on the Ethereum Virtual Machine (EVM).
- Smart contracts enable decentralized applications (e.g., DeFi platforms, NFTs, supply chain systems).

---

### **3. Blockchain Design:**
- **Bitcoin:**
- Bitcoin's blockchain is optimized for **security** and **immutability**. It focuses on recording and
securing financial transactions.
- Blocks are primarily used to store transaction data for transferring BTC.
- **Ethereum:**
- Ethereum's blockchain is designed to handle **programmability** in addition to transactions.
- Each block stores not only Ether transactions but also **state changes** from smart contracts and
dApps.

---

### **4. Consensus Mechanism:**
- **Bitcoin:**
- Uses **Proof of Work (PoW)** for its consensus mechanism, which involves miners solving complex
puzzles to validate transactions and secure the network.
- It is known for being energy-intensive.
- **Ethereum:**
- Initially used **Proof of Work (PoW)** but transitioned to **Proof of Stake (PoS)** with the
Ethereum 2.0 upgrade (completed in 2022).
- PoS is more energy-efficient and relies on validators staking Ether to secure the network.

---

### **5. Cryptocurrency Usage:**
- **Bitcoin:**
- Bitcoin (BTC) is primarily used as a **digital currency** and **store of value**, similar to gold.
- Its use cases are mainly financial (e.g., payments, investments).
- **Ethereum:**
- Ether (ETH) is used to **pay for gas fees** required to execute smart contracts and run applications
on the Ethereum network.
- ETH also has financial uses (e.g., DeFi lending, staking), but its primary role is to support the
ecosystem.

---

### **6. Development Community and Ecosystem:**
- **Bitcoin:**
- Bitcoin has a smaller focus on programmability and a more conservative approach to changes in its
protocol.
- Its ecosystem is centered around payments, wallets, and Layer 2 solutions (like the Lightning
Network for faster transactions).
- **Ethereum:**
- Ethereum has a vibrant development community and a growing ecosystem of dApps, including:
- Decentralized Finance (DeFi) platforms (e.g., Uniswap, Aave).
- Non-Fungible Tokens (NFTs) marketplaces (e.g., OpenSea).
- Games, supply chain apps, and identity systems.

---

### **7. Transaction Speed:**

- **Bitcoin:**
- Processes transactions approximately every 10 minutes (block time).
- **Ethereum:**
- Processes transactions much faster, with block times of about 12–14 seconds.

---

### Summary Table:

| **Aspect** | **Bitcoin** | **Ethereum** |
|-------------------------|------------------------------------|-----------------------------------------|
| **Primary Function** | Digital currency, store of value | Smart contracts, decentralized apps |
| **Consensus Mechanism** | Proof of Work (PoW) | Proof of Stake (PoS) |
| **Programmability** | Limited scripting language | Fully programmable via smart contracts |
| **Transaction Speed** | ~10 minutes per block | ~12–14 seconds per block |
| **Ecosystem Focus** | Payments, store of value | DeFi, NFTs, games, dApps |

---

### Key Takeaway:
- **Bitcoin** is like "digital gold," focused on financial transactions and security.
- **Ethereum** is like a "world computer," enabling developers to build and execute decentralized
applications beyond just money transfers.
### **What is IOTA?**

IOTA is a special type of blockchain platform designed for **Internet of Things (IoT)** devices. Instead
of traditional blockchains, it uses a new technology called the **Tangle**, which is faster, doesn’t
require mining, and doesn’t charge transaction fees. It is perfect for tiny devices like sensors or smart
gadgets to send data and money securely and cheaply.

- **Purpose**: IOTA helps devices talk to each other, share data, and make small payments without
high costs.
- **Currency**: It has a cryptocurrency called **MIOTA**, used for transactions.

---

### **How IOTA Works**

IOTA is different because it doesn’t have blocks or miners like Bitcoin or Ethereum. It uses the
**Tangle**, which works like a big web of transactions. Here’s how:

1. **Tangle Technology**:
- Each transaction validates two other transactions, creating a web of connections.
- No need for miners or big computers, making it energy-efficient and fast.

2. **No Fees**:
- There are no transaction fees, so it’s great for small payments (e.g., fractions of a cent).

3. **Scalability**:
- The more devices use IOTA, the faster it becomes since every new transaction strengthens the
network.

---

### **Two Use Cases of IOTA**

#### **1. Smart Cities – Better Waste Management**
- **Problem**: Trash bins in cities are emptied on fixed schedules, even when they are not full, wasting
time and fuel.
- **IOTA Solution**:
- Smart bins with sensors can measure how full they are and send data to waste collection services
using IOTA.
- This helps plan efficient routes, saving money and reducing pollution.
- Payments for the service can be done automatically and without fees.
- **Result**: Cleaner cities, less fuel waste, and smarter operations.

#### **2. Electric Vehicle (EV) Charging – Pay for What You Use**
- **Problem**: EV charging often involves complicated payment systems and extra fees.
- **IOTA Solution**:
- Cars can pay charging stations directly using IOTA’s cryptocurrency, MIOTA, without middlemen or
fees.
- You pay only for the exact amount of electricity your car uses.
- The charging data is securely recorded in IOTA’s Tangle.
- **Result**: Simple, cost-effective charging for EV owners and better adoption of clean energy.

---

### **Conclusion**

IOTA is like a backbone for the Internet of Things. It connects devices, helps them share data, and makes
payments easy and free of cost. Its smart design makes it perfect for everyday technologies, from smart
cities to EV charging, making life more efficient and sustainable.


### **Currency Multiplicity**

**Currency multiplicity** means having more than one type of currency in use at the same time within
an economy. These could include:

1. **National currencies** (like dollars or euros).
2. **Cryptocurrencies** (like Bitcoin or Ethereum).
3. **Local currencies** (like the Bristol Pound in the UK).

Explain about currency Multiplicity & Demurrage currency.

#### **Why Use Multiple Currencies?**
- **Flexibility**: Different currencies can serve different purposes. For example, cryptocurrencies might
be better for online global payments, while local currencies can boost spending in small communities.
- **Choice**: People and businesses can choose the currency that works best for them.
- **Challenges**: It can create complications, like the need to exchange currencies or fluctuations in
value.

---

### **Demurrage Currency**

A **demurrage currency** is designed to lose value if you don’t spend it. Think of it as money that
"expires" or gets smaller the longer you hold onto it.

#### **How Does It Work?**
- Imagine you have $100 of demurrage money. If you don’t spend it by the end of the month, it might
lose 1% of its value, so now you have $99.
- This forces people to **spend or invest** the money instead of keeping it idle, which keeps the
economy active.

#### **Why Use Demurrage Currency?**
- **Encourages spending**: People spend money faster, boosting businesses and trade.
- **Prevents hoarding**: Money sitting unused doesn’t help the economy grow.
- **Real-world example**:
- In 1932, the Austrian town of Wörgl introduced a local currency with demurrage during the Great
Depression. This helped create jobs and keep the economy moving.

---

### **Simple Comparison**

- **Currency Multiplicity**: Having lots of options (like cash, local money, or crypto) to use for
payments.
- **Demurrage Currency**: A special type of money that loses value if you don’t spend it quickly.

---

### **Conclusion**

Currency multiplicity gives people more choices for how to pay, while demurrage currency pushes
people to spend money faster to keep the economy moving. Both are ways to improve how money
flows in a community or economy.
Tags