The core problem of the blockchain is to slove the problem of consistent evolution of distributed ledgers in a public network environment. We analyze from two issues:

1) Who will keep the books.

2) How non-bookkeepers verify that the bookkeeper is lying.

Take mature Bitcoin and Ethereum as examples, that is, the pow consensus algorithm, which uses the hashing power to compete for bookkeeping rights. The Merkle Tree or Merkle Patricia tree is used as the basic data structure of the ledger to make “non-bookkeepers” fast Verifying that the bookkeepers have lied, and the introduction of a punishment mechanism (Payment of computing power), so that the bookkeepers have no incentive to account for bad debts from an economic perspective, and eventually make Bitcoin and Ethereum become the digital currency field. Successful practitioner of blockchain technology.

We know that there are three important data in a block header of Ethereum. They are the hash of the Merkle tree root node, including: state tree, transaction tree, and receipt tree. In the Ethereum network, the historical data of the world ledger on a node is proved by hashing power, so it is credible. When a miner successfully records a batch of accounts (so-called mining), it pays Computing power. After broadcasting, other nodes will verify whether the account is correct by the miners based on the local trusted ledger data. The core process is:

A. Based on your own local ledger (of course, you must strive to keep the local ledger to be the current longest chain, which is not described in detail here), the transactions in the block are executed in order. Then change the state of the local world ledger, as well as the receipt tree, etc., to form a new world state root hash and a receipt tree root hash.

B. Compare the local new world state with the result given by the bookkeeper. That is, the comparison of the three merkle root hashes. Consistent, then it is recognized that the bookkeeper has not lied, and the local ledger and the bookkeeper’s ledger will continue to evolve in unison.

In this way, as the network has to be generated one by one, every ledger in the world has maintained a consistent evolution.

Creating a new generation of blockchain infrastructure.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What SCRY has solved in data booming era

DeFi on Ethereum Vs. DeFi on BSC

The Unfettered Proudly Reveals Its Incubators

TreasureKey Integrates Chainlink Price Feeds to Fairly Start and Settle Prediction Games

The AMM Test: A No BS Look at L1 Performance

Enrex Token Defined — Cryptocurrency for Mandatory Carbon Markets

$2.4M Raised in Faraland’s fundraising rounds with contributions from prominent blockchain…

Treating Blockchain-Based Smart Contracts as a Special Case of Control Systems

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
KDAG Foundation

KDAG Foundation

Creating a new generation of blockchain infrastructure.

More from Medium

How Big Are Your Hands? Here’s What It Means.

What is the Great Resignation?

Bad Thing: Buying Things

Reflection on Technigo Bootcamp