Position: Home page » Blockchain » Blockchain layer1 is the foundation layer

Blockchain layer1 is the foundation layer

Publish: 2021-05-22 21:53:19
1. There are six hierarchical structures in the blockchain, which are from bottom to top: data layer, network layer, consensus layer, incentive layer, contract layer and application layer
1. Data layer
the data layer is the lowest layer in the six hierarchies of the blockchain. We can understand the data layer as a database, but for the blockchain, this database is a tamperable and distributed database, which is what we call "distributed ledger"
in the data layer, that is, the "distributed ledger", the data information on the blockchain is stored, and the blockchain structure, asymmetric encryption technology, hash algorithm and other technical means of the block are encapsulated to ensure the security of the data in the case of the whole network being open. The specific method is:
in the blockchain network, nodes use consensus algorithm to maintain the consistency of data layer (that is, the distributed database), and use asymmetric encryption and hash algorithm in cryptography to ensure the non usurpation and traceability of the distributed database
This constitutes the bottom data structure of blockchain technology. However, it is not enough to have a distributed database. We also need to let the data information in the database be shared and exchanged. Next, we will introce the upper layer of the data layer - the network layer
Second, network layer
the network system of blockchain is essentially a P2P (point-to-point) network. Point to point means that there is no need for an intermediate link or centralized server to control the system. All resources and services in the network are distributed in the hands of each node, and the transmission of information is also a direct communication between the two nodes. However, it should be noted that P2P
(peer-to-peer) was not invented by Nakamoto, and the blockchain only integrates this technology
therefore, the network layer of blockchain is actually a particularly powerful point-to-point network system. In this system, each node can not only proce information, but also receive information, just like sending e-mail. You can write your own e-mail, and you can also receive the e-mail sent to you by others
in the blockchain network, nodes need to jointly maintain the blockchain system. Every time a node creates a new block, it needs to notify other nodes in the form of broadcast. After receiving the information, other nodes verify the block, and then create a new block on the basis of the block. In this way, the whole network can jointly maintain and update the general ledger of the blockchain system
however, what rules should the whole network follow to maintain and update the general ledger of the blockchain system? This involves the so-called "laws and regulations" (rules), which we will introce next: the consensus layer
Third, consensus layer
in the world of blockchain, consensus simply means that the whole network should maintain and update the general ledger of blockchain system according to a unified and agreed rule, which is similar to the rule of updating data. It is one of the core technologies of blockchain and the governance mechanism of blockchain community to let highly dispersed nodes reach consensus efficiently in the decentralized blockchain network
at present, the mainstream consensus mechanism algorithms include: proof of work of bitcoin (POW), proof of rights and interests of Ethereum (POS), proof of rights and interests of EOS (dpos), etc
we now introce the data layer, network layer and consensus layer. These three layers ensure that there are data, networks and rules for updating data on the network. However, there is no free lunch in the world. How can nodes actively participate in the maintenance of the blockchain system? Here is the incentive layer, which we will introce next: incentive layer< 4. Incentive layer
incentive layer is the so-called mining mechanism, which can be understood as incentive mechanism: you can get as much reward as you contribute to the blockchain system. With this incentive mechanism, the whole network nodes can be encouraged to participate in the data recording and maintenance on the blockchain
mining mechanism and consensus mechanism are actually the same truth. Consensus mechanism can be understood as the company's general rules and regulations, while mining mechanism can be understood as the reward rules for what you do well in the general rules and regulations
just like the consensus mechanism POW of bitcoin, it stipulates that more work pays more. Whoever can find the correct hash value first can get a certain amount of bitcoin reward
and Ethereum's POS stipulates that the older the holder is, the more likely he or she will be rewarded
it should be noted that the incentive layer is generally only available for the public chain, because the public chain must rely on the nodes of the whole network to jointly maintain data, so there must be a set of incentive mechanism to encourage the nodes of the whole network to participate in the construction and maintenance of the blockchain system, so as to ensure the security and reliability of the blockchain system
the blockchain is safe and reliable, and it is not intelligent enough, right? The contract layer we will introce next can make the blockchain system more intelligent
v. contract layer
Contract layer mainly includes various scripts, codes, algorithm mechanisms and smart contracts, which is the basis of block chain programming. What we call "smart contract" is at the contract level
if the bitcoin system is not intelligent enough, the "smart contract" proposed by Ethereum can meet many application scenarios. The principle of the contract layer is to embed the code into the blockchain system, in this way to realize the smart contract that can be customized. In this way, on the blockchain system, once the terms of the smart contract are triggered, the system can automatically execute commands< Finally, the application layer. The application layer is very simple. As the name suggests, it is a variety of application scenarios and cases of blockchain. What we now call "blockchain +" is the so-called application layer. At present, the blockchain applications that have been implemented are mainly various blockchain applications built on
eth, EOS and other public chains. There are more applications of gambling and games, and the real practical applications have not yet appeared.
2. The projects of jinwowo network technology analysis blockchain are divided into three levels:

the top and easiest thing to do is the application layer. I can see two or three such projects every day, accounting for more than 95% of the whole market. But such companies often write a lot of technical things in the white paper. In fact, they also write in vain. This is purely for the purpose of collecting pages, because they don't need to talk about technology at all

the second type is the intermediate operation level, such as quantum chain and ant. This kind of project is similar to the operation procere, called the basic chain, which is used to run the application. This category is relatively small, and the proportion has dropped to less than 5%

the third category is more downward extension and lower level, such as standard chain and arcblock. This kind is even less. It's good to see two or three in a month. And some of them are not necessarily true, because there is really nothing to write about, and all fields are occupied by others, so someone will go in this direction.
3. The era of blockchain 1.0 is the era of digital currency, and its technical basis is as follows:
1.
Lianzhuang data block structure based on blocks
2.
network wide shared ledger
3.
asymmetric encryption
4.
source code open source
the technical basis of blockchain 2.0 era is as follows:
1.
smart contract; It is an application in the blockchain system. It is a business logic that can run automatically by coding. It usually has its own token and special development language<
2
3.
virtual machine: it is used to execute the compiled code of smart contract. Virtual machine is Turing complete
with the application and deepening of blockchain technology, the era of blockchain 3.0 has come. The mode of blockchain cooperation can be seen from behind the operation of all walks of life. Therefore, blockchain will change the way of human life widely and profoundly, so the whole life service will enter the era of blockchain. In the process of Internet development, blockchain + physical instry, blockchain e-commerce and blockchain community operation can be applied to blockchain technology
of course, 3.0 came into being with the development of modern cryptography. Today's applied cryptography is the result of cryptography 20 years ago. Therefore, in order to apply blockchain technology to more participation scenarios, especially in Internet economy and other aspects, more verification is needed to verify whether the existing encryption technology can meet the demand, and more in-depth integration of cryptographic frontier technology and continuous innovation are needed.
4. Generally speaking, blockchain system consists of data layer, network layer, consensus layer, incentive layer, contract layer and application layer
among them, the data layer encapsulates the underlying data block and related data encryption and timestamp technologies; The network layer includes distributed networking mechanism, data transmission mechanism and data verification mechanism; The consensus layer mainly encapsulates all kinds of consensus algorithms of network nodes; The incentive layer integrates economic factors into the blockchain technology system, mainly including the issuance mechanism and distribution mechanism of economic incentives; The contract layer mainly encapsulates all kinds of scripts, algorithms and smart contracts, which is the basis of the programmable characteristics of blockchain; The application layer encapsulates various application scenarios and cases of blockchain. In this model, chain block structure based on timestamp, consensus mechanism of distributed nodes, economic incentive based on consensus computing power and flexible and programmable smart contract are the most representative innovations of blockchain technology.
5. The hierarchical structure of blockchain
1, data layer / data layer
the data layer mainly describes the physical form of blockchain, which is a chain structure starting from Genesis block on blockchain, including block data, chain structure, random number, time stamp, public and private key data on blockchain, and is the lowest level data structure in the whole blockchain technology
2. Network layer / network layer
the network layer mainly realizes the mechanism of distributed network through P2P technology, and the network layer includes P2P networking mechanism, data dissemination mechanism and data verification mechanism. Therefore, blockchain is essentially a P2P network with automatic networking mechanism, and the communication between nodes is maintained by maintaining a common blockchain structure
3. Consensus layer / consensus layer
consensus layer mainly includes consensus algorithm and consensus mechanism, which enables highly dispersed nodes to reach consensus on the effectiveness of block data efficiently in the decentralized blockchain network. It is one of the core technologies of blockchain and also the governance mechanism of blockchain community. At present, there are at least dozens of consensus mechanism algorithms, including workload proof, rights and interests proof, rights and interests authorization proof, burning proof, importance proof and so on
data layer, network layer and consensus layer are the necessary elements of building blockchain technology. Without any layer, it can not be called a real blockchain technology
4. Incentive layer / activator layer
the incentive layer mainly includes the issuing system and distribution system of economic incentive. Its function is to provide certain incentive measures, encourage nodes to participate in the security verification work in the blockchain, incorporate economic factors into the blockchain technology system, encourage nodes that comply with rules to participate in bookkeeping, and punish nodes that do not comply with rules
5. Contract layer / contract layer
the contract layer mainly includes various scripts, codes, algorithm mechanisms and smart contracts, which is the basis of block chain programming. Embedding the code into the blockchain or token, realizing the smart contract that can be customized, and automatically executing without a third party when certain constraints are met, is the foundation of the blockchain's distrust
6. Application layer / application layer
the application layer of blockchain encapsulates various application scenarios and cases, which are similar to applications on computer operating system, portals on Internet browsers, search engines, e-malls or apps on mobile phones. The blockchain technology applications are deployed on Ethereum, EOS and qtum, and are implemented in real life scenarios. The future programmable finance and programmable society will also be built on the application layer
incentive layer, contract layer and application layer are not necessary factors for each blockchain application, and some blockchain applications do not completely include the three-tier structure.
6.

A: the basic characteristics of blockchain

I. decentralization
blockchain technology does not rely on additional third-party management institutions or hardware facilities, and there is no central control. In addition to the self-contained blockchain itself, each node realizes information self verification, transmission and management through distributed accounting and storage

Second, openness

the foundation of blockchain technology is open source. In addition to the private information of all parties involved in the transaction is encrypted, the data of blockchain is open to everyone. Anyone can query blockchain data and develop related applications through the open interface, so the information of the whole system is highly transparent

Third, independence

based on consensus specifications and Protocols (similar to various mathematical algorithms such as hash algorithm used by bitcoin), the whole blockchain system does not rely on other third parties, and all nodes can automatically and safely verify and exchange data in the system without any human intervention

Four, safety

as long as 51% of all data nodes cannot be controlled, the network data cannot be arbitrarily controlled and modified, which makes the blockchain itself relatively safe and avoids subjective and artificial data changes

5. Anonymity

unless there are legal requirements, technically speaking, the identity information of each block node does not need to be disclosed or verified, and the information transmission can be anonymous

7. Mine pool refers to:
as the computing level of the whole bitcoin network continues to rise exponentially, a single device or a small amount of computing power can not get the block reward provided by bitcoin network
after the computing power of the whole network has been improved to a certain extent, the low probability of getting rewards has prompted some geeks on "bitcoin talk" to develop a method that can combine a small amount of computing power and operate jointly. The website established in this way is called "mine pool"
extended data:
the existence of the mine pool reces the difficulty of mining bitcoin and other virtual digital currencies, reces the threshold of mining, and truly realizes the concept of bitcoin mining that everyone can participate in
but its disadvantages are also very obvious, because computing power is connected to the mine pool. As a mine pool, it will have a huge amount of computing power resources. In the bitcoin world, computing power represents the bookkeeping right, and computing power is everything. If the computing power of a single mine pool reaches more than 50%, it will be easy to launch 51% attacks on bitcoin and other similar virtual digital currencies, The consequences are very terrible:
the mine pool can make the mine pool with 49% of the remaining computing power have no harvest, instantly quit the competition and go bankrupt. The mine pool's computing power exceeds 50%. If 51% attack is launched, it will easily occupy all the effective computing power of the whole network
source of reference: network mine pool
8.

Layer 2 is concerned with the protocols on the chain and off the chain. It is mainly responsible for the message passing, intelligent contract programming and application related functions on the chain and off the chain. That is, the auxiliary framework or protocol built on the existing blockchain system (layer1). If we use the analogy of legal structure, layer1 is like the constitution, which is the basis of all laws. The formulation of laws cannot violate the constitution

by layer 2 protocol, the "state generation" of blockchain transactions can be independent of layer 1, so these protocols can also be called "off chain" expansion schemes. One of the main advantages of using the offline expansion scheme is that it can rece the limitations of layer1 and does not need to change the protocol of the blockchain itself. The layer2 expansion scheme achieves high-throughput state generation without sacrificing the security of the blockchain network


extended data

application direction:

1. Payment: for example, in terms of time, traditional cross-border remittance takes 10 minutes or several days, while blockchain cross-border remittance, e to decentralization, can achieve remittance in seconds. In terms of convenience, traditional cross-border remittance needs to wait until the next day after 19:00, while blockchain cross-border remittance only needs one mobile phone to realize all-weather remittance

2. Sharing medical records: the medical data blockchain sharing platform can achieve many application scenarios. Patient history data and other information can be linked, and medical history and image data can be viewed by personnel entering the system. These medical data can also be used for modeling and machine learning

9. It should be possible to change the signature and refund now, because now the country has a new place to formulate, and every place has a new policy to formulate, under special circumstances.
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750