Cryptocurrency Regulation: Stakeholders
Explanation:
Cryptocurrency regulation means making rules for how cryptocurrencies can be used,
bought, sold, and managed. Different people and organizations are involved in this
process. These are called stakeholders. Each stakeholder has a different role and
interest in crypto regulation.
Stakeholders & Examples:
Government & Regulators:
Explanation: They make and enforce rules about how crypto can be used. Their goal
is to protect users, prevent crime, and collect taxes.
Example: In India, the RBI and Finance Ministry decide what is allowed. In the USA,
the SEC fined Ripple for selling XRP without approval. In Europe, the EU made MiCA
law for
crypto regulation.
Crypto Exchanges:
Explanation: These are companies or apps where people buy/sell crypto. They must
follow government rules, like checking user identity (KYC) and reporting suspicious
activity.
Example: WazirX and CoinDCX in India, Binance and Coinbase globally. Binance was
banned in some countries for not following local laws.
Investors & Users:
Explanation: These are people or companies who buy, sell, or hold crypto. They have
to follow tax rules and are affected by regulations.
Example: Indian investors pay 30% tax on crypto profits. Millions of new users
joined crypto trading in 2021 during the bull run.
Developers & Startups:
Explanation: These are people or companies creating new crypto projects or apps.
They need clear rules to innovate and attract investors.
Example: Polygon, a global blockchain project started by Indians, needs clarity on
fundraising and token listing.
Law Enforcement:
Explanation: Police and agencies work to stop fraud, scams, and illegal activities
using crypto.
Example: Indian police arrested scammers running fake crypto schemes. The FBI in
the USA tracks crypto crimes.
Roots of Bitcoin (10 Marks, Detailed Notes)
Who Created Bitcoin?
Invented by a person or group using the name Satoshi Nakamoto.
The idea was shared in a white paper in 2008.
Why Was Bitcoin Created?
To solve problems with traditional money systems, like banks controlling money and
charging high fees.
To allow people to send money directly to each other (peer-to-peer) without needing
a bank or middleman.
To provide a system that is open and not controlled by any government or company.
How Does Bitcoin Work?
Uses a technology called blockchain, which is like a public digital ledger or
record book that anyone can see.
Every transaction is recorded in this ledger and cannot be changed.
New transactions are grouped into “blocks” and added to the chain of previous
blocks.
What is Proof-of-Work?
To add a block, computers (called miners) must solve complex puzzles.
This process is called proof-of-work and makes it very hard for anyone to cheat the
system.
How is Bitcoin Decentralized?
No single person, company, or government controls Bitcoin.
The network is made up of thousands of computers around the world.
Security Against Fake Users (Sybil Attacks):
Proof-of-work makes it expensive and difficult for someone to create many fake
identities and take over the network.
First Bitcoin Block:
The first block, called the “genesis block,” was mined in January 2009.
It included a message about the financial crisis, showing the creator’s motivation.
Impact:
Bitcoin started the entire cryptocurrency industry.
Inspired the creation of many other digital currencies and new technologies.
Legal Aspects: Cryptocurrency Exchange (10 Marks, Detailed Notes)
What is a Cryptocurrency Exchange?
A website or app where people can buy, sell, or trade cryptocurrencies like
Bitcoin, Ethereum, etc.
Examples: WazirX, CoinDCX, Binance, Coinbase.
Are Cryptocurrency Exchanges Legal?
The rules are different in every country.
Some countries allow and regulate them, some ban them, and some have no clear
rules.
Legal Status in India:
The Reserve Bank of India (RBI) banned banks from dealing with crypto exchanges in
2018.
In 2020, the Supreme Court of India removed this ban.
As of now, exchanges can operate, but there is no clear law specifically for
cryptocurrencies.
Regulatory Requirements:
Exchanges must check the identity of their users (KYC: Know Your Customer).
They must follow anti-money laundering (AML) rules to prevent illegal activities.
Some countries require exchanges to get a license to operate.
Taxation:
In India, profits from trading cryptocurrencies are taxed as capital gains.
Some countries also charge GST or VAT on the services provided by exchanges.
Security Measures:
Exchanges must protect user funds with strong cybersecurity.
Many use “cold storage” (offline wallets) to keep most funds safe from hackers.
Risks and Challenges:
Exchanges can be hacked, and users can lose money.
There is a risk of scams and fraud.
Laws and regulations can change quickly, creating uncertainty.
Consumer Protection:
Some exchanges offer insurance for user funds.
Users are advised to keep their own cryptocurrencies in personal wallets for
safety.
Recent Trends:
Many countries are working on new laws to regulate cryptocurrencies and exchanges.
International organizations are trying to set common standards for safety and
transparency.
Taxation Example (India)
Crypto profits taxed at 30% in India.
1% TDS deducted on large transactions.
2. Legal Status Example
Cryptocurrencies not legal tender in India.
Buying, selling, and holding crypto is allowed but regulated.
3. Exchange Compliance Example
Indian exchanges must do KYC/AML (ID proof, address proof).
Large transactions are reported to tax authorities.
4. Recent News (Budget 2025)
Stricter reporting: Exchanges must report all crypto transactions.
Undisclosed crypto income taxed at higher rates.
5. Security Example
Exchanges use cold storage and 2FA for safety.
Some provide insurance against hacking.
Black Market
Explanation:
The black market means illegal buying, selling, or transferring of goods and money.
Crypto can be used in the black market because it allows anonymous and fast
transactions, making it attractive for criminals.
Risks & Examples:
Illegal Activities:
Explanation: Criminals use crypto for money laundering, buying illegal goods, or
avoiding taxes, as it is harder to trace.
Example: The Silk Road website used Bitcoin to sell drugs. Hackers demand ransom in
Bitcoin because it’s hard to track.
Regulatory Response:
Explanation: Governments force exchanges to follow KYC/AML rules to catch criminals
and monitor transactions.
Example: Indian exchanges blocked accounts linked to illegal activities after
government orders. FATF gives guidelines to countries for stopping crypto crimes.
Challenges:
Explanation: Criminals use privacy coins (like Monero) and tools (“mixers”) to hide
their transactions, making it tough for police.
Example: In 2023, Indian authorities froze ₹900 crore in crypto assets linked to
drugs. Mixers and privacy coins make tracing difficult.
Global Economy
Explanation:
Cryptocurrencies affect the world economy in both good and bad ways. They bring new
opportunities for business and finance but also create risks like instability and
crime.
Impacts & Examples:
Positive Impacts:
Explanation: Crypto makes cross-border payments faster and cheaper, helps people in
countries with weak currencies, and creates new business models.
Example: El Salvador made Bitcoin legal tender to help people receive money from
abroad. African countries use stablecoins to protect savings from inflation.
Negative Impacts:
Explanation: Crypto prices are very volatile, which can cause big losses. Illegal
use can harm the financial system, and sudden bans or crashes can affect the global
market.
Example: China banned all crypto trading and mining in 2021. The FTX exchange
collapse in 2022 led to global losses and scared investors.
Recent Trends:
Explanation: Many countries are making new laws for crypto. Global organizations
are working together to set common rules and share information.
Example: India introduced a 30% tax and 1% TDS on crypto in 2022. The US approved
Bitcoin ETFs in 2024, making it easier for big investors. The G20 agreed to share
crypto transaction data to fight crime.
Applications of Blockchain
1. Internet of Things (IoT)
What is it?
IoT means smart devices like sensors, cameras, and machines that connect to the
internet and talk to each other.
How blockchain helps:
It keeps the data from these devices safe and secure. It stops hackers from
changing the data.
Devices can also work automatically using smart contracts (rules stored on
blockchain).
Examples:
Tracking products in supply chains to make sure they are real.
Smart homes where devices like lights and locks work safely.
Self-driving cars sharing data safely.
Companies like VeChain and IBM use blockchain with IoT.
2. Medical Record Management System
What is it?
Storing patient health records like reports, prescriptions, and history.
How blockchain helps:
It keeps medical records safe and private. Only doctors or patients with permission
can see or change them.
Patients can share their records easily with any hospital.
Examples:
Hospitals sharing records securely.
Patients controlling who sees their data.
Insurance companies checking records quickly.
MIT’s MedRec project uses blockchain for medical records.
3. Domain Name Service (DNS)
What is it?
DNS is the system that turns website names (like [Link]) into internet
addresses.
How blockchain helps:
Blockchain makes DNS safer and stops hackers from changing website names.
It also stops governments or companies from blocking websites.
Examples:
Blockchain domains like .crypto or .eth that are hard to hack.
Using blockchain domains as easy addresses for crypto wallets.
Websites that work without a central company controlling them.
4. Future of Blockchain
What to expect?
Blockchain will be used in many areas like money, identity, voting, and more.
It will make systems more transparent, safe, and automatic.
Trends:
Different blockchains will connect and work together.
More apps will run on blockchain, not just money apps.
People will have digital IDs on blockchain to prove who they are.
Governments and companies will use blockchain for secure records and payments.
Summary Table (Easy)
Area How Blockchain Helps Example Uses
Internet of Things (IoT) Keeps device data safe Smart homes,
supply chains
Medical Records Keeps health data private Hospitals,
insurance
Domain Name Service (DNS) Stops hacking and censorship Blockchain website
names
Future of Blockchain Makes systems safe and smart Digital ID,
voting, finance
UNIT - 1
What is a Distributed Database?
A database that lives on more than one computer (site) connected by a network .
The goal is that users should feel like it's one database, even though it's spread
out .
🚦 Types of Distributed DBMS
Homogeneous
Every site uses the same OS, DB software, and table structures.
Easy to manage .
Heterogeneous
Sites may use different OS, databases, or data formats.
Needs translations to work together .
📦 How Data Is Stored
Replication
Copies of full tables are kept at multiple sites.
Pros: More data availability, faster queries.
Cons: Updates must go to every copy → harder to keep data consistent .
Fragmentation
Tables are split into parts and stored in different places.
Types:
Horizontal: Different rows go to different sites.
Vertical: Different columns (but share the key) go to different sites .
Hybrid
You can use both replication and fragmentation together .
Architectures
Client–Server
One central server helps clients access scattered databases .
Peer-to-Peer
Every site connects and works with each other equally .
Federated
Independent databases use a middleware layer to talk and act as one .
✅ Advantages
Faster processing: Many sites can work in parallel .
More reliable: System stays up even if one site fails .
Cheaper to scale: Just add more sites .
Local autonomy and data sharing: Each site can keep its own data but also share .
⚠️ Disadvantages
Harder to manage: More sites = more complexity .
Security issues: More spots to secure .
Potential deadlocks: When concurrent transactions cross sites .
Need standard rules: To keep the system working smoothly .
Two Generals' Problem – Theory (Easy English)
The Two Generals' Problem is a famous problem in computer science and communication
theory. It shows the difficulty of reaching perfect agreement between two parties
over an unreliable communication channel.
🔹 Problem Statement:
Imagine two generals (General A and General B) want to attack a city from two
different sides. They must attack at the same time to win. The only way they can
communicate is by sending messengers through enemy territory.
But the problem is:
The messengers might get caught.
So, there's no guarantee that the message or confirmation reaches the other
general.
Even if one message is delivered, the sender can’t be sure the other person got it,
and so on.
This leads to infinite uncertainty.
🔹 Why is it a problem?
Because both generals want to be sure that:
Their message was received.
The confirmation of the message was received.
And the confirmation of the confirmation was received… and this continues forever.
So, complete certainty is never achieved if the communication channel is
unreliable.
🔹 Real-World Relevance:
This problem is used to explain the limitations of communication in distributed
systems.
It shows that perfect coordination is impossible over an unreliable network using
only message-passing.
In blockchain and consensus algorithms, this problem helps us understand why
special mechanisms (like Proof of Work, Proof of Stake) are needed to reach
agreement.
Byzantine Generals Problem – Easy Explanation
🔹 What is it?
It’s a problem in distributed systems where different participants (called
generals) have to agree on a common decision — like whether to attack or not — but
some of them might be traitors or faulty, and the messages they send can be
delayed, lost, or wrong.
So the challenge is: How can the loyal generals agree on one decision even if some
are sending wrong messages?
🔹 Real-life Example in Blockchain:
In a blockchain, the generals are like nodes or miners/validators. If some of them
behave badly or send incorrect data, it can affect the whole system. So, blockchain
uses consensus algorithms to solve this problem and keep the system trustworthy.
🔹 Conditions for solution:
All loyal generals must agree on the same decision.
A small number of faulty generals shouldn’t be able to trick others into a wrong
decision.
📗 2. Byzantine Fault Tolerance (BFT)
🔹 What is it?
Byzantine Fault Tolerance means the system can still work correctly and reach
agreement, even if some participants are faulty or trying to cheat.
🔹 How many faulty nodes can be handled?
If a system can handle up to f faulty nodes, then the total number of nodes n
should be at least:
n ≥ 3f + 1
This means, for 1 faulty node, you need at least 4 nodes in total.
🔹 Examples in Blockchain:
Bitcoin (PoW): As long as 51% of the miners are honest, the system works fine.
PBFT (Practical Byzantine Fault Tolerance): Used in private blockchains like
Hyperledger, where a small group of trusted nodes reach agreement quickly
What is HDFS?
HDFS stands for Hadoop Distributed File System.
It is the storage system used by Hadoop to store large files across multiple
computers in a reliable and fault-tolerant way.
🔹 Main Purpose:
To store huge data files (like GBs or TBs) across a cluster of machines.
To make sure the data is safe, even if one machine fails.
To allow fast access to data for processing using Hadoop MapReduce.
Key Features:
Distributed Storage:
Data is broken into blocks (usually 128 MB) and stored on different machines.
Fault Tolerance:
Each block is replicated (by default 3 copies) on different machines.
If one machine fails, the data can still be accessed from another.
High Throughput:
HDFS is optimized for reading large files and processing them fast.
Scalability:
You can add more machines to store more data easily.
Write Once, Read Many:
Once data is written, it is not modified. It is read many times for analysis.
How It Works (Simple Flow):
A user uploads a file to HDFS.
The file is split into blocks.
These blocks are stored on different DataNodes.
NameNode keeps track of which block is where.
When reading the file, HDFS collects all blocks and shows it as one file.
Distributed Hash Table (DHT) – Notes
🔹 Definition:
A Distributed Hash Table (DHT) is a decentralized system that stores and retrieves
data using key-value pairs across multiple computers (called nodes) in a network.
It works like a normal hash table (e.g., key → value), but the data is distributed
across many machines.
🔹 Why use DHT?
In large peer-to-peer (P2P) systems or decentralized networks:
We need to store data reliably
We must quickly find where the data is
There is no central server
✅ DHT solves these problems efficiently.
🔹 How it works:
Each data item is assigned a key.
A hash function determines where to store the key-value pair.
The data is stored on a specific node in the network.
To retrieve data, the same key is hashed again to find the responsible node.
💡 Think of it like a digital locker system:
Each key opens a specific locker — and that locker is stored on a different
machine.
🔹 Main Features of DHT:
Feature Explanation
Decentralized No central control — every node plays a role.
Scalable Easily handles thousands to millions of nodes.
Fault Tolerant If some nodes fail, data can still be retrieved from others.
Efficient Finds data in O(log N) time — very fast.
Self-Organizing Nodes can join or leave the network anytime.
🔹 Real-Life Examples of DHT:
BitTorrent (peer discovery)
IPFS (InterPlanetary File System)
Blockchain peer discovery
Kademlia protocol
🔹 Popular DHT Algorithms:
Chord
Kademlia
Pastry
CAN (Content Addressable Network)
Each algorithm has its own way of organizing and locating data efficiently.
✅ Summary:
A Distributed Hash Table (DHT) is a decentralized, scalable, and fault-tolerant way
of storing and locating data using key-value pairs — ideal for peer-to-peer and
blockchain systems.
ASIC Resistance in Blockchain – Easy Notes
🔹 ASIC kya hota hai?
ASIC = Application-Specific Integrated Circuit
Ye ek special chip hoti hai jo sirf ek kaam ke liye bani hoti hai, jaise mining.
ASIC machines bahut fast hoti hain aur normal computer (CPU/GPU) se zyada power
hoti hai mining ke liye.
🔹 ASIC Resistance ka matlab kya hai?
ASIC Resistance ka matlab hai blockchain ko aisa design karna ki ASIC machines
easily use na ho sakein mining ke liye.
Taaki mining sirf rich log ya bade companies hi na kar sakein — normal log bhi apne
laptop ya GPU se mining kar saken.
🔹 ASIC Resistance kyu important hai?
Problem ASIC Resistance se kya fayda?
ASICs mehngi hoti hain Har koi mining kar sakta hai – fair chance milta hai.
Sirf big miners control le lete hain Decentralization banaye rakhta hai
(control sabke paas hota hai).
Normal log reward nahi paa pate GPU se bhi mining possible hoti hai, sab
compete kar sakte hain.
🔹 Kaise ASIC resistance achieve hoti hai?
Aise mining algorithm banaye jaate hain jo RAM ya memory zyada use karte hain –
ASIC ke liye mushkil hota hai.
Algorithm ko baar-baar update kiya jaata hai taaki ASIC banane ka time aur paisa
zyada lage.
🔹 Examples of ASIC-resistant coins:
Ethereum (Ethash) – pehle ASIC-resistant tha
Monero (RandomX)
Zcash (Equihash)
🔹 Limitation (thoda problem bhi):
Time ke saath ASIC phir bhi ban jaate hain, 100% resistance mushkil hai.
GPU mining thodi slow ho sakti hai.
✅ Easy Summary:
ASIC Resistance ka matlab hai blockchain ko is tarah design karna ki koi bhi aadmi,
normal computer se mining kar sake — taaki mining sirf ameer logon tak limited na
ho. Ye system ko fair aur open banata hai.
Turing Complete – Easy Notes
🔹 What does “Turing Complete” mean?
A system or programming language is called Turing Complete if it can solve any
problem that a computer can solve — given enough time and memory.
In short:
If something can perform all basic tasks like loops, conditions, and calculations,
it is Turing Complete.
🔹 Where does the term come from?
It comes from Alan Turing, a great mathematician and computer scientist.
He created the idea of a “Turing Machine” — a basic imaginary computer that can
read, write, and make decisions.
If your system can do the same things a Turing Machine can, it's called Turing
Complete.
🔹 What does a system need to be Turing Complete?
Conditional logic (if-else)
Loops (like for, while)
Ability to store and change data (variables)
Basic math operations
🔹 Examples of Turing Complete Systems:
✅ Programming languages:
Python
JavaScript
C, C++
Solidity (used in Ethereum)
Java
👉 All are Turing Complete because they support loops, conditions, and memory
handling.
✅ Blockchain Smart Contracts:
Ethereum is Turing Complete
Bitcoin is not Turing Complete (its scripting language is limited for safety)
🔹 Why is it important?
A Turing Complete language can build anything — apps, games, websites, AI, etc.
In blockchain, it helps write complex smart contracts (like in Ethereum), but can
be risky too (infinite loops or hacks).
✅ Simple Summary:
If a system or language can perform any task like a computer (with loops, if-else,
variables), it is called Turing Complete.
Most modern programming languages are Turing Complete
Cryptography – Detailed Notes in Easy English
🔹 1. Hash Function – (Digital Fingerprint)
A hash function is a special formula that takes any input (like a message or file)
and gives a fixed-length code called a hash.
It works like a digital fingerprint — har data ka unique code hota hai.
Agar input thoda sa bhi change ho jaaye, toh hash completely badal jaata hai.
✅ Main Features:
One-way: Hash se original data wapas nahi nikal sakte.
Fixed size: Bada ya chhota input ho, output size same hota hai.
Unique: Har input ka unique hash hota hai.
✅ Uses:
Passwords ko safely store karna
File ke original hone ka proof
Blockchain mein blocks ko link karna
🧠 Example:
“Prachi” → 9b74c9... (hash)
🔹 2. Digital Signature – (Online Signature)
Digital signature proves that:
Message kisne bheja (authenticity)
Beech mein change to nahi hua (integrity)
It is like an electronic signature added to digital messages or transactions.
✅ ECDSA (Elliptic Curve Digital Signature Algorithm):
Lightweight aur secure method hota hai signature banane ke liye.
Used in Bitcoin, Ethereum etc.
✅ Uses:
Online documents par sign karna
Blockchain transactions verify karna
Emails aur data ko secure rakhna
🔹 3. Memory Hard Algorithm – (RAM zyada chahiye hoti hai)
Ye aise algorithm hote hain jisme mining ke liye bahut zyada memory (RAM) use hoti
hai.
Isse expensive ASIC machines efficient nahi hoti, isliye normal log bhi mining kar
sakte hain.
✅ Why it's used?
ASIC Resistance ke liye
Mining ko fair banane ke liye
✅ Examples:
Scrypt – Litecoin mein use hota hai
RandomX – Monero coin mein use hota hai
🔹 4. Zero Knowledge Proof (ZKP) – (Secret ko bataye bina proof dena)
ZKP ek technique hai jisme ek person (prover) dusre person (verifier) ko ye prove
karta hai ki uske paas kuch information hai, lekin wo info dikhaye bina.
🧠 Example:
Tumhare paas ek room ka password hai. Tum mujhe prove karte ho ki tumhe pata hai —
bina actual password bataye.
✅ Uses:
Privacy coins (like Zcash)
Secure logins
Blockchain transactions ko private rakhna
🔹 5. Digital Cash – (Online version of paisa)
Digital cash ka matlab hai aisa paisa jo sirf online exist karta hai.
Isme transactions secure, fast aur private hote hain.
Ye normal cash ki tarah work karta hai, lekin computers par.
✅ Important Features:
Double spending na ho
Fast transfer ho
User ka identity private rahe
✅ Examples:
Bitcoin
Ethereum
Monero (more private)
✅ Final Summary Table:
Concept Simple Meaning Use
Hash Function Converts any data to a short, fixed code Passwords, file
integrity, blockchain
Digital Signature (ECDSA) Online sign to verify sender Blockchain, secure
messages
Memory Hard Algorithm Needs a lot of RAM to slow down ASICs Fair mining, ASIC
resistance
Zero Knowledge Proof Prove something without revealing the secret Privacy
coins, secure login
Digital Cash Online money Fast, secure payments (crypto)
UNIT-3
Distributed Consensus – Very Easy Notes
🔹 What is Distributed Consensus?
When many computers (nodes) work together (like in blockchain), they all need to
agree on the same data — like which transaction is real.
This agreement is called consensus.
Without it, one computer can say “A sent 5 coins”, and another may say “A sent
nothing” — system will break.
🔹 1. Nakamoto Consensus
First used in Bitcoin by Satoshi Nakamoto.
It uses Proof of Work (PoW).
The rule is: The chain with the most work (longest) is correct.
So, everyone follows the same longest chain.
✅ Helps all users agree even without trusting each other.
🔹 2. Proof of Work (PoW)
Miners solve hard puzzles to add a block.
First one to solve gets reward.
More miners = more competition = more energy used.
✅ Used in Bitcoin
❌ Very slow and uses a lot of electricity
🔹 3. Proof of Stake (PoS)
Instead of solving puzzles, here validators are chosen based on how many coins they
have.
More coins = more chances to add the next block.
✅ Fast, cheap, energy-saving
✅ Used in Ethereum (now), Cardano, etc.
🔹 4. Proof of Burn (PoB)
In this method, people burn (destroy) their own coins to show they are serious.
The more coins you burn, the more chance you get to add a block.
✅ Shows commitment
✅ Used in Slimcoin
🔹 5. Difficulty Level
In PoW, difficulty means how hard it is to solve the puzzle.
If more people mine, system makes puzzles harder.
This keeps block time equal (like Bitcoin: 1 block every 10 minutes).
🔹 6. Sybil Attack
A hacker creates many fake accounts (nodes) to control the system.
Then he can cheat in voting or block adding.
✅ PoW/PoS help stop this — because fake accounts won’t have power or stake.
🔹 7. Energy Utilization
PoW needs lots of electricity.
Bitcoin uses as much power as a small country!
✅ PoS and other methods are eco-friendly and use less energy
Alternatives to Proof of Work (PoW) – Easy Explanation
PoW slow hota hai aur bahut electricity use karta hai, isliye log ne naye methods
banaye jo zyada fast, cheap, aur energy-saving hain.
🔹 1. Proof of Stake (PoS)
Yahaan koi puzzle solve nahi karni padti.
Jo log system mein zyada coins hold karte hain, unhe hi block add karne ka chance
milta hai.
Coins = Trust
✅ Use hota hai: Ethereum (after merge), Cardano, Polkadot
✅ Fast and energy efficient
🔹 2. Proof of Burn (PoB)
Isme log apne kuch coins burn (destroy) kar dete hain — matlab unhe wapas use nahi
kar sakte.
Ye dikhaata hai ki user system mein serious hai.
Jisne zyada coins burn kiye hain, uske block add karne ke chances zyada hote hain.
✅ Used in: Slimcoin
✅ Burn = Commitment
🔹 3. Proof of Authority (PoA)
Yahaan sirf trusted log (authorities) hi block add kar sakte hain.
In logon ko pehle hi verify kiya jaata hai.
✅ Used in: Private blockchains (like company networks)
✅ Very fast, but less decentralized
🔹 4. Delegated Proof of Stake (DPoS)
Users vote karte hain kuch trusted logon ko (called delegates).
Ye selected delegates hi block validate karte hain.
✅ Used in: EOS, TRON
✅ Very fast and more democratic
UNIT-4
What is Cryptocurrency?
Cryptocurrency is a digital or virtual form of money that works on a technology
called blockchain. It doesn't exist in physical form like coins or notes.
Examples: Bitcoin, Ethereum, Dogecoin
🔹 History of Cryptocurrency
1980s – 1990s (Early Ideas):
People started thinking about digital money.
Some early examples: DigiCash, E-Gold
These failed because they were centralized (controlled by one person/company).
2008 – The Birth of Bitcoin:
A person (or group) using the name Satoshi Nakamoto published a paper:
“Bitcoin: A Peer-to-Peer Electronic Cash System”
This paper introduced Bitcoin and the idea of using blockchain to record
transactions.
2009 – Bitcoin Launch:
Bitcoin software was released.
First block mined: “Genesis Block”
First real-world transaction: A guy bought 2 pizzas for 10,000 bitcoins.
2015 – Ethereum Launch:
Ethereum allowed smart contracts (code that runs on blockchain).
This made blockchain useful for apps, not just money.
2020+ – Crypto Grows Fast:
Many new cryptocurrencies launched.
Companies and countries started investing in crypto.
🔸 What is a Distributed Ledger?
A ledger means a record or notebook of all transactions (like a passbook).
A distributed ledger is a digital notebook that is shared and updated on many
computers (not just one).
🔹 Features:
Decentralized: No central authority (like a bank).
Everyone has a copy.
All updates are agreed upon by the network.
Very hard to cheat or hack.
🔹 How It Works in Cryptocurrency:
A person sends crypto to another person.
The transaction goes to a network of computers.
These computers verify the transaction.
If it’s valid, it is added to a block.
That block is added to the chain of blocks → called Blockchain.
All users update their ledgers at the same time.
🔸 Benefits of Distributed Ledger:
✅ Transparent: Everyone can see the data.
✅ Secure: Very hard to change once written.
✅ No middlemen: Faster and cheaper transactions.
✅ Works 24/7 worldwide.
Bitcoin Protocols: Mining Strategy and Rewards –
🔶 What is Bitcoin Mining?
Bitcoin mining is the process of:
Verifying Bitcoin transactions
Adding them to the blockchain
Earning rewards (Bitcoin + transaction fees)
It requires powerful computers to solve a complex puzzle.
Ethereum – Construction
Ethereum is an open-source, decentralized blockchain platform introduced in 2015 by
Vitalik Buterin. Unlike Bitcoin, Ethereum is not only a digital currency but also
supports smart contracts — self-executing programs that run when certain conditions
are met.
Ethereum’s core component is the Ethereum Virtual Machine (EVM), which executes
smart contracts across all nodes in the network. Its native currency is Ether
(ETH), used to pay for transactions and computational work (called gas).
The Ethereum network consists of nodes (computers), miners, smart contracts, and
users. It provides a secure and programmable environment for building decentralized
applications (dApps).
✍️ Smart Contracts
A smart contract is a self-executing program stored on a blockchain. It runs
automatically when specific conditions are met, without the need for any middleman
or authority.
Smart contracts are written in programming languages like Solidity (used on
Ethereum). Once deployed, the contract cannot be changed, which ensures trust and
transparency.
Example: A smart contract for renting a house could automatically release the door
code when the tenant pays the rent in ETH.
Smart contracts reduce human error, lower costs, and improve security in digital
agreements.
✍️ DAO (Decentralized Autonomous Organization)
DAO is a blockchain-based organization governed entirely by smart contracts,
without central leadership. Investors or members hold governance tokens and vote on
proposals using the blockchain.
In 2016, The DAO, the first major DAO project on Ethereum, raised over $150
million. However, due to a vulnerability in its smart contract code, a hacker stole
about $60 million in ETH. This led to a major disagreement in the Ethereum
community and caused a hard fork, resulting in two blockchains:
Ethereum (ETH) – reversed the hack
Ethereum Classic (ETC) – kept the original chain
✍️ GHOST Protocol
GHOST (Greedy Heaviest Observed Subtree) is a consensus protocol used by Ethereum
to improve blockchain performance.
In Bitcoin, if two blocks are mined at the same time, only one is kept, and the
other (called a stale block) is discarded, wasting energy. Ethereum uses GHOST to
partially reward these stale blocks (called uncle blocks).
This helps increase:
Block production rate
Network security
Miner fairness
GHOST makes Ethereum more scalable and efficient compared to Bitcoin.
✍️ Vulnerabilities in Ethereum
Smart contracts are powerful but can be vulnerable if not written correctly. Common
vulnerabilities include:
Reentrancy Attack: When a contract is tricked into calling another contract
repeatedly before completing its own execution (e.g., DAO hack).
Integer Overflow/Underflow: Mathematical errors due to improper limits.
Gas Limit Issues: Running out of gas causes the contract to fail midway.
Logic Errors: Poorly written logic that can be exploited.
These bugs can lead to loss of funds or abuse of the contract. Proper auditing and
testing are necessary before deployment.
✍️ Attacks on Ethereum
Ethereum has faced several attacks since its launch:
The DAO Hack (2016) – $60 million worth of ETH stolen due to a bug in smart
contract.
Phishing Attacks – Fake websites and emails used to steal private keys.
Smart Contract Exploits – Poorly written contracts targeted by hackers.
DDOS (Distributed Denial of Service) – Flooding the network with transactions to
slow it down or make it crash.
These attacks highlight the importance of secure coding practices and constant
network improvement.
✍️ Sidechains
A sidechain is a separate blockchain connected to the main blockchain (Ethereum),
allowing users to move assets between them. Sidechains help to reduce the load on
the main network and provide faster, cheaper transactions.
Sidechains are useful for:
Testing new features without affecting the main chain
Handling micro-transactions
Improving scalability
Example: Polygon (Matic) is a widely used Ethereum sidechain that offers high-speed
and low-cost dApps.
✍️ Namecoin
Namecoin is a cryptocurrency and blockchain launched in 2011 as a fork of Bitcoin.
It was created to provide a decentralized domain name system (DNS) that cannot be
controlled or censored by governments or companies.
Instead of .com or .org, Namecoin allows domain names ending in .bit. It was one of
the earliest examples of non-financial uses of blockchain, though it is not widely
used today.
UNIT-2
Blockchain: Introduction
Blockchain is a special kind of database made up of a chain of blocks, where each
block stores information (like transactions).
It is decentralized, meaning no single person or company controls it. Instead, many
computers (nodes) keep copies and work together.
How it works:
When a transaction occurs, it is grouped with other transactions into a block. This
block is then added to the chain after being verified by multiple computers (nodes)
in the network.
Features:
Decentralized: No central authority.
Immutable: Once data is added, it cannot be changed.
Transparent: All participants can view the transactions.
Example:
Bitcoin and Ethereum are popular blockchains.
Once data is added to a blockchain, it is very hard to change or delete, making it
secure and trustworthy
Advantage over Conventional Distributed Database
Feature Blockchain Traditional
Distributed Database
Control Decentralized (no single owner)
Centralized (one owner controls data)
Security Very secure, hard to hack or change data Less
secure, can be hacked if central point fails
Transparency Anyone can see and verify data
Only owner or authorized people see data
Data Tampering Nearly impossible Possible if
central database is compromised
Speed and Scalability Slower, less scalable
Faster, more scalable
Blockchain is better for security, transparency, and trust.
Traditional databases are faster and better for real-time needs but have a single
point of failure.
Blockchain Network
A blockchain network is a group of computers (nodes) connected together.
Each node has a copy of the blockchain and helps verify transactions.
The network works together to keep the blockchain updated and secure.
Blockchain Network
Definition:
A blockchain network is a group of computers (nodes) that work together to maintain
and update the blockchain.
How it works:
Each node has a copy of the entire blockchain. When a new transaction happens, all
nodes check and agree on its validity before adding it to the blockchain.
Types of Nodes:
Full Node: Stores the entire blockchain.
Light Node: Stores only part of the blockchain.
Diagram:
(Draw several computers connected, each with a copy of the blockchain.)
Conclusion:
A blockchain network ensures data is shared, secure, and up-to-date for all
participants.
Distributed Consensus
Definition:
Consensus means agreement. Distributed consensus is the process where all nodes in
the blockchain network agree on the validity of transactions.
How it works:
Common consensus methods:
Proof of Work (PoW): Miners solve puzzles.
Proof of Stake (PoS): Validators are chosen based on how many coins they hold.
Importance:
Prevents fraud and double-spending.
Ensures all copies of the blockchain are the same.
Merkle Patricia Tree
Definition:
A Merkle Patricia Tree is a data structure used in blockchains (like Ethereum) to
organize and verify large amounts of data efficiently.
How it works:
Combines features of Merkle Trees and Patricia Tries.
Allows quick verification of data and efficient storage.
Purpose:
Verifies that data (like transactions) is unchanged.
Organizes data for fast searching.
Conclusion:
Merkle Patricia Trees help blockchains store and verify data quickly and securely.
Mining Mechanism-
Definition:
Mining is the process used in blockchain to add new blocks of transactions to the
chain.
How it works:
Miners use computers to solve complex mathematical puzzles. The first miner to
solve the puzzle gets to add the new block and receives a reward (usually some
cryptocurrency).
Importance:
Mining keeps the blockchain secure and ensures that only valid transactions are
added.
Example:
In Bitcoin, miners compete to solve puzzles and get rewarded with bitcoins.
Transactions and Fee
Definition:
A transaction is an action (like sending coins or running a contract) recorded on
the blockchain. A fee is a small payment made to miners or validators for
processing the transaction.
How it works:
Users pay a fee to have their transaction included in the blockchain.
Miners prioritize transactions with higher fees.
Importance:
Prevents spam.
Rewards miners for their work.
Example:
Sending Bitcoin or Ethereum requires a transaction fee.
Conclusion:
Transaction fees keep the network running smoothly and fairly.
. Gas Limit
Definition:
Gas limit is the maximum amount of computational work allowed for a transaction or
smart contract on blockchains like Ethereum.
How it works:
Each operation uses some gas.
Users set a gas limit to control how much they are willing to spend.
If the transaction runs out of gas, it stops and fails.
Example:
Sending ETH or running a smart contract both use gas.
Conclusion:
Gas limit helps manage resources and prevents misuse of the network.
8. Transactions and Fee
Definition:
A transaction is an action (like sending coins or running a contract) recorded on
the blockchain. A fee is a small payment made to miners or validators for
processing the transaction.
How it works:
Users pay a fee to have their transaction included in the blockchain.
Miners prioritize transactions with higher fees.
Importance:
Prevents spam.
Rewards miners for their work.
Example:
Sending Bitcoin or Ethereum requires a transaction fee.
Conclusion:
Transaction fees keep the network running smoothly and fairly.
Anonymity
Definition:
Anonymity means keeping users’ real identities hidden.
How it works:
Users are identified by addresses, not real names.
Transactions are public, but the people behind them are not always known.
Limitations:
Some blockchains are more private than others.
Advanced analysis can sometimes reveal identities.
Example:
Bitcoin is pseudonymous (not fully anonymous).
Conclusion:
Blockchain provides some privacy, but not complete anonymity.
Reward
Definition:
A reward is an incentive given to miners or validators for adding new blocks to the
blockchain.
How it works:
Miners/validators receive new coins or transaction fees as rewards.
Encourages people to help secure and maintain the network.
Example:
Bitcoin miners get new bitcoins as rewards.
Conclusion:
Rewards motivate participants to keep the blockchain secure and active.
Chain Policy
Definition:
Chain policy is the set of rules that defines how a blockchain operates.
Examples of Rules:
How blocks are added.
How rewards are given.
How consensus is reached.
Importance:
Keeps the blockchain organized.
Ensures everyone follows the same rules.
Conclusion:
Chain policy is like the law of the blockchain world.
Life of Blockchain Application
Definition:
The life of a blockchain application is the period from its creation to its end of
use.
Stages:
Development: App is created and tested.
Deployment: App is launched on the blockchain.
Operation: App is used by people.
Upgrade/End: App may be updated or stopped.
Conclusion:
A blockchain application continues as long as it is useful and supported by the
network.
Soft & Hard Fork
Definition:
A fork is a change in the blockchain’s rules.
Types:
Soft Fork: Small change, old and new rules work together.
Hard Fork: Major change, splits blockchain into two separate chains.
Example:
Bitcoin Cash was created from a hard fork of Bitcoin.
Diagram:
(Draw a chain splitting into two.)
Conclusion:
Forks allow blockchains to upgrade or change, but can also create new blockchains.
Private and Public Blockchain
Definition:
Blockchains can be public (open to all) or private (restricted access).
Public Blockchain:
Anyone can join.
Fully transparent.
Example: Bitcoin, Ethereum.
Private Blockchain:
Only selected people can join.
Controlled by an organization.
Example: Company blockchains.
Feature Public Blockchain Private Blockchain
Access Anyone Invitation only
Control Decentralized Centralized
Transparency High Limited