Blockchain Architecture

Chapter 1
Blockchain Architecture Foundations

Diploma in Blockchain
Blockchain Architecture   •   Diploma

Blockchain Architecture Foundations

Introduction and Context

Blockchain architecture is best understood as a method for coordinating records among parties that may not fully trust one another. It combines a distributed ledger, cryptographic techniques, networking protocols, data structures, and agreement mechanisms. Although the word “blockchain” is often used as if it describes a single technology, blockchains differ substantially in governance, performance, privacy, and consensus design.

The central architectural question is not simply how to store data. It is how a group of independent computers can maintain a shared history of transactions without depending entirely on one central administrator. This question has existed in different forms for centuries. Banks, companies, governments, and online platforms traditionally solve it by appointing a trusted intermediary. Blockchain systems attempt to reduce, redistribute, or make explicit that reliance on a central intermediary.

A blockchain is therefore not merely a database with cryptography. It is a socio-technical system: software and hardware operate according to rules that are also influenced by economic incentives, legal arrangements, organizational governance, and user behaviour.

Learning Objectives

By the end of this chapter, you should be able to:

  1. Explain the meaning and purpose of a distributed ledger.
  2. Describe transactions, blocks, nodes, state, and the chain structure.
  3. Explain how cryptography and consensus support immutability and trust minimization.
  4. Distinguish permissionless, permissioned, and federated blockchain architectures.
  5. Compare blockchain systems with conventional databases.
  6. Identify suitable and unsuitable applications of blockchain technology.
  7. Discuss practical, governance, privacy, and regulatory limitations.

From Centralized Systems to Decentralized Architectures

Centralized systems

In a centralized information system, one organization or service normally controls the authoritative database. Users submit requests to an application, and the application reads from or writes to that database. A bank’s core ledger is a familiar example. The bank maintains the authoritative account balances, validates transfers, reverses errors where permitted, and controls access to records.

Centralization provides important advantages. A single authority can coordinate policies, enforce access controls, process transactions quickly, correct mistakes, and provide customer support. It also simplifies system design because there is one primary source of truth.

However, centralization creates dependencies and risks. The operator may be unavailable, compromised, dishonest, legally pressured, or technically incapable. Users must trust the operator’s records and procedures. A database administrator with excessive privileges, for example, may alter records without the knowledge of ordinary users. Replication and backups can improve resilience, but they do not by themselves remove the need to trust the organization controlling the system.

Distributed systems

A distributed system consists of multiple computers that cooperate over a network. Replication may improve availability and fault tolerance, but distribution alone does not imply decentralization. A corporation may operate ten database servers in different locations while retaining complete control over all of them.

The distinction is important:

  • Distributed describes the placement and coordination of computing resources.
  • Decentralized describes how authority, control, and decision-making are distributed.
  • Blockchain usually refers to a distributed ledger whose updates are governed by a protocol and whose history is cryptographically linked.

A distributed database can have a central administrator. A blockchain may also have administrators, especially in a permissioned network. Consequently, these terms should not be treated as synonyms.

Decentralized architectures

A decentralized architecture attempts to prevent any single participant from having unilateral control. Control may be distributed among many independent validators, among a consortium of organizations, or between users and protocol rules. Decentralization is not binary. It is better considered as a spectrum involving validator diversity, governance, client diversity, geographic distribution, and concentration of economic power.

Decentralization introduces costs. Participants must communicate, agree on ordering, verify one another’s work, and tolerate failures or malicious behaviour. As a result, decentralized systems often sacrifice some combination of speed, simplicity, privacy, or controllability in exchange for reduced dependence on a single authority.

The Distributed Ledger Model

A ledger is an organized record of economic or informational events. In a blockchain, the ledger is replicated across participating nodes. Each node may maintain a local copy or a relevant subset of the ledger and may independently verify proposed updates.

A simplified transaction lifecycle is:

  1. A user creates a transaction.
  2. The transaction is authorized, commonly with a digital signature.
  3. The transaction is broadcast to network participants.
  4. Nodes check whether it follows protocol rules.
  5. A proposer or validator includes valid transactions in a candidate block.
  6. The network applies a consensus rule to accept an ordering or block.
  7. Nodes append the accepted block and update their local state.

The ledger is therefore not simply a file copied to many computers. It is a history whose acceptable updates are constrained by protocol rules. Each node can reject an invalid update even if another participant proposes it.

Permissionless and permissioned ledgers

In a permissionless blockchain, participation is generally open. Anyone may be able to read the ledger, submit transactions, or participate in validation, subject to protocol requirements. Public cryptocurrency networks are common examples.

In a permissioned blockchain, participation is restricted. An authority or governance body determines who may operate nodes, submit transactions, or validate blocks. Enterprise supply-chain networks and interbank consortia may use this model.

A federated or consortium network is a permissioned system controlled by several organizations rather than one organization. It can reduce dependence on a single institution while retaining legal identities and controlled access.

CharacteristicPermissionless blockchainPermissioned blockchain
Validator admissionOpen or protocol-basedApproved by an authority or consortium
IdentityOften pseudonymousUsually known to the network
GovernanceCommunity and protocol mechanismsOrganizational or contractual governance
PerformanceOften limited by open participationUsually higher and more predictable
PrivacyLedger may be widely visibleAccess can be restricted
Main trust questionTrust the protocol and incentivesTrust the governing institutions and protocol

Core Architectural Elements

Transactions

A transaction is a signed or otherwise authorized instruction that requests a change to the ledger. Examples include transferring a digital asset, registering a document reference, updating a supply-chain status, or invoking a smart contract function.

A transaction commonly contains:

  • an originator or account identifier;
  • a destination, contract, or resource identifier;
  • an instruction and associated data;
  • a sequence number or nonce to prevent replay;
  • a fee or resource limit, where applicable;
  • a digital signature or other authorization evidence.

A transaction is not necessarily a financial payment. It may represent any protocol-defined state transition. Nor is a transaction automatically valid merely because it is signed. A valid signature demonstrates control of a key, but the transaction must also satisfy balance, format, permission, and state-dependent rules.

Digital signatures

Public-key cryptography allows a participant to create a key pair: a private key and a corresponding public key. The private key is used to generate a signature, while the public key or an address derived from it is used to verify the signature. The security assumption is that an attacker cannot feasibly create a valid signature without controlling the private key.

A signature authenticates authorization; it does not prove that an off-chain statement is true. If a sensor reports a false temperature and signs the report, the signature proves only that the sensor key—or whoever controlled it—approved that message.

Blocks

A block is a batch of transactions and metadata. Typical metadata includes:

  • a reference to the preceding block;
  • a timestamp or time-related field;
  • a transaction summary, often a Merkle root;
  • a consensus-specific field, such as a validator signature or proof;
  • a block number or other ordering information.

The reference to the preceding block is usually a cryptographic hash. A hash function maps input data to a fixed-length output. A secure cryptographic hash is designed to be computationally infeasible to reverse and difficult to find collisions for. If the contents of an earlier block change, its hash changes, causing the reference stored in the next block to become inconsistent.

This linkage makes unauthorized historical modification detectable. It does not make modification physically impossible. A sufficiently powerful or authorized actor may rewrite history in some systems; the relevant protection comes from the combined hash structure, consensus rules, replication, and economic or legal consequences.

Merkle trees

A Merkle tree summarizes many transactions using repeated hashing. Individual transaction hashes are paired and hashed again until one value—the Merkle root—summarizes the entire set. If one transaction changes, the root changes. A Merkle proof can demonstrate that a transaction belongs to a block without transmitting every transaction in that block.

Merkle structures improve verification efficiency, but they do not by themselves establish that a block is honest. A dishonest party could construct a valid Merkle tree for an invalid transaction set. Consensus and transaction validation remain necessary.

Nodes

A node is a computer that participates in a blockchain network. Roles vary by protocol:

  • Full nodes download and verify substantial portions of the ledger and protocol rules.
  • Light clients store less data and obtain proofs or information from other nodes.
  • Validators participate in proposing or attesting to blocks under the consensus mechanism.
  • Archival nodes retain historical data that may be pruned by other nodes.
  • Peer nodes relay transactions and blocks across the network.

One computer can perform several roles. A node is not necessarily a person or organization; it is a software instance operating under a protocol.

State

The ledger’s history records events, while state represents the current result of applying those events according to protocol rules. For an account-based system, state may include balances, nonces, contract code, and contract storage. For a UTXO-based system, state may consist of unspent transaction outputs.

The state-transition view can be expressed abstractly as:

St+1 = Γ(St, Tt)

Here, St is the state before an accepted transaction set, Tt is the set of valid transactions in a block, Γ is the protocol’s state-transition function, and St+1 is the resulting state. The equation assumes that the block is accepted by the relevant consensus rules and that all transactions are processed deterministically. A deterministic function produces the same resulting state for the same valid input.

This distinction is important. Two nodes may receive transactions in different sequences, but after consensus establishes the same accepted order and each applies the same transition rules, they should converge on the same state.

Consensus and Trust Minimization

The coordination problem

If several nodes maintain copies of a ledger, they need a method for deciding which transactions are valid and in what order they should be applied. This is difficult when communication is delayed, nodes fail, or some participants act maliciously. The challenge is often described as a Byzantine fault-tolerance or distributed agreement problem.

A consensus mechanism defines how the network selects an accepted history. It may involve computational work, staked economic value, voting among approved validators, or another protocol-specific resource.

Proof of work

In proof-of-work systems, participants compete to find a value that satisfies a computational condition. The work makes large-scale rewriting expensive because an attacker must reproduce the required work and compete with honest participants. Security depends on assumptions including sufficient honest computational participation, functioning network communication, and incentive compatibility.

Proof of stake

In proof-of-stake systems, validators commit or risk economic value and are selected or weighted according to protocol rules. Dishonest behaviour may lead to penalties, such as loss of staked assets. Security depends on stake distribution, validator incentives, finality rules, governance, and the implementation of the protocol.

Permissioned consensus

Permissioned networks may use voting-based Byzantine fault-tolerant protocols or leader-based replication. Since validators are identified and admitted, the system can often achieve faster finality and higher throughput than an open network. Its trust model, however, includes the organizations that admit validators and enforce governance.

Trust minimization

Blockchain does not eliminate trust. It changes its location and composition. Users may trust:

  • cryptographic algorithms and key-management practices;
  • node software and protocol implementations;
  • consensus assumptions;
  • validators or miners;
  • economic incentives;
  • governance processes;
  • external data providers and legal institutions.

The phrase trust minimization therefore means reducing reliance on discretionary action by a single intermediary, not creating a system requiring no trust at all.

Immutability: Meaning and Limits

Immutability in blockchain is usually practical rather than absolute. Once a block is deeply embedded in an accepted chain, altering it may require substantial resources, collusion, or governance approval. The probability of reversal may decrease as additional blocks are added, depending on the consensus protocol.

Immutability has several dimensions:

  1. Tamper evidence: unauthorized changes can be detected through hash and signature verification.
  2. Replication: many nodes may hold and verify the same history.
  3. Economic or procedural resistance: rewriting history may be costly or difficult.
  4. Governance resistance: changing accepted records may require broad agreement.

Immutability does not guarantee truth, permanence of access, or legal finality. Incorrect data entered legitimately remains incorrect. Private keys may be lost. A network may hard-fork, reverse an event by social agreement, or become unavailable. Personal data placed directly on a public chain may also create privacy and compliance problems because deletion is difficult.

Blockchain Compared with Conventional Databases

A conventional relational database is generally optimized for controlled, efficient read and write operations. It may use tables, indexes, transactions, constraints, and a central authorization system. Database administrators can correct records, restore backups, and modify schemas under organizational procedures.

Blockchain systems add replicated validation and consensus. They are appropriate when multiple parties need a shared history but do not want one party to have unilateral control. They are usually less suitable when one trusted organization already exists and high-performance, private, reversible data management is required.

DimensionConventional databaseBlockchain ledger
Primary authorityUsually one organizationProtocol, validators, and governance participants
Update controlAdministrator or applicationConsensus and validation rules
ModificationCan be corrected or deleted by authorized usersHistorical changes are difficult or governed by protocol
PerformanceGenerally high in controlled environmentsConsensus and replication add overhead
PrivacyCentral access control is commonDepends on network design; public chains may expose data
Fault modelProtect mainly against failures and unauthorized accessAlso addresses disagreement among independent participants
Audit trailDesigned and configured by the organizationOften inherent in the append-oriented history
RecoveryBackups and administrative restorationReplication, protocol recovery, and governance mechanisms

A blockchain should not be selected merely because it is fashionable or because data must be shared. A conventional database may be the better design when a trusted authority exists, records require frequent correction or deletion, participants are known and cooperative, or performance and confidentiality dominate.

Applied Case: A Consortium Food-Traceability Ledger

Background

This illustrative case concerns a consortium of farms, processors, logistics firms, retailers, and a food-safety regulator. Product information is currently exchanged through separate databases and spreadsheets. Each organization records shipment identifiers, inspection results, and handling events using different formats.

Problem

When contamination is discovered, the consortium takes several days to identify affected batches. Participants dispute which record is authoritative, and some records can be amended without a visible history. The consortium wants a shared audit trail without giving one retailer complete control over all participants’ systems.

Analysis

A permissionless public blockchain would expose commercially sensitive information and would not provide an obvious identity model for farms and regulators. A single shared database operated by one retailer would be efficient but would leave other participants dependent on that retailer’s governance and availability.

A permissioned consortium ledger is more appropriate. Each approved organization operates one or more nodes. Transactions are digitally signed by identified participants. The ledger stores batch identifiers, event types, timestamps, and references to inspection documents. Large documents remain in controlled off-chain repositories; the ledger stores cryptographic hashes and access-controlled links.

Approach and solution

The consortium establishes:

  • a membership authority for admitting organizations and revoking credentials;
  • a common data schema for batch and handling events;
  • validation rules requiring authorized roles to submit particular event types;
  • a consensus protocol among approved validators;
  • privacy rules limiting sensitive data to relevant participants;
  • procedures for correcting erroneous entries through compensating transactions rather than silent deletion;
  • an incident-response and governance committee.

A smart contract can reject an event if a batch identifier is unknown, an organization lacks the required role, or a sequence rule is violated. It cannot independently confirm that a physical shipment was honestly reported. Physical inspections, secure sensors, audits, and legal accountability remain necessary.

Outcome

The design creates a common, tamper-evident chronology and reduces disputes over when an event was recorded. Investigators can trace affected batches more quickly, while participants retain control over confidential documents. The system does not eliminate fraud, because a participant may submit false information, nor does it guarantee continuous network availability.

Learning points

The case demonstrates four principles. First, blockchain is most valuable where multiple parties need shared records and no single party should have unilateral control. Second, permissioned designs may be more suitable than public networks for regulated business processes. Third, on-chain records should be minimized and carefully designed for privacy. Fourth, governance, identity, and off-chain verification are as important as cryptographic code.

Practical Design Principles

A professional blockchain architect should begin with a problem analysis rather than a technology preference. The following questions are useful:

  1. Do multiple organizations need to write to a shared record?
  2. Do those organizations lack complete trust in one another?
  3. Is a shared append-oriented history more valuable than easy deletion and correction?
  4. Can the required data be represented without exposing confidential or personal information?
  5. Is a blockchain necessary, or would a replicated database with contractual governance suffice?
  6. Who operates nodes, admits participants, updates software, and resolves disputes?
  7. What happens when a private key is lost, a validator fails, or a participant behaves dishonestly?

Data minimization is especially important. Personal information should generally not be placed directly on an immutable public ledger unless there is a compelling legal and technical justification. Hashes may reduce exposure, but a hash of personal data can still create privacy risks if the original data is predictable or later disclosed.

Operational security is equally important. Protecting private keys, applying secure software updates, monitoring nodes, testing recovery procedures, and documenting governance decisions are essential professional practices. A mathematically sound protocol can still fail because of a compromised wallet, defective smart contract, insecure bridge, or poor access control.

Challenges, Ethics, and Regulation

Scalability and performance

Every validating node may need to process or store replicated information. Communication and consensus create overhead. Increasing throughput can require larger blocks, faster hardware, or fewer validators, but these choices may reduce decentralization or increase operating costs. Performance should therefore be assessed using measured workload requirements rather than general claims.

Privacy and confidentiality

Transparent ledgers may reveal transaction relationships, business activity, or behavioural patterns. Pseudonymous addresses do not guarantee anonymity. Permissioned systems offer stronger access controls but still require careful authorization, encryption, and governance.

Governance and accountability

Protocol upgrades, emergency responses, validator admission, and dispute resolution require governance. If rules are unclear, a system may experience inconsistent decisions or contentious forks. Governance should identify decision rights, voting or approval procedures, audit responsibilities, and legal accountability.

Legal and ethical issues

Blockchain applications may involve financial regulation, consumer protection, data-protection law, anti-money-laundering obligations, intellectual-property rights, and electronic-signature rules. An immutable record may conflict with requirements for correction or erasure. Legal analysis must occur before deployment, not after a system has become difficult to change.

Ethically, designers should consider exclusion, accessibility, energy use, surveillance, unequal control of validators, and the consequences of irreversible mistakes. A system that prevents a legitimate correction may be less fair than a controlled database with auditable amendment procedures.

Contemporary developments

Current architectures increasingly combine on-chain and off-chain components. Layered systems, rollups, sidechains, interoperability protocols, verifiable credentials, and zero-knowledge techniques attempt to improve scalability, privacy, or cross-network functionality. These technologies extend the design space but also introduce additional trust assumptions and failure points. Artificial intelligence may assist with anomaly detection, transaction monitoring, or support operations; it does not replace consensus and should not be treated as an authority for truth without independent verification.

Chapter Summary

Blockchain architecture provides a structured approach to maintaining a shared, verifiable history among participants who may not fully trust one another. A blockchain combines transactions, blocks, cryptographic links, replicated nodes, state-transition rules, and a consensus mechanism. Transactions request state changes; blocks group transactions; nodes verify and relay information; and consensus determines which history the network accepts.

Centralized databases remain highly effective when one trusted organization can control the system. Blockchain becomes more compelling when multiple parties require a common record, unilateral control is undesirable, and tamper-evident history has practical value. Permissionless systems maximize open participation but create performance, privacy, and governance challenges. Permissioned and consortium systems provide identity and controlled access but retain institutional trust requirements.

Immutability is best understood as resistance to unauthorized change, not an absolute guarantee that data is true, permanent, or legally irreversible. Cryptography authenticates messages and reveals tampering, while consensus coordinates acceptance. Neither mechanism guarantees that off-chain facts were honestly reported. Successful blockchain projects therefore require sound governance, identity management, privacy design, operational security, legal analysis, and clear evidence that blockchain is preferable to a conventional database.

Key Terms

Distributed ledger: A replicated record maintained and updated by multiple participating nodes.

Blockchain: A distributed ledger in which blocks of data are cryptographically linked and accepted according to protocol rules.

Centralized system: A system in which a primary organization or authority controls the authoritative data and decisions.

Decentralization: Distribution of control, authority, or decision-making among multiple independent participants.

Transaction: An authorized request to record an event or change ledger state.

Block: A protocol-defined batch of transactions and associated metadata.

Node: A computer running software that participates in a blockchain network.

Validator: A participant that verifies, proposes, or attests to blocks under a consensus protocol.

State: The current result of applying accepted transactions according to protocol rules.

State-transition function: The deterministic rule that maps a prior state and valid transactions to a new state.

Hash: A fixed-length value generated from input data by a hash function.

Digital signature: Cryptographic evidence that a holder of a private key authorized data.

Merkle root: A hash that summarizes a set of transactions through a Merkle tree.

Consensus: The process or protocol by which participants agree on an accepted ledger history.

Immutability: Practical resistance to unauthorized alteration of accepted historical records.

Permissionless blockchain: A network generally open to participation without prior organizational approval.

Permissioned blockchain: A network in which participation or validation is restricted by an authority or governance body.

Smart contract: Program code executed according to blockchain rules, usually to validate or automate state transitions.

Trust minimization: Reduction of dependence on discretionary action by a single intermediary, without eliminating all trust.

Governance: The rules and processes used to make decisions about participants, protocol changes, disputes, and accountability.

Review Questions

Short Answer Questions

  1. What is the difference between a distributed system and a decentralized system?
  2. What information does a blockchain block commonly contain?
  3. Why are digital signatures important in transaction authorization?
  4. What is meant by blockchain state?
  5. Why is blockchain immutability described as practical rather than absolute?

Long Answer Questions

  1. Explain the lifecycle of a blockchain transaction from creation to inclusion in an accepted block.
  2. Compare permissionless, permissioned, and consortium blockchain architectures.
  3. Compare blockchain systems with conventional databases across authority, performance, privacy, and modification.
  4. Explain how hash pointers, Merkle roots, replication, and consensus work together to support ledger integrity.
  5. Discuss why blockchain does not eliminate trust, using examples of remaining technical, organizational, and legal dependencies.

Analytical / Application Questions

  1. A university consortium wants to share verified academic credentials among institutions while protecting student privacy. Recommend either a conventional database, a permissioned blockchain, or a permissionless blockchain, and justify your choice.
  2. A company proposes storing all customer identity documents directly on a public blockchain because the ledger is “immutable and secure.” Analyze the proposal and recommend a safer architecture.
  3. A supply-chain participant submits a digitally signed record claiming that a shipment was stored at the correct temperature, but later evidence shows the sensor was defective. Explain what the signature proves, what it does not prove, and how the system should address the incident.

Multiple Choice Questions with Answers

Question 1

Which statement best distinguishes a distributed system from a decentralized system?

A. A distributed system always uses blockchain, while a decentralized system never does.

B. A distributed system concerns multiple computing resources, while decentralization concerns the distribution of control.

C. A distributed system has no administrator, while a decentralized system always has one.

D. A distributed system is always public, while a decentralized system is always private.

Correct Answer: B. A distributed system concerns multiple computing resources, while decentralization concerns the distribution of control.

Question 2

What is the primary function of a blockchain transaction?

A. To request an authorized change to ledger state

B. To permanently encrypt every file on a computer

C. To appoint the organization that controls all nodes

D. To guarantee that an off-chain event is factually true

Correct Answer: A. To request an authorized change to ledger state

Question 3

What happens when data in an earlier block is altered without authorization?

A. Only the latest transaction is automatically corrected.

B. The earlier block’s hash changes, making subsequent references inconsistent.

C. The network always deletes the entire ledger.

D. The alteration becomes valid if the data is digitally signed by any user.

Correct Answer: B. The earlier block’s hash changes, making subsequent references inconsistent.

Question 4

What does a digital signature primarily demonstrate?

A. That the signed statement is factually correct

B. That the network has reached consensus

C. That the holder of the relevant private key authorized the message

D. That the transaction has been included in a block

Correct Answer: C. That the holder of the relevant private key authorized the message

Question 5

Which item represents blockchain state?

A. Only the list of computers connected to the network

B. The current result of applying accepted transactions under protocol rules

C. A collection of unverified internet opinions

D. The private keys held by all users

Correct Answer: B. The current result of applying accepted transactions under protocol rules

Question 6

Which architecture normally restricts validator participation to approved organizations?

A. Permissionless blockchain

B. Permissioned blockchain

C. Unmanaged peer-to-peer network

D. Public web cache

Correct Answer: B. Permissioned blockchain

Question 7

Why might a conventional database be preferable to a blockchain?

A. A conventional database cannot enforce access control.

B. A conventional database is always decentralized.

C. A trusted authority exists and the application needs high performance and easy correction.

D. A conventional database cannot store an audit trail.

Correct Answer: C. A trusted authority exists and the application needs high performance and easy correction.

Question 8

What does blockchain trust minimization mean?

A. All forms of trust are removed from the system.

B. Users no longer need to protect private keys.

C. Dependence on discretionary control by one intermediary is reduced, although other trust assumptions remain.

D. Only government institutions are allowed to validate transactions.

Correct Answer: C. Dependence on discretionary control by one intermediary is reduced, although other trust assumptions remain.

Question 9

Why should large personal documents generally not be placed directly on a public blockchain?

A. Blocks cannot contain any data other than timestamps.

B. Public ledgers may expose information and make deletion or correction difficult.

C. Cryptographic hashes cannot be calculated for documents.

D. Validators cannot process text data.

Correct Answer: B. Public ledgers may expose information and make deletion or correction difficult.

Question 10

In the state-transition expression St+1 = Γ(St, Tt), what does Γ represent?

A. The number of network nodes

B. The protocol’s state-transition function

C. The private key of the transaction sender

D. The block’s storage capacity

Correct Answer: B. The protocol’s state-transition function

Blockchain Architecture
Chapter 1 of 14