CN110264190A - Triggering method, device, equipment and the storage medium of intelligent contract - Google Patents
Triggering method, device, equipment and the storage medium of intelligent contract Download PDFInfo
- Publication number
- CN110264190A CN110264190A CN201910376461.1A CN201910376461A CN110264190A CN 110264190 A CN110264190 A CN 110264190A CN 201910376461 A CN201910376461 A CN 201910376461A CN 110264190 A CN110264190 A CN 110264190A
- Authority
- CN
- China
- Prior art keywords
- contract
- type
- user
- trigger condition
- triggering
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012544 monitoring process Methods 0.000 claims abstract description 30
- 230000005540 biological transmission Effects 0.000 claims abstract description 28
- 230000001960 triggered effect Effects 0.000 claims description 14
- 238000012986 modification Methods 0.000 claims description 12
- 230000004048 modification Effects 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 239000000306 component Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention provides triggering method, device, equipment and the storage medium of a kind of intelligent contract, i.e. when receiving the contract register instruction of user's transmission, the trigger condition type in the contract register instruction is obtained, and judges whether the trigger condition type is customized triggering type;If the trigger condition is customized triggering type, the condition script of user's upload is obtained, and the condition script is added to the caching of the registration in block chain;When monitoring that meeting the affairs that the condition script defines occurs, then corresponding contract transaction is executed according to default intelligent contract.The present invention is when monitoring to meet the affairs of the triggering rule, execute the corresponding contract transaction of intelligent contract, realize the automatic execution of contract, without calling business personnel's server to carry out contract calling, save contract executory cost, the execution efficiency for improving contract solves the high technical problem of the executory cost of existing intelligent contract.
Description
Technical field
The present invention relates to field of computer technology more particularly to a kind of triggering method, device, equipment and the meters of intelligent contract
Calculation machine readable storage medium storing program for executing.
Background technique
With the development of science and technology, the application of block chain also becomes increasingly popular.Block chain is that an internet protocol is negotiated peace a kind of base
The data structure of plinth.It is that most important application protocol is the same in Internet application layer just as HTTP, block chain is also application layer
In a point-to-point transmission agreement.On protocol basis, block chain jointly defines distributed account book by " block " and " chain ".
" block " is similar to the conclusion of the business record in securities trading, has recorded the equity transfer relationship of all generations in special time period;This
One " block " " chain " is constituted there is stringent and unique successive inheritance between " block " a bit.Block chain is distinctive
Mechanism has ensured the reasonability and uniqueness of " block " record content and successive inheritance, this process is not rely on specific
Central node.Intelligent contract is the core component of block chain, for realizing the service logic operated on block chain.
But since the execution of existing intelligent contract needs the calling by service server, increase the executory cost of contract.
Therefore, how to solve the problem of the executory cost of existing intelligent contract it is high be current urgent need to resolve.
Summary of the invention
The main purpose of the present invention is to provide a kind of triggering method of intelligent contract, device, equipment and computer-readable
Storage medium, it is intended to solve the high technical problem of the executory cost of existing intelligent contract.
To achieve the above object, the present invention provides a kind of triggering method of intelligent contract, the triggering side of the intelligence contract
Method the following steps are included:
When receiving the contract register instruction of user's transmission, the trigger condition class in the contract register instruction is obtained
Type, and judge whether the trigger condition type is customized triggering type;
If the trigger condition is customized triggering type, the condition script of user's upload is obtained, and by the condition
Script is added to the caching of the registration in block chain;
When monitoring that meeting the affairs that the condition script defines occurs, then executed according to default intelligent contract corresponding
Contract transaction.
Optionally, described when monitoring that meeting the affairs that the condition script defines occurs, then it is closed according to default intelligence
After the step of about executing the transaction of corresponding contract, further includes:
When receiving the inquiry instruction of user's transmission, obtain in the identity and the inquiry instruction of active user
Information to be checked, and it is described to be checked based on zero-knowledge proof and the identity to judge whether the active user has
The information of information reads permission;
If there is the active user information of the information to be checked to read permission, obtains and show described to be checked
Information is checked so as to the active user.
Optionally, described when receiving the inquiry instruction of user's transmission, obtain identity and the institute of active user
The information to be checked in inquiry instruction is stated, and judges whether the active user has based on zero-knowledge proof and the identity
Have the information to be checked information read permission the step of after, further includes:
If the information that the active user does not have the information to be checked reads permission, generates and show currently and do not have
The reading permission of the information to be checked;
It obtains the corresponding user read permission of the active user, and is shown according to the user read permission described current
The relevant information that user can be read, so that the active user checks.
Optionally, described when receiving the contract register instruction of user's transmission, it obtains in the contract register instruction
Trigger condition type, and after judging the step of whether the trigger condition type is customized triggering type, further includes:
If the trigger condition type is time trigger type, the triggered time in contract register instruction is obtained, by institute
Stating the triggered time is added to registration caching, and when monitoring time variable is the triggered time, according to the intelligence
Contract executes corresponding contract transaction.
Optionally, described when receiving the contract register instruction of user's transmission, it obtains in the contract register instruction
Trigger condition type, and after judging the step of whether the trigger condition type is customized triggering type, further includes:
If the trigger condition type is that block chain height triggers type, the block chain obtained in contract register instruction is high
Threshold value is spent, the block chain height threshold is added to the registration and is cached, and is monitoring that block chain height variable is described
When block chain height threshold, corresponding contract is executed according to the intelligent contract and is traded.
Optionally, described when receiving the contract register instruction of user's transmission, it obtains in the contract register instruction
Trigger condition type, and judge that the step of whether the trigger condition type is customized triggering type includes:
When receiving the contract register instruction of user's transmission, the verifying signature of the user is obtained, and is tested according to described
Signed certificate name judges whether the user has registration permission;
It prescribes a time limit in the user with registration rights, obtains the trigger condition type in the contract register instruction, and judge
Whether the trigger condition type is customized triggering type.
Optionally, described when monitoring that meeting the affairs that the condition script defines occurs, then it is closed according to default intelligence
After the step of about executing the transaction of corresponding contract, further includes:
When receiving trigger condition modification instruction, the target trigger condition in the trigger condition modification instruction is obtained,
And the target trigger condition is replaced into the registered trigger condition that the registration caching conditional script defines;
Corresponding condition is generated according to the registered trigger condition and target trigger condition and changes reminder message, and will
The condition variation reminder message is sent to contract member, to remind the contract member.
In addition, to achieve the above object, the present invention also provides a kind of trigger device of intelligent contract, the intelligence contract
Trigger device includes:
Type judging module is triggered, for when receiving the contract register instruction of user's transmission, obtaining the contract note
Trigger condition type in volume instruction, and judge whether the trigger condition type is customized triggering type;
Condition script registration module obtains user's upload if being customized triggering type for the trigger condition
Condition script, and the condition script is added to the caching of the registration in block chain;
Intelligent contract execution module, for when monitoring to meet the affairs that the condition script defines and occurring, then basis
Default intelligence contract executes corresponding contract transaction.
In addition, to achieve the above object, the present invention also provides a kind of triggering equipment of intelligent contract, the intelligence contract
Triggering equipment includes processor, memory and the intelligence conjunction that is stored on the memory and can be executed by the processor
Trigger about, wherein realizing that the intelligence as above-mentioned is closed when the trigger of the intelligence contract is executed by the processor
The step of triggering method about.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The trigger of intelligent contract is stored on storage medium, wherein when the trigger of the intelligence contract is executed by processor,
The step of realizing the triggering method such as above-mentioned intelligent contract.
The present invention provides a kind of triggering method of intelligent contract, i.e., when receiving the contract register instruction of user's transmission,
The trigger condition type in the contract register instruction is obtained, and judges whether the trigger condition type is customized triggering class
Type;If the trigger condition is customized triggering type, the condition script of user's upload is obtained, and the condition script is added
Add to the registration caching in block chain;When monitoring that meeting the affairs that the condition script defines occurs, then according to default intelligence
It can the corresponding contract transaction of contract execution.By the above-mentioned means, the present invention in intelligent contract by registering the item to be completed
Part triggering, and the condition script uploaded according to user, are arranged the triggering rule of intelligent contract, and are meeting the trigger gauge
When affairs then, the corresponding contract transaction of intelligent contract is executed.The automatic execution for realizing contract, without calling business personnel to service
Device carries out contract calling, saves contract executory cost, improves the execution efficiency of contract, solves holding for existing intelligent contract
Row technical problem at high cost.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of the triggering equipment of intelligent contract involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the triggering method first embodiment of the intelligent contract of the present invention;
Fig. 3 is the flow diagram of the triggering method second embodiment of the intelligent contract of the present invention;
Fig. 4 is the flow diagram of the triggering method 3rd embodiment of the intelligent contract of the present invention;
Fig. 5 is the functional block diagram of the trigger device first embodiment of the intelligent contract of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the triggering method of intelligent contract be mainly used in the triggering equipment of intelligent contract, the intelligence
The triggering equipment of energy contract can be the equipment that PC, portable computer, mobile terminal etc. have display and processing function.
Referring to Fig.1, Fig. 1 is the hardware configuration signal of the triggering equipment of intelligent contract involved in the embodiment of the present invention
Figure.In the embodiment of the present invention, the triggering equipment of intelligent contract may include processor 1001 (such as CPU), communication bus 1002,
User interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing between these components
Connection communication;User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard);Network
Interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface);Memory 1005 can be height
Fast RAM memory is also possible to stable memory (non-volatile memory), such as magnetic disk storage, memory
1005 optionally can also be the storage device independently of aforementioned processor 1001.
The triggering of intelligent contract is set it will be understood by those skilled in the art that hardware configuration shown in Fig. 1 is not constituted
Standby restriction may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system
The trigger of system, network communication module and intelligent contract.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor
1001 can call the trigger of the intelligent contract stored in memory 1005, and execute intelligence provided in an embodiment of the present invention
The triggering method of contract.
The embodiment of the invention provides a kind of triggering methods of intelligent contract.
Referring to the flow diagram for the triggering method first embodiment that Fig. 2, Fig. 2 are the intelligent contract of the present invention.
In the present embodiment, it is described intelligence contract triggering method the following steps are included:
Step S10 obtains the triggering in the contract register instruction when receiving the contract register instruction of user's transmission
Condition types, and judge whether the trigger condition type is customized triggering type;
In the present embodiment, the high technical problem of executory cost in order to solve existing intelligent contract, by intelligent contract
The middle condition script for registering the condition to be completed and triggering, and being uploaded according to user, the triggering rule of the intelligent contract of setting, and
When meeting the affairs of the triggering rule, the corresponding contract transaction of intelligent contract is executed.The automatic execution of contract is realized,
Without calling business personnel's server to carry out contract calling, contract executory cost is saved, the execution efficiency of contract is improved.Specifically
Ground, user can send contract register instruction to block chain by client, i.e. user will need the automatic touching for executing intelligent contract
Hair rule is registered.And trigger condition registration is carried out with specific reference to the trigger condition type in the contract register instruction, such as
Customized triggering type, time trigger type either block chain height trigger type.Wherein it is possible to by judging the triggering
Types of variables in condition, to judge the trigger condition type, when such as variable being the time, as time trigger type, variable
When for block chain height, as block chain height triggers type, as customized when variable is user's customized triggering rule
Trigger type.As a result, by judging whether the types of variables in the trigger condition is the customized triggering rule of user, to sentence
Whether the trigger condition type of breaking is customized triggering type.Wherein customized triggering rule can be " when the number of forming a team
When reaching 3 people before 10 points on the day of, then the group of opening ".Triggering rule is " when the number of forming a team reaches 3 people on the day of before 10 points ", is closed
It about trades, as " group of opening ".
Step S20 obtains the condition script of user's upload, and will if the trigger condition is customized triggering type
The condition script is added to the caching of the registration in block chain;
In the present embodiment, if it is determined that the types of variables in the trigger condition is the customized triggering rule of user, such as work as
When number of forming a team reaches 3 people before 10 points on the day of, then the group of opening.Triggering rule is " when the number of forming a team reaches 3 before 10 points on the day of
People ", contract transaction, as " group of opening ".User can be by uploading the condition script oneself edited, the intelligent contract is arranged
Triggering rule.When receiving the condition script of user's upload, the condition script is added to the caching of the registration in block chain.
Then the condition script is parsed, obtains the triggering logic in the condition script, and the triggering logic is generated into monitoring life
Order is added to condition module, when monitoring module detects that the affairs for meeting the triggering logic occur, i.e., described in execution
Regular contract transaction in intelligent contract.Such as " group of opening " or " under pay out wages ".
Step S30 is then held according to default intelligent contract when monitoring that meeting the affairs that the condition script defines occurs
The corresponding contract transaction of row.
In the present embodiment, affairs monitoring is carried out by monitoring module, once affairs meet trigger condition, verifying node can be first
Signature verification first is carried out to ensure the validity of affairs to affairs, affairs will be held automatically after verifying node by verifying
Row executes the corresponding contract transaction of affairs described in the intelligent contract.
Further, after the step S10, further includes:
If the trigger condition type is time trigger type, the triggered time in contract register instruction is obtained, by institute
Stating the triggered time is added to registration caching, and when monitoring time variable is the triggered time, according to the intelligence
Contract executes corresponding contract transaction.
In the present embodiment, if the types of variables in the trigger condition is the time, the trigger condition class of the contract
Type is time trigger type.The trigger time value in the contract register instruction is obtained, and using the trigger time value as touching
Clockwork spring part is stored into registration caching, meets whether the event in the triggered time is sent out will pass through monitoring module monitoring
It is raw.If monitor that time variable reaches the trigger time value by the monitoring module, generates contract and execute instruction, with root
Corresponding contract transaction is executed according to the contract regulation in the intelligent contract, such as " paying out wages under the 18:00 on every month 10 ".
Further, after the step S10, further includes:
If the trigger condition type is that block chain height triggers type, the block chain obtained in contract register instruction is high
Threshold value is spent, the block chain height threshold is added to the registration and is cached, and is monitoring that block chain height variable is described
When block chain height threshold, corresponding contract is executed according to the intelligent contract and is traded.
In the present embodiment, if the types of variables in the trigger condition is block chain height, the triggering of the contract
Condition types are that block chain height triggers type.Obtain the block chain height value in the contract register instruction, and by the area
Block chain height value is stored as trigger condition into registration caching, meets triggering block chain will pass through monitoring module monitoring
Whether the event of height value occurs.Wherein, the block chain height increases with the increase for the transaction block being added in block chain
Add, if therefore the trigger condition type be block chain height trigger type, that is, indicate in block chain the number of transaction block reach
When to threshold value, that is, carry out contract transaction as defined in intelligent contract.Monitor that block chain height variable reaches by the monitoring module
It when to the triggering block chain height value, generates contract and executes instruction, to provide to execute according to the contract in the intelligent contract
The transaction of corresponding contract, such as " transaction block increase to 1000 " in block chain.
The present embodiment provides a kind of triggering methods of intelligent contract, i.e., in the contract register instruction for receiving user's transmission
When, the trigger condition type in the contract register instruction is obtained, and judge whether the trigger condition type is customized touching
Send out type;If the trigger condition is customized triggering type, the condition script of user's upload is obtained, and by the condition foot
Originally the registration caching being added in block chain;When monitoring that meeting the affairs that the condition script defines occurs, then according to pre-
If intelligent contract executes corresponding contract transaction.By the above-mentioned means, the present invention to be completed by registering in intelligent contract
Condition triggering, the triggering rule of intelligent contract is arranged, and is meeting the touching in and the condition script uploaded according to user
When sending out the affairs of rule, the corresponding contract transaction of intelligent contract is executed.The automatic execution for realizing contract, without calling business personnel
Server carries out contract calling, saves contract executory cost, improves the execution efficiency of contract, solves existing intelligent contract
The high technical problem of executory cost.
Referring to the flow diagram for the triggering method second embodiment that Fig. 3, Fig. 3 are the intelligent contract of the present invention.
Based on above-mentioned embodiment illustrated in fig. 2, in the present embodiment, before the step S10, further includes:
Step S41 obtains the identity of active user and described looks into when receiving the inquiry instruction of user's transmission
The information to be checked in instruction is ask, and judges whether the active user has institute based on zero-knowledge proof and the identity
The information for stating information to be checked reads permission;
In the present embodiment, contract is understood in time for the ease of the corresponding allied member of intelligent contract and executes condition or contract
The information such as implementing result read permission by the information that each allied member is arranged in zero-knowledge proof technology, to assign difference
The corresponding information of allied member reads permission.Specifically, it when receiving the inquiry instruction of user's transmission, obtains the inquiry and refers to
Information to be checked and acquisition in order send the identity of the active user of the inquiry instruction, such as ID number or work number
Deng.Judge the identity that whether there is the active user in the corresponding permission User Identity of the information to be checked,
If it exists, then there is the active user information of the information to be checked to read permission.
Step S42 is obtained if there is the active user information of the information to be checked to read permission and is shown institute
Information to be checked is stated so that the active user checks.
In the present embodiment, if it is determined that then being obtained when there is the active user information of the information to be checked to read permission
The information to be checked is taken, and the information to be checked is shown by present terminal interface, so as to the active user
It is checked.
Further, after the step S41, further includes:
If the information that the active user does not have the information to be checked reads permission, generates and show currently and do not have
The reading permission of the information to be checked;
It obtains the corresponding user read permission of the active user, and is shown according to the user read permission described current
The relevant information that user can be read, so that the active user checks.
In the present embodiment, if it is determined that the information that the active user does not have the information to be checked reads permission, then root
The corresponding reminder message for not having and reading permission is generated according to the information to be checked, to remind active user not have currently
The case where reading the reading permission of the information to be checked.Then itself corresponding reading power is understood for the ease of active user
Limit obtains the corresponding relevant information of the user read permission according to the corresponding user read permission of active user, described in acquisition
Relevant information, and the relevant information is shown by terminal interface, it is checked so that active user carries out corresponding selection.It is specific real
It applies in example, if the relevant information is more than presupposed information threshold value, obtains the corresponding information type of the relevant information and letter
Breath abstract etc., and show the information type and informative abstract, it is checked so that active user carries out corresponding selection.
Referring to the flow diagram for the triggering method 3rd embodiment that Fig. 4, Fig. 4 are the intelligent contract of the present invention.
Based on above-mentioned embodiment illustrated in fig. 3, in the present embodiment, the step S10 is specifically included:
Step S11 obtains the verifying signature of the user, and root when receiving the contract register instruction of user's transmission
Judge whether the user has registration permission according to verifying signature;
In the present embodiment, criminal distorts treaty conditions in order to prevent, guarantee the uniqueness of intelligent contract with
And accuracy, registration permission judgement is carried out to the user for carrying out contract registration.Specifically, in the contract note for receiving user's transmission
When volume instruction, the verifying signature of the user is obtained, and obtains key information and user information in the verifying signature.It will
The key information and user information permission user information corresponding with intelligent contract compare, to judge the user
Whether there is the registration permission of the intelligent contract.Determine that the key in the verifying signature is correct, and user information meets
The corresponding permission user information of intelligent contract then determines that the user has the registration permission of trigger condition of intelligent contract.
Step S12 prescribes a time limit in the user with registration rights, obtains the trigger condition class in the contract register instruction
Type, and judge whether the trigger condition type is customized triggering type.
In the present embodiment, if it is determined that the user has the registration permission of the intelligent contract, then with specific reference to the conjunction
Trigger condition type about in register instruction carries out trigger condition registration, such as customized triggering type, time trigger type or
It is block chain height triggering type.Wherein it is possible to by judging the types of variables in the trigger condition, to judge the triggering
When condition types such as variable are the time, as time trigger type, when variable is block chain height, as block chain height is touched
Type is sent out, when variable is that the customized triggering of user is regular, as customized triggering type.As a result, by judging the triggering
Whether the types of variables in condition is the customized triggering rule of user, to judge whether the trigger condition type is customized
Trigger type.
Further, after the step S30, further includes:
When receiving trigger condition modification instruction, the target trigger condition in the trigger condition modification instruction is obtained,
And the target trigger condition is replaced into the registered trigger condition that the registration caching conditional script defines;
Corresponding condition is generated according to the registered trigger condition and target trigger condition and changes reminder message, and will
The condition variation reminder message is sent to contract member, to remind the contract member.
In the present embodiment, carries out the change of contract trigger condition according to actual needs for the ease of permission user, touching is provided
Clockwork spring part modifies function, i.e. permission user can modify the key that function carries out the trigger condition of intelligent contract by the trigger condition
Modification.Specifically, in the trigger condition modification instruction for receiving permission user triggering, the identity of permission user can be tested
Card obtains the target triggering item in the trigger condition modification instruction when determining the permission user for legal modifications user
Part.Then by the target trigger condition, the registered trigger condition defined with registration caching conditional script is replaced, from
And change the trigger condition of the intelligent contract.And when trigger condition is replaced successfully, according to the registered triggering item before replacement
Target trigger condition after part and replacement generates corresponding condition and changes reminder message, and the condition is changed reminder message
It is sent to the corresponding contract member for having and checking permission, so that the contract member understands the replacement of contract trigger condition in time.
In addition, the embodiment of the present invention also provides a kind of trigger device of intelligent contract.
Referring to the functional block diagram for the trigger device first embodiment that Fig. 5, Fig. 5 are the intelligent contract of the present invention.
In the present embodiment, the trigger device of the intelligence contract includes:
Type judging module 10 is triggered, for obtaining the contract when receiving the contract register instruction of user's transmission
Trigger condition type in register instruction, and judge whether the trigger condition type is customized triggering type;
Condition script registration module 20 obtains user's upload if being customized triggering type for the trigger condition
Condition script, and by the condition script be added to the registration in block chain caching;
Intelligent contract execution module 30, for when monitoring to meet the affairs that the condition script defines and occurring, then root
Corresponding contract transaction is executed according to default intelligent contract.
Further, the trigger device of the intelligent contract further include:
Time trigger module obtains contract register instruction if being time trigger type for the trigger condition type
In triggered time, the triggered time is added to the registration and is cached, and when monitoring time variable is the triggering
Between when, corresponding contract is executed according to the intelligent contract and is traded.
Further, the trigger device of the intelligent contract further include:
Height trigger module obtains contract note if being that block chain height triggers type for the trigger condition type
The block chain height threshold is added to the registration and cached, and monitoring area by the block chain height threshold in volume instruction
When block chain height variable is the block chain height threshold, corresponding contract is executed according to the intelligent contract and is traded.
Further, the trigger device of the intelligent contract further include:
Information inquiry module, for obtaining the identity of active user when receiving the inquiry instruction of user's transmission
And the information to be checked in the inquiry instruction, and the active user is judged based on zero-knowledge proof and the identity
Whether the information with the information to be checked reads permission;
First information display module, if for the active user there is the information of the information to be checked to read permission,
It then obtains and shows the information to be checked so that the active user checks.
Further, the trigger device of the intelligent contract further include:
Permission reminding module, it is raw if reading permission for the information that the active user does not have the information to be checked
At and show currently do not have the information to be checked reading permission;
Second information display module, for obtaining the corresponding user read permission of the active user, and according to the use
Family reads permission and shows the relevant information that the active user can be read, so that the active user checks.
Further, the triggering type judging module 10 specifically includes:
Permission judging unit is registered, for obtaining the user's when receiving the contract register instruction of user's transmission
Verifying signature, and judge whether the user has registration permission according to verifying signature;
Triggering type judging unit obtains in the contract register instruction for prescribing a time limit in the user with registration rights
Trigger condition type, and judge whether the trigger condition type is customized triggering type.
Further, the trigger device of the intelligent contract further include:
Trigger condition modified module, for obtaining the trigger condition modification when receiving trigger condition modification instruction
Target trigger condition in instruction, and the target trigger condition is replaced into the note that the registration caching conditional script defines
Volume trigger condition;
Condition replaces reminding module, corresponding for being generated according to the registered trigger condition and target trigger condition
Condition changes reminder message, and condition variation reminder message is sent to contract member, to carry out to the contract member
It reminds.
Wherein, in the trigger device of above-mentioned intelligent contract in the triggering method embodiment of modules and above-mentioned intelligent contract
Each step is corresponding, and function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium.
The trigger of intelligent contract is stored on computer readable storage medium of the present invention, wherein the intelligence contract
When trigger is executed by processor, realize as above-mentioned intelligent contract triggering method the step of.
Wherein, the trigger of intelligent contract, which is performed realized method, can refer to the triggering of intelligent contract of the invention
Each embodiment of method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. it is a kind of intelligence contract triggering method, which is characterized in that it is described intelligence contract triggering method the following steps are included:
When receiving the contract register instruction of user's transmission, the trigger condition type in the contract register instruction is obtained, and
Judge whether the trigger condition type is customized triggering type;
If the trigger condition is customized triggering type, the condition script of user's upload is obtained, and by the condition script
The registration caching being added in block chain;
When monitoring that meeting the affairs that the condition script defines occurs, then corresponding contract is executed according to default intelligent contract
Transaction.
2. the triggering method of intelligence contract as described in claim 1, which is characterized in that described to monitor to meet the condition
When the affairs that script defines occur, then after the step of default intelligent contract execution of basis corresponding contract transaction, further includes:
Receive user transmission inquiry instruction when, obtain in the identity and the inquiry instruction of active user to
Query information, and judge whether the active user has the information to be checked based on zero-knowledge proof and the identity
Information read permission;
If there is the active user information of the information to be checked to read permission, obtains and show the information to be checked
So that the active user checks.
3. the triggering method of intelligence contract as claimed in claim 2, which is characterized in that described to receive looking into for user's transmission
When asking instruction, the information to be checked in the identity and the inquiry instruction of active user is obtained, and demonstrate,prove based on Zero Knowledge
The bright and described identity judge the active user whether have the information to be checked information read permission the step of it
Afterwards, further includes:
If the information that the active user does not have the information to be checked reads permission, generates and show current without described
The reading permission of information to be checked;
The corresponding user read permission of the active user is obtained, and the active user is shown according to the user read permission
The relevant information that can be read, so that the active user checks.
4. the triggering method of intelligence contract as described in claim 1, which is characterized in that described in the conjunction for receiving user's transmission
About register instruction when, obtain the trigger condition type in the contract register instruction, and whether judge the trigger condition type
After the step of for customized triggering type, further includes:
If the trigger condition type is time trigger type, the triggered time in contract register instruction is obtained, by the touching
The hair time is added to the registration caching, and when monitoring time variable is the triggered time, according to the intelligent contract
Execute corresponding contract transaction.
5. the triggering method of intelligence contract as described in claim 1, which is characterized in that described in the conjunction for receiving user's transmission
About register instruction when, obtain the trigger condition type in the contract register instruction, and whether judge the trigger condition type
After the step of for customized triggering type, further includes:
If the trigger condition type is that block chain height triggers type, the block chain height threshold in contract register instruction is obtained
The block chain height threshold is added to the registration and cached by value, and is monitoring that block chain height variable is the block
When chain height threshold, corresponding contract is executed according to the intelligent contract and is traded.
6. the triggering method of intelligence contract as described in claim 1, which is characterized in that described in the conjunction for receiving user's transmission
About register instruction when, obtain the trigger condition type in the contract register instruction, and whether judge the trigger condition type
Include: for the step of customized triggering type
When receiving the contract register instruction of user's transmission, the verifying signature of the user is obtained, and is signed according to the verifying
Name judges whether the user has registration permission;
It prescribes a time limit in the user with registration rights, obtains the trigger condition type in the contract register instruction, and described in judgement
Whether trigger condition type is customized triggering type.
7. the triggering method of the intelligent contract as described in claim 1 to 6 any one, which is characterized in that described to monitor
When meeting the affairs that the condition script defines and occurring, then the step of transaction of corresponding contract being executed according to default intelligent contract it
Afterwards, further includes:
When receiving trigger condition modification instruction, the target trigger condition in the trigger condition modification instruction is obtained, and will
The target trigger condition replaces the registered trigger condition that the registration caching conditional script defines;
Corresponding condition is generated according to the registered trigger condition and target trigger condition and changes reminder message, and will be described
Condition variation reminder message is sent to contract member, to remind the contract member.
8. it is a kind of intelligence contract trigger device, which is characterized in that it is described intelligence contract trigger device include:
Type judging module is triggered, is referred to for when receiving the contract register instruction of user's transmission, obtaining the contract registration
Trigger condition type in order, and judge whether the trigger condition type is customized triggering type;
Condition script registration module obtains the condition of user's upload if being customized triggering type for the trigger condition
Script, and the condition script is added to the caching of the registration in block chain;
Intelligent contract execution module, for when monitoring that meeting the affairs that the condition script defines occurs, then basis to be default
Intelligent contract executes corresponding contract transaction.
9. a kind of triggering equipment of intelligence contract, which is characterized in that the triggering equipment of the intelligence contract includes processor, storage
It device and is stored on the memory and can be by the trigger for the intelligent contract that the processor executes, wherein the intelligence
When the trigger of energy contract is executed by the processor, realizing the intelligent contract as described in any one of claims 1 to 7
The step of triggering method.
10. a kind of computer readable storage medium, which is characterized in that be stored with intelligent conjunction on the computer readable storage medium
Trigger about, wherein realizing when the trigger of the intelligence contract is executed by processor as appointed in claim 1 to 7
The step of triggering method of intelligent contract described in one.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376461.1A CN110264190A (en) | 2019-05-07 | 2019-05-07 | Triggering method, device, equipment and the storage medium of intelligent contract |
PCT/CN2019/122038 WO2020224250A1 (en) | 2019-05-07 | 2019-11-29 | Method, apparatus, and device for smart contract triggering, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910376461.1A CN110264190A (en) | 2019-05-07 | 2019-05-07 | Triggering method, device, equipment and the storage medium of intelligent contract |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110264190A true CN110264190A (en) | 2019-09-20 |
Family
ID=67914330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910376461.1A Pending CN110264190A (en) | 2019-05-07 | 2019-05-07 | Triggering method, device, equipment and the storage medium of intelligent contract |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110264190A (en) |
WO (1) | WO2020224250A1 (en) |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111176207A (en) * | 2020-01-06 | 2020-05-19 | 上海电气自动化设计研究所有限公司 | One-button operation starting system for subway station |
CN111770201A (en) * | 2020-08-31 | 2020-10-13 | 支付宝(杭州)信息技术有限公司 | Data verification method, device and equipment |
WO2020224250A1 (en) * | 2019-05-07 | 2020-11-12 | 深圳壹账通智能科技有限公司 | Method, apparatus, and device for smart contract triggering, and storage medium |
WO2020169123A3 (en) * | 2020-06-08 | 2021-04-01 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based smart contract pools |
CN112837155A (en) * | 2021-02-10 | 2021-05-25 | 中国人民银行数字货币研究所 | Method and device for registering and executing intelligent contracts in block chain |
CN112905554A (en) * | 2021-02-07 | 2021-06-04 | 全链通有限公司 | Data sharing method and device based on block chain |
CN113034137A (en) * | 2021-03-12 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and related equipment |
US11307775B2 (en) | 2020-06-08 | 2022-04-19 | Alipay Labs (singapore) Pte. Ltd. | Distributed storage of custom clearance data |
US11372695B2 (en) | 2020-06-08 | 2022-06-28 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based import custom clearance data processing |
US11416418B2 (en) | 2020-06-08 | 2022-08-16 | Alipay Labs (singapore) Pte. Ltd. | Managing user authorizations for blockchain-based custom clearance services |
US11418511B2 (en) | 2020-06-08 | 2022-08-16 | Alipay Labs (singapore) Pte. Ltd. | User management of blockchain-based custom clearance service platform |
US11449911B2 (en) | 2020-06-08 | 2022-09-20 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based document registration for custom clearance |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108475394A (en) * | 2016-03-31 | 2018-08-31 | 汤森路透全球资源无限公司 | The system and method for providing finance data for the financial instrument into distributed ledger system |
CN108665253A (en) * | 2018-05-18 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | A kind of data processing method, device, equipment and the storage medium of block chain network |
US20180322588A1 (en) * | 2017-05-06 | 2018-11-08 | Adp, Llc | Implementation of payroll smart contract on a distributed ledger |
CN109347799A (en) * | 2018-09-13 | 2019-02-15 | 深圳市图灵奇点智能科技有限公司 | A kind of identity information management method and system based on block chain technology |
CN109684869A (en) * | 2018-12-12 | 2019-04-26 | 杭州基尔区块链科技有限公司 | A kind of decentralization chip research and development method of commerce and system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110264190A (en) * | 2019-05-07 | 2019-09-20 | 深圳壹账通智能科技有限公司 | Triggering method, device, equipment and the storage medium of intelligent contract |
-
2019
- 2019-05-07 CN CN201910376461.1A patent/CN110264190A/en active Pending
- 2019-11-29 WO PCT/CN2019/122038 patent/WO2020224250A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108475394A (en) * | 2016-03-31 | 2018-08-31 | 汤森路透全球资源无限公司 | The system and method for providing finance data for the financial instrument into distributed ledger system |
US20180322588A1 (en) * | 2017-05-06 | 2018-11-08 | Adp, Llc | Implementation of payroll smart contract on a distributed ledger |
CN108665253A (en) * | 2018-05-18 | 2018-10-16 | 百度在线网络技术(北京)有限公司 | A kind of data processing method, device, equipment and the storage medium of block chain network |
CN109347799A (en) * | 2018-09-13 | 2019-02-15 | 深圳市图灵奇点智能科技有限公司 | A kind of identity information management method and system based on block chain technology |
CN109684869A (en) * | 2018-12-12 | 2019-04-26 | 杭州基尔区块链科技有限公司 | A kind of decentralization chip research and development method of commerce and system |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020224250A1 (en) * | 2019-05-07 | 2020-11-12 | 深圳壹账通智能科技有限公司 | Method, apparatus, and device for smart contract triggering, and storage medium |
CN111176207B (en) * | 2020-01-06 | 2021-11-23 | 上海电气自动化设计研究所有限公司 | One-button operation starting system for subway station |
CN111176207A (en) * | 2020-01-06 | 2020-05-19 | 上海电气自动化设计研究所有限公司 | One-button operation starting system for subway station |
US11307775B2 (en) | 2020-06-08 | 2022-04-19 | Alipay Labs (singapore) Pte. Ltd. | Distributed storage of custom clearance data |
US11449911B2 (en) | 2020-06-08 | 2022-09-20 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based document registration for custom clearance |
WO2020169123A3 (en) * | 2020-06-08 | 2021-04-01 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based smart contract pools |
US11418511B2 (en) | 2020-06-08 | 2022-08-16 | Alipay Labs (singapore) Pte. Ltd. | User management of blockchain-based custom clearance service platform |
US11416418B2 (en) | 2020-06-08 | 2022-08-16 | Alipay Labs (singapore) Pte. Ltd. | Managing user authorizations for blockchain-based custom clearance services |
US11372695B2 (en) | 2020-06-08 | 2022-06-28 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based import custom clearance data processing |
US11356270B2 (en) | 2020-06-08 | 2022-06-07 | Alipay Labs (singapore) Pte. Ltd. | Blockchain-based smart contract pools |
US11233655B2 (en) | 2020-08-31 | 2022-01-25 | Alipay (Hangzhou) Information Technology Co., Ltd. | Data verification methods, apparatuses, and devices |
EP3961455A1 (en) * | 2020-08-31 | 2022-03-02 | Alipay (Hangzhou) Information Technology Co., Ltd. | Data verification methods, apparatuses, and devices |
CN111770201A (en) * | 2020-08-31 | 2020-10-13 | 支付宝(杭州)信息技术有限公司 | Data verification method, device and equipment |
CN112905554A (en) * | 2021-02-07 | 2021-06-04 | 全链通有限公司 | Data sharing method and device based on block chain |
CN112905554B (en) * | 2021-02-07 | 2024-05-10 | 全链通有限公司 | Block chain-based data sharing method and device |
CN112837155A (en) * | 2021-02-10 | 2021-05-25 | 中国人民银行数字货币研究所 | Method and device for registering and executing intelligent contracts in block chain |
WO2022171187A1 (en) * | 2021-02-10 | 2022-08-18 | 中国人民银行数字货币研究所 | Registration and execution methods and apparatuses for a smart contract in a blockchain |
CN112837155B (en) * | 2021-02-10 | 2024-05-31 | 中国人民银行数字货币研究所 | Method and device for registering and executing intelligent contracts in blockchain |
CN113034137A (en) * | 2021-03-12 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Data processing method and device based on block chain and related equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2020224250A1 (en) | 2020-11-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110264190A (en) | Triggering method, device, equipment and the storage medium of intelligent contract | |
US11138300B2 (en) | Multi-factor profile and security fingerprint analysis | |
US10740411B2 (en) | Determining repeat website users via browser uniqueness tracking | |
CN110442712B (en) | Risk determination method, risk determination device, server and text examination system | |
BR112019015066A2 (en) | BCHAIN UNIVERSAL CONNECTIONS SYSTEM ALL / EVERYTHING / EVERY PART | |
US20130290226A1 (en) | System and method for social graph and graph assets valuation and monetization | |
MXPA05011245A (en) | Realizing legally binding business contracts through service management models. | |
US11636171B2 (en) | Data processing user interface monitoring systems and related methods | |
US20160191498A1 (en) | User authentication based on personal access history | |
CN105101122A (en) | Verification code inputting method and device | |
US20090234920A1 (en) | System for instant collaboration | |
TWI717673B (en) | Method, device and electronic equipment for resetting payment password | |
CN111985703B (en) | User identity state prediction method, device and equipment | |
CN107862425B (en) | Wind control data acquisition method, device and system and readable storage medium | |
US20200042679A1 (en) | Policy based adaptive identity proofing | |
CN110097289A (en) | Risk monitoring and control method, apparatus, equipment and computer readable storage medium | |
CN109242292A (en) | A kind of asset evaluation method, block chain node device and system | |
CN113129012A (en) | Payment data processing method, device, equipment and system | |
CN109522705A (en) | A kind of right management method, device, electronic equipment and medium | |
CN112702410B (en) | Evaluation system, method and related equipment based on blockchain network | |
EP2896005A1 (en) | Multi-factor profile and security fingerprint analysis | |
CN111340635A (en) | Data checking method, equipment, server and readable storage medium | |
CN111460256A (en) | Webpage data crawling method and device, computer equipment and storage medium | |
CN112434347B (en) | Rental business processing method, device, equipment and system | |
EP3125183A1 (en) | Methods and systems for financial account access management |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190920 |
|
WD01 | Invention patent application deemed withdrawn after publication |