Rozproszone rejestry
Współdzielony stan
Rozproszone rejestry to bezpłatna lekcja Web3 & DApp Development Fundamentals na CoddyKit. To lekcja 4 z 4. Możesz przeczytać całą lekcję poniżej za darmo — a potem ćwiczyć ją interaktywnie w przeglądarce z wbudowanym edytorem kodu i tutorem AI dostępnym 24/7. To część ścieżki edukacyjnej Web3 & DApp Development Fundamentals, a Twój postęp synchronizuje się między webem a aplikacją CoddyKit. Kurs Web3 & DApp Development Fundamentals zawiera 4 lekcji w sumie.
Części tej lekcji nie zostały jeszcze przetłumaczone i są wyświetlane po angielsku.
What Is a Distributed Ledger?
A distributed ledger is a database that is replicated and synchronized across many independent computers called nodes.
There is no single master copy — every node holds the full ledger and helps keep it consistent.
Centralized vs Distributed
A traditional ledger lives on one server controlled by one party. A distributed ledger removes that single point of control and failure.
- Centralized: one owner, one copy, one trust anchor
- Distributed: many peers, many copies, shared trust
Nodes and Peers
A node is any computer running the blockchain software and storing a copy of the ledger. Nodes connect directly to each other as peers in a network.
There is no central server to ask — peers gossip data among themselves.
Node A <-> Node B
^ ^
| |
v v
Node D <-> Node CReplication
Replication means every full node keeps an identical copy of all blocks.
If many nodes go offline, the data survives on the rest. This redundancy gives blockchains their famous resilience.
Shared State
The ledger represents a shared state — for example, every account balance. All honest nodes must agree on this state.
When a new block is applied, each node updates its state the same way, so they stay in sync.
Shared state (account balances):
Alice: 12 ETH
Bob: 5 ETH
Carol: 8 ETHPropagating Transactions
When you submit a transaction, your node broadcasts it to its peers, who relay it onward. This gossip protocol spreads it across the whole network in seconds.
Pending transactions wait in a pool called the mempool.
Reaching Agreement
Because anyone can propose blocks, nodes need a way to agree on a single version of history. This is the job of a consensus mechanism.
Consensus ensures all honest nodes converge on the same ordered chain of blocks.
Trustless by Design
Distributed ledgers are often called trustless — not because trust is absent, but because you do not need to trust any single party.
You trust the protocol and the math (hashing, signatures, consensus) instead of an intermediary.
Permissionless vs Permissioned
Ledgers differ in who may join:
- Permissionless (Bitcoin, Ethereum) — anyone can run a node
- Permissioned (enterprise chains) — only approved participants
Both are distributed, but they differ in openness and trust assumptions.
Resilience and Censorship Resistance
Because copies live everywhere and no one controls them all, distributed ledgers resist censorship and downtime.
Shutting one node down does nothing; the network simply routes around it.
Putting It Together
A distributed ledger is a replicated, peer-to-peer database where nodes maintain a shared, agreed-upon state.
Replication gives resilience, gossip gives reach, and consensus gives a single source of truth without a central authority.
Quick Check
Test your understanding of distributed ledgers.
Recap: Distributed Ledgers
You learned that:
- A distributed ledger is replicated across many peer nodes
- All nodes maintain a shared state
- Transactions gossip across the network
- The system is trustless and resilient
- Consensus keeps everyone on one chain
Next course: how consensus actually works.
Ucz się Web3 & DApp Development Fundamentals dzięki korepetycjom AI — za darmo
Pisz i uruchamiaj kod w przeglądarce, otrzymuj natychmiastową pomoc od korepetytora AI dostępnego 24/7 i kontynuuj naukę w sieci lub w aplikacji.
- Kursy
- 29
- Lekcje
- 105
Często zadawane pytania
Czy lekcja „Rozproszone rejestry” jest bezpłatna?
Tak — pełny tekst „Rozproszone rejestry” jest dostępny za darmo tutaj w sieci. Aby ćwiczyć ją interaktywnie (wbudowany edytor kodu i tutor AI dostępny 24/7) i odblokować resztę kursu Web3 & DApp Development Fundamentals, przejdź na CoddyKit PRO. Kurs Web3 & DApp Development Fundamentals zawiera 4 lekcji w sumie.
Co nauczysz się w „Rozproszone rejestry”?
Współdzielony stan Ćwiczysz Web3 & DApp Development Fundamentals z praktycznym kodem, który uruchamiasz bezpośrednio w przeglądarce, a tutor AI dostępny 24/7 odpowiada na Twoje pytania podczas pracy nad lekcją.
Czy potrzebuję doświadczenia, aby zacząć Web3 & DApp Development Fundamentals?
Nie wymagamy żadnego doświadczenia. Web3 & DApp Development Fundamentals w CoddyKit jest strukturyzowany dla początkujących i zaawansowanych użytkowników, więc możesz zacząć tutaj lub od początku i uczyć się w swoim tempie. To lekcja 4 z 4.
Ile czasu zajmuje lekcja „Rozproszone rejestry”?
Większość lekcji CoddyKit trwa około 5–10 minut. Każda lekcja to mały, interaktywny krok, dzięki czemu robisz systematyczne postępy i zawsze wracasz dokładnie do tego samego miejsca — na webie i w aplikacji.
Czy mogę pisać i uruchamiać kod w tej lekcji Web3 & DApp Development Fundamentals?
Tak. Każda lekcja Web3 & DApp Development Fundamentals zawiera wbudowany edytor kodu, więc piszesz i uruchamiasz prawdziwy kod bezpośrednio w przeglądarce i od razu otrzymujesz sprzężenie zwrotne od AI — bez konfiguracji na komputerze.
Wszystkie lekcje w tym kursie
- Bloki i łańcuchy
- Drzewa Merkle'a
- Haszowanie w blockchainie
- Rozproszone rejestry