Unit 1: Blockchain concepts - Subjective Questions
CSC307 — Blockchain Architecture And Design-I • Practice Questions with Detailed Answers
20 questions
Define blockchain and explain its core characteristics as a distributed ledger technology.
A blockchain is a distributed, append-only digital ledger that records transactions across a network of computers in a way that is secure, transparent, and tamper-resistant.
Core characteristics:
- Decentralization: No single central authority controls the ledger; it is maintained by a peer-to-peer network of nodes.
- Immutability: Once a block is validated and added to the chain, altering it is computationally infeasible because each block stores the cryptographic hash of the previous block.
- Transparency: All participants can view the shared ledger (in public blockchains), increasing trust.
- Consensus-driven: New blocks are added only when nodes agree through a consensus mechanism (e.g., Proof of Work, Proof of Stake).
- Cryptographic security: Transactions are secured using public-key cryptography and hashing.
The blocks are linked such that block contains , forming a chain where tampering with one block invalidates all subsequent blocks.
Explain how an escrow service can be implemented using blockchain. Describe the workflow with a suitable example.
An escrow is an arrangement where a trusted third party temporarily holds funds or assets until the agreed conditions between two parties are met. On a blockchain, this trusted third party is replaced (or supplemented) by a smart contract.
Workflow of a blockchain escrow:
- Agreement: Buyer and seller agree on terms, which are encoded into a smart contract deployed on the blockchain.
- Deposit: The buyer locks the payment (e.g., cryptocurrency) into the smart contract instead of sending it directly to the seller.
- Fulfilment: The seller delivers the goods or service.
- Release: When the buyer confirms receipt (or a predefined condition/oracle verifies delivery), the contract automatically releases funds to the seller.
- Dispute resolution: If there is a dispute, an arbiter (a third key in a multi-signature setup) can decide where funds go.
Example: Alice wants to buy a digital product from Bob. Alice deposits 1 ETH into an escrow smart contract. Once Bob transfers the product and Alice confirms, the contract sends the 1 ETH to Bob. If Alice does not confirm within a timeout, a 2-of-3 multisig arbiter resolves the outcome.
Benefits: Reduces reliance on costly middlemen, enforces rules automatically, and provides transparency and tamper-proof records.
Describe the layers of the blockchain stack in detail.
The blockchain stack is a layered architecture, where each layer builds upon the one below it. A common representation includes the following layers:
- 1. Hardware / Infrastructure Layer: Physical nodes, servers, and data storage that host the network and maintain copies of the ledger.
- 2. Data Layer: Defines the structure of blocks, transactions, Merkle trees, digital signatures, and hashing used to store data immutably.
- 3. Network Layer (P2P): Handles peer discovery, propagation of transactions and blocks, and communication between nodes.
- 4. Consensus Layer: Implements the agreement protocol (Proof of Work, Proof of Stake, PBFT, etc.) that validates transactions and orders blocks.
- 5. Execution / Smart Contract Layer: Executes programmable logic (e.g., Ethereum Virtual Machine) that runs decentralized applications.
- 6. Application Layer: User-facing dApps, wallets, DeFi platforms, and APIs through which end-users interact with the blockchain.
Each higher layer depends on the services provided by lower layers, forming a complete framework from physical infrastructure to end-user applications.
Distinguish between Web 2.0 and the decentralized web (Web 3.0).
The transition from Web 2.0 to the decentralized web (Web 3.0) marks a fundamental shift in how data and value are controlled.
| Aspect | Web 2.0 | Decentralized Web (Web 3.0) |
|---|---|---|
| Control | Centralized, owned by corporations | Decentralized, owned by users/network |
| Data ownership | Platforms own user data | Users own and control their data |
| Infrastructure | Centralized servers | Distributed nodes/blockchain |
| Trust model | Trust in intermediaries | Trustless, cryptography-based |
| Identity | Platform accounts | Self-sovereign identity, crypto wallets |
| Value transfer | Via banks/payment gateways | Peer-to-peer via tokens/crypto |
| Examples | Facebook, YouTube, Twitter | dApps, DeFi, NFTs, DAOs |
Summary: Web 2.0 is the "read-write" web dominated by centralized platforms, while Web 3.0 is the "read-write-own" web where blockchain enables user-controlled, trustless, and permissionless interactions.
Explain the main benefits of blockchain technology.
Blockchain offers several significant benefits across industries:
- Decentralization: Eliminates single points of failure and reliance on central authorities.
- Transparency: All participants share a single, verifiable version of the truth, improving trust.
- Immutability: Records cannot be altered retroactively, ensuring data integrity and auditability.
- Security: Cryptographic techniques and distributed consensus protect against fraud and tampering.
- Reduced costs: Removes intermediaries, lowering transaction and operational fees.
- Faster settlement: Transactions, especially cross-border ones, settle faster than traditional systems.
- Traceability: End-to-end tracking in supply chains and provenance verification.
- Automation: Smart contracts automatically execute agreements without manual intervention.
These benefits make blockchain valuable in finance, supply chain, healthcare, and governance.
Discuss the major challenges faced by blockchain technology.
Despite its benefits, blockchain faces several significant challenges:
- Scalability: Many blockchains process limited transactions per second (e.g., Bitcoin ~7 TPS) compared to traditional systems like Visa, causing congestion and high fees.
- Energy consumption: Proof of Work consensus consumes enormous electrical power, raising environmental concerns.
- Interoperability: Different blockchains often cannot communicate seamlessly with one another.
- Regulatory uncertainty: Lack of clear legal frameworks across jurisdictions creates compliance risks.
- Security risks: Although cryptographically secure, smart contract bugs, 51% attacks, and key management failures remain threats.
- Storage overhead: Full nodes must store the entire ledger, which grows continuously.
- Adoption and usability: Complex user experience and lack of technical awareness slow mainstream adoption.
- Immutability drawback: Erroneous or illegal data cannot easily be removed.
Addressing these challenges (via Layer-2 solutions, PoS, sharding, etc.) is crucial for wider adoption.
Describe at least four domain-specific blockchain applications with examples.
Blockchain is applied across many domains, tailored to specific industry needs:
- Finance (FinTech): Cryptocurrencies, cross-border payments, and DeFi (decentralized lending/borrowing). Example: Bitcoin, Ethereum, Aave.
- Supply Chain Management: End-to-end traceability of goods, provenance verification, and fraud prevention. Example: IBM Food Trust tracks food from farm to shelf.
- Healthcare: Secure, interoperable patient records and drug supply authenticity. Example: MedRec for medical record management.
- Real Estate: Tokenization of property, transparent land registries, and smart-contract-based deals. Example: Propy for property transactions.
- Voting / Governance: Tamper-proof, transparent electronic voting systems. Example: Voatz pilot elections.
- Identity Management: Self-sovereign identity where users control credentials. Example: Sovrin.
Each application leverages blockchain's immutability, transparency, and decentralization to solve domain-specific trust problems.
Explain the concept of a smart contract and its role in blockchain applications like escrow.
A smart contract is a self-executing program stored on a blockchain that automatically enforces the terms of an agreement when predefined conditions are met.
Key features:
- Autonomy: Runs automatically without intermediaries.
- Deterministic: Produces the same output on all nodes.
- Immutable: Once deployed, the code generally cannot be changed.
- Transparent: Code and execution are visible on the ledger.
Role in escrow:
In a blockchain escrow, the smart contract acts as the neutral trusted party:
- It holds the buyer's deposited funds.
- It verifies whether conditions (e.g., delivery confirmation) are satisfied.
- It releases funds to the seller or refunds the buyer accordingly.
This removes the need for a human escrow agent, reduces costs, eliminates fraud, and ensures the agreement is enforced exactly as coded. For example, in Ethereum, such logic is written in Solidity and executed by the EVM.
Compare public, private, and consortium blockchains.
Blockchains are categorized based on access and control over the network:
| Feature | Public | Private | Consortium |
|---|---|---|---|
| Access | Open to everyone | Restricted to one organization | Shared among selected organizations |
| Permission | Permissionless | Permissioned | Permissioned |
| Decentralization | Fully decentralized | Centralized | Partially decentralized |
| Speed | Slower | Fast | Fast |
| Consensus | PoW/PoS | Voting/approval | Selected nodes |
| Examples | Bitcoin, Ethereum | Hyperledger Fabric (single org) | R3 Corda, Energy Web |
Summary:
- Public blockchains maximize transparency and decentralization but sacrifice speed.
- Private blockchains offer control and performance for internal enterprise use.
- Consortium blockchains balance both, enabling trusted collaboration among multiple known entities.
Explain the data structure of a block and how blocks are linked to form a chain.
Each block in a blockchain is a container of data with a defined structure:
Components of a block:
- Block Header: Contains metadata including:
- Previous block hash — links to the prior block.
- Timestamp — time of block creation.
- Nonce — number used in mining (PoW).
- Merkle root — hash summarizing all transactions.
- Block Body: Contains the list of validated transactions.
Linking of blocks:
Each block stores the cryptographic hash of the previous block's header. Thus:
Since the previous hash is embedded, changing any data in an earlier block changes its hash, which breaks the link to all subsequent blocks. This chaining mechanism ensures immutability. The Merkle root allows efficient and secure verification of transactions within the block.
Discuss how blockchain enables the shift toward a decentralized web. What technologies support this transition?
The decentralized web aims to return control of data and value to users, and blockchain is its foundational enabler.
How blockchain enables decentralization:
- Trustless transactions: Users transact directly without intermediaries.
- Decentralized identity: Self-sovereign identity lets users control their credentials.
- Ownership of digital assets: Tokens and NFTs represent verifiable ownership.
- Censorship resistance: No central authority can arbitrarily remove content or accounts.
Supporting technologies:
- Smart contracts (e.g., Ethereum) for programmable logic.
- Decentralized storage such as IPFS and Filecoin for distributed file hosting.
- Cryptocurrencies and tokens for native value transfer.
- DAOs (Decentralized Autonomous Organizations) for community governance.
- Decentralized identity (DID) protocols for authentication.
- Oracles (e.g., Chainlink) to connect blockchains with real-world data.
Together, these technologies form the backbone of Web 3.0, enabling a user-owned, open, and permissionless internet.
What is a multi-signature (multisig) mechanism, and how does it improve a blockchain escrow system?
A multi-signature (multisig) mechanism requires more than one private key to authorize a transaction, rather than a single signature.
Working: An m-of-n multisig requires at least signatures out of total authorized keys to execute a transaction. For example, a 2-of-3 setup requires any 2 of 3 parties to approve.
Improvement to escrow systems:
- Trust distribution: In a 2-of-3 escrow, keys are held by the buyer, seller, and a neutral arbiter.
- Normal case: Buyer and seller sign to release funds — no arbiter needed.
- Dispute case: The arbiter sides with one party, forming the required 2 signatures.
- Security: No single party can unilaterally take the funds.
- Reduced dependency: The arbiter is only involved in disputes, lowering cost and reliance.
Thus, multisig ensures fairness, prevents fraud, and provides a decentralized dispute-resolution mechanism in escrow transactions.
Explain the role of consensus mechanisms in a blockchain. Briefly compare Proof of Work and Proof of Stake.
A consensus mechanism is a protocol by which distributed nodes agree on the validity and order of transactions, ensuring a single consistent copy of the ledger without a central authority.
Why it is needed:
- Prevents double-spending.
- Ensures all honest nodes maintain the same ledger.
- Provides security against malicious actors.
Comparison of PoW and PoS:
| Aspect | Proof of Work (PoW) | Proof of Stake (PoS) |
|---|---|---|
| Validator selection | Solve a cryptographic puzzle | Based on staked coins |
| Resource used | Computational power | Economic stake |
| Energy | Very high | Low |
| Security basis | Cost of hardware/electricity | Risk of losing stake |
| Example | Bitcoin | Ethereum 2.0, Cardano |
Summary: PoW relies on expending computational effort to secure the network, while PoS selects validators proportional to their economic stake, making it more energy-efficient.
Describe how blockchain can be used in supply chain management. What problems does it solve?
Supply chain management involves tracking products from raw material sourcing to final delivery across many stakeholders. Blockchain enhances this process by providing a shared, immutable ledger.
How blockchain is used:
- Each product is given a digital identity (e.g., QR code or token).
- Every movement or handover is recorded as a transaction on the shared ledger.
- All participants (suppliers, manufacturers, logistics, retailers) access the same version of truth.
- Smart contracts automate payments or trigger alerts when conditions are met.
Problems it solves:
- Lack of transparency: Provides end-to-end visibility of goods.
- Fraud and counterfeiting: Tamper-proof provenance records verify authenticity.
- Traceability: Enables rapid recall and origin tracking (e.g., contaminated food).
- Inefficiency: Reduces paperwork and reconciliation through automation.
- Disputes: Immutable records resolve conflicts over responsibility.
Example: IBM Food Trust uses blockchain to trace food items from farm to retail, improving safety and reducing recall time from days to seconds.
Define immutability and transparency in the context of blockchain. Why are they important?
Immutability and transparency are two foundational properties of blockchain.
Immutability:
- Refers to the inability to alter or delete data once it is recorded and confirmed on the blockchain.
- Achieved through cryptographic hashing — each block stores the hash of the previous block, so any change invalidates the entire chain.
- Importance: Guarantees data integrity, prevents fraud, enables trustworthy audits, and establishes a permanent record.
Transparency:
- Refers to the openness of the ledger, where all participants can view transactions (in public blockchains).
- Achieved through a shared distributed ledger replicated across all nodes.
- Importance: Builds trust among parties, discourages manipulation, and enables independent verification without intermediaries.
Together, immutability and transparency create a trustless environment where parties who do not know or trust each other can still transact confidently, relying on the system rather than on each other.
Explain the scalability trilemma in blockchain. Why is it difficult to achieve all three properties simultaneously?
The blockchain trilemma (coined by Vitalik Buterin) states that a blockchain can optimize for only two of the following three properties at any given time, making all three hard to achieve simultaneously:
- Decentralization: Distributing control across many independent nodes so no single entity dominates.
- Security: Resistance to attacks (e.g., 51% attacks, double-spending).
- Scalability: The ability to handle high transaction throughput (TPS).
Why the trade-off exists:
- Decentralization + Security but low Scalability: Having many nodes validate every transaction (like Bitcoin) ensures security and decentralization but limits speed.
- Scalability + Security but less Decentralization: Reducing the number of validators increases speed but centralizes control.
- Scalability + Decentralization but weaker Security: Fast and distributed systems may compromise on attack resistance.
Solutions attempting to balance the trilemma:
- Layer-2 solutions (e.g., Lightning Network, rollups).
- Sharding — splitting the network into parallel segments.
- Alternative consensus like PoS and DPoS.
The trilemma highlights that improving one dimension often weakens another, which is central to blockchain design challenges.
Distinguish between a centralized and a decentralized system. Why is decentralization significant in blockchain?
Centralized vs Decentralized systems:
| Aspect | Centralized | Decentralized |
|---|---|---|
| Control | Single central authority | Distributed across many nodes |
| Point of failure | Single point of failure | No single point of failure |
| Trust | Must trust the central entity | Trustless, based on protocol |
| Data storage | One central server | Replicated across network |
| Censorship | Easy to censor | Censorship-resistant |
| Example | Banks, Google | Bitcoin, Ethereum |
Significance of decentralization in blockchain:
- Resilience: The network continues even if some nodes fail.
- No single authority: Removes dependence on a trusted intermediary.
- Censorship resistance: No central party can block or alter transactions.
- Security: Attacking the system requires compromising a majority of nodes.
- Trustless cooperation: Participants rely on cryptography and consensus rather than on a central operator.
Decentralization is the defining feature that enables blockchain's trust, security, and robustness.
Describe the application layer of the blockchain stack and give examples of decentralized applications (dApps).
The application layer is the topmost layer of the blockchain stack, through which end-users interact with the underlying blockchain network.
Characteristics:
- Provides user interfaces (web/mobile) and APIs.
- Hosts decentralized applications (dApps) that run on smart contracts.
- Translates user actions into blockchain transactions.
- Includes wallets for managing keys and assets.
Components:
- Smart contracts that define backend logic.
- Front-end interfaces connecting to the blockchain via libraries (e.g., Web3.js, ethers.js).
- Wallets such as MetaMask.
Examples of dApps:
- DeFi: Uniswap (decentralized exchange), Aave (lending).
- NFT Marketplaces: OpenSea.
- Gaming: Axie Infinity.
- Social/DAOs: Decentralized governance platforms.
- Storage: Filecoin.
The application layer makes blockchain accessible and usable, bridging the gap between complex underlying protocols and everyday users.
Explain with an example how a traditional escrow differs from a blockchain-based escrow. Discuss advantages and limitations.
Traditional escrow relies on a trusted human/institutional third party, while blockchain escrow uses a self-executing smart contract.
Example scenario: A freelancer (seller) and client (buyer) agree on a project payment.
Traditional escrow:
- The client deposits money with an escrow company.
- The company holds funds and releases them after verifying work.
- Involves fees, paperwork, and reliance on the company's honesty and availability.
Blockchain escrow:
- The client deposits crypto into a smart contract.
- Funds auto-release to the freelancer when conditions are met or buyer confirms.
- A multisig arbiter handles disputes if needed.
Comparison:
| Aspect | Traditional | Blockchain |
|---|---|---|
| Trust | In third party | In code/consensus |
| Cost | Higher fees | Lower (gas fees) |
| Speed | Slower | Faster, automated |
| Transparency | Limited | Fully visible |
Advantages of blockchain escrow:
- Reduced cost, automation, transparency, and tamper-proof records.
Limitations:
- Smart contract bugs can be exploited.
- Difficulty verifying real-world events without reliable oracles.
- Legal recognition and crypto price volatility remain concerns.
Discuss the role of cryptographic hashing and public-key cryptography in securing blockchain transactions.
Blockchain security relies heavily on two cryptographic techniques: hashing and public-key cryptography.
Cryptographic Hashing:
- A hash function (e.g., SHA-256) converts input data of any size into a fixed-length output.
- Properties: Deterministic, one-way (irreversible), collision-resistant, and highly sensitive to input changes (avalanche effect).
- Role in blockchain:
- Links blocks by storing the previous block's hash.
- Builds the Merkle tree for efficient transaction verification.
- Ensures immutability, since altering data changes the hash.
Public-Key (Asymmetric) Cryptography:
- Each user has a public key (shareable, acts as an address) and a private key (secret).
- Role in blockchain:
- Digital signatures: A sender signs a transaction with their private key; others verify it with the public key, proving authenticity and integrity.
- Ownership: Only the holder of the private key can spend associated funds.
- Non-repudiation: The signer cannot deny having authorized a signed transaction.
Together, hashing ensures data integrity and immutability, while public-key cryptography ensures authentication, ownership, and secure authorization — forming the security backbone of blockchain.
Define blockchain and explain its core characteristics as a distributed ledger technology.
A blockchain is a distributed, append-only digital ledger that records transactions across a network of computers in a way that is secure, transparent, and tamper-resistant.
Core characteristics:
- Decentralization: No single central authority controls the ledger; it is maintained by a peer-to-peer network of nodes.
- Immutability: Once a block is validated and added to the chain, altering it is computationally infeasible because each block stores the cryptographic hash of the previous block.
- Transparency: All participants can view the shared ledger (in public blockchains), increasing trust.
- Consensus-driven: New blocks are added only when nodes agree through a consensus mechanism (e.g., Proof of Work, Proof of Stake).
- Cryptographic security: Transactions are secured using public-key cryptography and hashing.
The blocks are linked such that block contains , forming a chain where tampering with one block invalidates all subsequent blocks.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill. The rest comes out of a student's own pocket: the domain, the storage, and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason. to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it. What it pays for →