Blockchain platforms: Bitcoin, Ethereum, Hyperledger, IOTA and Corda
Concise study notes comparing five major blockchain platforms — Bitcoin, Ethereum, Hyperledger Fabric, IOTA and Corda — their models, consensus, data structures, and example traces useful for engineering exams.
Drafted with Aria, reviewed by the AiCanCode.org team · Updated . How we write and check our notes. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Engineers building decentralised systems must choose a platform that fits security, performance and permission requirements. Knowing Bitcoin, Ethereum, Hyperledger Fabric, IOTA and Corda lets you select the right ledger model (public vs permissioned vs DAG), consensus mechanism, and development tools for use-cases such as payments, smart contracts, supply-chain or IoT integration.
Key ideas
Start with definitions (each term bolded when defined):
- Distributed ledger: a replicated database maintained by multiple independent nodes where each node holds a copy of the ledger and updates are agreed by consensus.
- Blockchain: a type of distributed ledger where transactions are collected into blocks and blocks are cryptographically chained by including the previous block's hash in the next block's header.
- Block: a container of ordered transactions plus a block header containing metadata (previous block hash, Merkle root, timestamp, nonce and difficulty or similar).
- Transaction: a signed instruction that modifies ledger state (e.g. transfer of value or a smart-contract call).
- Node: a network participant running the protocol (full node, light node, validator, or miner depending on platform).
- Consensus: the protocol nodes use to agree on the next ledger state (examples: Proof of Work, Proof of Stake, PBFT-style algorithms, or DAG tip selection).
- Proof of Work (PoW): a consensus method where miners solve computational puzzles (finding a nonce so block header hash < target) to create blocks. Security assumes the attacker does not control >50% of total network hash power.
- Proof of Stake (PoS): a consensus method where validators are chosen based on stake (coin-holdings) rather than CPU effort.
- UTXO (Unspent Transaction Output): the accounting model used by Bitcoin where transactions consume previous outputs and create new outputs; the set of all unspent outputs represents spendable balances.
- Account model: the accounting model (used by Ethereum) where each account has a balance and state; transactions modify account balances and contract storage.
- Smart contract: code deployed on a platform (e.g., Ethereum) that executes deterministically on every node and can hold state.
- Permissioned blockchain: a ledger where node identities are controlled (used by Hyperledger Fabric and Corda) and participants are known (contrast with public, permissionless ledgers like Bitcoin/Ethereum).
- DAG (Directed Acyclic Graph): a graph structure with directed edges and no cycles; used by IOTA (the Tangle) to record transactions instead of a linear chain.
Platforms overview (core characteristics):
- Bitcoin: public, permissionless, PoW, UTXO model, primary use: digital cash. Security: selects the chain with the most accumulated work (not just the greatest number of blocks). Typical block time ~10 minutes.
- Ethereum: public (and private variants), originally PoW (Ethash) now PoS (Beacon chain + sharding roadmap); account model with a Turing-complete Ethereum Virtual Machine (EVM) running smart contracts in Solidity or other languages; gas metering for computation.
- Hyperledger Fabric: permissioned, modular architecture: peers (endorser and committer), orderers (consensus and block creation), chaincode (smart contracts). Uses an execute-order-validate model and a pluggable ordering service (production default: Raft, crash-fault tolerant). BFT options exist (e.g., SmartBFT), but classic PBFT is not the standard orderer.
- IOTA (Tangle): permissionless DAG-based DLT targeted for IoT. Each new transaction must approve (reference) two previous transactions (tips); consensus is emergent via tip selection and cumulative weight.
- Corda: permissioned DLT focused on regulated financial flows and bilateral transactions. No global broadcast; transactions are only shared with parties that need the data. Uses notary services to prevent double-spend and enforces contract rules via JVM smart-contract code.
What to draw (diagrams):
Block structure (for Bitcoin/Ethereum): draw a vertical rectangle split into header (top) and body (bottom). Label header fields left-to-right: Previous block hash, Merkle root, Timestamp, Difficulty/Target, Nonce. In body draw 4–6 small boxes labeled TX1, TX2,... and an arrow from Merkle root to a small sketch of a binary Merkle tree with leaf nodes as TX hashes and the root labelled.
Fabric endorsement flow: draw 3 boxes labelled Client, Peers (endorser), Orderer, Committing peers. Show arrows: client->endorser (proposal), endorser->client (signed proposal response), client->orderer (transaction), orderer->peers (block), peers->ledger commit.
IOTA tip-approval: draw three nodes A,B,C where B and C each point to A (edges as approvals), label tips as transactions with no incoming edges.
Assumptions behind models: security of PoW assumes majority honest hashpower; permissioned systems assume identity and legal controls; DAG systems assume high transaction rate and honest tip selection.
Formulas
Expected_time_to_find_block = (difficulty · 2^32) / hashrate
- difficulty: dimensionless, hashrate: hashes·s^-1, time: seconds. Applies to Bitcoin-style PoW where target is represented via difficulty and difficulty·2^32 is expected number of hashes.
Fee = sum(inputs) − sum(outputs)
- All values in same currency unit (e.g., BTC). Applies to UTXO transactions; fee paid to miner.
Cost_to_sender = gas_used · (base_fee + priority_fee)
- EIP-1559 fee model: base_fee (wei per gas) is burned; the validator receives
gas_used · priority_fee. Legacy (pre-EIP-1559) formula:gas_used · gas_price. Units: gas_used in gas (dimensionless), fees in wei (1 wei = 10^-18 ETH). Example: gas_used = 21,000, base_fee = 30 gwei, priority_fee = 2 gwei ⇒ cost_to_sender = 21,000 · 32 gwei = 672,000 gwei = 0.000672 ETH; validator_tip = 21,000 · 2 gwei = 42,000 gwei.
For Fabric/Corda there are no universal math formulas; remember call/endorse/order/commit sequence instead.
Worked examples
Example 1 — Bitcoin mining expected time (numerical): Given: network difficulty = 20,000,000,000 (20·10^9), miner hashrate = 100 terahashes/s = 100·10^12 hashes/s. Find expected seconds to find one block.
- Formula:
Expected_time = (difficulty · 2^32) / hashrate. - Compute difficulty·2^32 = 20·10^9 · 4,294,967,296 ≈ 20·10^9 · 4.294967296·10^9 = 85.89934592·10^18 ≈ 8.589934592·10^19 hashes.
- Divide by hashrate: 8.589934592·10^19 / (100·10^12) = 8.589934592·10^19 / 1·10^14 = 8.589934592·10^5 seconds.
- Convert to hours: 8.589934592·10^5 s / 3600 ≈ 238.6 hours ≈ 9.94 days.
Final answer: ≈ 9.94 days.
Example 2 — UTXO transaction fee and change (numerical): Alice has two UTXOs: 0.8 BTC and 0.3 BTC. She wants to send 0.5 BTC to Bob. Miner fee chosen = 0.0001 BTC.
- Sum(inputs) = 0.8 + 0.3 = 1.1 BTC.
- Output to Bob = 0.5 BTC. Change = sum(inputs) − output_to_Bob − fee = 1.1 − 0.5 − 0.0001 = 0.5999 BTC.
Final outputs: Bob receives 0.5 BTC, Alice receives change 0.5999 BTC, miner fee 0.0001 BTC.
Example 3 — Hyperledger Fabric transaction flow (algorithmic trace): Scenario: Client requests asset transfer A -> B.
Steps (trace):
- Client constructs transaction proposal (invoke chaincode transfer). Send proposal to endorsing peers.
- Endorsing peers simulate transaction against their chaincode and state databases (no ledger update) and return signed proposal responses with Read/Write sets and endorsement signature.
- Client collects endorsements satisfying endorsement policy (e.g., majority or specified org set). Client packages transaction + endorsements and submits to Orderer.
- Orderer orders transactions into blocks (e.g., using Raft) and broadcasts blocks to committing peers.
- Committing peers validate endorsements and check MVCC (version checks from Read/Write set). If valid, peers apply writes to ledger and state DB and mark transaction committed.
Result: Ledger updated only after order & validation; this avoids forks and ensures deterministic commit.
Common mistakes
- Saying Ethereum still uses PoW without mentioning the PoS transition (be specific about the network variant and date if asked).
- Thinking Fabric has a single consensus algorithm — Fabric is modular (orderers can run Raft or other protocols).
- Believing Corda broadcasts all transactions network-wide — actually Corda shares transactions only with involved parties and a notary.
- Describing IOTA as a blockchain — it is a DAG (Tangle); avoid calling its data structure a chain.
- Forgetting to state assumptions (e.g., honest majority) when writing security claims.
For your exam
Question types you will see:
- Definitions (e.g., define UTXO, block header, permissioned ledger).
- Short notes (compare two platforms, explain Fabric architecture, describe IOTA's tip selection).
- Derivations / calculations (e.g., expected mining time given hashrate and difficulty, compute transaction fee/change, compute gas cost).
- Diagrams (draw and label block structure, Fabric flow, Merkle tree).
- Long theory answers (security comparison, why choose permissioned vs permissionless for a given use-case).
What to include for full marks:
- Clear definitions with bolded key terms (or underlined if handwriting). State models (UTXO vs account) and consensus explicitly.
- Diagrams with labels and brief captions explaining the flow.
- For calculation questions, show formula used, substitute numbers with units, carry units through, and give final numeric answer with correct units and rounding.
- For comparisons, state assumptions (threat model, expected throughput, privacy needs) and map platforms to those needs.
Quick check
- What accounting model does Bitcoin use?
- In Ethereum, how is the transaction fee computed?
- Which platform uses a DAG called the Tangle?
Answers: Bitcoin uses the UTXO model; Cost_to_sender = gas_used · (base_fee + priority_fee) (legacy: gas_used · gas_price); IOTA uses the Tangle (DAG).
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?