The developer of Shenzhen Digital Asset Exchange talks about the model data structure of the typical blockchain chain

I believe that the model data architecture of the blockchain for the development of digital asset exchanges (developing WeChat ruiec2723 ) has been discussed thousands of times. As for the architecture of the blockchain, I think this is already a defined problem. , we will use a lot of data to summarize and integrate the blockchain architecture. I believe this will be more comprehensive and easier for everyone to understand.

The data architecture of blockchain is mainly divided into six layers: data layer, network layer, consensus layer, incentive layer, contract layer, and application layer. Each layer uses the corresponding core functional technology, and each layer cooperates with each other to realize a decentralized trust mechanism of Longhua.

The first layer is the data layer , which is a chain-like data block structure in blocks, mainly including (data block, chain structure, time cut, hash function, Merkle tree, asymmetric confidentiality and other technologies) each area Blocks contain many technologies, such as hash functions, which can ensure that transaction information is not tampered with, and time-cutting technology, which can ensure that each block is connected in chronological order.

The second layer of network layer , including P2P network, propagation mechanism, verification mechanism. The main purpose of the network layer is to realize the exchange of information between network nodes. The essence of the blockchain network is a peer-to-peer network.

The third layer is the consensus layer . The commonly used consensus mechanisms in the blockchain mainly include proof of work, proof of equity and proof of share authorization. That is, consensus algorithms such as POW, POS, DPOS, etc. we usually say. The main function is to allow highly decentralized nodes to efficiently reach consensus on blockchain data in a decentralized system.

These three layers are the core of blockchain technology, and all blockchain technologies must contain these three layers.

In the incentive layer , the main thing here is to use the distribution mechanism and the issuance mechanism. The function of Zhu Ayo is to provide certain incentives to encourage nodes to participate in the security verification of the blockchain. That is, how do we distribute rewards to miners when we mine digital assets. In the public chain, this layer is bound to exist, but in some private chains, it may not be necessary to reward his miners. , then there may not be any.

The contract layer mainly refers to various script codes, algorithm mechanisms and smart contracts. Because Bitcoin appeared relatively early, this layer is not available. On Ethereum, this one will be better.

Application layer , the application layer encapsulates various application scenarios and cases on the blockchain, mainly including: programmable currency, programmable finance, programmable society, such as (digital assets, block cross-border payments, exchanges, Blockchain pets, etc.)

This is what we talk about as an architecture of the blockchain as a whole. Bitcoin is currently the earliest application in the field of blockchain technology, one of the most widely used and truly decentralized blockchain technology in the world, but we can't deny Bitcoin's POW (Proof of Work) consensus. The algorithm is currently relatively inefficient and consumes a lot of power, so in our opinion the entire technology is not very mature. But we can't deny that it is the largest public chain at present. After all, it is also the most expensive and has the longest existence. Therefore, its open source technology is still very worthy of our reference.

[This article is provided by: system development V letter ruiec2723]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325548610&siteId=291194637