CN108965399B - Intelligent contract execution method, device, equipment and storage medium - Google Patents
Intelligent contract execution method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN108965399B CN108965399B CN201810660381.4A CN201810660381A CN108965399B CN 108965399 B CN108965399 B CN 108965399B CN 201810660381 A CN201810660381 A CN 201810660381A CN 108965399 B CN108965399 B CN 108965399B
- Authority
- CN
- China
- Prior art keywords
- voting
- intelligent contract
- target intelligent
- transaction
- target
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses an execution method, a device, equipment and a storage medium of an intelligent contract, wherein the method comprises the following steps: initiating a voting proposal transaction comprising a target smart contract; transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the target intelligent contract, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, so that the requirements of a user on the target intelligent contract and the execution mode of the target intelligent contract are met, and the execution flexibility and the user experience of the intelligent contract in the block chain system are improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of block chains, in particular to an execution method, an execution device, an execution equipment and a storage medium of an intelligent contract.
Background
With the continuous development of internet technology, a decentralized and transparent block chain technology is developed. The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism and an encryption algorithm.
The block chain system executes corresponding affairs according to different intelligent contracts, so that different affairs can be processed, and corresponding functions are realized. For example, voting is performed by a smart contract having a voting function, transfer is performed by a smart contract having a transfer function, and the like. In the existing block chain system, the intelligent contract is configured in the block chain system in advance, and when a transaction to be processed exists, the intelligent contract is executed according to the corresponding intelligent contract. The execution scheme of the intelligent contract is mainly directly executed; or the detection is carried out by reaching a certain time node through a timer; or if a preset execution condition is satisfied.
However, the execution mode of the existing intelligent contract is single, and the user can only rely on the existing intelligent contract to process the corresponding transaction, and the user requirements cannot be met.
Disclosure of Invention
The embodiment of the invention provides an execution method, device, equipment and storage medium of an intelligent contract, which can execute a specified intelligent contract according to the requirements of a user.
In a first aspect, an embodiment of the present invention provides an execution method of an intelligent contract, where the execution method is executed by a node in a blockchain system, and the method includes:
initiating a voting proposal transaction comprising a target smart contract;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
In a second aspect, an embodiment of the present invention provides an execution method of an intelligent contract, where the execution method is executed by a block generation node in a blockchain system, and the method includes:
responding to a voting proposal transaction provided by an initiator in the block chain system, and acquiring a voting result; wherein the voting proposal affairs comprise target intelligent contracts;
and if the voting is determined to pass according to the statistical voting result, controlling the target intelligent contract to be executed in the block chain system.
In a third aspect, an embodiment of the present invention provides an apparatus for executing an intelligent contract, where the apparatus is configured in a node in a blockchain system, and the apparatus includes:
the voting transaction initiating module is used for initiating a voting proposal transaction comprising the target intelligent contract;
a voting transaction transmission module, configured to transmit the voting proposal transaction in the blockchain system, so that the block generation node performs the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
In a fourth aspect, an embodiment of the present invention provides an apparatus for executing an intelligent contract, where the apparatus is configured in a blockchain system, and the apparatus includes:
the voting response module is used for responding to the voting proposal affair provided by the initiator in the block chain system and acquiring a voting result; wherein the voting proposal affairs comprise target intelligent contracts;
and the intelligent contract execution module is used for controlling the target intelligent contract to be executed in the block chain system if the voting is determined to pass according to the statistical voting result.
In a fifth aspect, an embodiment of the present invention provides an apparatus, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for executing the intelligent contract according to any embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for executing an intelligent contract according to any embodiment of the present invention.
The embodiment of the invention initiatively initiates a voting proposal transaction comprising a target intelligent contract through the node in the block chain system, and transmits the voting proposal transaction to the block chain system, so that the block generation node responds to the voting proposal transaction, controls the block chain system to vote, and executes the target intelligent contract if the vote passes. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the target intelligent contract, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, so that the requirements of a user on the target intelligent contract and the execution mode of the target intelligent contract are met, and the execution flexibility and the user experience of the intelligent contract in the block chain system are improved.
Drawings
Fig. 1 is a flowchart of an execution method of an intelligent contract according to an embodiment of the present invention;
fig. 2 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 3 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 4 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention;
fig. 5 is a flowchart of an execution method of an intelligent contract according to a third embodiment of the present invention;
fig. 6 is a flowchart of an execution method of an intelligent contract according to a fourth embodiment of the present invention;
fig. 7 is a flowchart of an execution method of an intelligent contract according to a fifth embodiment of the present invention;
fig. 8 is a schematic structural diagram of an execution apparatus of an intelligent contract according to a sixth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an execution apparatus of an intelligent contract according to a seventh embodiment of the present invention;
fig. 10 is a schematic structural diagram of an apparatus according to an eighth embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the embodiments of the invention and that no limitation of the invention is intended. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of an execution method of an intelligent contract according to an embodiment of the present invention, where the embodiment is applicable to a case where an intelligent contract initiated by a user is executed, and the method is executed by a node in a blockchain system and may be executed by an execution device of the intelligent contract. The method specifically comprises the following steps:
and S110, initiating a voting proposal transaction comprising the target intelligent contract.
In the embodiment of the present invention, the target intelligent contract refers to an intelligent contract that is autonomously initiated by a user according to a requirement, and the target intelligent contract may be pre-configured in the blockchain system or initiated by the user at any time, and further, the execution of the target intelligent contract may be used as a to-be-processed transaction in the blockchain system for verification and voting of a majority or a specific node in the blockchain system. Accordingly, as long as the native node, i.e., the initiator of the intelligent contract, has the authority to initiate the target intelligent contract, the native node has the ability to initiate the voting proposal transaction including the target intelligent contract, or the initiated voting proposal transaction can be responded to by the blockchain system.
Preferably, prior to initiating a voting proposal transaction that includes the target smart contract, the target smart contract is selected from the smart contracts for which the native node has the authority to initiate the voting proposal.
In the specific embodiment of the invention, before initiating the voting proposal transaction including the target intelligent contract, the local node can determine that the local node has the intelligent contract initiating the voting proposal authority according to various ways such as the economic capability, the equity interest, the hardware capability, the stability and the like of the local node, and select the intelligent contract needing to be executed currently from the intelligent contracts as the target intelligent contract so as to ensure that the local node can have the authority to propose the target intelligent contract and the proposed target intelligent contract can be effectively implemented.
The embodiment can clarify the execution condition of the voting proposal transaction and the decision mode of the voting result, thereby initiating the voting proposal transaction comprising the target intelligent contract. For example, in this embodiment, the execution condition of the voting proposal transaction may be determined by determining information such as the height of the voting validation block, the execution condition of the target intelligent contract may be determined by determining information such as a parameter value of the target intelligent contract, or a decision manner of the voting result of the voting proposal transaction may be determined by determining a voting validation ratio threshold.
Specifically, the present embodiment may determine the height of the voting validation block; and initiating a voting proposal transaction comprising the target intelligent contract and the height of the voting validation block, and enabling the block generation node to respond to the voting proposal transaction provided by the initiator to vote if the current block height to be generated is the height of the voting validation block. By setting the height of the voting validation block, the time node of the start of voting can be limited. Since the current block-out time in the blockchain system is fixed, the height of the voting validation block can be set, that is, the starting execution time node of the voting operation is determined. For example, the voting validation block height is determined to be 469739, and then if the block generation node detects that the current block height to be generated is 469739, the voting is performed in response to the voting proposal transaction provided by the initiator.
Specifically, because the execution modes of different intelligent contracts are different, the parameter value of the target intelligent contract can be determined for the intelligent contract needing parameter configuration; and initiating a voting proposal transaction comprising a target intelligent contract and a parameter value, so that the block generation node executes the target intelligent contract according to the parameter value. Wherein the parameter values are determined according to the corresponding intelligent contracts.
Specifically, the embodiment may further determine a voting effectiveness ratio threshold of the target intelligent contract, and preferably selects a larger voting effectiveness ratio threshold as the voting effectiveness ratio threshold of the target intelligent contract from the voting effectiveness ratio threshold set by the local node and the voting effectiveness ratio threshold default in the block chain system, so as to initiate a voting proposal transaction including the target intelligent contract and the voting effectiveness ratio threshold corresponding to the target intelligent contract, so that if the block generation node determines that the proportion value that the votes pass is greater than the voting effectiveness ratio threshold of the target intelligent contract included in the voting proposal transaction, the block generation node determines that the votes pass. Therefore, the decision mode of the voting result is determined, and basis is provided for the decision of the voting result.
It should be noted that, when initiating a voting proposal transaction including a target smart contract, based on the target smart contract, the present embodiment may initiate the voting proposal transaction including the target smart contract according to any one of the above three manners and other manners in which the voting proposal transaction may be initiated, or may also initiate the voting proposal transaction including the target smart contract according to a combination of at least two of the manners.
In addition, in the embodiment, it is considered that the target intelligent contract meets the user requirement of the initiator, and accordingly, the initiator needs to pay a certain cost for the target intelligent contract. Therefore, when a voting proposal transaction comprising a target intelligent contract is initiated, the embodiment can also determine a frozen certificate for initiating the proposal and initiate the voting proposal transaction comprising the target intelligent contract and the frozen certificate; wherein the freeze certification is to allow the blockchain system to freeze the asset of the initiator.
For example, in a specific blockchain application, it is assumed that a conventional smart contract and/or an execution mode thereof cannot meet specific rules and requirements in the application, and therefore an initiator may determine, according to its own initiation authority for a voting proposal transaction, a target smart contract meeting the application requirements and conditions such as a corresponding voting validation block height, a parameter value, a voting validation ratio threshold, or a freezing proof, so as to initiate the voting proposal transaction including the target smart contract.
S120, transmitting the voting proposal transaction in the block chain system, so that the block generating node performs the following operations: and voting in response to the voting proposal transaction, and executing the target intelligent contract if the voting passes.
In an embodiment of the present invention, when an initiator executing a target intelligent contract initiates a voting proposal transaction, the voting proposal transaction is transmitted to the block chain system, so that most nodes or specific nodes in the block chain and the current block generation node receive the voting proposal transaction. And the block generation node monitors all the affairs related to the voting proposal affairs in the block chain system, judges the block chain system environment, the initiator of the target intelligent contract and the content related to the target intelligent contract and the voting proposal affairs according to the voting proposal affairs, and determines whether to respond to the voting proposal affairs according to the judgment result. For example, the determination may be made according to data information specified by the voting proposal transaction, such as the block height, the initiating authority of the initiator for the target intelligent contract-related content, and the like. If the voting proposal transaction can be voted, most nodes or specific nodes in the block chain vote for the voting proposal transaction. And the block generation node responds to the target intelligent contract to perform corresponding execution operation according to the voting result if the voting is passed, namely, corresponding affairs in the block chain system are processed according to the target intelligent contract, so that the target intelligent contract is executed according to the user requirement.
According to the technical scheme of the embodiment, a node in a block chain system actively initiates a voting proposal transaction comprising a target intelligent contract, and the voting proposal transaction is transmitted to the block chain system, so that a block generation node responds to the voting proposal transaction, controls the block chain system to vote, and executes the target intelligent contract if the vote passes. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the target intelligent contract, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, so that the requirements of a user on the target intelligent contract and the execution mode of the target intelligent contract are met, and the execution flexibility and the user experience of the intelligent contract in the block chain system are improved.
Example two
The present embodiment provides a preferred implementation of the method for executing the smart contract based on the first embodiment, and is capable of initiating voting proposal transactions including target smart contracts according to different conditions. The embodiment provides three initiating modes of voting proposal affairs.
First, the embodiment may determine the execution condition when voting is performed on the target smart contract according to the block height. Fig. 2 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, and as shown in fig. 2, the method includes the following specific steps:
s210, determining the height of the voting effective block.
In a specific embodiment of the present invention, the time node at which the voting starts may be limited. The tile height in this embodiment refers to the number of tiles on the tile link backbone, and for a single tile, can represent the identity of the tile. Correspondingly, the voting validation block height refers to starting voting when the block height of the current block to be generated is the voting validation block height. Since the current block-out time in the blockchain system is fixed, the height of the voting validation block can be set, that is, the starting execution time node of the voting operation is determined. For example, the voting validation block height is determined to be 469739.
S220, initiating a voting proposal transaction comprising the target intelligent contract and the height of the voting validation block, and if the block generation node detects that the height of the current block to be generated is the height of the voting validation block, responding to the voting proposal transaction provided by the initiator to vote.
In an embodiment of the present invention, when determining the height of the target intelligent contract and the voting validation block for starting voting, a voting proposal transaction is initiated according to the height of the target intelligent contract and the voting validation block. The voting proposal transaction is used for indicating the block generation node to detect the height of the current block, responding to the voting proposal transaction if the height of the current block to be generated is detected to be the height of the voting effective block, and indicating a majority node or a special node in the block chain to vote for the voting proposal transaction associated with the target intelligent contract.
Illustratively, in the above example, the vote validation tile height is 469739. A voting proposal transaction containing a voting validation block height of 469739 is initiated according to the target intelligent contract and the voting validation block height, so that the block generation node detects whether the current block height to be generated is 469739, and when determining that a block with a block height of 469739 is generated, the block chain system is controlled to start voting and obtain a voting result. And finally, judging the voting result by using the voting effective proportion threshold, and if the voting passing proportion value is greater than the default voting effective proportion threshold of the system, determining that the voting passes and controlling the block chain system to execute the target intelligent contract. If the voting proposal transaction initiated by the initiator does not have an associated voting effectiveness ratio threshold, the voting result can be judged according to the default voting effectiveness ratio threshold of the system; and otherwise, judging the voting result according to the voting effective proportion threshold value associated with the voting proposal transaction.
Secondly, the embodiment may determine the execution condition of the target intelligent contract according to the parameter value. Fig. 3 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, and as shown in fig. 3, the method includes the following specific steps:
and S310, determining the parameter value of the target intelligent contract.
In an embodiment of the invention, the execution of the portion of the intelligent contract is performed according to parameters. Furthermore, for the intelligent contract requiring parameter configuration, the parameter value of the target intelligent contract may be determined when the voting proposal transaction is initiated.
Illustratively, assume that a target intelligent contract is used to record data, which specifies a data storage format. And determining that the storage format of the data type A is a character string type and the storage format of the data type B is a floating point number type.
And S320, initiating a voting proposal transaction comprising the target intelligent contract and the parameter value, so that the block generation node executes the target intelligent contract according to the parameter value.
In the specific embodiment of the invention, when the target intelligent contract and the parameter value thereof are determined, the voting proposal transaction is initiated according to the target intelligent contract and the parameter value. The voting proposal transaction is used for instructing the block generation node to execute the target intelligent contract according to the parameter value. Illustratively, in the above example, the storage format of the parameter value as data type a is a character string type, and the storage format of the parameter value as data type B is a floating point number type. And initiating a voting proposal transaction containing a data storage format according to the target intelligent contract and the parameter value so that the block generation node stores the data with the data type A in a character string type and stores the data with the data type B in a floating point type according to the data type associated with the transaction to be processed in the block chain system and the parameter value specified by the voting proposal transaction.
Finally, the present embodiment may define the decision condition of the voting result according to the voting effectiveness ratio threshold. Fig. 4 is a flowchart of initiating a voting proposal transaction according to a second embodiment of the present invention, and as shown in fig. 4, the method includes the following specific steps:
and S410, determining a voting effective proportion threshold value of the target intelligent contract.
In the embodiment of the present invention, a default voting effective ratio threshold exists in the blockchain system, and in addition, the initiator may set the voting effective ratio threshold. For example, the native node may set the vote validation percentage threshold to 80%. The voting effective proportion threshold value reflects the ratio of the number of nodes executed by agreeing with the target intelligent contract to the number of all nodes for voting, and it can be understood that the higher the voting effective proportion is, the better the voting effective proportion is, the more nodes in the block chain agree with the target intelligent contract at this time.
Preferably, a voting effective proportion threshold value of the target intelligent contract set by the initiator is obtained; if the set voting effective proportion threshold is equal to or smaller than the system effective proportion threshold, taking the system effective proportion threshold as the voting effective proportion threshold of the target intelligent contract; otherwise, the set voting effective proportion threshold value is used as the voting effective proportion threshold value of the target intelligent contract.
In the specific embodiment of the present invention, when the initiator sets the voting validation ratio threshold, one of the voting validation ratio thresholds set by the local node and the system default voting validation ratio threshold with a larger threshold is selected to be determined as the voting validation ratio threshold of the voting proposal transaction.
For example, in the above example, assuming that the default voting effective proportion threshold of the system is 60%, the voting effective proportion threshold set by the local node may be determined to be the voting effective proportion threshold of the voting proposal transaction, that is, 80%, by comparing with 80% of the voting effective proportion threshold set by the local node.
And S420, initiating a voting proposal transaction comprising the target intelligent contract and a voting effective proportion threshold value, and if the block generation node determines that the voting passes through the voting proposal transaction, determining that the voting passes through the block generation node if the voting effective proportion threshold value of the target intelligent contract included in the voting proposal transaction is greater than the voting effective proportion threshold value of the target intelligent contract.
In the specific embodiment of the invention, when the voting effectiveness ratio threshold values of the target intelligent contract and the voting proposal transaction are determined, the voting proposal transaction is initiated according to the voting effectiveness ratio threshold values of the target intelligent contract and the voting proposal transaction. The voting proposal transaction is used for instructing the block generation node to control the block chain system to vote the voting proposal transaction associated with the target intelligent contract and obtain a voting result. And finally, judging the voting result according to the determined voting effective proportion threshold, and if the voting passing proportion value is greater than the voting effective proportion threshold, determining that the voting passes and executing the target intelligent contract.
Illustratively, in the above example, the vote validation percentage threshold is 80%. And initiating a voting proposal transaction containing 80% of the voting effective proportion threshold value according to the target intelligent contract and the voting effective proportion threshold value so that the block generation node controls the block chain system to start voting and acquire a voting result. And finally, judging the voting result according to an 80% voting effective proportion threshold, and if the voting passing proportion value is greater than 80%, determining that the voting passes and executing the target intelligent contract.
It is noted that the initiation of the voting proposal transaction is not limited to the above three conditions, and may depend on the specific situation of the target intelligent contract. And the voting proposal transaction can be initiated according to each independent condition, or the voting proposal transaction can be initiated according to the combination of at least two conditions.
According to the technical scheme of the embodiment, the voting proposal transaction associated with the target intelligent contract is finally generated by setting the parameter value associated with the target intelligent contract, the height of the voting validation block associated with the voting proposal transaction and the voting validation ratio threshold. The self-definition of the local node on the target intelligent contract and the voting proposal transaction is realized, the execution of the target intelligent contract is conveniently realized according to the user requirements, and the user experience and the performance of the block chain system are improved.
EXAMPLE III
On the basis of the first embodiment, this embodiment provides a preferred implementation of the execution method of the intelligent contract, and can determine the initiation cost of the target intelligent contract. Fig. 5 is a flowchart of an execution method of an intelligent contract according to a third embodiment of the present invention, and as shown in fig. 5, the method includes the following specific steps:
and S510, selecting a target intelligent contract from the intelligent contracts with the voting proposal initiating authority of the local nodes.
In a specific embodiment of the present invention, as long as a local node, i.e., an initiator of a target intelligent contract, has the authority to initiate the target intelligent contract, the local node has the capability to initiate a voting proposal transaction including the target intelligent contract, or the initiated voting proposal transaction can be responded to. Therefore, before the voting proposal transaction including the target intelligent contract is initiated, the local node can determine that the local node has the intelligent contract initiating the voting proposal authority according to various modes such as the economic capability, the equity rights and interests, the hardware capability and the stability of the local node, and the intelligent contract needing to be executed currently is selected from the intelligent contracts to be used as the target intelligent contract, so that the local node can be ensured to have the authority and can propose and implement the effective intelligent contract.
S520, determining to initiate the freezing proof of the proposal.
In a specific embodiment of the invention, the freeze proof refers to a proof that certain assets of an initiator who has initiated a voting proposal transaction including a target intelligent contract are frozen, and the freeze proof is used for allowing a blockchain system to freeze the assets of the initiator. The partial assets may be assets that are not temporarily extracted or transferred by the initiator, or may be directly deducted to pay a certain cost for the initiation and execution of the target intelligent contract.
And S530, initiating a voting proposal transaction comprising the target intelligent contract and the frozen certification.
In a particular embodiment of the present invention, when a target intelligent contract and a freeze proof for an initiator's asset are determined, a voting proposal transaction is initiated in accordance with the target intelligent contract and the freeze proof. The voting proposal transaction is used for indicating the block generation node to detect the initiator of the target intelligent contract, responding to the voting proposal transaction if a certain asset freezing proof exists, and indicating a majority node or a special node in the block chain to vote for the voting proposal transaction associated with the target intelligent contract.
S540, transmitting the voting proposal transaction in the block chain system, so that the block generating node performs the following operations: and voting in response to the voting proposal transaction, and executing the target intelligent contract if the voting passes.
In an embodiment of the present invention, when an initiator executing a target intelligent contract initiates a voting proposal transaction, the voting proposal transaction is transmitted to the block chain system, so that most nodes or specific nodes in the block chain and the current block generation node receive the voting proposal transaction. And the block generation node monitors all the affairs related to the voting proposal affairs in the block chain system, judges the block chain system environment, the initiator of the target intelligent contract and the content related to the target intelligent contract and the voting proposal affairs according to the voting proposal affairs, and determines whether to respond to the voting proposal affairs according to the judgment result. For example, the determination may be made according to the block height, the initiating authority of the initiator for the target intelligent contract-related content, and the data information specified by the voting proposal transaction, such as asset freeze proof. If the voting proposal transaction can be voted, the majority nodes or specific nodes in the block chain are controlled to vote the voting proposal transaction, and a voting result is obtained. And the block generation node responds to the target intelligent contract to perform corresponding execution operation according to the voting result if the voting is passed, namely, corresponding affairs in the block chain system are processed according to the target intelligent contract, so that the target intelligent contract is executed according to the user requirement.
According to the technical scheme, the asset freezing certification of a target intelligent contract initiator is determined, a voting proposal transaction comprising a target intelligent contract and the freezing certification is initiated, and is transmitted to a block chain system, so that a block generation node responds to the voting proposal transaction after verifying the freezing certification, the block chain system is controlled to vote, and the target intelligent contract is executed if the voting passes. The embodiment of the invention realizes the execution of the specified intelligent contract according to the user requirement by verifying the freezing certification of the initiator and executing the target intelligent contract initiated by the user passing the vote, thereby ensuring the execution of the target intelligent contract. The user requirements are met, and the flexibility and the user experience of intelligent contract execution in the block chain system are improved.
Example four
Fig. 6 is a flowchart of an execution method of an intelligent contract according to a fourth embodiment of the present invention, where this embodiment is applicable to a case where an intelligent contract initiated by a user is executed, and the method is executed by a block generation node in a blockchain system, and may be executed by an execution device of the intelligent contract. The method specifically comprises the following steps:
s610, responding to the voting proposal affair provided by the initiator in the block chain system and obtaining the voting result.
In a specific embodiment of the present invention, the voting proposal transaction includes a target intelligence contract. After receiving the voting proposal transaction, the block generation node in this embodiment may directly respond to the voting proposal transaction provided by the initiator in the block chain system by determining the voting proposal transaction, control the block chain system to vote according to the voting proposal transaction, and obtain a voting result.
The embodiment may also detect the block chain system at any moment according to the voting proposal transaction if it is determined that the voting start time node is limited in the voting proposal transaction, respond to the voting proposal transaction when the voting start time node that is set in the voting proposal transaction is detected, control the block chain system to vote according to the voting proposal transaction, and obtain a voting result.
Illustratively, according to the voting proposal transaction, if the voting effective block height is set in the voting proposal transaction, if the current block height to be generated is detected to be the voting effective block height included in the voting proposal transaction, responding to the voting proposal transaction transmitted by the initiator, controlling the block chain system to vote according to the voting proposal transaction, and acquiring a voting result.
And S620, controlling to execute the target intelligent contract in the block chain system if the voting is determined to pass according to the statistical voting result.
In the embodiment of the present invention, after obtaining the voting result in the block chain, the block generation node may determine the voting result according to a default voting effective proportion threshold of the block chain system, and if the voting passing proportion value is greater than the default voting effective proportion threshold of the block chain system, it is determined that the vote passes, and it may control the block chain system to execute the target intelligent contract.
The embodiment may also determine, according to the voting proposal transaction, the voting result according to the voting effectiveness ratio threshold of the voting proposal transaction if it is determined that the voting effectiveness ratio threshold is limited in the voting proposal transaction, and determine that the vote passes if the voting pass ratio value is greater than the voting effectiveness ratio threshold of the voting proposal transaction, thereby controlling the block chain system to execute the target intelligent contract.
After determining that the target intelligent contract is voted for, the block generation node controls to respond to the target intelligent contract in the block chain system so as to execute the target intelligent contract initiated by the user.
Preferably, the target intelligent contract is controlled to be executed in the block chain system according to a parameter value of the target intelligent contract included in the voting proposal transaction.
In the embodiment of the invention, the block generation node can execute corresponding transaction processing according to specific parameter values according to the parameter values of the target intelligent contract associated with the voting proposal transaction, so as to realize the execution of the target intelligent contract.
It should be noted that, in response to the voting proposal transaction, the block generation node controlling the block chain system to perform voting and the block generation node acquiring the voting result and executing the target intelligent contract according to the voting result may be the same block generation node. However, since the current block generation node in the blockchain system is continuously updated and changed, the two block generation nodes may also be different block generation nodes corresponding to different times. The change of the block generation node does not affect the normal execution of the scheme of the embodiment.
According to the technical scheme of the embodiment, a current block generation node responds to a voting proposal transaction provided by an initiator in a block chain system, the block chain system is controlled to vote for a target intelligent contract, and a voting result is obtained; and if the voting is determined to pass according to the statistical voting result, controlling the block chain system to respond to the target intelligent contract and executing the target intelligent contract initiated by the user. The block generation node responds to the voting proposal transaction initiated by the internal node according to the target intelligent contract, controls the block chain system to vote, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, thereby meeting the requirements of users on the target intelligent contract and the execution mode thereof, and improving the flexibility of executing the intelligent contract in the block chain system and the user experience.
EXAMPLE five
On the basis of the first embodiment, this embodiment provides a preferred implementation of the execution method of the intelligent contract, and can judge whether the initiator has the authority to initiate the voting proposal. Fig. 7 is a flowchart of an execution method of an intelligent contract according to a fifth embodiment of the present invention, as shown in fig. 7, the method includes the following specific steps:
s710, determining whether the initiator has the voting proposal authority for initiating the target intelligent contract, if so, executing the step S720; if not, go to step S750.
In the embodiment of the invention, before voting in response to the voting proposal transaction provided by the initiator in the block chain system, the block generation node can determine whether the node has the initiating voting proposal authority of the target intelligent contract or not according to various modes such as economic capacity, equity interest, hardware capacity and stability of the initiator node, so as to ensure that the initiator node can propose and implement an effective target intelligent contract.
S720, responding to the voting proposal transaction provided by the initiator in the block chain system, and acquiring the voting result.
In a specific embodiment of the present invention, the voting proposal transaction includes a target intelligence contract. After receiving the voting proposal transaction, the block generation node in this embodiment may directly respond to the voting proposal transaction provided by the initiator in the block chain system by determining the voting transaction if the initiator node has the authority of initiating the voting proposal for the target intelligent contract. Or, according to the voting proposal transaction, if the voting start time node in the voting proposal transaction is further judged to be limited, the block chain system is detected at all times, and when the voting start time node which is set in the voting proposal transaction is detected, the voting proposal transaction is responded.
Preferably, if it is detected that the current block height to be generated is the voting validation block height included in the voting proposal transaction, controlling voting in the block chain system in response to the voting proposal transaction provided by the initiator.
In the embodiment of the invention, by limiting the voting start time node, when the block generation node detects that the voting start time node is reached, the block chain system is controlled to vote according to the voting proposal transaction and acquire the voting result in response to the voting proposal transaction.
And S730, if the proportion value of the votes passing is larger than the threshold value of the voting effective proportion, determining that the votes pass.
In an embodiment of the present invention, when the voting is finished or the voting time expires, the block generation node may determine the voting result according to a default voting effectiveness ratio threshold of the block chain system, or according to a voting effectiveness ratio threshold associated with a target intelligent contract in the voting proposal transaction. The voting pass can be judged only if the proportion value of the voting pass is larger than the voting effective proportion threshold value.
Preferably, if the proportion value of the voting pass is greater than the voting effective proportion threshold value of the target intelligent contract included in the voting proposal transaction, the voting pass is determined.
In the specific embodiment of the present invention, the voting effective proportion threshold included in the voting proposal transaction may be a voting effective proportion threshold defaulted by the blockchain system, or may also be a voting effective proportion threshold set by the initiator of the target intelligent contract, and the two are selected as the voting effective proportion threshold of the voting proposal transaction. And similarly, the voting pass can be judged only if the proportion value of the voting pass is greater than the voting effective proportion threshold value included in the voting proposal transaction.
And S740, controlling to execute the target intelligent contract in the block chain system.
In an embodiment of the invention, after determining that the vote for the target intelligent contract passes, the block generation node controls the response of the target intelligent contract in the block chain system, and controls the node related to the target intelligent contract related transaction in the block chain system to execute the target execution contract.
Preferably, the target intelligent contract is controlled to be executed in the block chain system according to a parameter value of the target intelligent contract included in the voting proposal transaction.
Specifically, because the execution modes of different intelligent contracts are different, for an intelligent contract requiring parameter configuration in this embodiment, the block generation node may further control the node related to the target intelligent contract associated transaction in the block chain system to execute the target execution contract according to a parameter value of the target intelligent contract included in the voting proposal transaction.
And S750, shielding the voting proposal affairs.
According to the technical scheme of the embodiment, the authority of the initiator of the voting proposal transaction in the block chain system is judged through the current block generating node, so that only the voting proposal transaction with the authority of initiating the voting proposal is responded, the block chain system is controlled to vote for a target intelligent contract, and a voting result is obtained; and finally, controlling to respond to the target intelligent contract in the block chain system and executing the target intelligent contract initiated by the user if the vote is determined to pass according to the vote effective proportion threshold value. The block generation node responds to the voting proposal transaction initiated by the internal node according to the target intelligent contract, controls the block chain system to vote, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, thereby meeting the requirements of users on the target intelligent contract and the execution mode thereof, and improving the flexibility of executing the intelligent contract in the block chain system and the user experience.
EXAMPLE six
Fig. 8 is a schematic structural diagram of an apparatus for executing an intelligent contract according to a sixth embodiment of the present invention, where this embodiment is applicable to a case where an intelligent contract initiated by a user is executed, and the apparatus can implement an execution method of the intelligent contract according to any embodiment of the present invention, and is configured in a node in a blockchain system. The device specifically includes:
a voting transaction initiating module 810 for initiating a voting proposal transaction that includes the target intelligence contract;
a voting transaction transmission module 820, configured to transmit the voting proposal transaction in the blockchain system, so that the block generation node performs the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
Preferably, the voting transaction initiating module 810 includes a voting time node determining unit 8101; the voting time node determination unit 8101 includes:
a voting validation block height determining subunit, configured to determine a voting validation block height;
and the voting transaction initiating subunit is configured to initiate a voting proposal transaction including the target intelligent contract and the voting validation block height, so that if the block generation node detects that the current block height to be generated is the voting validation block height, the voting proposal transaction provided by the initiator is voted in response to the voting proposal transaction.
Preferably, the voting transaction initiating module 810 includes a contract execution condition determining unit 8102; the contract execution condition determination unit 8102 includes:
a parameter value determining subunit, configured to determine a parameter value of the target intelligent contract;
and the voting transaction initiating subunit is configured to initiate a voting proposal transaction including the target intelligent contract and the parameter value, so that the block generation node executes the target intelligent contract according to the parameter value.
Preferably, the voting transaction initiating module 810 comprises a voting pass threshold determining unit 8103; the vote passing threshold determination unit 8103 includes:
a voting effectiveness ratio threshold value determining subunit, configured to determine a voting effectiveness ratio threshold value of the target intelligent contract;
the voting transaction initiating subunit is configured to initiate a voting proposal transaction including the target intelligent contract and the voting effectiveness ratio threshold, so that if the block generation node determines that the voting passes through a ratio value that is greater than the voting effectiveness ratio threshold of the target intelligent contract included in the voting proposal transaction, the block generation node determines that the voting passes through.
Preferably, the voting effectiveness ratio threshold determining subunit is specifically configured to:
acquiring a voting effective proportion threshold value of a target intelligent contract set by an initiator;
if the set voting effective proportion threshold is equal to or smaller than the system effective proportion threshold, taking the system effective proportion threshold as the voting effective proportion threshold of the target intelligent contract; otherwise, the set voting effective proportion threshold value is used as the voting effective proportion threshold value of the target intelligent contract.
Further, the apparatus further comprises:
a contract selection module 830, configured to select a target intelligent contract from the intelligent contracts of which the local node has the authority to initiate voting proposal before the voting proposal transaction including the target intelligent contract is initiated.
Preferably, the voting transaction initiating module 810 further comprises an asset freezing unit 8104, wherein the asset freezing unit 8104 comprises:
a freezing proof determining subunit, configured to determine a freezing proof for initiating a proposal;
the voting transaction initiating subunit is used for initiating a voting proposal transaction comprising the target intelligent contract and the frozen proof; wherein the freeze certification is to allow the blockchain system to freeze the asset of the initiator.
According to the technical scheme of the embodiment, through the mutual cooperation of all the functional modules, the functions of selecting a target intelligent contract, determining a voting time node, determining a contract parameter value, determining a voting passing threshold value, initiating a voting proposal transaction, transmitting the voting proposal transaction and the like are realized. The block chain system responds to the internal node to vote according to the voting proposal transaction initiated by the target intelligent contract, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, so that the requirements of a user on the target intelligent contract and the execution mode of the target intelligent contract are met, and the execution flexibility and the user experience of the intelligent contract in the block chain system are improved.
EXAMPLE seven
Fig. 9 is a schematic structural diagram of an apparatus for executing an intelligent contract according to a seventh embodiment of the present invention, where this embodiment is applicable to a case where an intelligent contract initiated by a user is executed, and the apparatus can implement an execution method of an intelligent contract according to any embodiment of the present invention, and is configured in a block generation node in a block chain system. The device specifically includes:
a voting response module 910, configured to respond to a voting proposal transaction provided by an initiator in the blockchain system, and obtain a voting result; wherein the voting proposal affairs comprise target intelligent contracts;
and the intelligent contract execution module 920 is configured to control to execute the target intelligent contract in the blockchain system if the voting is determined to pass according to the statistical voting result.
Preferably, the voting response module 910 is specifically configured to:
and if the current block height to be generated is detected to be the voting effective block height included in the voting proposal transaction, controlling the voting in the block chain system in response to the voting proposal transaction provided by the initiator.
Further, the apparatus further comprises:
an authority determining module 930, configured to determine, before responding to a voting proposal transaction provided by an initiator in the blockchain system, whether the initiator has an authority of initiating the voting proposal of the target smart contract, and if not, block the voting proposal transaction.
Preferably, the intelligent contract execution module 920 includes an intelligent contract execution unit 9201; the intelligent contract execution unit 9201 is specifically configured to:
and controlling the target intelligent contract to be executed in the block chain system according to the parameter value of the target intelligent contract included in the voting proposal.
Preferably, the intelligent contract execution module 920 includes a voting pass determination unit 9202; the voting pass determination unit 9202 is specifically configured to:
and if the voting pass proportion value is larger than the voting effective proportion threshold value of the target intelligent contract included in the voting proposal transaction, determining that the voting pass is passed.
According to the technical scheme of the embodiment, through the mutual cooperation of all the functional modules, the functions of determining the authority of the node of the initiator, detecting the voting time node, responding the voting proposal transaction, judging the voting result, executing the target intelligent contract and the like are realized. The block generation node responds to the voting proposal transaction initiated by the internal node according to the target intelligent contract, controls the block chain system to vote, and controls the block chain system to execute the target intelligent contract after the voting proposal transaction associated with the target intelligent contract passes through the voting, thereby meeting the requirements of users on the target intelligent contract and the execution mode thereof, and improving the flexibility of executing the intelligent contract in the block chain system and the user experience.
Example eight
Fig. 10 is a schematic structural diagram of an apparatus according to an eighth embodiment of the present invention, and fig. 10 shows a block diagram of an exemplary apparatus suitable for implementing the embodiment of the present invention. The device shown in fig. 10 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present invention.
The device 12 shown in fig. 10 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 10, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors 16, a system memory 28, and a bus 18 that connects the various system components (including the system memory 28 and the processors 16).
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments described herein.
The processor 16 executes various functional applications and data processing, such as implementing the execution method of the smart contract provided by the embodiment of the present invention, by executing the program stored in the system memory 28.
Example nine
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program (or referred to as computer-executable instructions) is stored, where the computer program is used for executing, by a processor, an execution method of an intelligent contract, where the method includes:
initiating a voting proposal transaction comprising a target smart contract;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (16)
1. A method of executing an intelligent contract, performed by a node in a blockchain system, the method comprising:
initiating a voting proposal transaction comprising a target smart contract; the target intelligent contract is an intelligent contract which is autonomously initiated by a user according to the requirement;
transmitting the voting proposal transaction in a block chain system to enable a block generation node to execute the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
2. The method of claim 1, wherein initiating a voting proposal transaction that includes a target smart contract comprises:
determining the height of the voting effective block;
and initiating a voting proposal transaction comprising the target intelligent contract and the voting validation block height, so that the block generation node responds to the voting proposal transaction provided by the initiator to vote if the current block height to be generated is detected to be the voting validation block height.
3. The method of claim 1, wherein initiating a voting proposal transaction that includes a target smart contract comprises:
determining the parameter value of the target intelligent contract;
and initiating a voting proposal transaction comprising the target intelligent contract and the parameter value, so that the block generation node executes the target intelligent contract according to the parameter value.
4. The method of claim 1, wherein initiating a voting proposal transaction that includes a target smart contract comprises:
determining a voting effective proportion threshold value of the target intelligent contract;
and initiating a voting proposal transaction comprising the target intelligent contract and the voting effective proportion threshold value, and enabling the block generation node to determine that the votes pass if the voting effective proportion threshold value of the target intelligent contract included in the voting proposal transaction is greater than the voting effective proportion threshold value of the target intelligent contract.
5. The method of claim 4, wherein determining the vote validation percentage threshold for the target smart contract comprises:
acquiring a voting effective proportion threshold value of a target intelligent contract set by an initiator;
if the set voting effective proportion threshold is equal to or smaller than the system effective proportion threshold, taking the system effective proportion threshold as the voting effective proportion threshold of the target intelligent contract; otherwise, the set voting effective proportion threshold value is used as the voting effective proportion threshold value of the target intelligent contract.
6. The method of claim 1, prior to the initiating a voting proposal transaction that includes a target smart contract, further comprising:
a target intelligent contract is selected from the intelligent contracts for which the local node has the authority to initiate a voting proposal.
7. The method of claim 1, wherein initiating a voting proposal transaction that includes a target smart contract comprises:
determining a proof of freeze to initiate a proposal;
initiating a voting proposal transaction that includes the target smart contract and the frozen attestation; wherein the freeze certification is to allow the blockchain system to freeze the asset of the initiator.
8. A method for executing an intelligent contract, the method being performed by a blockgeneration node in a blockchain system, the method comprising:
responding to a voting proposal transaction provided by an initiator in the block chain system, and acquiring a voting result; wherein the voting proposal affairs comprise target intelligent contracts; the target intelligent contract is an intelligent contract which is autonomously initiated by a user according to the requirement;
and if the voting is determined to pass according to the statistical voting result, controlling the target intelligent contract to be executed in the block chain system.
9. The method of claim 8, wherein responding to a voting proposal transaction provided by an initiator in a blockchain system and obtaining voting results comprises:
and if the current block height to be generated is detected to be the voting effective block height included in the voting proposal transaction, controlling the voting in the block chain system in response to the voting proposal transaction provided by the initiator.
10. The method of claim 8, wherein prior to responding to a voting proposal transaction provided by an initiator in the blockchain system, further comprising:
and determining whether the initiator has the voting proposal initiating authority of the target intelligent contract, and if not, shielding the voting proposal transaction.
11. The method of claim 8, wherein controlling execution of the target intelligent contract in a blockchain system comprises:
and controlling the target intelligent contract to be executed in the block chain system according to the parameter value of the target intelligent contract included in the voting proposal transaction.
12. The method of claim 8, wherein determining whether the vote passed according to the statistical voting result comprises:
and if the voting pass proportion value is larger than the voting effective proportion threshold value of the target intelligent contract included in the voting proposal transaction, determining that the voting pass is passed.
13. An apparatus for executing an intelligent contract, configured in a node in a blockchain system, the apparatus comprising:
the voting transaction initiating module is used for initiating a voting proposal transaction comprising the target intelligent contract; the target intelligent contract is an intelligent contract which is autonomously initiated by a user according to the requirement;
a voting transaction transmission module, configured to transmit the voting proposal transaction in the blockchain system, so that the block generation node performs the following operations: and responding to the voting proposal affair to vote, and executing the target intelligent contract if the voting is passed.
14. An apparatus for executing an intelligent contract, configured in a blockchain system, in a blockgeneration node, the apparatus comprising:
the voting response module is used for responding to the voting proposal affair provided by the initiator in the block chain system and acquiring a voting result; wherein the voting proposal affairs comprise target intelligent contracts; the target intelligent contract is an intelligent contract which is autonomously initiated by a user according to the requirement;
and the intelligent contract execution module is used for controlling the target intelligent contract to be executed in the block chain system if the voting is determined to pass according to the statistical voting result.
15. An apparatus, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of execution of a smart contract according to any of claims 1-7; or, implementing the execution method of a smart contract according to any of claims 8-12.
16. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method of execution of a smart contract according to any one of claims 1-7; or, implementing the execution method of a smart contract according to any of claims 8-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810660381.4A CN108965399B (en) | 2018-06-25 | 2018-06-25 | Intelligent contract execution method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810660381.4A CN108965399B (en) | 2018-06-25 | 2018-06-25 | Intelligent contract execution method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965399A CN108965399A (en) | 2018-12-07 |
CN108965399B true CN108965399B (en) | 2022-02-25 |
Family
ID=64486378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810660381.4A Active CN108965399B (en) | 2018-06-25 | 2018-06-25 | Intelligent contract execution method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965399B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020542B (en) | 2018-12-20 | 2020-05-19 | 阿里巴巴集团控股有限公司 | Data reading and writing method and device and electronic equipment |
CN109697670B (en) * | 2018-12-29 | 2021-06-04 | 杭州趣链科技有限公司 | Public link information shielding method without influence on credibility |
CN110162572B (en) * | 2019-04-29 | 2023-05-05 | 深圳市元征科技股份有限公司 | Policy execution method, server and computer storage medium |
CN110135803B (en) * | 2019-04-29 | 2023-12-08 | 深圳市元征科技股份有限公司 | Item management method and block chain link point equipment |
CN110096338B (en) * | 2019-05-10 | 2021-12-14 | 百度在线网络技术(北京)有限公司 | Intelligent contract execution method, device, equipment and medium |
CN110599370A (en) * | 2019-09-24 | 2019-12-20 | 腾讯科技(深圳)有限公司 | Property management method and device based on block chain and storage medium |
CN110766554A (en) * | 2019-09-29 | 2020-02-07 | 南京金宁汇科技有限公司 | Intelligent contract consensus method, system and storage medium based on multi-centralization management |
CN111769986B (en) * | 2020-06-29 | 2023-03-28 | 卓尔智联(武汉)研究院有限公司 | Man-machine cooperation method and device based on block chain and electronic equipment |
CN112037055B (en) * | 2020-08-17 | 2023-05-05 | 成都质数斯达克科技有限公司 | Transaction processing method, device, electronic equipment and readable storage medium |
CN112633922B (en) * | 2020-12-15 | 2023-07-25 | 网易(杭州)网络有限公司 | Game demand iteration method, device, equipment and storage medium |
CN112688775B (en) * | 2020-12-17 | 2023-01-06 | 中国工商银行股份有限公司 | Management method and device of alliance chain intelligent contract, electronic equipment and medium |
CN113193992B (en) * | 2021-04-16 | 2022-08-23 | 宁波图灵奇点智能科技有限公司 | Block chain platform, method and device, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106504085A (en) * | 2016-10-18 | 2017-03-15 | 北京天德科技有限公司 | A kind of DVP settlement methods based on block chain technology |
CN106709704A (en) * | 2016-11-23 | 2017-05-24 | 杭州秘猿科技有限公司 | Intelligent contract upgrading method based on permission chain |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
CN106919419A (en) * | 2017-02-03 | 2017-07-04 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | The update method and device of the intelligent contract program on block chain |
CN107025602A (en) * | 2017-02-24 | 2017-08-08 | 杭州象链网络技术有限公司 | A kind of financial asset transaction system construction method based on alliance's chain |
CN107784474A (en) * | 2016-08-24 | 2018-03-09 | 深圳市图灵奇点智能科技有限公司 | A kind of novel electron contract and its method performed automatically |
CN108111543A (en) * | 2018-02-06 | 2018-06-01 | 上海千加信息科技有限公司 | A kind of digital identity identifying system on block chain |
CN108196872A (en) * | 2017-12-27 | 2018-06-22 | 邵美 | The upgrade method of intelligent contract in a kind of block catenary system |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107438003B (en) * | 2016-05-27 | 2022-08-09 | 索尼公司 | Electronic device, method for electronic device, and information processing system |
CN106878071B (en) * | 2017-01-25 | 2020-09-15 | 上海钜真金融信息服务有限公司 | Block chain consensus mechanism based on Raft algorithm |
CN107590189B (en) * | 2017-08-10 | 2020-05-22 | 深圳先进技术研究院 | Intelligent contract execution method, device, equipment and storage medium |
CN107547529A (en) * | 2017-08-21 | 2018-01-05 | 集合智造(北京)餐饮管理有限公司 | A kind of method, system that shared retail is realized based on block chain |
-
2018
- 2018-06-25 CN CN201810660381.4A patent/CN108965399B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107784474A (en) * | 2016-08-24 | 2018-03-09 | 深圳市图灵奇点智能科技有限公司 | A kind of novel electron contract and its method performed automatically |
CN106504085A (en) * | 2016-10-18 | 2017-03-15 | 北京天德科技有限公司 | A kind of DVP settlement methods based on block chain technology |
CN106709704A (en) * | 2016-11-23 | 2017-05-24 | 杭州秘猿科技有限公司 | Intelligent contract upgrading method based on permission chain |
CN106778329A (en) * | 2016-11-28 | 2017-05-31 | 中国银行股份有限公司 | A kind of block chain intelligence contract template dynamic updating method, apparatus and system |
CN106919419A (en) * | 2017-02-03 | 2017-07-04 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | The update method and device of the intelligent contract program on block chain |
CN107025602A (en) * | 2017-02-24 | 2017-08-08 | 杭州象链网络技术有限公司 | A kind of financial asset transaction system construction method based on alliance's chain |
CN108196872A (en) * | 2017-12-27 | 2018-06-22 | 邵美 | The upgrade method of intelligent contract in a kind of block catenary system |
CN108111543A (en) * | 2018-02-06 | 2018-06-01 | 上海千加信息科技有限公司 | A kind of digital identity identifying system on block chain |
Also Published As
Publication number | Publication date |
---|---|
CN108965399A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108965399B (en) | Intelligent contract execution method, device, equipment and storage medium | |
CN108958787B (en) | Block chain system upgrading method, device, equipment and storage medium | |
CN108984645B (en) | Block chain processing method, device, equipment and storage medium | |
CN112637127B (en) | Cross-block chain communication method and device | |
CN109101664B (en) | Data transmission method, device, equipment and medium for lightweight node | |
CN109002349B (en) | Application program interaction method, implementation method, device, equipment and medium | |
CN109995523B (en) | Activation code management method and device and activation code generation method and device | |
CN108960797A (en) | Block generates and verification method, device, equipment and storage medium | |
CN108280020A (en) | Monitoring method and device of computer equipment, terminal and computer storage medium | |
CN112346751A (en) | Application program installation method and device, electronic equipment and storage medium | |
CN113935070B (en) | Data processing method, device and equipment based on block chain and storage medium | |
KR102036024B1 (en) | Method and system for vehicle security | |
CN111382694A (en) | Face recognition method and device and electronic equipment | |
CN111598544A (en) | Method and apparatus for processing information | |
KR101884129B1 (en) | METHOD OF CONTROLLING INTERNET OF THINGS(IoT) SENSORS USING MACHINE LEARNING AND APPARATUS THEREOF | |
CN115567283A (en) | Identity authentication method, device, electronic equipment, system and storage medium | |
KR20200132546A (en) | Cloud computing and blockchain based smart home system | |
CN113283893B (en) | Resource transfer processing method and device, storage medium and electronic equipment | |
KR102181835B1 (en) | Method for determining node with high influence, apparatus for the same, method for minimizing marketing cost in viral marketing and system for the same | |
CN101398876A (en) | Methods and systems for configuring a specific-use computing system | |
CN111104363B (en) | FPGA cloud platform using method, device, equipment and medium | |
CN115222389A (en) | Payment security control method and device, electronic equipment and storage medium | |
CN111091470B (en) | Multi-policy-sum data processing method and device, electronic equipment and storage medium | |
CN117238066B (en) | Unlocking method, passive electronic lock, electronic device and storage medium | |
CN108650267B (en) | Block chain data transmission method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |