Reading fromTech Explained Simply
Volume 3 · Chapter 9ch 3.9 · 0/10 · lesson 8
Decentralized Systems and Blockchains: Shared State without One Writer
📑 On this page
- A concrete example: public cryptocurrency
- Decentralization is multidimensional
- Transactions
- Cryptographic hashes
- Digital signatures
- Consensus
- Proof of work
- Proof of stake
- Finality and forks
- Smart contracts
- Oracles
- Tokens and incentives
- Permissioned ledgers
- Privacy
- Scalability
- Governance
- When to use a blockchain
- Knowledge check
- The one idea to remember
A conventional database has an operator that decides which writes are accepted and how conflicts are resolved.
A blockchain is useful when several parties need shared history but do not want one of them to control the record.
A blockchain maintains append-oriented shared state through cryptography, replicated validation, and consensus, trading central control for cost, latency, limited throughput, and difficult governance.
It is one design in a broader family of decentralized systems.
A concrete example: public cryptocurrency
Participants submit signed transfers.
Independent nodes:
- validate signatures and balances,
- order accepted transactions,
- agree on history through consensus,
- update their replicated state,
- and reject conflicting spends.
No single bank controls the ledger, but protocol rules and governance still exist.
Decentralization is multidimensional
A system can be decentralized in:
- ownership,
- operation,
- validation,
- development,
- governance,
- data storage,
- or access.
Many projects are decentralized in one dimension and concentrated in another, such as a distributed ledger with a small developer or validator group.
State the dimension rather than using one label.
Transactions
A transaction proposes a state change.
It may transfer an asset, call a program, register a fact, or update ownership. The transaction includes authorization and protocol-specific fields.
Nodes deterministically validate it against current rules.
Cryptographic hashes
Hashes link blocks or data structures and make modification evident.
Changing an old record changes its digest and subsequent references. Hashing provides integrity evidence, not truth about the original real-world event.
Bad data can be recorded immutably.
Digital signatures
Users authorize transactions with private keys.
The network verifies signatures with public keys. Key possession controls assets or permissions, which makes key loss, theft, recovery, and custody central risks.
A valid signature does not prove informed consent or legal authority.
Consensus
Consensus lets nodes agree on one accepted history despite delays, failures, and potentially malicious participants.
Mechanisms make different assumptions and trade:
- energy,
- capital,
- identity,
- speed,
- finality,
- and attack resistance.
Consensus secures the protocol's state; it does not resolve all governance or application disputes.
Proof of work
Proof-of-work systems require computational effort to propose history, making attacks costly when honest participants control sufficient resources.
They can consume substantial energy and have probabilistic finality. Security depends on incentives, network value, and mining distribution.
Proof of stake
Proof-of-stake systems require validators to commit economic stake and can penalize protocol violations.
They reduce direct computational work but introduce assumptions about stake distribution, validator operations, governance, and recovery.
Implementation details vary significantly.
Finality and forks
Finality describes when a transaction is considered irreversible under the protocol.
Some systems provide probabilistic confidence as more blocks accumulate. Others provide explicit finality through validator agreement.
Applications should wait according to value and risk and handle chain reorganizations.
Smart contracts
Smart contracts are programs executed according to network rules.
They can manage tokens, exchanges, escrow, voting, or agreements. Once deployed, defects may be difficult to correct and can control valuable assets.
Use review, tests, formal methods where justified, limited permissions, staged value, and upgrade governance.
Oracles
Blockchains cannot directly know external prices, weather, delivery, identity, or election results.
Oracles bring external data on-chain. They reintroduce trust in sources, aggregation, availability, and incentives.
The ledger can preserve what the oracle reported, not guarantee it was true.
Tokens and incentives
Tokens can reward validation, pay fees, represent assets, coordinate governance, or fund development.
Token price can also create speculation, concentrated control, fraud, and unstable operating cost.
Evaluate the system's utility separately from investment claims.
Permissioned ledgers
Permissioned systems restrict who can validate or read.
They may help organizations share records with governed membership. But if one trusted operator can efficiently run an ordinary database, a blockchain may add complexity without reducing a meaningful trust dependency.
Compare governance, audit, performance, and recovery honestly.
Privacy
Replicated transparent ledgers can conflict with confidentiality and deletion.
Pseudonymous addresses are linkable, and transaction patterns can reveal identities. Encryption and zero-knowledge techniques can reduce disclosure but add complexity.
Keep sensitive personal data off-chain when immutability and replication are incompatible with its lifecycle.
Scalability
Replicating validation across many nodes limits throughput and increases storage.
Layer-two systems, batching, channels, and rollups move or compress activity while relying on base-layer security assumptions.
Measure complete latency, cost, data availability, and exit.
Governance
Protocols change through developers, validators, token holders, foundations, businesses, and users.
Disagreement can produce forks. Governance should define proposal, review, deployment, emergency action, and accountability.
“Code is law” does not remove decisions about which code runs.
When to use a blockchain
Ask:
- Are there multiple writers?
- Do they lack a trusted operator?
- Is shared ordering essential?
- Can the data be public or suitably protected?
- Is irreversible history desirable?
- Are cost and latency acceptable?
- Who governs changes?
If ordinary signed databases and audits solve the problem, use the simpler system.
Knowledge check
- Which dimensions of a system can be decentralized?
- What does consensus establish?
- Why are oracles a trust boundary?
- How can immutable ledgers conflict with privacy?
- Which conditions justify blockchain overhead?
The one idea to remember
Blockchains coordinate shared state when parties cannot or will not trust one writer. Cryptography and consensus reduce some central dependencies but introduce key risk, replicated cost, latency, privacy limits, oracle trust, and governance that must be worth the specific problem.