CN109559257A - Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain - Google Patents

Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain Download PDF

Info

Publication number
CN109559257A
CN109559257A CN201811534598.7A CN201811534598A CN109559257A CN 109559257 A CN109559257 A CN 109559257A CN 201811534598 A CN201811534598 A CN 201811534598A CN 109559257 A CN109559257 A CN 109559257A
Authority
CN
China
Prior art keywords
contract
promise breaking
trigger condition
information
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.)
Pending
Application number
CN201811534598.7A
Other languages
Chinese (zh)
Inventor
高立志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811534598.7A priority Critical patent/CN109559257A/en
Publication of CN109559257A publication Critical patent/CN109559257A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services
    • G06Q50/188Electronic negotiation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/16Real estate

Landscapes

  • Business, Economics & Management (AREA)
  • Tourism & Hospitality (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of contract generation method, device, equipment and readable storage medium storing program for executing based on block chain, it is related to Internet technical field, contract can be generated based on block chain, and generate the intelligent contract of management contract, contract is stored in block chain, the characteristics of using block chain decentralization, contract is prevented to be tampered or lose, authenticity and validity are secure, and safety is higher.The described method includes: receipt of contract request to create, obtains the contract information of contract to be created, contract request to create carries contract information;Default contract template is obtained, contract information is arranged according to default contract template, generates contract to be created;Extraction promise breaking trigger condition and promise breaking right-safeguarding activity in contract information, the trigger condition that will break a contract and promise breaking right-safeguarding activity are corresponded to and are stored to intelligent contract, and trigger condition of breaking a contract, which includes at least, allows execution range;Contractual block is generated based on intelligent contract and contract to be created, contractual block is added in block chain.

Description

Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain
Technical field
The present invention relates to Internet technical field, more particularly to a kind of contract generation method based on block chain, device, Equipment and readable storage medium storing program for executing.
Background technique
With the rapid development of current social and being constantly progressive for Internet technology, more and more people are rented using house The mode rented is made a living in city.House lease is given its all or management house property by the owner or manager of house property The consumer of house property uses, and consumer obtains occupying and using right for house property by the rent for certain number of delivering on term Behavior.House lease is a kind of commodity circulation mode that house property use value is sold, in order to guarantee the owner and the consumption in house The legitimate rights and interests of person can generate house-leasing contract, and close to house lease between the owner and consumer in usual house It is same to be signed.
In the related technology, the house-leasing contract signed between the owner and consumer in house is papery.It is closing With when being signed, the owner and consumer in house sit together, and are reached by way of interview to house-leasing contract Unanimously, it signs on the house-leasing contract of papery by both party, to generate house-leasing contract, completes house-leasing contract Signature, and respectively hold a house-leasing contract by both party and retain.
In the implementation of the present invention, inventor find the relevant technologies the prior art has at least the following problems:
Usually, the house-leasing contract of generation be papery house-leasing contract, exist distort and lose can Can, authenticity and validity do not ensure that safety is lower.
Summary of the invention
In view of this, the present invention provides a kind of contract generation method, device, equipment and readable storages based on block chain Medium, main purpose be the house-leasing contract for solving to generate at present be papery house-leasing contract, exist distort and The possibility of loss, authenticity and validity do not ensure, the lower problem of safety.
According to the present invention in a first aspect, providing a kind of contract generation method based on block chain, this method comprises:
Receipt of contract request to create, obtains the contract information of contract to be created, and the contract request to create carries the conjunction Same information;
Default contract template is obtained, the contract information is arranged according to the default contract template, described in generation Contract to be created;
In the contract information extract promise breaking trigger condition and promise breaking right-safeguarding activity, by the promise breaking trigger condition with And the promise breaking right-safeguarding activity is corresponded to and is stored to intelligent contract, the promise breaking trigger condition, which includes at least, to be allowed to execute range;
Contractual block is generated based on the intelligent contract and the contract to be created, the contractual block is added to block In chain.
Second aspect according to the present invention, provides a kind of contract generating means based on block chain, which includes:
First receiving module is used for receipt of contract request to create, obtains the contract information of contract to be created, the contract wound It builds request and carries the contract information;
Sorting module carries out the contract information according to the default contract template for obtaining default contract template It arranges, generates the contract to be created;
Extraction module will be described for extracting promise breaking trigger condition and promise breaking right-safeguarding activity in the contract information Promise breaking trigger condition and the promise breaking right-safeguarding activity, which correspond to, to be stored to intelligent contract, and the promise breaking trigger condition, which includes at least, to be permitted Perhaps range is executed;
Adding module, for generating contractual block based on the intelligent contract and the contract to be created, by the contract Block is added in block chain.
The third aspect according to the present invention, provides a kind of equipment, including memory and processor, and the memory is stored with The step of computer program, the processor realizes above-mentioned first aspect the method when executing the computer program.
Fourth aspect according to the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, It is characterized in that, the computer program realizes the step of method described in above-mentioned first aspect when being executed by processor.
By above-mentioned technical proposal, a kind of contract generation method based on block chain provided by the invention, device, equipment and Readable storage medium storing program for executing is generated the present invention is based on block chain and is closed compared with the house-leasing contract generated at present is the mode of papery Together, and the intelligent contract of management contract is generated, contract is stored in block chain, the characteristics of using block chain decentralization, prevented Only contract is tampered or loses, and authenticity and validity are secure, and safety is higher.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of contract generation method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2A shows a kind of contract generation method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2 B shows a kind of contract generation method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 3 A shows a kind of structural schematic diagram of contract generating means based on block chain provided in an embodiment of the present invention;
Fig. 3 B shows a kind of structural schematic diagram of contract generating means based on block chain provided in an embodiment of the present invention;
Fig. 3 C shows a kind of structural schematic diagram of contract generating means based on block chain provided in an embodiment of the present invention;
Fig. 3 D shows a kind of structural schematic diagram of contract generating means based on block chain provided in an embodiment of the present invention;
Fig. 4 shows a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of contract generation methods based on block chain, can generate electronics based on block chain Contract, and the intelligent contract of management electronic contract is generated, electronic contract is stored in block chain, block chain decentralization is utilized The characteristics of, reaching prevents electronic contract to be tampered or lose, and authenticity and validity are secure, the higher mesh of safety , as shown in Figure 1, this method comprises:
101, receipt of contract request to create, obtains the contract information of contract to be created, and contract request to create carries contract letter Breath.
In embodiments of the present invention, the contract request to create in order to be sent in the subsequent creation that contract may be implemented, user In at least need to carry contract information, specifically, in contract information may include contract essential information, promise breaking trigger condition with And promise breaking right-safeguarding activity, it may determine which behavior command triggers promise breaking trigger condition so as to subsequent, and can execute corresponding Promise breaking right-safeguarding activity.Specific implementation process is referring to content shown in following step 201.
102, default contract template is obtained, contract information is arranged according to default contract template, generates conjunction to be created Together.
In embodiments of the present invention, in order to guarantee generate contract meet requirement of the user to the format of contract, Ke Yishe Default contract template is set, and when generating contract to be created, contract information is arranged according to default contract template.Wherein, Default contract template can be the contract template defaulted in client, or the template of user's self-setting, the present invention are implemented Example is to the setting of default contract template without specifically limiting.Specific implementation process is referring to content shown in following step 202.
103, promise breaking trigger condition and promise breaking right-safeguarding activity are extracted in contract information, by promise breaking trigger condition and are disobeyed About right-safeguarding activity is corresponding stores to intelligent contract, and trigger condition of breaking a contract, which includes at least, to be allowed to execute range.
In embodiments of the present invention, in order to make it is subsequent the behavior command received can be detected, judge that behavior refers to It enables and whether triggers promise breaking trigger condition, so that the equity timely to homeowner or consumer is safeguarded, user Promise breaking trigger condition and promise breaking right-safeguarding activity can also be carried in transmitted contract information.In this way, can be by the promise breaking Trigger condition and promise breaking right-safeguarding activity correspondence are stored in intelligent contract, so that the intelligent contract based on block chain waits creating to this The subsequent possible behavior command occurred in contract is built to be detected.Specific implementation process is referring to content shown in following step 203.
104, contractual block is generated based on intelligent contract and contract to be created, contractual block is added in block chain.
In embodiments of the present invention, after generating intelligent contract and contract to be created, it is contemplated that the same time may Multiple contracts are generated, and each contract has corresponding intelligent contract to cause in order to avoid obscuring contract and intelligent contract Mistake occurs for the subsequent detection to behavior command, need intelligent contract is corresponding with contract to be created, be based on the intelligence contract with Contract to be created generates contractual block.Wherein, contract is stored since the present invention is based on block chains, generating contract After block, contractual block can be added in block chain.Specific implementation process is referring to content shown in following step 205.
In another embodiment, promise breaking trigger condition and promise breaking right-safeguarding activity are extracted in contract information, will be broken a contract Trigger condition and the corresponding storage of promise breaking right-safeguarding activity, after generating intelligent contract, method includes:
Promise breaking trigger condition is analyzed, determines at least one corresponding sample behavior command of promise breaking trigger condition;
At least one sample behavior command is added in intelligent contract.
In another embodiment, method further include:
When receiving behavior command, determine target contract, based on the corresponding intelligent contract of the target contract, inquiry with The matched target sample behavior command of behavior command;
The corresponding target promise breaking trigger condition of the target sample behavior command is determined, based on the intelligent contract, judgement Whether the behavior command allows to execute in range in target promise breaking trigger condition, described that execution range is allowed at least to advise One or both of reception instruction time range and value data threshold value are determined;
If the behavior command allows to execute in range target promise breaking trigger condition, the behavior is executed Instruction, and continue to other behavior commands;
If the behavior command does not allow to execute in range in target promise breaking trigger condition, described disobey is obtained The about corresponding target promise breaking right-safeguarding activity of trigger condition, executes the target promise breaking right-safeguarding activity.
In another embodiment, judge whether behavior command allows to execute in range in target promise breaking trigger condition, Include:
Determine the temporal information for receiving the behavior command;
When it is described allow to execute range and at least define receive instruction time range and when value data threshold value, in the row To extract amount information in instruction, based on the intelligent contract, by the temporal information and the reception for allowing to execute range Instruction time is compared, and allows the value data threshold value for executing range to be compared with described the amount information;Or,
When it is described allow to execute range at least define receive instruction time range when, based on the intelligent contract, by institute State temporal information allows the reception instruction time for executing range to be compared with described.
In another embodiment, method further include:
Data acquisition is carried out to behavior command, obtains the behavioural information of behavior command, behavioural information is believed including at least the amount of money Breath, personal information and temporal information;
Behavior-based control information generates information block, information block is added in block chain.
Method provided in an embodiment of the present invention can generate electronic contract based on block chain, and generate management electronic contract Intelligent contract, electronic contract is stored in block chain, the characteristics of using block chain decentralization, prevents electronic contract from being usurped Change or lose, authenticity and validity are secure, and safety is higher.
The embodiment of the invention provides a kind of measure of managing contract based on block chain, can be generated and be closed based on block chain Together, and the intelligent contract of management contract is generated, contract is stored in block chain, the characteristics of using block chain decentralization, reached To preventing contract to be tampered or lose, authenticity and validity are secure, the higher purpose of safety, as shown in Figure 2 A, should Method includes:
201, receipt of contract request to create obtains the contract information of contract to be created.
In embodiments of the present invention, client or webpage that financial institution can be provided for realizing mechanism service, User is by the product in downloading client understanding financial institution and can provide function, or accesses webpage by browser Understand the product in financial institution and can provide function.In order to close user by the terminal creation in personal device Together, contract creation entrance can be set in the client that financial institution provides.When detecting that user triggers contract creation entrance, Display contract creates the page, shows contract information input frame in the contract creation page.When receiving, user's pairing is same to create the page When confirmation, determines the contract request to create for receiving user, carry contract information in contract request to create, at this moment, can lead to Reading contract request to create is crossed, the contract information of contract to be created is obtained in contract request to create.In the process of practical application In, since the content for including in contract is usually more, the user in the contract of creation is caused to need the information content to be offered also more, When filling in contract information, if only inputted by user, contract information is possible and not comprehensive enough, and some important information may It omits, therefore, information model can be provided in the contract creation page, the project for needing to fill in is shown in information model and is needed The project to be chosen, to guarantee that the contract information obtained is more comprehensive.For example, homeowner can be provided in information model Information input frame, houseclearing input frame, the rent amount of money, lease duration, the cash pledge amount of money, hands over rent side at consumer information input frame Formula is handed over and rents the time.
It should be noted that after user completes the input of contract information, in order to ensure homeowner and consumption The equity of person detects the case where rear extended meeting executes electronic contract to homeowner and consumer, so as in time into Therefore the guarantee of row equity obtains promise breaking trigger condition and promise breaking right-safeguarding activity, and will promise breaking trigger condition and promise breaking dimension Power activity is also used as contract information.Wherein, a variety of default promise breaking trigger conditions and correspondence can be provided in the contract creation page Default promise breaking right-safeguarding activity, user can create in contract and choose one or more kinds of promise breaking trigger conditions in the page, and will The one or more default promise breaking trigger conditions and corresponding default promise breaking right-safeguarding activity that user chooses also are used as contract information. Promise breaking trigger condition, which includes at least, to be allowed to execute range, is allowed to execute range and is at least defined reception instruction time range and the amount of money One or both of data threshold.For example, allow to execute range may include on November 5th, 2018 after, monthly before No. 15 etc. Receiving time range, or including 2000 yuan of rent etc. of value data threshold value, in this way, subsequent intelligence contract can pass through Allow to execute range in trigger condition of breaking a contract to determine whether consumer rents in the time in friendship and pay rent, consumer's friendship rent The amount of money whether reached the rent amount of money, homeowner whether the duration that house is supplied to consumer met into lease duration Deng;Default promise breaking right-safeguarding activity can be both sides' coordination, mechanism coordination, the right-safeguarding of right-safeguarding department etc..The embodiment of the present invention believes contract The particular content for including in breath is without limiting.
202, it determines default contract template, contract information is arranged according to default contract template, generates conjunction to be created Together.
In embodiments of the present invention, it after getting the contract information of user, can be generated based on contract information wait create Build contract.Electronic contract is managed in view of homeowner may authorize by Managing Financial Institutions personnel, and different The contract form that administrative staff are held is different, and therefore, multiple default contract templates can be set, and obtains user's selection Default contract template is inserted contract information in default contract template, to generate contract to be created.Wherein, contract mould is preset Plate can be set by the user himself, and when user uses the function of creation contract for the first time, may not yet have enough time that default contract is arranged Therefore template can initially set any default contract template in default contract template to the default contract template of default, Contract to be created is generated using the default contract template of the default.If subsequent detection is to user to the default contract mould of the default When plate is modified, the default contract template of the default of setting is replaced using the default contract template that user modifies, and When subsequent user requests creation contract, the default contract template for being all made of user setting generates contract.
Wherein, when carrying out arranging generation contract to be created to contract information according to default contract template, a kind of generation side Formula, there are evidences when in order to make subsequent progress right-safeguarding, can be by promise breaking trigger condition and promise breaking right-safeguarding activity also as conjunction Same information, and arranged according to default contract template, contract to be created is generated, namely include disobeying in the contract to be created generated About trigger condition and promise breaking right-safeguarding activity;Another generating mode can also generate intelligent contract due to subsequent, will can only use The contract information of family input is arranged according to default contract template, generates contract to be created, namely the contract to be created generated In do not include promise breaking trigger condition and promise breaking right-safeguarding activity.
203, promise breaking trigger condition and promise breaking right-safeguarding activity are extracted in contract information, by promise breaking trigger condition and are disobeyed About right-safeguarding activity correspondence is stored to intelligent contract.
In embodiments of the present invention, in order to which the behavior of the owner and consumer to house detect, to ensure The interests of both sides are needed to generate the intelligent contract of the contract to be created, and are owned based on the intelligence contract to house subsequent The behavior of person and consumer detect, while executing right-safeguarding activity when trigger condition is broken a contract in triggering.Due to contract information In have been provided promise breaking trigger condition and promise breaking right-safeguarding activity, therefore, in contract information extract promise breaking trigger condition with And promise breaking right-safeguarding activity, promise breaking trigger condition and promise breaking right-safeguarding activity are added in intelligent contract and are stored, with after an action of the bowels It is continuous the behavior of both sides to be detected based on intelligent contract, judge whether to trigger promise breaking trigger condition.
204, promise breaking trigger condition is analyzed, determines that at least one the corresponding sample behavior of promise breaking trigger condition refers to It enables, at least one sample behavior command is added in intelligent contract.
In embodiments of the present invention, in order to be identified to the behavior command received subsequent, so that judgement connects Whether the behavior command received triggers promise breaking trigger condition, to execute promise breaking right-safeguarding activity in time, can be in client Each promise breaking trigger condition determination may trigger at least one sample behavior command of the promise breaking trigger condition, and subsequent logical Cross the behavior command that will be received be compared at least one sample instruction realization the instruction received is identified.Its In, when generating at least one sample behavior command, firstly, analyzing promise breaking trigger condition, determine promise breaking trigger condition In include the range that allows to execute be specially to receive instruction time range or value data threshold value;Then, it is touched according to the promise breaking What clockwork spring part included, which allows to execute range determination, may trigger at least one behavior command of the promise breaking trigger condition as sample Behavior command.For example, if promise breaking trigger condition include allow execute range for receive instruction time range, it is determined that sample This behavior command can instruct for the termination of contract;If it is value data threshold value that promise breaking trigger condition included, which allows to execute range, Then determining sample behavior command can pay instruction for cash pledge;If what promise breaking trigger condition included allows to execute range to receive Instruction time range and value data threshold value, it is determined that sample behavior command can for hand over rent instruction.Finally, when promise breaking has been determined After at least one corresponding sample behavior command of trigger condition, at least one sample behavior command can be added to intelligent conjunction In about, so as to subsequent when receiving behavior command, behavior command can be identified based on intelligent contract.
205, contractual block is generated based on intelligent contract and contract to be created, contractual block is added in block chain.
It in embodiments of the present invention, can base after intelligent contract has been determined and has completed the creation of contract to be created Intelligent contract and contract to be created are stored in block chain, using the characteristic of block chain decentralization, guaranteed to be created Contract will not be tampered and really.Wherein, when storing intelligent contract and contract to be created using block chain, intelligence can be based on Energy contract and contract to be created generate contractual block, and contractual block is added in block chain.
It should be noted that due to the characteristic of block chain decentralization, so that the owner in the house being related to and disappearing It is stored with identical block chain in the equipment of expense person or administrative staff, therefore, adds by intelligent contract and contract to be created After adding in block chain, need to be synchronized in the block chain in the equipment for each personnel that the contract to be created is related to, from And guarantee the consistency of data.
It is electronic contract based on the contract that the above method generates during practical application, it therefore, can be based on generation Contract receive the behavior command of user, and judge whether behavior command feasible by being detected to behavior command, and Which measure is executed when behavior command is infeasible, as shown in Figure 2 B, this method comprises:
206, when receiving behavior command, determine target contract, based on the corresponding intelligent contract of target contract, inquiry with The matched target sample behavior command of behavior command.
In embodiments of the present invention, instruction can be provided in client in each contract and send entrance, when the institute in house When the person of having and consumer or administrative staff need operation a certain based on contract execution, the instruction can be triggered in contract Send entrance.When detecting that user triggers instruction transmission entrance, firstly, determining the behavior command for receiving user, and really Determining user is the instruction transmission entrance for triggering which contract, using the contract as target contract;It is closed subsequently, based on the target With corresponding intelligent contract, the matched target sample behavior command of the behavior command inquired and be currently received, so as to subsequent base Determine whether the behavior command being currently received needs to hold in the corresponding target promise breaking trigger condition of the target sample behavior command Row promise breaking right-safeguarding activity.
Wherein, in inquiry target sample behavior command matched with behavior command, it can determine and receive behavior command Instruction key;It is then determined that the target sample behavior command that instruction is key associated.For example, behavior command is that contract is whole Only instruction, cash pledge extract instruction etc. and can be determined using the instruction key that receive behavior command is identified.In practical application During, since amount information may be related in some behavior commands, instruction is rented for example, handing over, therefore, gold can be set Volume evaluation criteria, and when receiving the behavior command for being related to amount information, using the amount of money evaluation criteria to behavior command The dollar amount for including in the amount information of middle carrying assesses behavior command, so that it is determined that target sample behavior command. For example, setting amount of money evaluation criteria to be equal to 2000 yuan of corresponding sample behavior commands as value data amount is to hand over to rent instruction, amount of money number Being equal to 4000 yuan of corresponding sample behavior commands according to amount is that cash pledge pays instruction, less than 1000 yuan corresponding samples of value data amount Behavior command is maintenance cost reimbursement instruction;If the value data for including in the amount information carried in the behavior command received Amount is 2000 yuan, it is determined that the target sample behavior command with behavior instructions match is to hand over to rent instruction;If the row received Value data amount to include in the amount information that carries in instruction is 4000 yuan, it is determined that the target with behavior instructions match Sample behavior command is that cash pledge pays instruction;If the amount of money number for including in the amount information carried in the behavior command received It is 500 yuan according to amount, it is determined that the target sample behavior command with behavior instructions match is that maintenance cost reimbursement instructs.
207, determine that the corresponding target promise breaking trigger condition of target sample behavior command judges behavior based on intelligent contract Whether instruction allows to execute in range in target promise breaking trigger condition, if behavior command permitting in target promise breaking trigger condition Perhaps it executes in range, then executes following step 208;If behavior command does not allow to execute range in target promise breaking trigger condition It is interior, then execute following step 209.
In embodiments of the present invention, after target sample behavior command has been determined, the target sample row can be got To instruct corresponding target promise breaking trigger condition, based on intelligent contract, judges whether behavior instruction breaks a contract in target and trigger item Part allows to execute in range, if behavior instruction allows to execute in range in target promise breaking trigger condition, then it represents that should Behavior command currently can be executed normally, continue to other behavior commands, namely execute following step 208;If Behavior instruction does not allow to execute in range in target promise breaking trigger condition, then it represents that behavior instruction has triggered target Promise breaking trigger condition needs to be implemented the corresponding promise breaking right-safeguarding activity of target promise breaking trigger condition and carries out right-safeguarding, namely executes following Step 209.
Wherein, judged based on intelligent contract behavior command whether target promise breaking trigger condition allow execute range in When, since the range that allows to execute in target promise breaking trigger condition may include reception instruction time and value data threshold value, and It would generally be carried in behavior command about the information of value data, therefore, it is possible, firstly, to which determination receives behavior command Temporal information;Then, amount information is extracted in behavior command, it should be noted that probable behavior instructs in some scenes In can't carry amount information, such as termination of contract instruction, in this way, if it is possible to amount of money letter is extracted in behavior command Temporal information is compared with the reception instruction time for executing range is allowed then based on intelligent contract for breath, by amount information and The value data threshold value for executing range is allowed to be compared;If failing to extract amount information in behavior command, it is based on Directly temporal information is compared with the reception instruction time for executing range is allowed for intelligent contract.It should be noted that If judge the behavior instruction whether target promise breaking trigger condition allow execute range in when, need to judge behavior simultaneously The amount information of instruction and the instruction time is received, then only amount information and receiving in the instruction time has any information not in mesh Mark promise breaking trigger condition allows to execute in range, means that and currently needs to be implemented target promise breaking trigger condition.For example, setting reception The behavior command arrived is termination of contract instruction, and what the target promise breaking trigger condition that based on contract command for stopping determines included allows to hold The reception instruction time range of line range be on October 1st, 2018 after, if receive the termination of contract instruction reception refer to Enabling the time is on September 30th, 2018, then it represents that termination of contract instruction is not allowing to execute in range;If receiving the contract The reception instruction time of command for stopping is on October 2nd, 2018, then it represents that termination of contract instruction is allowing to execute in range.
It should be noted that for hand over rent instruction for, if not the stipulated time receive rent just need to be implemented it is separated Therefore about right-safeguarding activity triggers promise breaking trigger condition if not receiving friendship before the deadline and renting to instruct just to belong to. The time is rented as No. 15 of every month for example, setting and handing over, and the range that allows to execute for trigger condition of breaking a contract can be homeowner No. 15 receipts To rent, in this way, if not receiving friendship at No. 15 rents instruction, then it represents that behavior instruction is not allowing in range of instructions.
If 208, behavior command allows to execute in range in target promise breaking trigger condition, other behaviors are continued to Instruction.
In embodiments of the present invention, if behavior command allows to execute in range in target promise breaking trigger condition, table Show that the behavior command being currently received can be executed normally, at this point, just continuing without executing any promise breaking right-safeguarding activity Receive other behavior commands.
If 209, behavior command does not allow to execute in range in target promise breaking trigger condition, promise breaking triggering item is obtained The corresponding target promise breaking right-safeguarding activity of part, performance objective promise breaking right-safeguarding activity.
In embodiments of the present invention, if behavior command does not allow to execute in range in target promise breaking trigger condition, Indicate that behavior instruction is to damage to the interests of homeowner or consumer, at this point, just needing all to house Person or consumer carry out right-safeguarding, namely obtain the corresponding target promise breaking right-safeguarding activity of the trigger condition, and execute the target and disobey About right-safeguarding activity.
It should be noted that currently having triggered promise breaking dimension to make to could be aware that about the party of target contract Reminder message can be generated after executing target promise breaking right-safeguarding activity in power activity, and behavior instruction is carried in reminder message And target promise breaking trigger condition, which is transferred to whole parties of the target contract.Furthermore, it is contemplated that target The party of contract may be misled due to hand and cause to be not intended to issue behavior command, and hence it is also possible to executing target promise breaking dimension Reminder message is generated before power activity, and reminder message is transmitted.
210, data acquisition is carried out to behavior command, obtains the behavioural information of behavior command, Behavior-based control information generates letter Block is ceased, information block is added in block chain.
In embodiments of the present invention, in order to be recorded to behavior involved in the target contract, so that subsequent have card can It seeks, when detecting the behavior command based on target contract generation, obtains amount information, the personnel that behavior instruction is related to The behavioural information of data and temporal information as the behavior, behavior information is added in block chain.Wherein, it is being added to When in block chain, in order to guarantee the consistency of data in block chain, it is also necessary to by behavior synchronizing information to the target contract In the block chain of other related personnel's equipment.
Method provided in an embodiment of the present invention generates contract based on block chain, and generates the intelligent contract of management contract, will Contract is stored in block chain, the characteristics of using block chain decentralization, contract is prevented to be tampered or lose, and authenticity and is had Effect property is secure, and safety is higher.
Further, the specific implementation as Fig. 1 the method, the embodiment of the invention provides a kind of based on block chain Contract generating means, as shown in Figure 3A, described device includes: receiving module 301, sorting module 302, extraction module 303 and is added Add module 304.
First receiving module 301 is used for receipt of contract request to create, obtains the contract information of contract to be created, contract Request to create carries contract information;
The sorting module 302 carries out contract information according to default contract template whole for obtaining default contract template Reason, generates contract to be created;
The extraction module 303 will break a contract for extracting promise breaking trigger condition and promise breaking right-safeguarding activity in contract information Trigger condition and promise breaking right-safeguarding activity, which correspond to, to be stored to intelligent contract, and trigger condition of breaking a contract, which includes at least, to be allowed to execute range;
The adding module 304 adds contractual block for generating contractual block based on intelligent contract and contract to be created Into block chain.
In specific application scenarios, as shown in Figure 3B, which further includes analysis module 305 and memory module 306.
The analysis module 305 determines promise breaking trigger condition corresponding at least one for analyzing promise breaking trigger condition A sample behavior command;
The memory module 306, at least one sample behavior command to be added in intelligent contract.
In specific application scenarios, as shown in Figure 3 C, which further includes the second receiving module 307, judgment module 308 With execution module 309.
Second receiving module 307 is based on target contract pair for when receiving behavior command, determining target contract The intelligent contract answered, inquiry and the matched target sample behavior command of behavior command;
The judgment module 308, for determining the corresponding target promise breaking trigger condition of target sample behavior command, based on intelligence Contract, judges whether behavior command allows to execute in range in target promise breaking trigger condition, allows to execute range and at least provides One or both of reception instruction time range and value data threshold value;
The receiving module 301, if be also used to behavior command allows to execute in range in target promise breaking trigger condition, Process performing instruction, and continue to other behavior commands;
The execution module 309, if not allowing to execute in range in target promise breaking trigger condition for behavior command, Obtain the corresponding target promise breaking right-safeguarding activity of promise breaking trigger condition, performance objective promise breaking right-safeguarding activity.
In specific application scenarios, the judgment module 308, for determining the temporal information for receiving behavior command;When When execution range being allowed at least to define reception instruction time range and value data threshold value, amount of money letter is extracted in behavior command Temporal information is compared with the reception instruction time for executing range is allowed based on intelligent contract, by amount information and is permitted by breath Perhaps the value data threshold value for executing range is compared;Or, at least defining reception instruction time range when allowing to execute range When, based on intelligent contract, temporal information is compared with the reception instruction time for executing range is allowed.
In specific application scenarios, as shown in Figure 3D, which further includes acquisition module 310.
The acquisition module 310 obtains the behavioural information of behavior command, behavior for carrying out data acquisition to behavior command Information includes at least amount information, personal information and temporal information;
The adding module 304 is also used to Behavior-based control information, generates information block, information block is added to block chain In.
Device provided in an embodiment of the present invention can generate contract based on block chain, and the intelligence for generating management contract is closed About, contract is stored in block chain, the characteristics of using block chain decentralization, prevents contract to be tampered or lose, really Property and validity are secure, and safety is higher.
It should be noted that each function involved by a kind of contract generating means based on block chain provided in an embodiment of the present invention Other corresponding descriptions of energy unit, can describe, details are not described herein with reference to corresponding in Fig. 1 and Fig. 2A to Fig. 2 B.
In the exemplary embodiment, referring to fig. 4, a kind of equipment is additionally provided, which includes communication bus, processing Device, memory and communication interface, can also include, input/output interface and display equipment, wherein can between each functional unit To complete mutual communication by bus.The memory is stored with computer program, processor, for executing institute on memory The program of storage executes the contract generation method based on block chain in above-described embodiment.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of contract generation method based on block chain is realized when row.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben What the technical staff in field can think variation should all fall into the protection scope of the application.

Claims (10)

1. a kind of contract generation method based on block chain characterized by comprising
Receipt of contract request to create, obtains the contract information of contract to be created, and the contract request to create carries the contract letter Breath;
Default contract template is obtained, the contract information is arranged according to the default contract template, is generated described wait create Build contract;
Promise breaking trigger condition and promise breaking right-safeguarding activity are extracted in the contract information, by the promise breaking trigger condition and institute It states promise breaking right-safeguarding activity correspondence to store to intelligent contract, the promise breaking trigger condition, which includes at least, to be allowed to execute range;
Contractual block is generated based on the intelligent contract and the contract to be created, the contractual block is added to block chain In.
2. the method according to claim 1, wherein described extract promise breaking trigger condition in the contract information And promise breaking right-safeguarding activity, by the promise breaking trigger condition and the promise breaking right-safeguarding activity correspondence store to intelligent contract it Afterwards, which comprises
The promise breaking trigger condition is analyzed, determines that at least one corresponding sample behavior of the promise breaking trigger condition refers to It enables;
At least one described sample behavior command is added in the intelligent contract.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When receiving behavior command, determine target contract, based on the corresponding intelligent contract of the target contract, inquiry with it is described The matched target sample behavior command of behavior command;
The target sample behavior command corresponding target promise breaking trigger condition is determined, based on the intelligent contract, described in judgement Whether behavior command allows to execute in range in target promise breaking trigger condition, described that execution range is allowed at least to define Receive one or both of instruction time range and value data threshold value;
If the behavior command allows to execute in range target promise breaking trigger condition, executes the behavior and refer to It enables, and continues to other behavior commands;
If the behavior command does not allow to execute in range in target promise breaking trigger condition, the promise breaking touching is obtained The corresponding target promise breaking right-safeguarding activity of clockwork spring part, executes the target promise breaking right-safeguarding activity.
4. according to the method described in claim 3, it is characterized in that, described judge whether the behavior command is disobeyed in the target About trigger condition allow execute range in, comprising:
Determine the temporal information for receiving the behavior command;
When it is described allow to execute range and at least define receive instruction time range and when value data threshold value, refer in the behavior Amount information is extracted in order, and based on the intelligent contract, the temporal information and the reception for allowing to execute range are instructed Time is compared, and allows the value data threshold value for executing range to be compared with described the amount information;Or,
When it is described allow to execute range at least define receive instruction time range when, based on the intelligent contract, when will be described Between information with it is described allow execute range the reception instruction time be compared.
5. according to the method described in claim 3, it is characterized in that, the method also includes:
Data acquisition is carried out to the behavior command, obtains the behavioural information of the behavior command, the behavioural information is at least wrapped Include amount information, personal information and temporal information;
Based on the behavioural information, information block is generated, the information block is added in the block chain.
6. a kind of contract generating means based on block chain characterized by comprising
First receiving module is used for receipt of contract request to create, obtains the contract information of contract to be created, and the contract creation is asked It asks and carries the contract information;
Sorting module arranges the contract information according to the default contract template for obtaining default contract template, Generate the contract to be created;
Extraction module, for extracting promise breaking trigger condition and promise breaking right-safeguarding activity in the contract information, by the promise breaking Trigger condition and the promise breaking right-safeguarding activity, which correspond to, to be stored to intelligent contract, and the promise breaking trigger condition, which includes at least, to be allowed to hold Line range;
Adding module, for generating contractual block based on the intelligent contract and the contract to be created, by the contractual block It is added in block chain.
7. device according to claim 6, which is characterized in that described device includes:
Analysis module determines the promise breaking trigger condition corresponding at least one for analyzing the promise breaking trigger condition A sample behavior command;
Memory module, at least one described sample behavior command to be added in the intelligent contract.
8. device according to claim 6, which is characterized in that described device further include:
Second receiving module is based on the corresponding intelligence of the target contract for when receiving behavior command, determining target contract It can contract, inquiry and the matched target sample behavior command of the behavior command;
Judgment module is based on the intelligence for determining the corresponding target promise breaking trigger condition of the target sample behavior command Contract, judges whether the behavior command allows to execute in range in target promise breaking trigger condition, described to allow to execute Range, which at least defines, receives one or both of instruction time range and value data threshold value;
The receiving module, if be also used to the behavior command allows to execute range in target promise breaking trigger condition It is interior, then continue to other behavior commands;
Execution module, if not allowing to execute in range in target promise breaking trigger condition for the behavior command, The corresponding target promise breaking right-safeguarding activity of the promise breaking trigger condition is obtained, the target promise breaking right-safeguarding activity is executed.
9. a kind of equipment, including memory and processor, the memory are stored with computer program, which is characterized in that described The step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201811534598.7A 2018-12-14 2018-12-14 Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain Pending CN109559257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811534598.7A CN109559257A (en) 2018-12-14 2018-12-14 Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811534598.7A CN109559257A (en) 2018-12-14 2018-12-14 Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain

Publications (1)

Publication Number Publication Date
CN109559257A true CN109559257A (en) 2019-04-02

Family

ID=65870183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811534598.7A Pending CN109559257A (en) 2018-12-14 2018-12-14 Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain

Country Status (1)

Country Link
CN (1) CN109559257A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110084572A (en) * 2019-05-09 2019-08-02 北京智签科技有限公司 A kind of electronic contract based on block chain is honoured an agreement processing method automatically
CN110223200A (en) * 2019-04-16 2019-09-10 深圳壹账通智能科技有限公司 Intelligent contract maintaining method, device, electronic equipment and storage medium
CN110399734A (en) * 2019-06-17 2019-11-01 深圳壹账通智能科技有限公司 A kind of approaches to IM, device, storage medium and server
CN110647581A (en) * 2019-09-11 2020-01-03 杭州趣链科技有限公司 Electronic contract configuration management system and method based on block chain
CN110706135A (en) * 2019-09-24 2020-01-17 支付宝(杭州)信息技术有限公司 Contract processing method and device
CN110751561A (en) * 2019-10-24 2020-02-04 支付宝(杭州)信息技术有限公司 Credit contract creating method and device
CN111159304A (en) * 2020-04-01 2020-05-15 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system based on block chain
CN111431988A (en) * 2020-03-19 2020-07-17 财付通支付科技有限公司 Vehicle information storage method and device based on block chain and storage medium
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN112001794A (en) * 2020-09-02 2020-11-27 上海市建筑学会 Intelligent contract generating method, computer device, and storage medium
CN112785463A (en) * 2021-01-22 2021-05-11 深圳市瀚兰区块链地产有限公司 Processing method, device and system for intelligent house property contract

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034450A (en) * 2007-04-06 2007-09-12 刘明晶 Electronic contract automatic settlement method
US20170287090A1 (en) * 2016-03-31 2017-10-05 Clause, Inc. System and method for creating and executing data-driven legal contracts
CN108197891A (en) * 2018-01-05 2018-06-22 法信公证云(厦门)科技有限公司 A kind of electronic signature device and method based on block chain
CN108269062A (en) * 2018-01-23 2018-07-10 平安普惠企业管理有限公司 Electronic contract production method, device, equipment and medium based on H5
CN108648056A (en) * 2018-05-10 2018-10-12 中链科技有限公司 A kind of house lease contract processing method and system based on block chain
CN108694654A (en) * 2018-07-02 2018-10-23 浙江大学 A kind of house lease system and rent method based on block chain
US20180322588A1 (en) * 2017-05-06 2018-11-08 Adp, Llc Implementation of payroll smart contract on a distributed ledger

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101034450A (en) * 2007-04-06 2007-09-12 刘明晶 Electronic contract automatic settlement method
US20170287090A1 (en) * 2016-03-31 2017-10-05 Clause, Inc. System and method for creating and executing data-driven legal contracts
US20180322588A1 (en) * 2017-05-06 2018-11-08 Adp, Llc Implementation of payroll smart contract on a distributed ledger
CN108197891A (en) * 2018-01-05 2018-06-22 法信公证云(厦门)科技有限公司 A kind of electronic signature device and method based on block chain
CN108269062A (en) * 2018-01-23 2018-07-10 平安普惠企业管理有限公司 Electronic contract production method, device, equipment and medium based on H5
CN108648056A (en) * 2018-05-10 2018-10-12 中链科技有限公司 A kind of house lease contract processing method and system based on block chain
CN108694654A (en) * 2018-07-02 2018-10-23 浙江大学 A kind of house lease system and rent method based on block chain

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223200A (en) * 2019-04-16 2019-09-10 深圳壹账通智能科技有限公司 Intelligent contract maintaining method, device, electronic equipment and storage medium
CN110084572A (en) * 2019-05-09 2019-08-02 北京智签科技有限公司 A kind of electronic contract based on block chain is honoured an agreement processing method automatically
CN110399734A (en) * 2019-06-17 2019-11-01 深圳壹账通智能科技有限公司 A kind of approaches to IM, device, storage medium and server
CN110647581A (en) * 2019-09-11 2020-01-03 杭州趣链科技有限公司 Electronic contract configuration management system and method based on block chain
CN110706135A (en) * 2019-09-24 2020-01-17 支付宝(杭州)信息技术有限公司 Contract processing method and device
CN110751561A (en) * 2019-10-24 2020-02-04 支付宝(杭州)信息技术有限公司 Credit contract creating method and device
CN111431988A (en) * 2020-03-19 2020-07-17 财付通支付科技有限公司 Vehicle information storage method and device based on block chain and storage medium
CN111431988B (en) * 2020-03-19 2023-02-10 财付通支付科技有限公司 Vehicle information storage method and device based on block chain and storage medium
CN111159304A (en) * 2020-04-01 2020-05-15 支付宝(杭州)信息技术有限公司 Data processing method, device, equipment and system based on block chain
CN111597269A (en) * 2020-05-21 2020-08-28 昆明大棒客科技有限公司 Block chain-based contract implementation method, device and equipment
CN112001794A (en) * 2020-09-02 2020-11-27 上海市建筑学会 Intelligent contract generating method, computer device, and storage medium
CN112785463A (en) * 2021-01-22 2021-05-11 深圳市瀚兰区块链地产有限公司 Processing method, device and system for intelligent house property contract

Similar Documents

Publication Publication Date Title
CN109559257A (en) Contract generation method, device, equipment and readable storage medium storing program for executing based on block chain
CN105247541B (en) Financial account information is extracted in the improved digital picture from card
CN110008903A (en) Face identification method, device, system, storage medium and face method of payment
CN110495132A (en) System and method for being generated in distributed network node, uploading and execute code block
CN108805707A (en) Works copyright revenue distribution method and device based on block chain
US20130036373A1 (en) Systems and Methods for Providing a Virtual Currency Exchange
CN107111702A (en) Access in cooperative surroundings for data loss prevention is prevented
CN109242280A (en) User behavior data processing method, device, electronic equipment and readable medium
CN109003192A (en) A kind of insurance underwriting method and relevant device based on block chain
CN104780187B (en) Linking processing method, device, server, client and system
CN109643300A (en) The system and method for privacy of user are safeguarded in the application program that product and/or service are provided
CN109146583A (en) bill processing method and device, storage medium and electronic device
CN110009365B (en) User group detection method, device and equipment for abnormally transferring electronic assets
CN107392614B (en) Method and device for realizing offline transaction
CN108280358A (en) Information reminding method and device and electronic equipment
CN108171527A (en) Management System for Clients Information and method
CN107302586A (en) A kind of Webshell detection methods and device, computer installation, readable storage medium storing program for executing
CN110598441A (en) User privacy protection method and device
CN109242292A (en) A kind of asset evaluation method, block chain node device and system
CN108960820A (en) A kind of real name identification method based on block chain, system and storage medium
CN111967062A (en) Data processing system, method and device based on block chain
CN110175833A (en) A kind of computer installation, method, system and medium for binding bank card information
CN109598425A (en) The method, device and equipment that a kind of pair of risk subjects are managed
D’souza et al. Blockchain and AI in pharmaceutical supply chain
Reardon et al. Visualization of ATM usage patterns to detect counterfeit cards usage

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