Module 2
Module 2
School of Engineering
•Course Objectives
•Course Content
•Reading Materials
•Course Outcomes
•Overview of the Prerequisite
Advantages of Bitcoin
Low transaction fees compared to traditional banking.
Global accessibility with no borders or restrictions.
Protection from inflation due to its fixed supply.
Challenges of Bitcoin
Price volatility can make it unpredictable.
Regulatory uncertainty in many countries.
Scalability issues and high energy consumption in mining.
Transaction Lifecycle:
1.The sender creates a transaction using their Bitcoin wallet.
2.The transaction is broadcasted to the Bitcoin network.
3.Miners validate and include the transaction in a new block.
4.Once confirmed, the transaction becomes part of the blockchain.
3. Time-Locked Transactions
•CheckLockTimeVerify (CLTV): Prevents bitcoins from being spent before a
specific time or block height.
•CheckSequenceVerify (CSV): Requires a minimum wait time before an output
can be spent.
•Use Cases:
• Trustless Escrow: Funds are locked until conditions are met.
• Savings Wallets: Bitcoins remain unspendable for a period.
• Payment Channels: Lightning Network implementations use time locks
for scalability.
4. Atomic Swaps
•Enables direct, trustless exchange of cryptocurrencies
between different blockchains.
•Uses hashed timelock contracts (HTLCs) to ensure both
parties fulfill their obligations or the transaction is reversed.
•Reduces reliance on centralized exchanges.
5. Lightning Network (Off-Chain Scaling)
•Uses HTLCs and multi-signature scripts to create off-chain
payment channels.
•Enables instant, low-fee transactions between participants.
•Helps Bitcoin scale for microtransactions and everyday
payments.
3. Blockchain
• A public, decentralized ledger that records all Bitcoin
transactions.
• Every ~10 minutes, a new block is added to the chain.
• Transactions are grouped into blocks, which are linked
cryptographically.
4. Wallets
• Bitcoin wallets store private keys, allowing users to send
and receive BTC.
• Types of wallets:
• Hot Wallets (online, convenient but less secure)
• Cold Wallets (offline, more secure)
Consensus Mechanism
•The network follows Proof-of-Work (PoW) to ensure
transaction validity.
•51% Attack Resistance: No single entity can take control
unless it owns over 50% of the mining power.
1. Scalability Issues
•Bitcoin processes around 7 transactions per second (TPS),
which is much lower than traditional payment systems like
Visa (24,000 TPS).
•The block size is limited to 1 MB, which restricts the number
of transactions per block.
proposed Solutions:
SegWit (Segregated Witness) – Optimizes block space by
separating transaction data.
Layer 2 Scaling (Lightning Network) – Enables off-chain
transactions to reduce congestion.
3. Energy Consumption
•Bitcoin mining requires massive computational power,
consuming energy comparable to small countries.
•This raises environmental concerns and regulatory
challenges.
Proposed Solutions:
Transition to Renewable Energy Sources – Many miners
now use hydro, solar, and wind energy.
Alternative Consensus Mechanisms (e.g., Proof-of-
Stake) – Though controversial, some advocate moving away
from Proof-of-Work (PoW) to a more energy-efficient model.
5. Privacy Concerns
•Bitcoin transactions are pseudonymous, not anonymous,
meaning they can be traced on the blockchain.
•Governments and organizations use blockchain analysis tools
to track user activity.
Proposed Solutions:
CoinJoin & CoinSwap – Techniques that mix transactions
to increase privacy.
Taproot Upgrade – Enhances privacy for multi-signature
transactions.
Mining Hardware
•ASIC Miners (Application-Specific Integrated Circuits) –
Specialized, highly efficient machines.
•GPU (Graphics Processing Unit) Mining – Less efficient for
Bitcoin (better for other cryptocurrencies).
5. Reward Collection
•The winning miner receives:
Block reward (Newly minted BTC)
Transaction fees from the transactions in the block
•The block reward is currently 6.25 BTC (as of 2024) and
halves every 4 years (next halving in 2024 will reduce it to
3.125 BTC).
3. Electricity Cost
•The most significant expense for miners.
•Measured in $/kWh (cost per kilowatt-hour).
•Lower costs = higher profitability.
4. Bitcoin Price
•If BTC’s price rises, mining becomes more profitable.
•A sudden drop can make mining unprofitable.
5. Mining Difficulty
•Adjusts every 2,016 blocks (~2 weeks) based on network
competition.
•Higher difficulty = lower individual miner rewards.
Mining Pools
A mining pool is a group of miners who combine their
computational power to increase the chances of solving
blocks and earning rewards. The rewards are distributed
among participants based on their contributed computing
power.
Popular Mining Pools:
•F2Pool
•AntPool
•Slush Pool
•Foundry USA