CBT Unit 2 Notes
CBT Unit 2 Notes
Cryptocurrencies can be created by anyone with access to the right tools and knowledge.
However, the creation of coins is not just a technical task; it involves strategic decisions,
legal compliance, and a clear understanding of blockchain architecture.
Steps involved:
● Design your consensus mechanism: Choose between Proof of Work (PoW), Proof of
Stake (PoS), or other mechanisms.
● Decide the type of blockchain: Will it be public, where anyone can join, or
private/permissioned, controlled by a single organization?
● Coin distribution model: Decide whether to mint all coins at launch or release them
over time (inflationary vs. deflationary models).
Example:
Bitcoin was the first cryptocurrency with its own blockchain. Ethereum also launched with a
custom blockchain that supports both coins (ETH) and tokens (ERC-20).
Process:
● Change the rules (e.g., block size, mining algorithm, supply cap).
Pros:
Cons:
Example:
● Bitcoin Cash was forked from Bitcoin to allow larger block sizes.
Basic Steps:
Advantages:
Disadvantages:
Example:
If you don’t have technical expertise, hiring a professional developer or using BaaS companies
can streamline the process.
● Chainzilla, Blockstream
3. Business Utility: Used for branding, fundraising (ICO/IDO), or creating new
ecosystems.
2. Cost and Time: Creating, testing, auditing, and launching can be expensive.
3. Ongoing Maintenance: Keeping the network secure and scalable is continuous work.
4. Legal Risks: Many governments regulate ICOs and tokens; lack of compliance can
result in penalties.
✅ Summary Table:
Approach Difficulty Cost Customizatio Infrastructure
n Required
✅ Real-World Applications:
● Startups: Launch tokens for product access or fundraising.
✅ Conclusion:
The process of coin creation offers multiple paths suited for various needs—from launching
your own blockchain with a native coin to minting a simple token for a project. The choice
depends on your goals, resources, technical capacity, and long-term vision. With growing
adoption of crypto assets, the ability to create and manage digital currencies is becoming a
valuable skill in today’s digital economy.
Transaction in Bitcoin Network
A Bitcoin transaction is a digital message that encodes the transfer of bitcoins from one
address to another. It involves cryptographic verification and is recorded in the blockchain, a
public and distributed ledger maintained by a decentralized peer-to-peer (P2P) network.
1. Input(s): The source of bitcoins, taken from unspent outputs (UTXOs) of previous
transactions.
2. Output(s): The recipient’s public address and the amount to be sent.
4. Digital Signature: Created using the sender’s private key, used to prove the
transaction's authenticity.
5. Public Key: The public key associated with the sender's address, used to verify the
signature.
6. Transaction ID (TXID): A unique identifier for each transaction, derived from hashing the
transaction data.
○ They select a UTXO as the input, specify the amount, and provide the recipient’s
address.
3. Broadcasting:
4. Validation:
■ No double-spending is attempted.
6. Mining:
○ The first miner to solve it mines the block and broadcasts it to the network.
🔶 3. Example Scenario
Suppose Rupali wants to send 0.5 BTC to Rakshita:
● Input: Rupali’s UTXO of 1 BTC.
● Change: Remaining 0.49 BTC is sent to Rupali's change address (assuming 0.01 BTC
is the miner fee).
This transaction:
Transaction Outputs Refer to newly created UTXOs going to the recipient (or
change address).
● Block Size Limit: Each block can store ~1 MB of data, limiting the number of
transactions per block.
● Transactions are transparent but pseudonymous – addresses are not directly linked to
identities.
🔶 Conclusion
Bitcoin transactions are the core of the cryptocurrency system, providing a secure,
decentralized, and transparent way of transferring value. With mechanisms like UTXO,
cryptographic signatures, mining, and confirmation, the Bitcoin network ensures that every
transaction is valid, verifiable, and immutable.
Bitcoin P2P (Peer-to-Peer) Network
The Bitcoin Peer-to-Peer (P2P) network forms the backbone of the entire Bitcoin ecosystem.
It enables decentralized communication and coordination among participants for the exchange
of Bitcoin transactions and the maintenance of the blockchain ledger without any central
authority.
🔶 1. Introduction
The Bitcoin network is decentralized, meaning there is no central server or controlling authority.
Instead, it relies on a distributed network of nodes (computers) that work collaboratively to:
Each node communicates with several other nodes in a peer-to-peer topology, similar to a
mesh network.
Component Description
Full Nodes Maintain a full copy of the blockchain and validate all rules of the
Bitcoin protocol.
Lightweight Nodes Rely on full nodes to verify transactions, only download block
(SPV) headers.
● The wallet signs the transaction using the user's private key.
● Other nodes verify the block and add it to their copy of the blockchain.
Open Participation Anyone can join and run a node by downloading the software.
Full Node Validates every block and transaction, stores full blockchain data.
Lightweight Node Verifies transactions using Merkle proofs and block headers.
(SPV)
Archival Node Stores additional historical data beyond the standard blockchain
size.
🔶 7. Advantages of Bitcoin P2P Network
● ✅ No Central Authority: Eliminates risks of centralized control.
● ✅ Censorship Resistant: No single entity can block or reverse transactions.
● ✅ Trustless System: Participants do not need to trust each other—rules and
cryptography govern the system.
🔶 9. Conclusion
The Bitcoin P2P network is a revolutionary model that enables secure, decentralized financial
transactions without intermediaries. It maintains the integrity of the blockchain by allowing open
participation, fault-tolerant communication, and distributed consensus. This architecture is the
foundation of Bitcoin’s reliability, transparency, and global accessibility.
Cryptocurrency Domain
The cryptocurrency domain encompasses all technologies, concepts, systems, and
applications involved in the creation, transfer, and management of digital currencies that operate
on decentralized blockchain platforms. It includes both the technological infrastructure and the
financial ecosystem surrounding digital money.
🔶 1. Introduction to Cryptocurrency
A cryptocurrency is a digital or virtual currency that uses cryptographic techniques for
secure transactions. Unlike fiat currencies issued by governments, cryptocurrencies operate
without central authorities such as banks or financial institutions.
The first and most widely known cryptocurrency is Bitcoin, introduced in 2009 by an
anonymous person or group known as Satoshi Nakamoto.
✅ b) Cryptography
● Provides security and privacy.
✅ c) Consensus Mechanisms
● Methods by which nodes agree on the state of the blockchain.
● Common types include:
✅ e) Wallets
● Software or hardware used to store and manage cryptocurrency private/public keys.
● Types: Hot wallets (online), Cold wallets (offline like USB or paper).
🔶 3. Categories of Cryptocurrencies
Category Description Example
CBDCs Central Bank Digital Currencies e-RUPI (India concept), Digital Yuan
🔶 4. Applications of Cryptocurrency
● 💱 Digital Payments: Fast and borderless transactions.
● 🛡️ Secure Record-Keeping: Transactions stored immutably.
● 💰 Fundraising via ICOs/IDOs: Initial Coin Offerings for projects.
● 🌐 Decentralized Finance (DeFi): Lending, borrowing, and trading without
intermediaries.
● Others like India and USA are in the process of developing strict regulations.
🔶 9. Conclusion
The cryptocurrency domain is a dynamic and transformative field that is reshaping how value
is exchanged globally. By combining advanced cryptography, decentralization, and innovative
financial systems, it provides a more transparent, secure, and inclusive alternative to traditional
money systems. Despite challenges like regulation and scalability, its future remains bright and
filled with potential.
Payments and Double Spending
With Types of Double Spending
🔶 1. Introduction
Cryptocurrency systems like Bitcoin allow users to perform peer-to-peer (P2P) digital
payments without relying on centralized intermediaries such as banks. However, this digital
nature of currency brings a unique challenge — double spending, which refers to spending the
same digital token more than once.
🔶 2. Payments in Cryptocurrency
A cryptocurrency payment involves the transfer of coins from one wallet to another. The steps
involved are:
2. Digital Signature: The transaction is signed using the sender’s private key to ensure
authenticity.
4. Verification: Network nodes validate the transaction using the sender’s public key.
5. Block Inclusion: A miner includes the verified transaction in a new block.
6. Confirmation: Once the block is added to the blockchain, the transaction is considered
confirmed.
🔶 3. What is Double Spending?
Double spending is the attempt to spend the same unit of cryptocurrency more than once.
In digital systems, unlike physical cash, it is possible to copy and resend the same digital
token.
If not prevented, double spending would compromise the trust and integrity of the
cryptocurrency system.
● Unspent Transaction Outputs (UTXO): Once coins are spent, their outputs are marked
as “used” and cannot be reused.
🔹 a) Race Attack
● The attacker sends two transactions simultaneously:
○ One to a merchant.
● The goal is for the second transaction (to self) to be confirmed first.
🔹 b) Finney Attack
● Requires mining power.
● Then, they perform a purchase and immediately broadcast the pre-mined block —
invalidating the merchant’s unconfirmed transaction.
🔹 c) Vector76 Attack
● A combination of race and Finney attacks.
● Used on SPV (Simplified Payment Verification) clients, which do not download full
blockchain data.
● Exploits a time window where an SPV wallet sees a confirmed transaction that later gets
overwritten.
🔹 d) 51% Attack
● The attacker controls more than 50% of the total mining power.
Using Full Nodes Reduces SPV vulnerabilities and verifies the entire blockchain.
🔶 8. Real-World Examples
● Some early Bitcoin exchanges were attacked using race attacks due to lack of
confirmation wait time.
● Smaller PoW coins like Bitcoin Gold have suffered 51% attacks, leading to millions in
losses.
🔶 9. Conclusion
Payments and double spending are core concerns in the cryptocurrency domain. Blockchain's
innovation lies in solving this digital dilemma by using cryptographic signatures, decentralized
consensus, and immutable records. Understanding the types of double-spending and adopting
proper preventive strategies is essential to securing the digital payment ecosystem.