CN113206881A - Intelligent contract execution method and block chain system - Google Patents

Intelligent contract execution method and block chain system Download PDF

Info

Publication number
CN113206881A
CN113206881A CN202110483623.9A CN202110483623A CN113206881A CN 113206881 A CN113206881 A CN 113206881A CN 202110483623 A CN202110483623 A CN 202110483623A CN 113206881 A CN113206881 A CN 113206881A
Authority
CN
China
Prior art keywords
node
resource service
intelligent contract
characteristic
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110483623.9A
Other languages
Chinese (zh)
Inventor
王晨欢
王剑峰
王秀文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjia Shanghai Information Technology Co ltd
Original Assignee
Tianjia Shanghai Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianjia Shanghai Information Technology Co ltd filed Critical Tianjia Shanghai Information Technology Co ltd
Publication of CN113206881A publication Critical patent/CN113206881A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The invention provides an intelligent contract execution method, which comprises the steps of loading an intelligent contract to a block chain network, marking a resource service type related to the intelligent contract, wherein the resource service type comprises an exclusive resource service and a non-exclusive resource service, and realizing a resource service type marking function of the block chain network; and selecting the out-block node and the main node of the block chain network, and processing the exclusive resource service by the main node according to the intelligent contract, so that the processing capacity of the main node for the exclusive resource service is improved, and the block chain network is prevented from being crashed or crashed under the condition that the node type and the resource service type are not distinguished. The invention also provides a block chain system for realizing the intelligent contract execution method.

Description

Intelligent contract execution method and block chain system
Technical Field
The invention relates to the technical field of block chains, in particular to an intelligent contract execution method and a block chain system.
Background
In a block chain network, such as a Directed acyclic graph network (DAG), asynchronous publishing and verification between transactions ensures high throughput of the whole system, but at the same time, the time sequence between transactions is unreliable and unverifiable, which makes it difficult for the network with such characteristics to structurally use intelligent contracts.
The IOTA is currently unable to support intelligent contracts, and the solution being developed is based on committees, where each time a node executing an intelligent contract is elected to execute the contract, other committee members verify the validity of the contract execution. This approach may solve the ordering problem of the intelligent contracts, but reduces execution efficiency, is prone to cause a blockchain network to crash or crash, and is a centralized solution and does not meet the original purpose of decentralized blockchain networks.
Therefore, there is a need to provide a new intelligent contract execution method and a blockchain system to solve the above-mentioned problems in the prior art.
Disclosure of Invention
The invention aims to provide an intelligent contract execution method and a blockchain system, which realize the function of marking the resource service type of a blockchain network and avoid causing the breakdown or downtime of the blockchain network.
In order to achieve the above object, the intelligent contract execution method of the present invention includes the following steps:
s1: loading an intelligent contract to a blockchain network;
s2: marking the resource service type related to the intelligent contract, wherein the resource service type comprises an exclusive resource service and a non-exclusive resource service;
s3: selecting a block outlet node and a main node of the block chain network, processing the exclusive resource service by the main node according to the intelligent contract, and processing the non-exclusive resource service by at least one of the block outlet node and the main node according to the intelligent contract.
The intelligent contract execution method has the beneficial effects that: marking the resource service type related to the intelligent contract, wherein the resource service type comprises an exclusive resource service and a non-exclusive resource service, and the function of marking the resource service type of the block chain network is realized; and selecting the out-block node and the main node of the block chain network, and processing the exclusive resource service by the main node according to the intelligent contract, so that the processing capacity of the main node for the exclusive resource service is improved, and the block chain network is prevented from being crashed or crashed under the condition that the node type and the resource service type are not distinguished.
Preferably, the step S2 includes a step of determining a resource service type, and when it is determined that the resource service type related to the intelligent contract relates to a property of property, marking the resource service type related to the intelligent contract as the exclusive resource service. The beneficial effects are that: and marking the resource service type related to the intelligent contract as the exclusive resource service so as to facilitate the blockchain network to independently process the exclusive resource service, thereby improving the data processing capacity of the blockchain network and avoiding causing the breakdown or downtime of the blockchain network.
Preferably, the step S2 includes a step of determining a resource service type, and when it is determined that the resource service type related to the intelligent contract relates to an attribute of an object or information, the resource service type related to the intelligent contract is marked as the non-exclusive resource service. The beneficial effects are that: and marking the resource service type related to the intelligent contract as the non-exclusive resource service so as to be convenient for the block chain network to independently process the non-exclusive resource, thereby improving the data processing capacity of the block chain network and avoiding causing the breakdown or the downtime of the block chain network.
Further preferably, the step S3 includes a computing node selecting step of selecting at least one arbitrary credit node from the blockchain network as the computing node. The beneficial effects are that: at least one credit node is selected as a computing node, and the data processing capacity of a single node in the block chain network is improved.
Further preferably, the step S3 further includes a block node selecting step, in which the computing node is randomly selected as a block node. The beneficial effects are that: and the computing node is selected as a block output node, so that the data processing capacity of the block chain network is further improved.
Further preferably, the step S3 further includes a master node selecting step, in which the block node or the credit node is randomly selected as the master node.
Further preferably, the step S3 further includes a master node reselection step, in which at least one master node is randomly selected to process the exclusive resource service according to the intelligent contract. The beneficial effects are that: the number of the main nodes is further reduced, and the phenomenon of double flowers when the block chain network processes the exclusive resource service is avoided.
Further preferably, the step S3 further includes a double-flower processing step, where when at least two master nodes process the exclusive resource traffic, the processing result of the master node with the maximum master-chain block depth is taken as a valid result. The beneficial effects are that: and selecting the unique processing result as an effective result to avoid the phenomenon of double flowers in the block chain network.
Further preferably, the step S2 further includes marking the resource traffic type generated during the execution of the intelligent contract. The beneficial effects are that: and distinguishing the subsequent data to avoid causing the breakdown or downtime of the block chain network under the condition that the subsequent resource service types are not distinguished.
Preferably, the intelligent contract execution method further includes a non-exclusive resource service synchronization step, where the out-blocking node synchronizes the non-exclusive resource service according to a characteristic of the non-exclusive resource service, where the characteristic of the non-exclusive resource service includes at least one of a region characteristic, a trade union characteristic, an industry characteristic, a processing node credit level characteristic, and a service foreign currency scale characteristic, so that the out-blocking node synchronizes the non-exclusive resource service according to at least one of the region characteristic, the trade union characteristic, the industry characteristic, the processing node credit level characteristic, and the service foreign currency scale characteristic. The beneficial effects are that: the synchronization of the non-exclusive resource service is realized, and the data loss of the non-exclusive resource service is avoided.
The invention also provides a block chain system, which comprises an intelligent contract loading unit, a block chain service distinguishing unit and a block chain network node selecting unit, wherein the intelligent contract loading unit is used for loading an intelligent contract to a block chain network, the block chain service distinguishing unit is used for marking the resource service type related to the intelligent contract, the resource service type comprises an exclusive resource service and a non-exclusive resource service, the block chain network node selecting unit is used for selecting a block outlet node and a main node of the block chain network, the main node processes the exclusive resource service according to the intelligent contract, and at least one of the main node and the block outlet node is used for processing the non-exclusive resource service according to the intelligent contract.
The block chain system has the advantages that: the block chain service distinguishing unit is used for marking the resource service type related to the intelligent contract, the resource service type comprises an exclusive resource service and a non-exclusive resource service, and the function of marking the resource service type of the block chain network is realized; the block link network node selection unit is used for selecting the out-block node and the main node of the block link network, and the main node processes the exclusive resource service according to the intelligent contract, so that the processing capacity of the main node on the exclusive resource service is improved, and the block link network is prevented from being crashed or crashed under the condition that the node type and the resource service type are not distinguished.
Preferably, the block chain service differentiating unit includes a first resource service type determining node module, where the first resource service type determining module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of a property, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of the property, mark the resource service type related to the intelligent contract as the exclusive resource service. The beneficial effects are that: the first resource service type judgment node module marks the resource service type related to the intelligent contract as the exclusive resource service, so that the block chain network can process the exclusive resource service independently, the data processing capacity of the block chain network is improved, and the block chain network is prevented from being crashed or crashed.
Further preferably, the block chain service differentiating unit further includes a second resource service type determining module, where the second resource service type determining module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of an object or information, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of the object or information, mark the resource service type related to the intelligent contract as the non-exclusive resource service. The beneficial effects are that: the second resource service type judging module marks the resource service type related to the intelligent contract as the non-exclusive resource service, so that the blockchain network can process the non-exclusive resource independently, the data processing capacity of the blockchain network is improved, and the blockchain network is prevented from being crashed or crashed.
Preferably, the blockchain network node selection unit includes a computation node selection module, and the computation node selection module is configured to select at least one arbitrary credit node from the blockchain network as a computation node. The beneficial effects are that: the computing node selection module selects at least one credit node as a computing node, and improves the data processing capacity of a single node in the block chain network.
Further preferably, the block chain network node selection unit further includes a block node selection module, and the block node selection module is configured to select at least one arbitrary computing node as a block node. The beneficial effects are that: the block-out node selection module selects the calculation node as the block-out node, so that the data processing capacity of the block chain network is further improved.
Further preferably, the block chain network node selection unit further includes a master node selection module, and the master node selection module is configured to select at least one arbitrary block output node or at least one arbitrary credit node as a master node.
Further preferably, the block chain system further includes a double-flower processing unit, where the double-flower processing unit is configured to determine a main chain block depth of the main node when at least two main nodes process the exclusive resource traffic, and then take a processing result of the main node with the largest main chain block depth as an effective result. The beneficial effects are that: the double-flower processing unit selects the only processing result as an effective result, and the double-flower phenomenon of the block chain network is avoided.
Further preferably, the block chain system further includes a synchronization unit, where the synchronization unit is configured to enable the outbound node to synchronize the non-exclusive resource service according to a feature of the non-exclusive resource service, where the feature of the non-exclusive resource service includes at least one of a region feature, a trade union feature, an industry feature, a processing node credit level feature, and a service money-related scale feature, so that the outbound node is convenient to synchronize the non-exclusive resource service according to at least one of the region feature, the trade union feature, the industry feature, the processing node credit level feature, and the service money-related scale feature. The beneficial effects are that: the synchronization unit realizes the synchronization of the non-exclusive resource service and avoids the data loss of the non-exclusive resource service.
Drawings
FIG. 1 is a block diagram of a blockchain system according to the present invention;
FIG. 2 is a flow chart of a method for executing an intelligent contract according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. As used herein, the word "comprising" and similar words are intended to mean that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items.
In view of the problems in the prior art, embodiments of the present invention provide a block chain system. Referring to fig. 2, the blockchain system 100 includes an intelligent contract loading unit 101, a blockchain service differentiating unit 102, and a blockchain network node selecting unit 103, where the intelligent contract loading unit 101 is configured to load an intelligent contract to a blockchain network, the blockchain service differentiating unit 102 is configured to mark resource service types related to the intelligent contract, where the resource service types include an exclusive resource service and a non-exclusive resource service, the blockchain network node selecting unit 103 is configured to select a block exit node and a master node of the blockchain network, the master node processes the exclusive resource service according to the intelligent contract, and at least one of the master node and the block exit node is configured to process the non-exclusive resource service according to the intelligent contract.
The block chain service distinguishing unit is used for marking the resource service type related to the intelligent contract, the resource service type comprises an exclusive resource service and a non-exclusive resource service, and the function of marking the resource service type of the block chain network is realized; the block link network node selection unit is used for selecting the out-block node and the main node of the block link network, and the main node processes the exclusive resource service according to the intelligent contract, so that the processing capacity of the main node on the exclusive resource service is improved, and the block link network is prevented from being crashed or crashed under the condition that the node type and the resource service type are not distinguished.
In some embodiments, the block chain service differentiating unit includes a first resource service type determining node module, where the first resource service type determining module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of a property, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of the property, mark the resource service type related to the intelligent contract as the exclusive resource service, so that the block chain network can process the exclusive resource service independently, thereby improving the data processing capability of the block chain network and avoiding causing a breakdown or downtime of the block chain network.
In some embodiments, the block chain service differentiating unit further includes a second resource service type determining module, where the second resource service type determining module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of an object or information, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of the object or information, mark the resource service type related to the intelligent contract as the non-exclusive resource service, so that the block chain network can process the non-exclusive resource independently, the data processing capability of the block chain network is improved, and the block chain network is prevented from being crashed or crashed.
In some embodiments, the blockchain network node selecting unit includes a computing node selecting module, and the computing node selecting module is configured to select at least one arbitrary credit node from the blockchain network as a computing node, so that the data processing capability of a single node in the blockchain network is improved.
In some embodiments, the block chain network node selection unit further includes a block node selection module, where the block node selection module is configured to select at least one arbitrary computing node as a block node, so as to further improve data processing capability of the block chain network.
In some embodiments, the block chain network node selection unit further includes a master node selection module, where the master node selection module is configured to select any at least one block output node or any at least one credit node as a master node.
In some embodiments, the block chain system further includes a double-flower processing unit, where the double-flower processing unit is configured to determine a main chain block depth of the main nodes when at least two main nodes process the exclusive resource service, and then select a unique processing result as an effective result by using a processing result of the main node with the largest main chain block depth as an effective result, so as to avoid a double-flower phenomenon in the block chain network.
In some embodiments, the blockchain system further includes a synchronization unit, where the synchronization unit is configured to enable the egress node to synchronize the non-exclusive resource service according to a characteristic of the non-exclusive resource service, where the characteristic of the non-exclusive resource service includes at least one of a region characteristic, a trade union characteristic, an industry characteristic, a processing node credit level characteristic, and a service money-related scale characteristic, so that the egress node implements synchronization of the non-exclusive resource service according to at least one of the region characteristic, the trade union characteristic, the industry characteristic, the processing node credit level characteristic, and the service money-related scale characteristic, and avoids data loss of the non-exclusive resource service.
FIG. 2 is a flow diagram of a method for intelligent contract execution in some embodiments of the invention. Referring to fig. 1, the contractual execution method includes the steps of:
s1: loading an intelligent contract to a blockchain network;
s2: marking the resource service type related to the intelligent contract, wherein the resource service type comprises an exclusive resource service and a non-exclusive resource service;
s3: selecting a block outlet node and a main node of the block chain network, processing the exclusive resource service by the main node according to the intelligent contract, and processing the non-exclusive resource service by at least one of the block outlet node and the main node according to the intelligent contract. The resource service type related to the intelligent contract is marked, the resource service type comprises an exclusive resource service and a non-exclusive resource service, and the function of marking the resource service type of the block chain network is realized; and selecting the out-block node and the main node of the block chain network, and processing the exclusive resource service by the main node according to the intelligent contract, so that the processing capacity of the main node for the exclusive resource service is improved, and the block chain network is prevented from being crashed or crashed under the condition that the node type and the resource service type are not distinguished.
In some embodiments, step S2 includes a resource service type determining step, and when it is determined that the resource service type related to the intelligent contract relates to a property of a property, the resource service type related to the intelligent contract is marked as the exclusive resource service, so that the blockchain network processes the exclusive resource service separately, thereby improving the data processing capability of the blockchain network and avoiding causing a breakdown or downtime of the blockchain network. In particular, the property of the property is that only one owner, such as a coin (Token), is present at a time.
In some embodiments, the step S2 includes a step of determining a resource service type, and when determining an attribute of a resource service type related to the intelligent contract, the step marks the resource service type related to the intelligent contract as the non-exclusive resource service, so that the blockchain network processes the non-exclusive resource alone, thereby improving data processing capability of the blockchain network and avoiding causing a breakdown or downtime of the blockchain network. Specifically, the property of the object or information, i.e., a time, may have multiple owners, such as photo information, travel information, etc., required during execution of the smart contract.
In some embodiments, the step S3 includes a computing node selecting step, which selects any at least one credit node from the blockchain network as a computing node, so as to improve the data processing capability of a single node in the blockchain network. The block chain network comprises a plurality of nodes, and the nodes are used as the credit nodes after being subjected to the currency mortgage.
In some embodiments, the step S3 further includes a block node selection step, where the calculation node is randomly selected as a block node, and the calculation node is selected as a block node, so as to further improve the data processing capability of the blockchain network.
In some embodiments, the blockchain system has 10000 compute nodes. The block chain system is provided with 50 block nodes, the computing nodes initiate 1-1500 ms of delay when electing, after the delay is over, the computing nodes judge whether the information received by the computing nodes has election information and synchronous information of the block node and judge the number of the synchronous information received by the computing nodes, if the number of the synchronous information received by the computing nodes is equal to or more than 50, the computing nodes do not participate in the competition of the block node, if the number of the synchronous information received by the computing nodes is less than 50, the election information is sent to other computing nodes, after the other computing nodes receive the election information, the number of the synchronous information received by the computing nodes is judged, if the number of the synchronous information is equal to or more than 50, the voting information is refused to be sent to the computing nodes sending the election information, and if the number of the synchronous information is less than 50, and sending voting information to the computing nodes sending the election information, wherein when the voting information received by the computing nodes sending the election information is more than or equal to 500, the computing nodes sending the election information become the block-out nodes.
In some embodiments, the step S3 further includes a master node selecting step, in which the out-block node or the credit node is randomly selected as the master node.
In some embodiments, the master node selection module selects the master node from the block-out node or the credit node by a variant VRF algorithm or a variant Raft algorithm.
In some embodiments, the step S3 further includes a master node reselection step, where at least one master node is randomly selected to process the exclusive resource service according to the intelligent contract, so as to further reduce the number of master nodes and avoid a double-flower phenomenon when the block chain network processes the exclusive resource service. Preferably, one master node is selected to process the exclusive resource service according to the intelligent contract, so that the probability of double flowers is greatly reduced.
In some embodiments, the out-block node or the master node monitors the expiration time and the expiration condition of the intelligent contract, and when executing the intelligent contract, all the out-block node and the master node select the executing node of the intelligent contract by using a random and fair algorithm, for example: all nodes monitoring the intelligent contract start a timer t1 of 1 ms-1500 ms, if the executing contract request of other nodes is received before the timer t1 is overtime, the nodes send agreement and give up executing the intelligent contract, if the executing contract request of other nodes is not received, after the timer t1 is overtime, the nodes send own executing contract request to all other out-block nodes and main nodes, and start a timer t2 of 2500 ms-3500 ms, if the nodes receive the agreement response of at least half of the total number of the out-block nodes and the main nodes in the time of the timer t2, the intelligent contract is executed.
In some embodiments, the step S3 further includes a double-flower processing step, when at least two of the master nodes process the exclusive resource service, taking the processing result of the master node with the largest master-chain block depth as an effective result, and selecting a unique processing result as an effective result, so as to avoid a double-flower phenomenon in the blockchain network, where the depth is a farthest distance from a block that processes the exclusive resource service to a new block that has not been checked.
In some embodiments, the step S2 further includes marking the resource service type generated in the intelligent contract execution process to ensure the execution of the subsequent intelligent contract, and avoid that the execution of the intelligent contract fails due to the fact that the resource service type generated subsequently is not marked, where the process of marking the resource service type generated in the intelligent contract execution process is the same as the process of the step S2, and details are not repeated here.
In some embodiments, the intelligent contract execution method further includes a non-exclusive resource service synchronization step, where the out-blocking node synchronizes the non-exclusive resource service according to a characteristic of the non-exclusive resource service, where the characteristic of the non-exclusive resource service includes at least one of a region characteristic, a trade union characteristic, an industry characteristic, a processing node credit level characteristic, and a service foreign currency scale characteristic, so that the out-blocking node realizes synchronization of the non-exclusive resource service according to at least one of the region characteristic, the trade union characteristic, the industry characteristic, the processing node credit level characteristic, and the service foreign currency scale characteristic, and avoids data loss of the non-exclusive resource service.
In some embodiments, the non-exclusive resource traffic includes at least one of a geographic feature, a trade union feature, an industry feature, a processing node credit rating feature, and a traffic currency scale feature, such that the chunking node synchronizes the non-exclusive resource traffic based on at least one of the geographic feature, the trade union feature, the industry feature, the processing node credit rating feature, and the traffic currency scale feature. Specifically, the Regional characteristics refer to the calculation content of a physical region, such as northern europe, western europe, southern europe, central europe, north america, south africa, north africa and china, the trade union characteristics refer to a trade union region, such as a country or a region signing Regional Economic Partnership project (RCEP), and a country or a region signing the Asia-Pacific Economic collaboration, APEC, the industry characteristics refer to industries involved in the calculation content, such as pharmaceutical industry, wood industry and mineral industry, the processing node credit rating characteristics refer to characteristics possessed by a node pledge after the node pledge becomes a credit node, and the larger the number of the node pledge, the higher the processing node credit rating characteristics refer to the larger the number of the service pledge. Through the characteristic information, when other block-out nodes or main nodes synchronize data, after the synchronous exclusive resource calculation block is completed, the data of one or more block-out nodes or main nodes with the characteristic information can be selected and synchronized according to the characteristics of the data, and the data of other nodes is selected and synchronized afterwards or not, so that the block-out efficiency is accelerated, the data storage capacity of the nodes is reduced, further, a data initiator can limit the nodes with the corresponding characteristic information to process or synchronize the data when the data is on the internet, the data safety is guaranteed, and the legal constraints of data safety and transmission in different data regions can be differentially implemented in a block chain network.
Although the embodiments of the present invention have been described in detail hereinabove, it is apparent to those skilled in the art that various modifications and variations can be made to these embodiments. However, it is to be understood that such modifications and variations are within the scope and spirit of the present invention as set forth in the following claims. Moreover, the invention as described herein is capable of other embodiments and of being practiced or of being carried out in various ways.

Claims (18)

1. An intelligent contract execution method, comprising the steps of:
s1: loading an intelligent contract to a blockchain network;
s2: marking the resource service type related to the intelligent contract, wherein the resource service type comprises an exclusive resource service and a non-exclusive resource service;
s3: selecting a block outlet node and a main node of the block chain network, processing the exclusive resource service by the main node according to the intelligent contract, and processing the non-exclusive resource service by at least one of the block outlet node and the main node according to the intelligent contract.
2. The intelligent contract execution method according to claim 1, wherein the step S2 includes a resource service type judgment step, and when the resource service type related to the intelligent contract is judged to relate to the property of property, the resource service type related to the intelligent contract is marked as the exclusive resource service.
3. The intelligent contract execution method according to claim 1, wherein the step S2 includes a resource service type judgment step, and when the resource service type related to the intelligent contract is judged to relate to an attribute of an object or information, the resource service type related to the intelligent contract is marked as the non-exclusive resource service.
4. The intelligent contract execution method according to claim 1, 2 or 3, wherein the step S3 includes a computing node selection step of selecting any at least one credit node from the blockchain network as a computing node.
5. The intelligent contract execution method according to claim 4, wherein the step S3 further includes a block node selection step of randomly selecting the computing node as a block node.
6. The intelligent contract execution method according to claim 5, wherein the step S3 further includes a master node selection step of randomly selecting the out-block node or the credit node as the master node.
7. The intelligent contract execution method according to claim 6, wherein said step S3 further includes a master node reselection step of randomly selecting at least one of the master nodes to handle the exclusive resource traffic according to the intelligent contract.
8. The intelligent contract execution method according to claim 6, wherein said step S3 further includes a double-flower processing step of taking a processing result of the master node with the maximum master node depth of the master node block as a valid result when at least two of the master nodes process the exclusive resource traffic.
9. The intelligent contract execution method according to claim 2, wherein the step S2 further comprises marking resource traffic types generated during the execution of the intelligent contract.
10. The intelligent contract execution method according to claim 1, further comprising a non-exclusive resource service synchronization step, wherein the out-blocking node synchronizes the non-exclusive resource service according to a characteristic of the non-exclusive resource service, the characteristic of the non-exclusive resource service includes at least one of a regional characteristic, a trade alliance characteristic, an industry characteristic, a processing node credit rating characteristic, and a service money-related scale characteristic, so that the out-blocking node is convenient for the out-blocking node to synchronize the non-exclusive resource service according to at least one of the regional characteristic, the trade alliance characteristic, the industry characteristic, the processing node credit rating characteristic, and the service money-related scale characteristic.
11. A blockchain system for implementing the intelligent contract execution method according to any one of claims 1 to 10, it is characterized in that the block chain system comprises an intelligent contract loading unit, a block chain service distinguishing unit and a block chain network node selecting unit, the intelligent contract loading unit is used for loading intelligent contracts to a blockchain network, the blockchain service distinguishing unit is used for marking the resource service types related to the intelligent contracts, the resource service types comprise exclusive resource service and non-exclusive resource service, the block chain network node selection unit is used for selecting a block outlet node and a main node of the block chain network, the main node processes the exclusive resource service according to the intelligent contract, and at least one of the main node and the output block node is used for processing the non-exclusive resource service according to the intelligent contract.
12. The system according to claim 11, wherein the blockchain service differentiation unit includes a first resource service type determination node module, and the first resource service type determination module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of property, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of property, mark the resource service type related to the intelligent contract as the exclusive resource service.
13. The blockchain system of claim 12, wherein the blockchain service differentiation unit further includes a second resource service type determination module, the second resource service type determination module is configured to determine whether the resource service type related to the intelligent contract relates to an attribute of an object or information, and when it is determined that the resource service type related to the intelligent contract relates to the attribute of the object or information, mark the resource service type related to the intelligent contract as the non-exclusive resource service.
14. The blockchain system of claim 11, wherein the blockchain network node selection unit includes a compute node selection module configured to select any at least one credit node from the blockchain network as a compute node.
15. The blockchain system of claim 14, wherein the blockchain network node selecting unit further includes a block-out node selecting module, and the block-out node selecting module is configured to select any at least one of the computing nodes as a block-out node.
16. The blockchain system of claim 15, wherein the blockchain network node selection unit further comprises a master node selection module, and the master node selection module is configured to select any at least one out-of-block node or any at least one credit node as the master node.
17. The blockchain system of claim 16, further comprising a double-flower processing unit, wherein the double-flower processing unit is configured to determine a main chain block depth of the main nodes when at least two main nodes process the exclusive resource traffic, and then take a processing result of the main node with the largest main chain block depth as a valid result.
18. The blockchain system of claim 16, further comprising a synchronization unit configured to enable the deblocking node to synchronize the non-exclusive resource service according to a characteristic of the non-exclusive resource service, wherein the characteristic of the non-exclusive resource service includes at least one of a geographic characteristic, a trade alliance characteristic, an industry characteristic, a processing node credit rating characteristic, and a service money-related scale characteristic, so that the deblocking node facilitates the synchronization according to the at least one of the geographic characteristic, the trade alliance characteristic, the industry characteristic, the processing node credit rating characteristic, and the service money-related scale characteristic.
CN202110483623.9A 2020-12-15 2021-04-30 Intelligent contract execution method and block chain system Pending CN113206881A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011475318 2020-12-15
CN2020114753187 2020-12-15

Publications (1)

Publication Number Publication Date
CN113206881A true CN113206881A (en) 2021-08-03

Family

ID=77029934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110483623.9A Pending CN113206881A (en) 2020-12-15 2021-04-30 Intelligent contract execution method and block chain system

Country Status (1)

Country Link
CN (1) CN113206881A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710405A (en) * 2018-12-21 2019-05-03 平安科技(深圳)有限公司 Block chain intelligence contract administration method, apparatus, electronic equipment and storage medium
US20190268407A1 (en) * 2018-02-26 2019-08-29 International Business Machines Corporation Service management for the infrastructure of blockchain networks
CN111885133A (en) * 2020-07-10 2020-11-03 深圳力维智联技术有限公司 Data processing method and device based on block chain and computer storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190268407A1 (en) * 2018-02-26 2019-08-29 International Business Machines Corporation Service management for the infrastructure of blockchain networks
CN109710405A (en) * 2018-12-21 2019-05-03 平安科技(深圳)有限公司 Block chain intelligence contract administration method, apparatus, electronic equipment and storage medium
CN111885133A (en) * 2020-07-10 2020-11-03 深圳力维智联技术有限公司 Data processing method and device based on block chain and computer storage medium

Similar Documents

Publication Publication Date Title
CN108269090B (en) Consensus method and device for block chain system based on non-negotiation random drawing
CN110990408B (en) Business information collaboration method based on block chain, business system and alliance chain
CN107945017B (en) Hybrid chain accounting method based on multi-stage verification
CN107423152A (en) A kind of block chain common recognition node automatic recovery method
CN108509615B (en) Consensus establishing method and device based on drawing mechanism and readable storage medium
CN109325028A (en) A kind of reconciliation file verification method and terminal device
CN112187490A (en) Byzantine fault-tolerant consensus method and system
CN110784521B (en) Block chain consensus method, electronic device and storage medium
CN111046037A (en) Transaction processing method of block chain, electronic device and storage medium
CN110505084B (en) Block chain packing node consensus electing method
CN114663104A (en) PBFT based on block chain product supply chain tracing
CN112463761A (en) Cross-chain cooperative platform construction method and system for dynamic unbalanced application environment
CN113079000A (en) Consensus method based on verifiable quantum random number
CN113206881A (en) Intelligent contract execution method and block chain system
CN112801791B (en) Block chain consensus method and system based on authorization
CN110098920A (en) A kind of block chain node load-balancing method and device reducing node collision
CN115766742A (en) Block chain consensus method, system, device and computer readable storage medium
CN109391684B (en) Block chain accounting node selection method and system for associated related chain
CN111177262A (en) Block chain consensus method, related device and system
CN114997865A (en) Platform transaction method and device based on block chain system
CN112037062B (en) Transaction consensus method, device, electronic equipment and readable storage medium
CN112258184B (en) Method, apparatus, electronic device and readable storage medium for freezing blockchain network
CN114745135A (en) Block chain system for energy transaction based on V-raft consensus algorithm
CN111222984B (en) Method and system for synchronous processing of block chain distributed transactions
CN110689435B (en) Data processing method and data processing system based on block chain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination