Position: Home page » Blockchain » What are the blockbodies of blockchain
What are the blockbodies of blockchain
Publish: 2021-05-25 15:39:03
1. The content of blocks in jinwowo analysis blockchain technology is as follows:
block head: record the characteristic value of the current block
block body: actual data
block head: record the characteristic value of the current block
block body: actual data
2. 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.
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.
3. Blockchain mainly solves the trust and security problems of transactions, so it proposes four technological innovations to solve this problem:
(1) distributed ledger, that is, transaction bookkeeping is completed by multiple nodes distributed in different places, and each node records complete accounts, so they can participate in monitoring the legitimacy of transactions, At the same time, they can testify together
different from traditional distributed storage, the uniqueness of distributed storage of blockchain is mainly reflected in two aspects: one is that each node of blockchain stores complete data according to block chain structure, while traditional distributed storage generally stores data in multiple copies according to certain rules. Second, the storage of each node in the blockchain is independent and has the same status, which relies on the consensus mechanism to ensure the consistency of storage, while the traditional distributed storage generally synchronizes data from the central node to other backup nodes[ 8]
no single node can record the account data separately, so as to avoid the possibility that a single bookkeeper is controlled or bribed to record false accounts. In theory, unless all the nodes are destroyed, the accounts will not be lost, so as to ensure the security of the account data
(2) asymmetric encryption and authorization technology, the transaction information stored on the blockchain is public, but the account identity information is highly encrypted, which can only be accessed under the authorization of the data owner, thus ensuring the data security and personal privacy
(3) consensus mechanism is how to reach a consensus among all accounting nodes to determine the validity of a record, which is not only a means of identification, but also a means of preventing tampering. Blockchain proposes four different consensus mechanisms, which are suitable for different application scenarios and achieve a balance between efficiency and security
the consensus mechanism of blockchain has the characteristics of "the minority is subordinate to the majority" and "everyone is equal", in which "the minority is subordinate to the majority" does not completely refer to the number of nodes, but also can be the computing power, the number of shares or other characteristics that can be compared by computers“ "Everyone is equal" means that when the nodes meet the conditions, all nodes have the right to put forward the consensus results first, and then directly recognized by other nodes, and finally may become the final consensus results. Taking bitcoin as an example, the workload proof is adopted. Only when more than 51% of the accounting nodes in the whole network are controlled can a nonexistent record be forged. When there are enough nodes in the blockchain, this is basically impossible, thus eliminating the possibility of fraud.
(4) smart contract, which is based on these trusted and tamperable data, can automatically execute some pre-defined rules and terms. Take insurance as an example. If everyone's information (including medical information and risk occurrence information) is true and reliable, it is easy to carry out automatic claim settlement in some standardized insurance procts
(1) distributed ledger, that is, transaction bookkeeping is completed by multiple nodes distributed in different places, and each node records complete accounts, so they can participate in monitoring the legitimacy of transactions, At the same time, they can testify together
different from traditional distributed storage, the uniqueness of distributed storage of blockchain is mainly reflected in two aspects: one is that each node of blockchain stores complete data according to block chain structure, while traditional distributed storage generally stores data in multiple copies according to certain rules. Second, the storage of each node in the blockchain is independent and has the same status, which relies on the consensus mechanism to ensure the consistency of storage, while the traditional distributed storage generally synchronizes data from the central node to other backup nodes[ 8]
no single node can record the account data separately, so as to avoid the possibility that a single bookkeeper is controlled or bribed to record false accounts. In theory, unless all the nodes are destroyed, the accounts will not be lost, so as to ensure the security of the account data
(2) asymmetric encryption and authorization technology, the transaction information stored on the blockchain is public, but the account identity information is highly encrypted, which can only be accessed under the authorization of the data owner, thus ensuring the data security and personal privacy
(3) consensus mechanism is how to reach a consensus among all accounting nodes to determine the validity of a record, which is not only a means of identification, but also a means of preventing tampering. Blockchain proposes four different consensus mechanisms, which are suitable for different application scenarios and achieve a balance between efficiency and security
the consensus mechanism of blockchain has the characteristics of "the minority is subordinate to the majority" and "everyone is equal", in which "the minority is subordinate to the majority" does not completely refer to the number of nodes, but also can be the computing power, the number of shares or other characteristics that can be compared by computers“ "Everyone is equal" means that when the nodes meet the conditions, all nodes have the right to put forward the consensus results first, and then directly recognized by other nodes, and finally may become the final consensus results. Taking bitcoin as an example, the workload proof is adopted. Only when more than 51% of the accounting nodes in the whole network are controlled can a nonexistent record be forged. When there are enough nodes in the blockchain, this is basically impossible, thus eliminating the possibility of fraud.
(4) smart contract, which is based on these trusted and tamperable data, can automatically execute some pre-defined rules and terms. Take insurance as an example. If everyone's information (including medical information and risk occurrence information) is true and reliable, it is easy to carry out automatic claim settlement in some standardized insurance procts
4. Chongqing jinwowo analyzes the content of blocks in blockchain Technology:
the structure of general blocks is divided into block head and block body
the block header contains the identification information of each block, and the most important information is the header hash value, which is completely consistent with the parent hash value of the next block, so as to realize the concatenation of two adjacent blocks and finally get an orderly connected blockchain. Through any block in the blockchain, all blocks before or after this block can be traced.
the structure of general blocks is divided into block head and block body
the block header contains the identification information of each block, and the most important information is the header hash value, which is completely consistent with the parent hash value of the next block, so as to realize the concatenation of two adjacent blocks and finally get an orderly connected blockchain. Through any block in the blockchain, all blocks before or after this block can be traced.
5. It can be roughly divided into three categories:
1 - public blockchain: it refers to the blockchain that anyone can read and send transactions for validity confirmation, and anyone can participate in its consensus process, so as to jointly maintain the security, transparency and non tampering of public blockchain data
2-community blockchain: also known as alliance chain, it means that the nodes participating in the blockchain are selected in advance, and there are usually good network connections and other cooperative relationships between the nodes
3-private blockchain: the participating nodes only have a limited range, the access and use of data have strict permission management, the write permission is only in the hands of the participants, and the read permission can be opened to the outside world.
1 - public blockchain: it refers to the blockchain that anyone can read and send transactions for validity confirmation, and anyone can participate in its consensus process, so as to jointly maintain the security, transparency and non tampering of public blockchain data
2-community blockchain: also known as alliance chain, it means that the nodes participating in the blockchain are selected in advance, and there are usually good network connections and other cooperative relationships between the nodes
3-private blockchain: the participating nodes only have a limited range, the access and use of data have strict permission management, the write permission is only in the hands of the participants, and the read permission can be opened to the outside world.
6. Chongqing jinwowo: a block contains the following three parts: transaction information, hash formed by the previous block and random number.
7. Blockchain is composed of connected blocks. A block is like a record in a database. Every time data is written, a block is created. Each block contains two parts: block head: record the meta information of the current block, and block body: actual data
Hot content