Blockchain Technology Notes

What is Blockchain?

  • Decentralized, distributed ledger technology (DLT) ensuring security, transparency, and immutability.
  • Uses cryptography to secure data.
  • Foundation of cryptocurrencies but extends beyond.

Key Features of Blockchain:

  • Decentralized: No central authority, multiple nodes maintain the network.
  • Immutable: Data cannot be changed once recorded.
  • Secure & Transparent: Uses cryptographic hashing; transactions visible to participants.
  • Distributed Ledger: Every node has a copy, reducing data loss risk.
  • Smart Contracts: Self-executing contracts with predefined rules.

How Blockchain Works:

  • Transaction Initiation: User initiates a transaction.
  • Transaction Verification: Nodes verify the transaction.
  • Transaction Added to a Block: Verified transactions grouped into a block.
  • Block Linked to Previous Block: New block connected via a hash.
  • Blockchain Updated: Every copy updated permanently.

Real-World Applications:

  • Cryptocurrency (Bitcoin, Ethereum).
  • Supply Chain Management (IBM Food Trust).
  • Healthcare (Secure medical records).
  • Voting Systems (Tamper-proof elections).
  • Banking & Finance (Cross-border payments).

Cryptography in Blockchain:

  • Secures data, prevents fraud, ensures owner control.

Types of Cryptography:

  • Hashing (SHA-256): Converts data to fixed-length code.
    • Example: “Hello” → 185f8db32271fe25f561a6fc938b2e264
  • Public & Private Key Cryptography: Asymmetric encryption.
    • Public Key: Shared.
    • Private Key: Secret for signing transactions.

Consensus Mechanisms:

  • Method to agree on valid transactions.

Proof of Work (PoW):

  • Miners solve complex math puzzles.
  • First to solve adds block and gets reward.
  • Others verify the answer.
  • Problems: Not eco-friendly, slow.

Proof of Stake (PoS):

  • Stakers lock up coins; system picks one to add block.
  • Chosen person gets a reward.
  • Others verify.
  • Why is it important: Faster, less electricity, more participation.
  • Problems: Richest have advantage, potential for manipulation.

Smart Contracts:

  • Self-executing programs that run automatically when conditions are met.

Examples:

  • Supply Chain Management: Track goods.
  • Real Estate Transactions: Transfer ownership.
  • Insurance Claims: Automated payouts.

Blockchain in Financial Services:

  • Removes intermediaries, enables faster and cheaper transactions.

Key Applications:

  • Decentralized Finance (DeFi): Lending, borrowing, trading without banks.
  • Cross-Border Payments: Instant, low-cost global transactions.
  • Smart Contracts in Banking: Automates agreements.
  • Fraud Prevention & Security: Uses immutable ledgers.

Blockchain in Digital Identity:

  • Securely stores and verifies identities.

Key Applications:

  • Self-Sovereign Identity (SSI): Users control identity.
  • Digital Passports & KYC: Eliminates repeated verification.
  • Healthcare & Medical Records: Secure storage.
  • Voting Systems: Tamper-proof digital voting.

Challenges Facing Blockchain Technology:

  • Slow Transactions (Scalability).
  • High Energy Consumption.
  • Security vulnerabilities.
  • Complexity.
  • Interoperability issues.
  • Lack of clear rules (Governance & Regulations).

Blockchain Privacy & Security Issues:

  • Phishing Attacks: Tricking users for login details.
    • Solutions: 2FA, IAM
  • Routing Attacks: Manipulating internet traffic.
    • Solutions: VPN, trusted providers
  • Sybil Attacks: Fake identities controlling votes.
    • Solutions: Identity verification, PoW/PoS
  • 51% Attacks: Controlling >50% mining power.
    • Solutions: Big blockchains, PoS, Multi-Signature Wallets
  • Man-in-the-Middle Attacks: Intercepting communication.
    • Solutions: HTTPS, avoid public Wi-Fi
  • Endpoint Vulnerability: Weak device security.
    • Solutions: Strong passwords, updated software, antivirus.
  • Smart Contract Vulnerability: Errors in contract code.
    • Solutions: Audited contracts, safety features

Regulatory and Compliance Considerations in Blockchain:

  • Stopping Financial Crimes (AML/KYC): Prevent money laundering.
  • Protecting Personal Data (Data Privacy).
  • Following Investment Laws (Securities Regulations).
  • Paying Taxes on Blockchain Transactions.
  • Following Rules in Different Countries (Cross-Border Compliance).
  • Tracking Transactions in Real-Time (Monitoring & Screening).
  • Making Blockchain Legally Enforceable (Transparency & Documentation).