CN108965399A - Execution method, apparatus, equipment and the storage medium of intelligent contract - Google Patents

Execution method, apparatus, equipment and the storage medium of intelligent contract Download PDF

Info

Publication number
CN108965399A
CN108965399A CN201810660381.4A CN201810660381A CN108965399A CN 108965399 A CN108965399 A CN 108965399A CN 201810660381 A CN201810660381 A CN 201810660381A CN 108965399 A CN108965399 A CN 108965399A
Authority
CN
China
Prior art keywords
ballot
motion
affairs
contract
intelligent 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.)
Granted
Application number
CN201810660381.4A
Other languages
Chinese (zh)
Other versions
CN108965399B (en
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.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201810660381.4A priority Critical patent/CN108965399B/en
Publication of CN108965399A publication Critical patent/CN108965399A/en
Application granted granted Critical
Publication of CN108965399B publication Critical patent/CN108965399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/1097Protocols 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 execution method, apparatus, equipment and the storage mediums of a kind of intelligent contract, this method comprises: initiating the ballot motion affairs including Intelligent target contract;The ballot motion affairs are transmitted in block catenary system, so that block is generated node and perform the following operations: the response ballot motion affairs are voted, and the Intelligent target contract is executed if voting through.The ballot motion affairs that block catenary system of embodiment of the present invention response internal node is initiated according to Intelligent target contract are voted, block catenary system performance objective intelligence contract is controlled after voting through in the ballot motion affairs for being associated with Intelligent target contract, user is met for the demand of Intelligent target contract and its executive mode, improves intelligent contract executes in block catenary system flexibility ratio and user experience.

Description

Execution method, apparatus, equipment and the storage medium of intelligent contract
Technical field
The present embodiments relate to block chain technical field more particularly to a kind of execution method, apparatus of intelligent contract, set Standby and storage medium.
Background technique
With the continuous development of Internet technology, a kind of decentralization and open and clear block chain technology is come into being. Block chain is the new application mould of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Formula.
Block catenary system executes corresponding affairs according to different intelligent contracts, so as to different affairs progress Processing, realizes corresponding function.For example, being voted by the intelligent contract with voting function, transferred accounts by having the function of Intelligent contract transfer accounts etc..In existing block catenary system, intelligent contract is pre-configured in block catenary system, to be located wait have When the affairs of reason, then executed according to corresponding intelligent contract.Carrying into execution a plan mainly for intelligent contract has direct execution;Or Sometime node is reached by timer detection to execute;Or it is executed if meeting preset execution condition.
However, the executive mode of existing intelligence contract is more single, user is only capable of relying on existing intelligent contract to handle Corresponding affairs, are unable to satisfy user demand.
Summary of the invention
The embodiment of the invention provides execution method, apparatus, equipment and the storage mediums of a kind of intelligent contract, being capable of foundation User demand executes specified intelligent contract.
In a first aspect, the embodiment of the invention provides a kind of execution methods of intelligent contract, by the section in block catenary system Point executes, which comprises
Initiate the ballot motion affairs including Intelligent target contract;
The ballot motion affairs are transmitted in block catenary system, so that block is generated node and are performed the following operations: response institute It states ballot motion affairs to vote, the Intelligent target contract is executed if voting through.
Second aspect, the embodiment of the invention provides a kind of execution methods of intelligent contract, by the area in block catenary system Block generates node and executes, which comprises
The ballot motion affairs that initiator provides in block catenary system are responded, and obtain voting results;Wherein, the ballot It include Intelligent target contract in motion affairs;
If the voting results determination according to statistics is voted through, control executes the Intelligent target in block catenary system Contract.
The third aspect, the embodiment of the invention provides a kind of executive devices of intelligent contract, are configured in block catenary system Node in, described device includes:
Ballot affairs initiation module, for initiating the ballot motion affairs including Intelligent target contract;
Business transmission module of voting makes block generate section for transmitting the ballot motion affairs in block catenary system Point performs the following operations: the response ballot motion affairs are voted, and the Intelligent target contract is executed if voting through.
Fourth aspect, the embodiment of the invention provides a kind of executive devices of intelligent contract, are configured in block catenary system Block generate node in, described device includes:
Polling response module for responding the ballot motion affairs that initiator provides in block catenary system, and obtains ballot As a result;It wherein, include Intelligent target contract in the ballot motion affairs;
Intelligent contract execution module controls if the voting results determination for according to statistics is voted through in block chain The Intelligent target contract is executed in system.
5th aspect, the embodiment of the invention provides a kind of equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the execution method of intelligent contract described in any embodiment of that present invention.
6th aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey Sequence realizes the execution method of intelligent contract described in any embodiment of that present invention when the program is executed by processor.
The embodiment of the present invention actively initiates the ballot motion including Intelligent target contract by the node in block catenary system Affairs, and by the ballot motion business transmission into block catenary system, so that block generates node and responds the ballot motion thing Business, control block catenary system are voted, and the Intelligent target contract is executed if voting through.Block chain of the embodiment of the present invention The ballot motion affairs that system response internal node is initiated according to Intelligent target contract are voted, and are closed being associated with Intelligent target Ballot motion affairs about control block catenary system performance objective intelligence contract after voting through, meet user for target The demand of intelligent contract and its executive mode improves intelligent contract executes in block catenary system flexibility ratio and user experience.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention one provides;
Fig. 2 is the flow chart provided by Embodiment 2 of the present invention for initiating ballot motion affairs;
Fig. 3 is the flow chart provided by Embodiment 2 of the present invention for initiating ballot motion affairs;
Fig. 4 is the flow chart provided by Embodiment 2 of the present invention for initiating ballot motion affairs;
Fig. 5 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention three provides;
Fig. 6 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention four provides;
Fig. 7 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention five provides;
Fig. 8 is a kind of structural schematic diagram of the executive device for intelligent contract that the embodiment of the present invention six provides;
Fig. 9 is a kind of structural schematic diagram of the executive device for intelligent contract that the embodiment of the present invention seven provides;
Figure 10 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides.
Specific embodiment
The embodiment of the present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this Locate described specific embodiment and is used only for explaining the embodiment of the present invention, rather than limitation of the invention.It further needs exist for Bright, only parts related to embodiments of the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention one provides, and the present embodiment can fit The case where for executing Client-initiated intelligence contract, this method are executed by the node in block catenary system, can be by a kind of intelligence The executive device of contract executes.This method specifically comprises the following steps:
S110, the ballot motion affairs including Intelligent target contract are initiated.
In the specific embodiment of the invention, Intelligent target contract refers to the intelligent contract that user independently initiates according to demand, The Intelligent target contract, which can be, to be pre-configured in block catenary system, is also possible to what user initiated at any time, and then target The execution of intelligent contract can be used as an affairs to be processed in block catenary system, for most or specific in block catenary system The verifying and ballot of node.Correspondingly, as long as the initiator that localized nodes are intelligent contract, which has, initiates Intelligent target contract Permission, localized nodes just have the ability to initiate the ballot motion affairs including Intelligent target contract, or the ballot motion thing initiated Business can be responded by block catenary system.
Preferably, before initiating the ballot motion affairs including Intelligent target contract, have from localized nodes and initiate to throw Selection target intelligence contract in the intelligent contract of tickets-raise up's case permission.
In the specific embodiment of the invention, before initiating the ballot motion affairs including Intelligent target contract, the machine section Point can be according to various ways such as the economic capability of itself, equity equity, hardware capabilities and stability, to determine that localized nodes have Have the intelligent contract for initiating ballot motion permission, and select from these intelligent contracts the intelligent contract currently needed to be implemented as Intelligent target contract proposes that the Intelligent target contract of Intelligent target contract and proposition can to ensure that localized nodes can have permission Implement effective.
The present embodiment can clearly vote the execution condition of motion affairs and the decision procedure of voting results, be initiated with this Ballot motion affairs including Intelligent target contract.Illustratively, the present embodiment can be by determining the block height that comes into force of voting Etc. information come the execution condition for motion affairs of clearly voting, can by the information such as the parameter value that determines Intelligent target contract come The execution condition of hard objectives intelligence contract, can also be by determining that ballot comes into force proportion threshold value come motion affairs of clearly voting The decision procedure etc. of voting results.
Specifically, the present embodiment can determine that ballot comes into force block height;It initiates to include Intelligent target contract and ballot life The ballot motion affairs of block height are imitated, if so that block is generated node detects that current block height to be generated is that ballot comes into force Block height, then the ballot motion affairs for responding initiator's offer are voted.It, can by the setting of block height of coming into force of voting The timing node started with restricted ballot.Due in block catenary system it is current go out the block time be it is fixed, can be to throwing The ticket block height that comes into force is set, that is, determines the Starting Executing Time node of ballot operation.For example, determining the block that comes into force of voting Height be 469739, and if then block generate node detect that current block height to be generated is 469739, respond initiation The ballot motion affairs just provided are voted.
Specifically, the executive mode due to different intelligent contract is different, the present embodiment is for needing parameter configuration Intelligent contract can also determine the parameter value of Intelligent target contract;Initiate the throwing including Intelligent target contract and parameter value Tickets-raise up's case affairs make block generate node according to parameter value, performance objective intelligence contract.Wherein, parameter value is according to corresponding Intelligent contract depending on.
Specifically, the present embodiment can also determine that the ballot of Intelligent target contract comes into force proportion threshold value, preferably from the machine section The ballot of point setting come into force the ballot that proportion threshold value and block catenary system are defaulted come into force select in proportion threshold value it is biggish as mesh The ballot for marking intelligent contract comes into force proportion threshold value, to initiate to include Intelligent target contract and its corresponding ballot comes into force ratio threshold The ballot motion affairs of value, make block generate node if it is determined that the ratio value voted through be greater than ballot motion affairs in include The ballot of Intelligent target contract comes into force proportion threshold value, it is determined that votes through.The decision procedure of voting results has been determined with this, has been The judgement of voting results provides foundation.
It is worth noting that, being with Intelligent target contract when initiating includes the ballot motion affairs of Intelligent target contract Basis, the present embodiment can according to above-mentioned three kinds of modes and other can initiate ballot motion affairs mode in it is any one Kind come initiate include Intelligent target contract ballot motion affairs, or can also be initiated according to wherein at least two kinds of combination Ballot motion affairs including Intelligent target contract.
In addition to this, the present embodiment considers that Intelligent target contract meets the user demand of its initiator, correspondingly, hair Side is played to need to pay certain cost for it.Therefore the present embodiment is initiating the ballot motion affairs including Intelligent target contract When, it can also determine that initiating motion freezes to prove, initiate to include Intelligent target contract and freeze the ballot motion affairs proved; Wherein, freeze to prove for allowing block catenary system to freeze the assets of initiator.
Illustratively, it is assumed that in certain specific block chain application, traditional intelligent contract and/or its executive mode are The specific rules and demand not being able to satisfy in application, therefore initiator can be according to itself initiation for motion affairs of voting Permission is determined for compliance with the Intelligent target contract and corresponding block height, the parameter value, life of voting of coming into force of voting of application demand Effect proportion threshold value or freeze prove etc. conditions, with this initiate include Intelligent target contract ballot motion affairs.
S120, the transmission ballot motion affairs in block catenary system, so that block is generated node and perform the following operations: response is thrown Tickets-raise up's case affairs are voted, the performance objective intelligence contract if voting through.
In the specific embodiment of the invention, when the initiator of performance objective intelligence contract initiates ballot motion affairs, then By the ballot motion business transmission into block catenary system, so that most nodes or specific node in block chain, and work as Preceding block generates node and receives ballot motion affairs.And then block generate node in block catenary system with the ballot motion All associated affairs of affairs exercise supervision, according to ballot motion affairs to the hair of block catenary system environment, Intelligent target contract It plays side and Intelligent target contract and the ballot associated content of motion affairs is determined, and determine whether according to result is determined Respond the ballot motion affairs.For example, the initiation of content can be associated with for Intelligent target contract according to block height, initiator Data information as defined in the ballot motion affairs such as permission is determined.If can vote the ballot motion affairs, area Most nodes or specific node in block chain vote to the ballot motion affairs.Block generates node according to ballot knot Fruit, responded if voting through Intelligent target contract carry out it is corresponding executes operation, i.e., foundation Intelligent target contract processing block Correspondence affairs in catenary system are realized according to user demand performance objective intelligence contract.
The technical solution of the present embodiment actively initiates the throwing including Intelligent target contract by the node in block catenary system Tickets-raise up's case affairs, and by the ballot motion business transmission into block catenary system, so that block generates node and responds the ballot Motion affairs, control block catenary system are voted, and the Intelligent target contract is executed if voting through.The embodiment of the present invention The ballot motion affairs that block catenary system response internal node is initiated according to Intelligent target contract are voted, and target is being associated with The ballot motion affairs of intelligent contract control block catenary system performance objective intelligence contract after voting through, meet user couple In Intelligent target contract and its demand of executive mode, the flexibility ratio and user that intelligent contract executes in block catenary system are improved Experience.
Embodiment two
The present embodiment on the basis of the above embodiment 1, provides a preferred implementation of the execution method of intelligent contract Mode can initiate the ballot motion affairs including Intelligent target contract according to different condition.Present embodiments provide three kinds of throwings The initiation mode of tickets-raise up's case affairs.
Firstly, the present embodiment can determine execution item when voting Intelligent target contract according to block height Part.Fig. 2 is the flow chart provided by Embodiment 2 of the present invention for initiating ballot motion affairs, as shown in Fig. 2, this method includes following Specific steps:
S210, the block height that comes into force of voting is determined.
In the specific embodiment of the invention, the timing node that can be started with restricted ballot.Block height in the present embodiment Refer to that the number of block on block link main chain can indicate the mark of block for single block.Correspondingly, ballot The block height that comes into force refers to when the block height of current block to be generated comes into force block height for ballot, then starts to vote. Due in block catenary system it is current go out the block time be it is fixed, the block height that can come into force to ballot is set, i.e., Determine the Starting Executing Time node of ballot operation.For example, determining ballot comes into force, block height is 469739.
S220, it initiates to include Intelligent target contract and ballot comes into force the ballot motion affairs of block height, generates block If node detects that current block height to be generated is the block height that comes into force of voting, the ballot motion of initiator's offer is responded Affairs are voted.
In the specific embodiment of the invention, determining that Intelligent target contract and the ballot for starting to vote come into force block When height, according to Intelligent target contract and the block height initiation ballot motion affairs that come into force of voting.The ballot motion affairs are used It generates node in instruction block to detect current block height, if detecting, current block height to be generated is ballot life Block height is imitated, then responds ballot motion affairs, and indicate most nodes in block chain or special joint to being associated with target The ballot motion affairs of intelligent contract are voted.
Illustratively, in the examples described above, ballot come into force block height be 469739.Then according to Intelligent target contract and Ballot come into force block height initiate comprising ballot come into force block height be 469739 ballot motion affairs so that block generate section Point moment detects whether current block height to be generated is 469739, and is determining that there are the blocks that block height is 469739 When generation, control block catenary system starts to vote and obtains voting results.Final vote come into force proportion threshold value to voting results into Row determines, if the ballot that the ratio value voted through is greater than the system default comes into force proportion threshold value, it is determined that it votes through, it can be with Control block catenary system performance objective intelligence contract.Wherein, if there is no associated throwing in the ballot motion affairs that initiator initiates Ticket comes into force proportion threshold value, then the proportion threshold value that can come into force according to the ballot of system default determines voting results;Conversely, then Voting results are determined according to the ballot motion affairs associated ballot proportion threshold value that comes into force.
Secondly, the present embodiment can determine the execution condition to Intelligent target contract according to parameter value.Fig. 3 is this hair The flow chart for the initiation ballot motion affairs that bright embodiment two provides, as shown in figure 3, this method comprising the following specific steps
S310, the parameter value for determining Intelligent target contract.
In the specific embodiment of the invention, the execution of the intelligent contract in part is carried out according to parameter.And then the present embodiment For needing to configure the intelligent contract of parameter, it can determine that the parameter of Intelligent target contract takes when initiating to vote motion affairs Value.
Illustratively, it is assumed that Intelligent target contract is for recording data, and which specify data memory formats.In turn The storage format for determining data type A is character string type, and the storage format of data type B is float.
S320, the ballot motion affairs including Intelligent target contract and parameter value are initiated, block is made to generate node foundation Parameter value, performance objective intelligence contract.
In the specific embodiment of the invention, when determining Intelligent target contract and its parameter value, closed according to Intelligent target About and parameter value initiates ballot motion affairs.The ballot motion affairs are used to indicate block and generate node according to parameter value And performance objective intelligence contract.Illustratively, in the examples described above, it is character that parameter value, which is the storage format of data type A, String type, the storage format of data type B are float.Then include according to Intelligent target contract and parameter value initiation The ballot motion affairs of data memory format, so that block generation node is associated according to affairs to be processed in block catenary system Data type, and parameter value as defined in ballot motion affairs, the data that data type is A are deposited with character string type Storage stores the data that data type is B with float.
Finally, the present embodiment can come into force proportion threshold value according to ballot to limit the decision condition of voting results.Fig. 4 is this Inventive embodiments two provide initiation ballot motion affairs flow chart, as shown in figure 4, this method comprising the following specific steps
S410, determine that the ballot of Intelligent target contract comes into force proportion threshold value.
In the specific embodiment of the invention, the ballot that there is default in block catenary system comes into force proportion threshold value, in addition, initiating Side can also set ballot and come into force proportion threshold value.For example, localized nodes, which can set ballot, comes into force proportion threshold value as 80%.Ballot The proportion threshold value that comes into force reflects the ratio of number of nodes and the whole number of nodes voted that approval Intelligent target contract executes Value, it is to be understood that ballot comes into force, and the higher the better for ratio, indicates that there are more nodes to accept this target intelligence in block chain The execution of energy contract.
Preferably, the ballot for obtaining the Intelligent target contract of initiator's setting comes into force proportion threshold value;If the ballot of setting is raw Effect proportion threshold value is equal to or less than system and comes into force proportion threshold value, then system is come into force proportion threshold value as the throwing of Intelligent target contract Ticket comes into force proportion threshold value;Otherwise, the ballot of setting proportion threshold value is come into force as the ballot of Intelligent target contract to come into force ratio threshold Value.
In the specific embodiment of the invention, when initiator's setting ballot comes into force proportion threshold value, then set from localized nodes The come into force ballot of proportion threshold value and system default of ballot come into force in proportion threshold value, select threshold value biggish one and be determined as throwing The ballot of tickets-raise up's case affairs comes into force proportion threshold value.
Illustratively, in the examples described above, it is assumed that the ballot of system default come into force proportion threshold value be 60%, then by with this The ballot of machine node sets, which comes into force, the 80% of proportion threshold value to be compared, that is, can determine that the ballot of localized nodes setting comes into force ratio Threshold value is that the vote ballot of motion affairs comes into force proportion threshold value, i.e., 80%.
S420, it initiates to include Intelligent target contract and ballot comes into force the ballot motion affairs of proportion threshold value, generates block Node ratio if it is determined that the ballot that the ratio value voted through is greater than the Intelligent target contract in ballot motion affairs included comes into force Threshold value, it is determined that vote through.
In the specific embodiment of the invention, determining that Intelligent target contract and the ballot for motion affairs of voting come into force ratio When threshold value, according to Intelligent target contract and vote motion affairs ballot come into force proportion threshold value initiate ballot motion affairs.It should Ballot motion affairs are used to indicate block and generate ballot motion of the node control block catenary system to Intelligent target contract is associated with Affairs are voted, and obtain voting results.It is final that voting results are determined according to the ballot determined the proportion threshold value that comes into force, Come into force proportion threshold value if the ratio value voted through is greater than the ballot, it is determined that vote through, can to Intelligent target contract into Row executes.
Illustratively, in the examples described above, ballot come into force proportion threshold value be 80%.Then according to Intelligent target contract and throwing Ticket come into force proportion threshold value initiate comprising ballot come into force proportion threshold value be 80% ballot motion affairs so that block generate node control Block catenary system processed starts to vote and obtains voting results.The final ballot according to 80% come into force proportion threshold value to voting results into Row determines, if the ratio value voted through is greater than 80%, it is determined that vote through, can execute to Intelligent target contract.
It is worth noting that, above-mentioned three kinds of conditions are not limited to for the initiation for motion affairs of voting, it can be according to target Depending on the concrete condition of intelligent contract.And ballot motion affairs can be initiated according to each independent condition, it can also be according to wherein The combination of at least two conditions come initiate ballot motion affairs.
The technical solution of the present embodiment, according to Intelligent target contract, by the associated parameter value of Intelligent target contract, The setting of proportion threshold value that the associated ballot of ballot motion affairs comes into force block height and ballot comes into force, ultimately generates and is associated with mesh Mark the ballot motion affairs of intelligent contract.Realize localized nodes to Intelligent target contract and ballot motion affairs it is customized, Convenient for realizing the execution to Intelligent target contract according to user demand, user experience and block catenary system performance are improved.
Embodiment three
The present embodiment on the basis of the above embodiment 1, provides a preferred implementation of the execution method of intelligent contract Mode can determine the initiation cost of Intelligent target contract.Fig. 5 is a kind of holding for intelligent contract that the embodiment of the present invention three provides The flow chart of row method, as shown in figure 5, this method comprising the following specific steps
S510, there is selection target intelligence contract in the intelligent contract for initiating ballot motion permission from localized nodes.
In the specific embodiment of the invention, as long as localized nodes, that is, Intelligent target contract initiator, which has, initiates target intelligence The permission of energy contract, localized nodes just have the ability to initiate the ballot motion affairs including Intelligent target contract, or the throwing initiated Tickets-raise up's case affairs can be responded.Therefore before initiating the ballot motion affairs including Intelligent target contract, localized nodes It can be according to various ways such as the economic capability of itself, equity equity, hardware capabilities and stability, to determine that localized nodes have The intelligent contract of ballot motion permission is initiated, and selects the intelligent contract currently needed to be implemented as mesh from these intelligent contracts Intelligent contract is marked, to ensure that localized nodes can have permission and can propose to implement effective intelligent contract.
S520, determine that initiating motion freezes to prove.
In the specific embodiment of the invention, freeze prove refer to initiated include Intelligent target contract ballot motion thing The proof that the assets certain to its that the initiator of business provides are freezed is freezed to prove for allowing block catenary system to initiation The assets of side are freezed.The part assets can be the assets that temporarily inaccurate initiator extracts or shifts, and be also possible to directly The assets of deduction, with for Intelligent target contract initiation and execution pay certain cost.
S530, it initiates to include Intelligent target contract and the ballot motion affairs for freezing proof.
In the specific embodiment of the invention, when determining Intelligent target contract and proving the freezing of assets of initiator, According to Intelligent target contract and freeze to prove to initiate ballot motion affairs.The ballot motion affairs are used to indicate block and generate section Point detects the initiator of Intelligent target contract, proves if detecting the presence of certain freezing of assets, responds ballot and mention Case affairs, and indicate most nodes in block chain or special joint to be associated with the ballot motion affairs of Intelligent target contract into Row ballot.
S540, the transmission ballot motion affairs in block catenary system, so that block is generated node and perform the following operations: response is thrown Tickets-raise up's case affairs are voted, the performance objective intelligence contract if voting through.
In the specific embodiment of the invention, when the initiator of performance objective intelligence contract initiates ballot motion affairs, then By the ballot motion business transmission into block catenary system, so that most nodes or specific node in block chain, and work as Preceding block generates node and receives ballot motion affairs.And then block generate node in block catenary system with the ballot motion All associated affairs of affairs exercise supervision, according to ballot motion affairs to the hair of block catenary system environment, Intelligent target contract It plays side and Intelligent target contract and the ballot associated content of motion affairs is determined, and determine whether according to result is determined Respond the ballot motion affairs.For example, the initiation of content can be associated with for Intelligent target contract according to block height, initiator Data information as defined in the ballot motion affairs such as permission and freezing of assets proof is determined.If can be to the ballot motion thing Business is voted, then the most nodes or specific node controlled in block chain vote to the ballot motion affairs, and obtain Take voting results.Block generates node according to voting results, and Intelligent target contract is responded if voting through and carries out corresponding hold Row operation is realized that is, according to the correspondence affairs in Intelligent target contract processing block catenary system according to user demand performance objective Intelligent contract.
The technical solution of the present embodiment is determined by the freezing of assets proof to Intelligent target contract initiator, is sent out It rises and includes Intelligent target contract and freeze the ballot motion affairs proved, and by the ballot motion business transmission to block catenary system In, so that block generates node verification and freezes to respond the ballot motion affairs after proving, control block catenary system is voted, The Intelligent target contract is executed if voting through.The embodiment of the present invention freezes the verifying proved by initiator, then to ballot By Client-initiated Intelligent target contract executed, realize and execute specified intelligent contract according to user demand, be The execution of Intelligent target contract brings guarantee.User demand is met, improves what intelligent contract in block catenary system executed Flexibility ratio and user experience.
Example IV
Fig. 6 is a kind of flow chart of the execution method for intelligent contract that the embodiment of the present invention four provides, and the present embodiment can fit The case where for executing Client-initiated intelligence contract, this method generate node by the block in block catenary system and execute, can be by A kind of executive device of intelligence contract executes.This method specifically comprises the following steps:
The ballot motion affairs that initiator provides in S610, response block catenary system, and obtain voting results.
It include Intelligent target contract in motion affairs of voting in the specific embodiment of the invention.Block in the present embodiment Generate node receive ballot motion affairs after, can by ballot motion affairs judgement, directly to block linkwork The ballot motion affairs that initiator provides in system respond, and control block catenary system is voted according to ballot motion affairs, And obtain voting results.
The present embodiment can also be according to ballot motion affairs, if to ballot time started node in judgement ballot motion affairs It is limited, then the moment detects block catenary system, when detecting that meeting the ballot that sets in ballot motion affairs starts When timing node, then ballot motion affairs are responded, control block catenary system is voted according to ballot motion affairs, and obtains throwing Ticket result.
Illustratively, it according to ballot motion affairs, comes into force block height if setting ballot in judgement ballot motion affairs, If then detecting, current block height to be generated is that the ballot for including of voting comes into force block height in motion affairs, responds hair The ballot motion affairs just transmitted are played, control block catenary system is voted according to ballot motion affairs, and obtains voting results.
If S620, according to statistics voting results determination vote through, control in block catenary system performance objective intelligence It can contract.
In the specific embodiment of the invention, block generates node after obtaining the voting results in block chain, can foundation The ballot proportion threshold value that comes into force of block catenary system default determines voting results, if the ratio value voted through is greater than this The ballot of system default comes into force proportion threshold value, it is determined that votes through, can control in block catenary system performance objective intelligence contract.
The present embodiment can also be according to ballot motion affairs, if coming into force proportion threshold value in judgement ballot motion affairs to ballot It being limited, then the ballot proportion threshold value that comes into force according to ballot motion affairs determines voting results, if vote through The ballot that ratio value is greater than ballot motion affairs comes into force proportion threshold value, it is determined that votes through, can control in block catenary system Performance objective intelligence contract.
After determining for the voting through of Intelligent target contract, block generates node and then controls in block chain the present embodiment Intelligent target contract is responded in system, to execute Client-initiated Intelligent target contract.
Preferably, the parameter value according to the Intelligent target contract for including in ballot motion affairs, controls in block linkwork Performance objective intelligence contract in system.
In the specific embodiment of the invention, block generates node according to the ballot associated Intelligent target contract of motion affairs Parameter value can execute corresponding issued transaction according to specific parameter value, realize the execution to Intelligent target contract.
The motion affairs it is worth noting that, above-mentioned response is voted, the block that control block catenary system is voted generate section Point, with acquisition voting results, it can be the same block that the block according to voting results performance objective intelligence contract, which generates node, Generate node.But variation is being constantly updated when generating node due to block current in block catenary system, it is above-mentioned two It may be that different moments corresponding different block generates node that block, which generates node,.The change that block generates node does not influence The normal execution of this embodiment scheme.
The technical solution of the present embodiment generates the throwing that node provides initiator in block catenary system by current block Tickets-raise up's case affairs respond, and control block catenary system is voted for Intelligent target contract, and obtains voting results;To If the voting results determination according to statistics is voted through, control responds Intelligent target contract in block catenary system, to user The Intelligent target contract of initiation is executed.Block of the embodiment of the present invention generates node response internal node and closes according to Intelligent target The ballot motion affairs about initiated, control block catenary system is voted, in the ballot motion thing for being associated with Intelligent target contract Business controls block catenary system performance objective intelligence contract after voting through, meets user for Intelligent target contract and its holds The demand of line mode improves intelligent contract executes in block catenary system flexibility ratio and user experience.
Embodiment five
The present embodiment on the basis of the above embodiment 1, provides a preferred implementation of the execution method of intelligent contract Mode, can differentiate whether initiator has initiation ballot motion permission.Fig. 7 is a kind of intelligence that the embodiment of the present invention five provides The flow chart of the execution method of contract, as shown in fig. 7, this method comprising the following specific steps
S710, determine whether initiator has the initiation ballot motion permission of Intelligent target contract, if so, executing step S720;If it is not, executing step S750.
In the specific embodiment of the invention, the ballot motion affairs that initiator provides in response block catenary system are thrown Before ticket, block generates node can be more according to the economic capability of initiator's node, equity equity, hardware capabilities and stability etc. Kind mode, to determine whether node has the initiation ballot motion permission of Intelligent target contract, to ensure that initiator's node can It proposes to implement effective Intelligent target contract.
The ballot motion affairs that initiator provides in S720, response block catenary system, and obtain voting results.
It include Intelligent target contract in motion affairs of voting in the specific embodiment of the invention.Block in the present embodiment Generate node receive ballot motion affairs after, can by ballot affairs judgement, if initiator's node has mesh The initiation ballot motion permission of intelligent contract, then the ballot motion affairs that can directly provide initiator in block catenary system are provided It is responded.Alternatively, according to ballot motion affairs, if further judgement ballot motion affairs in ballot time started node into Row limitation, then the moment detects block catenary system, when detecting that the ballot for meeting and setting in ballot motion affairs starts When intermediate node, then ballot motion affairs are responded.
Preferably, if detecting, current block height to be generated is that the ballot for including of voting comes into force block in motion affairs Highly, then the ballot motion affairs that control responds initiator's offer in block catenary system are voted.
In the specific embodiment of the invention, by being defined to ballot time started node, when block generates node inspection When survey reaches ballot time started node, then ballot motion affairs are responded, and then controls block catenary system according to ballot motion Affairs are voted, and obtain voting results.
If S730, the ratio value voted through are greater than the proportion threshold value that comes into force of voting, it is determined that vote through.
In the specific embodiment of the invention, when poll closing or polling hours end, block generates node can foundation The ballot of block catenary system default comes into force proportion threshold value, or can be associated according to Intelligent target contract in ballot motion affairs Ballot comes into force proportion threshold value, determines voting results.Only it is greater than the ratio threshold that comes into force of voting in the ratio value voted through Value, can just be judged to voting through.
Preferably, if the ratio value voted through is greater than the ballot life of the Intelligent target contract in ballot motion affairs included Imitate proportion threshold value, it is determined that vote through.
In the specific embodiment of the invention, the ballot proportion threshold value that comes into force for including in motion affairs of voting can be block chain The ballot of system default comes into force proportion threshold value, or the ballot of initiator's setting of Intelligent target contract comes into force ratio threshold Value, the two select the ballot of its wonderful works ballot motion affairs to come into force proportion threshold value.Equally it is greater than in the ratio value voted through and throws The ballot for including in tickets-raise up's case affairs comes into force proportion threshold value, can just be judged to voting through.
S740, control performance objective intelligence contract in block catenary system.
In the specific embodiment of the invention, after determining for the voting through of Intelligent target contract, block generates node Then control responds Intelligent target contract in block catenary system, controls Intelligent target contract association affairs involved in block catenary system Node performance objective execute contract.
Preferably, the parameter value according to the Intelligent target contract for including in ballot motion affairs, controls in block linkwork Performance objective intelligence contract in system.
Specifically, the executive mode due to different intelligent contract is different, the present embodiment is for needing parameter configuration Intelligent contract, block generates node can also be according to the parameter value for the Intelligent target contract for including in ballot motion affairs, control The node performance objective of Intelligent target contract association affairs involved in block catenary system processed executes contract.
S750, the ballot motion affairs are shielded.
The technical solution of the present embodiment generates node to motion affairs of voting in block catenary system by current block The permission of initiator determines, so that only response has the ballot motion affairs for initiating ballot motion permission, controls block chain System is voted for Intelligent target contract, and obtains voting results;Finally according to the proportion threshold value that comes into force of voting, however, it is determined that throw Ticket passes through, then control responds Intelligent target contract in block catenary system, executes to Client-initiated Intelligent target contract. Block of the embodiment of the present invention generates the ballot motion affairs that node response internal node is initiated according to Intelligent target contract, control zone Block catenary system is voted, and block catenary system is controlled after voting through in the ballot motion affairs for being associated with Intelligent target contract Performance objective intelligence contract meets user for the demand of Intelligent target contract and its executive mode, improves block linkwork The flexibility ratio and user experience that intelligent contract executes in system.
Embodiment six
Fig. 8 is a kind of structural schematic diagram of the executive device for intelligent contract that the embodiment of the present invention six provides, the present embodiment It is applicable to the case where executing Client-initiated intelligence contract, which can realize that intelligence described in any embodiment of that present invention is closed Execution method about is configured in the node in block catenary system.The device specifically includes:
Ballot affairs initiation module 810, for initiating the ballot motion affairs including Intelligent target contract;
Business transmission module 820 of voting generates block for transmitting the ballot motion affairs in block catenary system Node performs the following operations: the response ballot motion affairs are voted, and the Intelligent target is executed if voting through and is closed About.
Preferably, the ballot affairs initiation module 810 includes polling hours node determination unit 8101;When the ballot Intermediate node determination unit 8101, comprising:
The ballot block height that comes into force determines subelement, for determining that ballot comes into force block height;
Affairs of voting initiate subelement, include the Intelligent target contract and the block height that comes into force of voting for initiating Ballot motion affairs, if so that the block is generated node detects that current block height to be generated is that the ballot comes into force area Block height then responds the ballot motion affairs that the initiator provides and votes.
Preferably, the ballot affairs initiation module 810 includes that contract executes condition determining unit 8102;The contract is held Row condition determining unit 8102, comprising:
Parameter value determines subelement, for determining the parameter value of the Intelligent target contract;
The ballot affairs initiate subelement, for initiating the throwing including the Intelligent target contract and the parameter value Tickets-raise up's case affairs make the block generate node according to the parameter value, execute the Intelligent target contract.
Preferably, the ballot affairs initiation module 810 includes voting threshold value determination unit 8103 through;The ballot is logical Cross threshold value determination unit 8103, comprising:
The ballot proportion threshold value that comes into force determines subelement, for determining that the ballot of the Intelligent target contract comes into force ratio threshold Value;
The ballot affairs initiate subelement, include the Intelligent target contract and the ratio that comes into force of voting for initiating The ballot motion affairs of threshold value make the block generate node if it is determined that the ratio value voted through is greater than the ballot motion thing The ballot for the Intelligent target contract for including in business comes into force proportion threshold value, it is determined that votes through.
Preferably, the ballot proportion threshold value that comes into force determines subelement, is specifically used for:
The ballot for obtaining the Intelligent target contract of initiator's setting comes into force proportion threshold value;
If the ballot of setting comes into force, proportion threshold value comes into force proportion threshold value equal to or less than system, and system is come into force ratio threshold Value comes into force proportion threshold value as the ballot of Intelligent target contract;Otherwise, the ballot of setting is come into force into proportion threshold value as target intelligence Can the ballot of contract come into force proportion threshold value.
Further, described device further include:
Contract choice module 830, for it is described initiate include Intelligent target contract ballot motion affairs before, from this Machine node has selection target intelligence contract in the intelligent contract for initiating ballot motion permission.
Preferably, ballot affairs initiation module 810 further includes freezing of assets unit 8104, the freezing of assets unit 8104, comprising:
Freeze to prove to determine subelement, freezes to prove for determining initiation motion;
The ballot affairs initiate subelement, include the Intelligent target contract and the throwing for freezing to prove for initiating Tickets-raise up's case affairs;Wherein, described to freeze to prove for allowing block catenary system to freeze the assets of initiator.
The technical solution of the present embodiment realizes Intelligent target contract by the mutual cooperation between each functional module Selection, the determination of polling hours node, the determination of contract parameter value, the determination for voting threshold value through, ballot motion affairs Initiation and motion affairs of voting the functions such as transmission.Block catenary system of the embodiment of the present invention responds internal node according to target The ballot motion affairs that intelligent contract is initiated are voted, logical through voting in the ballot motion affairs for being associated with Intelligent target contract Later block catenary system performance objective intelligence contract is controlled, meets user for the need of Intelligent target contract and its executive mode It asks, improves the flexibility ratio and user experience that intelligent contract executes in block catenary system.
Embodiment seven
Fig. 9 is a kind of structural schematic diagram of the executive device for intelligent contract that the embodiment of the present invention seven provides, the present embodiment It is applicable to the case where executing Client-initiated intelligence contract, which can realize that intelligence described in any embodiment of that present invention is closed Execution method about is configured at the block in block catenary system and generates in node.The device specifically includes:
Polling response module 910 for responding the ballot motion affairs that initiator provides in block catenary system, and obtains throwing Ticket result;It wherein, include Intelligent target contract in the ballot motion affairs;
Intelligent contract execution module 920 controls if the voting results determination for according to statistics is voted through in block The Intelligent target contract is executed in catenary system.
Preferably, the polling response module 910, is specifically used for:
If detecting, current block height to be generated is that the ballot for including comes into force block height in the ballot motion affairs Degree, then the ballot motion affairs that control responds that the initiator provides in the block catenary system are voted.
Further, described device further include:
Permission determining module 930, for it is described response block catenary system in initiator provide ballot motion affairs it Before, determine whether the initiator has the initiation ballot motion permission of the Intelligent target contract, if it is not, then shielding the throwing Tickets-raise up's case affairs.
Preferably, the intelligent contract execution module 920 includes intelligent contract execution unit 9201;The intelligence contract is held Row unit 9201, is specifically used for:
According to the parameter value for the Intelligent target contract for including in the ballot motion, control in block catenary system Execute the Intelligent target contract.
Preferably, the intelligent contract execution module 920 includes voting determination unit 9202 through;It is described to vote through really Order member 9202, is specifically used for:
If the ballot that the ratio value voted through is greater than the Intelligent target contract in the ballot motion affairs included comes into force Proportion threshold value, it is determined that vote through.
The technical solution of the present embodiment realizes initiator's node weight by the mutual cooperation between each functional module Determination, the detection of polling hours node, the response for motion affairs of voting, the judgement of voting results and the Intelligent target contract of limit The functions such as execution.Block of the embodiment of the present invention generates the ballot that node response internal node is initiated according to Intelligent target contract and mentions Case affairs, control block catenary system is voted, in the ballot motion affairs for being associated with Intelligent target contract after voting through Block catenary system performance objective intelligence contract is controlled, meets user for the demand of Intelligent target contract and its executive mode, Improve the flexibility ratio and user experience that intelligent contract executes in block catenary system.
Embodiment eight
Figure 10 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides, and Figure 10, which is shown, to be suitable for being used to realizing The block diagram of the example devices of embodiment of the embodiment of the present invention.The equipment that Figure 10 is shown is only an example, should not be to this The function and use scope of inventive embodiments bring any restrictions.
The equipment 12 that Figure 10 is shown is only an example, should not function to the embodiment of the present invention and use scope bring Any restrictions.
As shown in Figure 10, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor 16, system storage 28, different system components (including system storage 28 and processing are connected Device 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Figure 10 do not show, commonly referred to as " hard disk drive ").Although being not shown in Figure 10, can provide Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.System storage 28 may include that at least one program produces Product, the program product have one group of (for example, at least one) program module, these program modules are configured to perform of the invention real Apply the function of each embodiment of example.
Program/utility 40 with one group of (at least one) program module 42 can store and store in such as system In device 28, such program module 42 includes but is not limited to operating system, one or more application program, other program modules And program data, it may include the realization of network environment in each of these examples or certain combination.Program module 42 Usually execute the function and/or method in described embodiment of the embodiment of the present invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 uses other hardware and/or software module, including but not limited to: microcode, device driver, redundant processor, outer Portion's disk drive array, RAID system, tape drive and data backup storage system etc..
The program that processor 16 is stored in system storage 28 by operation, thereby executing various function application and number According to processing, such as realize the execution method of intelligence contract provided by the embodiment of the present invention.
Embodiment nine
The embodiment of the present invention nine also provides a kind of computer readable storage medium, be stored thereon with computer program (or For computer executable instructions), for executing the execution method of intelligent contract, this method packet when which is executed by processor It includes:
Initiate the ballot motion affairs including Intelligent target contract;
The ballot motion affairs are transmitted in block catenary system, so that block is generated node and are performed the following operations: response institute It states ballot motion affairs to vote, the Intelligent target contract is executed if voting through.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
Can with one or more programming languages or combinations thereof come write for execute the embodiment of the present invention operation Computer program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being implemented by above embodiments to the present invention Example is described in further detail, but the embodiment of the present invention is not limited only to above embodiments, is not departing from structure of the present invention It can also include more other equivalent embodiments in the case where think of, and the scope of the present invention is determined by scope of the appended claims It is fixed.

Claims (16)

1. a kind of execution method of intelligence contract, which is characterized in that executed by the node in block catenary system, the method packet It includes:
Initiate the ballot motion affairs including Intelligent target contract;
The ballot motion affairs are transmitted in block catenary system, so that block is generated node and are performed the following operations: responding the throwing Tickets-raise up's case affairs are voted, and the Intelligent target contract is executed if voting through.
2. the method according to claim 1, wherein described initiate the ballot motion thing including Intelligent target contract Business, comprising:
Determine the block height that comes into force of voting;
It initiates to include the Intelligent target contract and the ballot comes into force the ballot motion affairs of block height, keep the block raw If detecting that current block height to be generated is the block height that comes into force of voting at node, responds the initiator and provide Ballot motion affairs vote.
3. the method according to claim 1, wherein described initiate the ballot motion thing including Intelligent target contract Business, comprising:
Determine the parameter value of the Intelligent target contract;
Initiate include the Intelligent target contract and the parameter value ballot motion affairs, make the block generate node according to According to the parameter value, the Intelligent target contract is executed.
4. the method according to claim 1, wherein described initiate the ballot motion thing including Intelligent target contract Business, comprising:
Determine that the ballot of the Intelligent target contract comes into force proportion threshold value;
It initiates to include the Intelligent target contract and the ballot comes into force the ballot motion affairs of proportion threshold value, keep the block raw At node if it is determined that the ratio value voted through is greater than the ballot life of the Intelligent target contract in the ballot motion affairs included Imitate proportion threshold value, it is determined that vote through.
5. according to the method described in claim 4, the ratio it is characterized in that, the ballot of the determination Intelligent target contract comes into force Example threshold value, comprising:
The ballot for obtaining the Intelligent target contract of initiator's setting comes into force proportion threshold value;
If the ballot of setting comes into force, proportion threshold value comes into force proportion threshold value equal to or less than system, and the system proportion threshold value that comes into force is made It comes into force proportion threshold value for the ballot of Intelligent target contract;Otherwise, the ballot of setting proportion threshold value is come into force as Intelligent target to close Ballot about comes into force proportion threshold value.
6. the method according to claim 1, wherein initiating the ballot motion including Intelligent target contract described Before affairs, further includes:
There is selection target intelligence contract in the intelligent contract for initiating ballot motion permission from localized nodes.
7. the method according to claim 1, wherein described initiate the ballot motion thing including Intelligent target contract Business, comprising:
Determining initiation motion is freezed to prove;
It initiates to include the Intelligent target contract and the ballot motion affairs for freezing to prove;Wherein, described to freeze to prove to use The assets of initiator are freezed in permission block catenary system.
8. a kind of execution method of intelligence contract, which is characterized in that node is generated by the block in block catenary system and is executed, it is described Method includes:
The ballot motion affairs that initiator provides in block catenary system are responded, and obtain voting results;Wherein, the ballot motion It include Intelligent target contract in affairs;
If the voting results determination according to statistics is voted through, control executes the Intelligent target in block catenary system and closes About.
9. according to the method described in claim 8, it is characterized in that, the ballot that initiator provides in the response block catenary system Motion affairs, and obtain voting results, comprising:
If detecting, current block height to be generated is that the ballot for including comes into force block height in the ballot motion affairs, Control responds the ballot motion affairs that the initiator provides in the block catenary system and votes.
10. according to the method described in claim 8, it is characterized in that, initiator's offer in the response block catenary system Before motion affairs of voting, further includes:
Determine whether the initiator has the initiation ballot motion permission of the Intelligent target contract, if it is not, then described in shielding Ballot motion affairs.
11. according to the method described in claim 8, it is characterized in that, the control executes the target in block catenary system Intelligent contract, comprising:
According to the parameter value for the Intelligent target contract for including in the ballot motion affairs, control in block catenary system Execute the Intelligent target contract.
12. according to the method described in claim 8, it is characterized in that, according to statistics voting results determine ballot whether pass through, Include:
The ratio if ballot that the ratio value voted through is greater than the Intelligent target contract in the ballot motion affairs included comes into force Threshold value, it is determined that vote through.
13. a kind of executive device of intelligence contract, which is characterized in that be configured in the node in block catenary system, described device Include:
Ballot affairs initiation module, for initiating the ballot motion affairs including Intelligent target contract;
Business transmission module of voting makes block generate node and holds for transmitting the ballot motion affairs in block catenary system The following operation of row: the response ballot motion affairs are voted, and the Intelligent target contract is executed if voting through.
14. a kind of executive device of intelligence contract, which is characterized in that it is configured at the block in block catenary system and generates in node, Described device includes:
Polling response module for responding the ballot motion affairs that initiator provides in block catenary system, and obtains voting results; It wherein, include Intelligent target contract in the ballot motion affairs;
Intelligent contract execution module controls if the voting results determination for according to statistics is voted through in block catenary system It is middle to execute the Intelligent target contract.
15. a kind of equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as the execution method of intelligent contract of any of claims 1-7;Alternatively, realizing as any in claim 8-12 The execution method of intelligent contract described in.
16. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The execution method such as intelligent contract of any of claims 1-7 is realized when execution;Alternatively, realizing such as claim 8- The execution method of intelligent contract described in any one of 12.
CN201810660381.4A 2018-06-25 2018-06-25 Intelligent contract execution method, device, equipment and storage medium Active CN108965399B (en)

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 true CN108965399A (en) 2018-12-07
CN108965399B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN110096338A (en) * 2019-05-10 2019-08-06 百度在线网络技术(北京)有限公司 Intelligent contract executes method, apparatus, equipment and medium
CN110135803A (en) * 2019-04-29 2019-08-16 深圳市元征科技股份有限公司 A kind of transaction management method and block chain node device
CN110162572A (en) * 2019-04-29 2019-08-23 深圳市元征科技股份有限公司 Policy execution method, server and computer storage medium
CN110766554A (en) * 2019-09-29 2020-02-07 南京金宁汇科技有限公司 Intelligent contract consensus method, system and storage medium based on multi-centralization management
TWI706280B (en) * 2018-12-20 2020-10-01 香港商阿里巴巴集團服務有限公司 Data reading and writing method and device, electronic equipment
CN111769986A (en) * 2020-06-29 2020-10-13 卓尔智联(武汉)研究院有限公司 Man-machine cooperation method and device based on block chain and electronic equipment
CN112037055A (en) * 2020-08-17 2020-12-04 成都质数斯达克科技有限公司 Transaction processing method and device, electronic equipment and readable storage medium
CN112633922A (en) * 2020-12-15 2021-04-09 网易(杭州)网络有限公司 Game demand iteration method, device, equipment and storage medium
CN112688775A (en) * 2020-12-17 2021-04-20 中国工商银行股份有限公司 Management method and device of alliance chain intelligent contract, electronic equipment and medium
CN113193992A (en) * 2021-04-16 2021-07-30 宁波图灵奇点智能科技有限公司 Block chain platform, method and device, computer equipment and storage medium

Citations (12)

* Cited by examiner, † Cited by third party
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
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
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
US20170346637A1 (en) * 2016-05-27 2017-11-30 Sony Corporation Electronic apparatus, method for electronic apparatus and information processing system
CN107547529A (en) * 2017-08-21 2018-01-05 集合智造(北京)餐饮管理有限公司 A kind of method, system that shared retail is realized based on block chain
CN107590189A (en) * 2017-08-10 2018-01-16 深圳先进技术研究院 Intelligent contract performs method, apparatus, equipment and storage medium
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170346637A1 (en) * 2016-05-27 2017-11-30 Sony Corporation Electronic apparatus, method for electronic apparatus and information processing system
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
CN106878071A (en) * 2017-01-25 2017-06-20 上海钜真金融信息服务有限公司 A kind of block chain common recognition mechanism based on Raft algorithms
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
CN107590189A (en) * 2017-08-10 2018-01-16 深圳先进技术研究院 Intelligent contract performs method, apparatus, 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
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

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI706280B (en) * 2018-12-20 2020-10-01 香港商阿里巴巴集團服務有限公司 Data reading and writing method and device, electronic equipment
US11200226B2 (en) 2018-12-20 2021-12-14 Advanced New Technologies Co., Ltd. Data read and write method and apparatus, and electronic device
CN109697670A (en) * 2018-12-29 2019-04-30 杭州趣链科技有限公司 A kind of public chain information screen method not influencing confidence level
CN110135803A (en) * 2019-04-29 2019-08-16 深圳市元征科技股份有限公司 A kind of transaction management method and block chain node device
CN110162572A (en) * 2019-04-29 2019-08-23 深圳市元征科技股份有限公司 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
CN110096338A (en) * 2019-05-10 2019-08-06 百度在线网络技术(北京)有限公司 Intelligent contract executes method, apparatus, equipment and 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
CN111769986A (en) * 2020-06-29 2020-10-13 卓尔智联(武汉)研究院有限公司 Man-machine cooperation method and device based on block chain and electronic equipment
CN112037055A (en) * 2020-08-17 2020-12-04 成都质数斯达克科技有限公司 Transaction processing method and device, electronic equipment and readable storage medium
CN112037055B (en) * 2020-08-17 2023-05-05 成都质数斯达克科技有限公司 Transaction processing method, device, electronic equipment and readable storage medium
CN112633922A (en) * 2020-12-15 2021-04-09 网易(杭州)网络有限公司 Game demand iteration method, device, equipment and 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
CN112688775A (en) * 2020-12-17 2021-04-20 中国工商银行股份有限公司 Management method and device of alliance chain intelligent contract, electronic equipment and medium
CN113193992A (en) * 2021-04-16 2021-07-30 宁波图灵奇点智能科技有限公司 Block chain platform, method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108965399B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN108965399A (en) Execution method, apparatus, equipment and the storage medium of intelligent contract
CN108958787A (en) Block catenary system upgrade method, device, equipment and storage medium
CN109145680A (en) A kind of method, apparatus, equipment and computer storage medium obtaining obstacle information
CN105283836B (en) Equipment, method, apparatus and the computer readable storage medium waken up for equipment
CN109188457A (en) Generation method, device, equipment, storage medium and the vehicle of object detection frame
CN109002297A (en) Dispositions method, device, equipment and the storage medium of common recognition mechanism
CN106951627A (en) Emulation test method, device, equipment and the computer-readable recording medium of Vehicular automatic driving
CN103294939B (en) For the method and system of virtual avatar authentication
CN109670413A (en) Face living body verification method and device
CN109951547A (en) Transactions requests method for parallel processing, device, equipment and medium
CN108804706A (en) A kind of block chain data processing method, device, equipment and storage medium
CN109961792A (en) The method and apparatus of voice for identification
CN108399752A (en) A kind of driving infractions pre-judging method, device, server and medium
CN109712392A (en) Parking information processing method, device, equipment and storage medium based on block chain
CN109353345A (en) Control method for vehicle, device, equipment, medium and vehicle
CN108665271A (en) Block chain data processing method, device, equipment and storage medium
CN108182270A (en) Search for content transmission and searching method, smart pen, search terminal and storage medium
CN109101662A (en) Block generation method, device, equipment and storage medium
CN109213828A (en) Block generation method, device, equipment and storage medium
CN107943724A (en) A kind of method, apparatus, terminal device and storage medium for finding external equipment
CN110322321A (en) Electronic bill assignment method, device, equipment and medium based on block chain
US20200410988A1 (en) Information processing device, information processing system, and information processing method, and program
CN110223435A (en) Object random distribution approach, device, computer storage medium and electronic equipment
CN110706691B (en) Voice verification method and device, electronic equipment and computer readable storage medium
CN116301381A (en) Interaction method, related equipment and system

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