Computer Engineering is coming soon

We're still writing and reviewing the notes for every subject, and we'll open it when every subject is ready. Meanwhile you can practise aptitude, ask Aria about any subject, or see the branches that are ready.

Blockchain in banking, finance and government

How blockchains change settlement, record-keeping and trust in banking, finance and government, their properties, trade-offs, real use-cases and exam-style examples.

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

Blockchain technology can reduce reconciliation, speed settlement, and increase auditability for banking, finance and government record systems. Engineers implement permissioned ledgers, smart contracts and tokenization to automate payments, custody, KYC and public registers while balancing privacy, scalability and legal finality.

Key ideas

Start by defining terms. Define a term and then use it.

  • Blockchain — a distributed append-only ledger where records are stored in ordered groups called blocks and linked by cryptographic hashes. The ledger is replicated across nodes that run a consensus protocol to agree on the order of blocks. Define: a ledger is a sequence of entries recording state changes; append-only means entries are not removed (practically immutable).

  • Transaction — a signed instruction that proposes a change to ledger state (for example, transfer of value or update to a registry). Signed means cryptographically authenticated by the sender.

  • Block — a container for a set of transactions plus metadata (previous block hash, timestamp, nonce) that binds it to the prior chain.

  • Consensus protocol — algorithm that nodes use to decide which blocks are accepted as canonical. Examples: Proof-of-Work (PoW) (work-based leader election) and permissioned consensus (e.g., PBFT-family algorithms) where a known set of validators vote.

  • Permissionless vs permissioned: A permissionless blockchain allows any participant to join and propose blocks (e.g., public cryptocurrencies). A permissioned blockchain restricts who can validate or write state and is typical for banks and government deployments.

  • Finality — the property that once a transaction is accepted it cannot be reversed. Two useful precise forms:

    • Deterministic finality: once a block is committed by the consensus algorithm, no subsequent valid state transition will revert it (typical of PBFT-style permissioned systems). Exact statement: "A transaction T has deterministic finality at time t if every honest validator that follows the protocol will include T in its committed state after t and no honest validator will later remove T." Assumptions: bounded message delay or eventual synchrony as required by the consensus protocol. In practice, BFT consensus with n ≥ 3f + 1 validators tolerates up to f Byzantine faults, and commits typically require at least 2f + 1 votes.
    • Probabilistic finality: in PoW systems, the probability that a transaction is reversed decreases as more blocks are built on top. Exact statement: "Given an attacker controlling fraction q of mining power (0 ≤ q < 0.5), the probability that an attacker can build a longer chain and reverse a transaction decreases exponentially with the confirmation depth z (number of blocks on top)." Assumptions: honest majority (q < 0.5) and random independent mining trials. Legal finality is separate: statutes, regulations, or contracts determine when a payment is final in law; systems must align technical and legal finality.
  • Immutability — practical resistance to changing past blocks because doing so requires redoing consensus work or gaining control of validators; not mathematically absolute for permissionless systems but extremely expensive under honest-majority assumptions.

  • Smart contract — a program stored on-chain that executes deterministically when triggered by transactions. In finance, smart contracts can encode settlement logic, collateral rules, and conditional payments.

  • Tokenization — representing a real-world asset (currency, bond, share, land title) as a digital token on a ledger. Tokens are ledger entries that refer to ownership and may be fungible or non-fungible.

  • Custody and keys — owning a private cryptographic key typically equates to controlling associated tokens; custody refers to who manages keys (self-custody, bank custody, custodial services).

  • Oracle — a service that brings external (off-chain) data onto the blockchain (prices, KYC verdicts). Oracles introduce trust assumptions and are often a centralised component unless designed redundantly.

  • Settlement vs clearing: Clearing is the process of calculating obligations and net positions between parties; settlement is the final transfer of value (asset or payment) that discharges those obligations.

  • Benefits in banking/government: single source of truth (reduces reconciliation), faster settlement (shorter time-in-flight), programmable money (smart contracts), audit trail and tamper-evidence, easier asset transfers and atomic swaps across instruments. Includes delivery-versus-payment (DvP) and payment-versus-payment (PvP) atomicity across assets and currencies, and supports CBDC and interbank settlement use cases. Assumptions: appropriate privacy mechanisms, legal recognition of on-chain records, integration with legacy systems.

  • Key trade-offs and practical constraints: throughput (transactions per second), latency (time to finality), privacy (public ledgers reveal data; privacy techniques — encryption, permissioned ledgers, zero-knowledge proofs — add complexity), legal/regulatory integration (KYC/AML, data protection), governance (who upgrades the protocol or resolves disputes), interoperability with existing fiat rails and payment systems. Note conflicts such as data-protection 'right to erasure' vs on-chain immutability; common mitigations include off-chain storage with on-chain hashes, data minimization, and encrypt-then-delete-key approaches.

Drawings to include in answers: (1) a diagram of a small permissioned network: draw 5 nodes (circles), label 3 as validators, arrows showing voting messages and a final commit to all nodes. (2) a layered diagram: at bottom "settlement layer (ledger)", above it "asset/token layer", then "smart contract/business logic", then "application/user interface".

Formulas

TPS = Tx_per_block / Block_time — TPS is transactions per second (s^-1), Tx_per_block is average transactions per block (dimensionless), Block_time is average time between blocks in seconds (s). Applies to block-based ledgers for throughput estimation.

Latency_confirm = Confirmations_required · Block_time — Latency_confirm is the time for the required confirmations (s), Confirmations_required is number of blocks required to consider a transaction final (dimensionless), Block_time is seconds per block (s). Applies where finality is achieved by waiting a fixed number of blocks (e.g., probabilistic finality).

Storage_rate = TPS · Avg_tx_size — Storage_rate is bytes per second (B·s^-1), TPS is transactions per second (s^-1), Avg_tx_size is average transaction size in bytes (B). Use to estimate ledger growth.

Prob_reorg ≈ (q/p)^z — Approximate exponential decrease of probability that an attacker with fraction q of mining power will overtake an honest chain after z confirmations; p = 1 - q. This is an approximation for q < 0.5 and illustrates exponential decay. Units: dimensionless probability. Assumptions: independent mining trials and honest majority.

Worked examples

Example 1 — Numerical: comparing settlement latency and TPS for two ledgers. Problem data: Permissioned ledger A: Block_time = 2 s, Tx_per_block = 2000. Public PoW ledger B: Block_time = 600 s (10 min), Tx_per_block = 2000. Compute TPS and latency if 1 confirmation is sufficient for A and 6 confirmations are used for B.

Step 1: Formula: TPS = Tx_per_block / Block_time. A: TPS_A = 2000 / 2 = 1000 s^-1 = 1000 TPS. B: TPS_B = 2000 / 600 ≈ 3.333... TPS.

Step 2: Latency: Latency_confirm = Confirmations_required · Block_time. Latency_A = 1 · 2 s = 2 s. Latency_B = 6 · 600 s = 3600 s = 60 min.

Final answers: Ledger A: 1000 TPS, 2 s settlement; Ledger B: ≈3.33 TPS, 60 min settlement.

Notes: This shows why permissioned ledgers are preferred when high throughput and low latency are required for banking back-office operations.

Example 2 — Algorithmic: tokenized payment with an escrow smart contract (step-by-step trace). Scenario: Alice pays Bob for goods using a tokenised currency on a permissioned chain with deterministic finality. Smart contract 'Escrow' holds tokens until delivery confirmation.

Initial state: Alice balance 1000 T, Bob balance 100 T. Escrow balance 0.

Steps:

  1. Alice creates transaction Tx1: call Escrow.deposit(amount=200, payee=Bob) and signs it.
  2. Validators run consensus and commit block containing Tx1 — deterministic finality means Tx1 is final.
  3. Escrow contract logic: move 200 from Alice to Escrow; check signature; update state: Alice 800, Escrow 200.
  4. Bob ships goods and provides delivery proof P (off-chain document hashed and referenced on-chain); Tx2: Bob.call Escrow.claim(proof=P).
  5. Validators verify P via an oracle or authority; upon verification, Escrow releases 200 to Bob: Escrow 0, Bob 300.

Trace shows clear custody, single ledger of truth (no reconciliation), and programmable business rule (release on proof). For exam: show how oracle introduces a trusted component and how disputes require off-chain governance.

Example 3 — Theory/model answer: land registry on blockchain (short essay model). Question: Explain how a blockchain-based land registry improves trust and what engineering and legal challenges remain. Model points to include: definition of tokenization for property, steps: initial on-chain inscription by a government authority (minting a non-fungible token representing title), transfer via signed transactions, access control via permissioned validators, audit trail, tamper-evidence. Engineering challenges: identity binding (KYC to link real persons to keys), handling off-chain documents, dispute resolution and rollback policies, privacy (not exposing sensitive personal data), scalability (number of properties and transactions), backups and key recovery. Legal challenges: legal recognition of on-chain title, change in land law, cross-jurisdiction issues, migration path from legacy records. Conclude: technically feasible and beneficial, but requires aligned legal reforms and robust identity/custody solutions.

Common mistakes

  • Confusing permissioned and permissionless architectures and their consensus assumptions (e.g., claiming PoW is used in permissioned systems by default).
  • Omitting the need for oracles when claiming on-chain contracts can access off-chain data.
  • Forgetting legal and governance requirements when proposing public-sector blockchain deployments.
  • Using Bitcoin parameter numbers (10 min block time) in examples about permissioned ledgers without justification.
  • Mixing up settlement vs clearing: settlement discharges obligations, clearing computes net obligations.

For your exam

Possible question types:

  • Definitions and short notes: define finality, permissioned blockchain, smart contract, tokenization. Full marks: short precise definition, assumptions, one-sentence example.
  • Long answer / discussion: benefits and challenges of blockchain for banking/government. Full marks: structured pros and cons, concrete use-cases, mention technical trade-offs (latency, TPS, privacy), and legal/governance factors.
  • Numerical: compute TPS, latency, storage growth. Full marks: show formula, substitute numbers with units, compute and state final answer with units.
  • Diagram question: draw architecture for a permissioned ledger used by banks. Full marks: labeled nodes, consensus validators, client apps, oracles, integration with legacy payment rails and custody.
  • Algorithm/trace: show steps of a smart-contract escrow or token transfer. Full marks: step-by-step state changes, signatures, and mention finality and dispute handling.
  • Critique/essay: evaluate a public-sector blockchain proposal. Full marks: balanced analysis, risks, mitigation, and realistic deployment steps.

Quick check

  1. What is the difference between deterministic and probabilistic finality?
  2. Give the formula used to compute TPS for a block-based ledger.
  3. Name two practical challenges when tokenizing real-world assets for an on-chain system.

Answers: 1) Deterministic finality guarantees no future reversions once committed under protocol assumptions; probabilistic finality gives only decreasing probability of reversion with more blocks. 2) TPS = Tx_per_block / Block_time. 3) Identity/custody binding between real owners and keys, and legal recognition / dispute-resolution for off-chain claims.

Finished this topic? Mark it so your progress, study plan and readiness keep up.

Stuck on something here?