Distributed Ledger Technology & Blockchains
300Hours Learn Lab Curriculum Reading | Topic: CAIA1_DIGITAL | Qualification: CAIA LEVEL1
# Distributed Ledger Technology & Blockchains Modern financial markets depend on **ledgers**-authoritative records tracking who owns which asset and how balances change after every transaction. For centuries, institutions maintained these records on **centralized ledgers** operated by banks, clearinghouses, custodians, and central securities depositories (CSDs). **Distributed Ledger Technology (DLT)** replaces the single trusted recordkeeper with a shared, synchronized database maintained across a network of independent computer nodes. A **blockchain** is a specialized subset of DLT that packages validated transactions into chronologically ordered **blocks** linked together with cryptographic hashes, making historical alterations computationally or economically prohibitive. --- ## 1. Centralized Ledgers, DLT, and Blockchain Architecture All blockchains are distributed ledgers, but not all distributed ledgers are blockchains. Some DLT systems use directed acyclic graphs (DAGs) or bilateral notary models without grouping data into linear blocks. Understanding where centralized databases end and blockchains begin clarifies why institutional investors evaluate DLT for both native digital assets and traditional asset tokenization. | Architectural Dimension | Centralized Ledger | Permissioned DLT / Consortium Chain | Permissionless Public Blockchain | | :--- | :--- | :--- | :--- | | **Ledger Authority** | Single operator (bank, exchange, CSD) | Pre-approved consortium of known institutions | Open network of pseudonymous nodes | | **Trust Model** | Institutional reputation, legal contracts, regulation | Contractual governance & identity-gated validators | Cryptographic verification & economic game theory | | **Access & Participation** | Closed; operator grants accounts | Restricted read/write/validate permissions | Open to anyone with internet access | | **Throughput & Latency** | Very high (tens of thousands of TPS; milliseconds) | High (thousands of TPS; sub-second to few seconds) | Lower on Layer-1 (7 to a few thousand TPS) | | **Censorship Resistance** | Low (operator can freeze or reverse entries) | Moderate (consortium majority can override) | High (no single entity can block valid transactions) | | **Primary Institutional Use** | Legacy settlement, brokerage back offices | Interbank Repo, wholesale CBDCs, trade finance | Bitcoin, Ethereum, public DeFi, open tokenized assets | ### Core Cryptographic Building Blocks Three cryptographic primitives give blockchains their tamper-evident security without a central administrator: 1. **Cryptographic Hash Functions (e.g., SHA-256, Keccak-256)**: A hash function maps an input of arbitrary size to a fixed-length digest (256 bits for SHA-256). Secure hashes satisfy four properties: - **Deterministic**: Identical inputs always yield the exact same hash output. - **Pre-image resistance (one-way)**: Computationally infeasible to reverse-engineer the input from the hash digest. - **Avalanche effect**: Changing a single bit of input alters roughly half of the output bits unpredictably. - **Collision resistance**: Practically impossible to find two distinct inputs producing the same output hash. 2. **Merkle Trees**: Within every block, individual transaction hashes are paired and hashed iteratively upward into a binary tree until a single root digest-the **Merkle root**-remains in the block header. If even one transaction changes, its hash changes, propagating up to alter the Merkle root. Merkle trees also enable **Simplified Payment Verification (SPV)**: a lightweight client can verify that a transaction belongs to a block of $N$ transactions by checking only $\log_2(N)$ sibling hashes rather than downloading the entire block. 3. **Asymmetric (Public-Key) Cryptography & Digital Signatures**: Users hold a mathematically linked key pair (typically generated via Elliptic Curve Cryptography such as `secp256k1`). The **public key** (or its hashed wallet address) can be shared openly to receive assets, while the **private key** remains secret and signs outgoing transactions. Any node can verify that a digital signature matches the sender's public key and transaction payload without ever learning the private key. ### Anatomy of a Block and Hash Chaining Each block consists of a **block header** and a **block body** (the list of validated transactions). The block header stores: - The **previous block hash** (cryptographically chaining block $t$ to block $t-1$ back to the Genesis Block), - The **Merkle root** summarizing all transactions inside block $t$, - A **timestamp**, - Consensus metadata (such as the **difficulty target** and **nonce** in Proof of Work, or validator attestations in Proof of Stake). Because block $t