BC IA2
BC IA2
(IA) – 02
Key Characteristics:
1. Permissioned Access: Only approved participants can join the network, making
it more secure and controlled. You need permission to participate.
2. Centralized Control: There is usually a single organization or a group that
manages the network and decides who can join and what transactions are
allowed.
3. Faster Transactions: Because fewer participants are involved and there’s no
need for a global consensus, transactions are usually faster and more efficient.
4. Privacy: Information on a private blockchain is accessible only to members of
the network, making it suitable for business use where data confidentiality is
important.
5. Governance: The rules for the network are set by the managing organization,
which can modify or update the blockchain as needed.
private blockchains are often used in industries like finance, supply chain, and
healthcare, where control, privacy, and efficiency are essential.
2. Write a short note on Ethereum Virtual Machine (EVM).?
Ans:
The Ethereum Virtual Machine (EVM) is the runtime environment for smart
contracts on the Ethereum blockchain.
• It serves as a decentralized computing engine, executing scripts using a peer-to-
peer network of nodes.
• he EVM supports programming languages like Solidity and Vyper, converting
smart contract code into low-level bytecode that the EVM can execute.
• Every action performed on the EVM costs "gas," which is a unit that measures
the computational work required to execute operations.
State Management:
• The EVM maintains a global state of all smart contracts and accounts.
In simple terms, the Ethereum Virtual Machine is a powerful, decentralized engine
that executes smart contracts and manages the state of the Ethereum blockchain. It
allows developers to build applications that run securely and automatically without the
need for intermediaries,
Q. 3. Write a short note on Mist Wallet?
Ans: Mist Wallet is a software wallet designed for the Ethereum blockchain.
• Mist Wallet is specifically built for storing, sending, and receiving Ethereum
(ETH) and tokens created on the Ethereum network (like ERC-20 tokens).
Key Features
• Node Software:
o Mist Wallet runs as a full node, meaning it downloads and stores the entire
Ethereum blockchain on your device.
• Users can interact with smart contracts directly through the Mist interface. This
makes it easy to use decentralized applications (dApps)
Integrated Browser:
• Mist Wallet includes a built-in browser for accessing dApps,
Mist Wallet was an Ethereum wallet that allowed users to store and manage their ETH
and tokens while interacting with dApps
It provided enhanced security as a full node wallet
Rinkeby
Kovan
Goerli
Sepolia
Characteristics:
Ans:
Q. 7. Explain any two types of Smart Contracts?
ANS:
1) Smart contracts are self-executing agreements with terms directly written into
code, running on a blockchain. They automatically enforce and execute contract
conditions without intermediaries
Features:
Contract Accounts
• Definition: Accounts that are associated with smart contracts. They execute
predefined code when triggered by transactions.
Control: Not directly controlled by a private key. Instead, they are governed by the
code written in the smart contract.
Balance: Can also hold ETH and may have a balance depending on transactions
received.
EOAs are like individual bank accounts controlled by a person, while contract accounts
are like automated programs that handle specific tasks and rules on the Ethereum
blockchain
Q. 11. Compare Ethereum and Hyperledger Fabric?
Ans:
Q. 12. List and explain various types of nodes used in Ethereum.?
Ans: In Ethereum, different types of nodes perform various tasks to maintain the
blockchain network. Here are the main types of nodes
Full Node:
Light Node:
• Stores only the block headers, not the full blockchain data.
• Verifies transactions using minimal data, making it faster and using less storage.
• Ideal for devices with limited storage and processing power.
Miner/Validator Node:
• These nodes create new blocks by solving complex puzzles (Proof of Work) or
validating transactions (Proof of Stake).
• They help secure the network and earn rewards for processing transactions.
Archive Node:
• Similar to a full node, but also stores historical blockchain data, including past
states.
• Used for deep data analysis, historical lookups, and advanced debugging.
Each node type has different responsibilities, contributing to the Ethereum network's
security, efficiency, and scalability.
Five Marks Questions
13. Explain PAXOS consensus algorithm for a private blockchain.
Ans:
Q. 14. Describe the concept of Hyperledger and list out its frameworks and tools?
ANS:
Hyperledger Frameworks:
1. Hyperledger Fabric:
2. Hyperledger Sawtooth:
• Supports various consensus mechanisms and allows for smart contracts in multiple
programming languages.
Hyperledger Iroha:
Hyperledger Besu:
Hyperledger Burrow:
• Focuses on running smart contracts using the Ethereum Virtual Machine (EVM).
• Ideal for systems that need compatibility with Ethereum smart contracts.
TOOLS:
• Hyperledger Caliper
• Hyperledger Cello
• Hyperledger Explorer
• Hyperledger Aries
• Hyperledger Quilt
• Hyperledger Transact
15. Explain Hyperledger Fabric architecture with the help of diagram.
Ans:
Peers:
• These are the computers (nodes) in the network. Peers maintain the shared ledger
and execute smart contracts, called chaincode, to validate transactions.
• There are different types of peers:
o Endorsing Peers: Run the chaincode to endorse a transaction.
o Committing Peers: Commit the validated transactions to the ledger.
Orderer:
• This component is responsible for arranging the transactions in the correct order
and creating blocks to add to the blockchain.
• It ensures the transactions are added in a sequential and consistent manner across
all peers.
Ledger: The ledger is the shared, tamper-proof record of all the transactions.
• Chaincode is the business logic or application code that runs on the network. It
defines the rules for transactions.
Ans:
// SPDX-License-Identifier: MIT
contract PrimeCheck {
if (number <= 1) {
if (number % i == 0) {
return false; // If divisible by any number other than 1 and itself, not prime
}
Q. 17. Explain components of Ethereum blockchain architecture in detail
Ans:
The Ethereum blockchain architecture consists of several key components that work
together to enable decentralized applications (dApps), smart contracts, and secure
transactions
Nodes
• Nodes are computers that run the Ethereum software and maintain the
blockchain network.
• Each node keeps a copy of the entire blockchain and validates transactions.
Smart Contracts
Accounts
• Transactions are instructions that move data or value from one account to
another.
Consensus Mechanism
Blocks
• dApps are applications that run on the Ethereum blockchain instead of a single
server.