CN110033269A - Contract based on block chain consults method and device, electronic equipment, storage medium - Google Patents

Contract based on block chain consults method and device, electronic equipment, storage medium Download PDF

Info

Publication number
CN110033269A
CN110033269A CN201910203831.1A CN201910203831A CN110033269A CN 110033269 A CN110033269 A CN 110033269A CN 201910203831 A CN201910203831 A CN 201910203831A CN 110033269 A CN110033269 A CN 110033269A
Authority
CN
China
Prior art keywords
contract
consultation
participant
target
transaction
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
CN201910203831.1A
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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910203831.1A priority Critical patent/CN110033269A/en
Publication of CN110033269A publication Critical patent/CN110033269A/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

This specification provides a kind of contract consultation method based on block chain, this method comprises: the contract comprising target contract that receipt of contract consultation initiator's client is submitted identifies and consults transaction for the contract of the modification information of the treaty content of the target contract;Call the contract consultation logic stated in intelligent contract, it generates the contract for the target contract corresponded to and consults event, when so that each contract consultation participant client listening to the contract consultation event, corresponding contract consultation participant is prompted to confirm the modification information;And, call the change to the contract logic stated in intelligent contract, it is modified based on treaty content of the modification information to the target contract, and generate the contract consultation completion event for the target contract for corresponding to contract consultation participant, when so that each contract consultation participant client listening to the contract consultation completion event, target contract consultation described in corresponding contract consultation participant is prompted to complete.

Description

Contract based on block chain consults method and device, electronic equipment, storage medium
Technical field
This specification one or more embodiment is related to block chain technical field more particularly to a kind of conjunction based on block chain With consultation method and device, electronic equipment, storage medium.
Background technique
Block chain technology is also referred to as distributed account book technology, is that one kind is participated in " remembering jointly by several calculating equipment Account ", the emerging technology of common a complete distributed data base of maintenance.Since block chain technology has decentralization, openly Transparent, every calculating equipment can participate in data-base recording and respectively calculate that data synchronization can be rapidly performed by between equipment Characteristic so that block chain technology is widely applied in numerous fields.
Summary of the invention
In view of this, this specification one or more embodiment provides a kind of contract consultation method and dress based on block chain It sets, electronic equipment, storage medium.
To achieve the above object, it is as follows to provide technical solution for this specification one or more embodiment:
According to this specification one or more embodiment in a first aspect, proposing a kind of contract consultation based on block chain Method, comprising:
Receipt of contract consults the contract that initiator's client is submitted and consults transaction, and the contract consultation transaction is closed comprising target The modification information of same contract mark and the treaty content for the target contract;
It consults and trades in response to the contract, the contract consultation for calling publication to state in the intelligent contract on block chain is patrolled Volume, it generates the contract for the target contract corresponded to and consults event, so that each contract consultation participant client is monitored When consulting event to the contract, corresponding contract consultation participant is prompted to confirm the modification information;And
In response to the consultation confirmation transaction for the modification information that each contract consultation participant received is submitted, adjust The change to the contract logic stated in the intelligent contract on block chain with publication, based on the modification information to the target contract Treaty content modify, and generate correspond to the contract consultation participant for the target contract contract consultation Completion event prompts corresponding conjunction when so that each contract consultation participant client listening to the contract consultation completion event It is completed with target contract consultation described in consultation participant.
Optionally, the template identification for the contract template that the contract mark is used with the target contract, contract consultation are joined It is established with the treaty content of side, the target contract relevant;Described generate corresponds to being directed to for contract consultation participant The contract of the target contract consults event, comprising:
The modification information and contract mark are established into incidence relation;
It determines that the contract of the target contract consults participant according to contract mark, and generates and correspond to the conjunction The contract for the target contract with consultation participant consults event;Wherein, the contract consultation event includes the conjunction With mark.
Optionally, further includes:
It receives the consultation that each contract consultation participant client is submitted and checks that transaction, the consultation check transaction comprising described The contract of target contract identifies;
Transaction is checked in response to the consultation, is called the consultation stated in intelligent contract to check logic, is searched and the conjunction With template identification, treaty content, the modification information of the target contract for identifying associated contract template;And
The treaty content of the target contract is added in contract template corresponding with the template identification and is carried out visually Change rendering, and returns to the target contract and modification letter that visualization renders to each contract consultation participant client Breath.
Optionally, the consultation confirmation transaction of each contract consultation participant submission is comprising consulting what participant was held with each contract The corresponding private key signature of private key;Described generate is consulted corresponding to the contract for the target contract of contract consultation participant Quotient completes event, comprising:
Determine whether to receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;
If receiving the corresponding private key signature of all contracts consultation participant of the target contract, generation pair The contract for the target contract that contract described in Ying Yu consults participant consults completion event.
Optionally, further includes:
Completion event is consulted generating the contract for the target contract for corresponding to contract consultation participant Later, the target contract is labeled as having consulted state.
Optionally, further includes:
After being labeled as the target contract to have consulted state, according to the entry-into-force time recorded in the treaty content The target contract is labeled as active states.
Optionally, further includes:
Receive the contract status more New Transaction for the target contract that any contract consultation participant is submitted, the conjunction It include the last state of the target contract with state more New Transaction;
In response to the contract status more New Transaction, the status maintenance for calling publication to state in the intelligent contract on block chain Change logic, generates the contract status update event for the target contract for corresponding to contract consultation participant, so that When each contract consultation participant client listens to the contract status update event, corresponding contract consultation participant pair is prompted The last state of the target contract is confirmed;And
In response to the conjunction for the last state for the target contract that all contracts consultation participant received is submitted It trades with state confirmation, the status modifier logic for calling publication to state in the intelligent contract on block chain closes the target Same contract status is updated to the last state.
Optionally, the contract status includes at least one of: contracting, terminates an agreement, freezing, thawing, is expired, coming into force.
Optionally, further includes:
Count the number for the contract consultation transaction that each contract consultation participant is returned for same treaty content;
The number obtained according to statistics scores to each contract consultation participant;Wherein, the fractional value and system of scoring It is negatively correlated to count obtained number.
According to the second aspect of this specification one or more embodiment, a kind of contract consultation based on block chain is proposed Device, comprising:
First receiving unit, receipt of contract consult the contract that initiator's client is submitted and consult transaction, the contract consultation The modification information of contract mark and treaty content for the target contract of the transaction comprising target contract;
First prompt unit is consulted in response to the contract and is traded, and sound in the intelligent contract issued on block chain is called Bright contract consults logic, generates the contract for the target contract corresponded to and consults event, so that each contract consultation ginseng When listening to the contract consultation event with square client, corresponding contract consultation participant is prompted to carry out the modification information Confirmation;And
Unit is consulted, the consultation for the modification information submitted in response to each contract consultation participant received is true Recognize transaction, the change to the contract logic for calling publication to state in the intelligent contract on block chain, based on the modification information to institute The treaty content for stating target contract is modified, and is generated and be directed to the target contract corresponding to contract consultation participant Contract consult completion event, when so that each contract consultation participant client listening to contract consultation completion event, mention Show that target contract consultation described in corresponding contract consultation participant is completed.
Optionally, the template identification for the contract template that the contract mark is used with the target contract, contract consultation are joined It is established with the treaty content of side, the target contract relevant;First prompt unit is specifically used for:
The modification information and contract mark are established into incidence relation;
It determines that the contract of the target contract consults participant according to contract mark, and generates and correspond to the conjunction The contract for the target contract with consultation participant consults event;Wherein, the contract consultation event includes the conjunction With mark.
Optionally, further includes:
Second receiving unit receives the consultation that each contract consultation participant client is submitted and checks that transaction, the consultation are looked into See that transaction is identified comprising the contract of the target contract;
Searching unit checks transaction in response to the consultation, calls the consultation stated in intelligent contract to check logic, search The template identification of associated contract template, the treaty content of the target contract, the modification information are identified with the contract;With And
The treaty content of the target contract is added in contract template corresponding with the template identification by rendering unit It carries out visualization rendering, and returns to the target contract that visualization renders and described to each contract consultation participant client Modification information.
Optionally, the consultation confirmation transaction of each contract consultation participant submission is comprising consulting what participant was held with each contract The corresponding private key signature of private key;The consultation unit is specifically used for:
Determine whether to receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;
If receiving the corresponding private key signature of all contracts consultation participant of the target contract, generation pair The contract for the target contract that contract described in Ying Yu consults participant consults completion event.
Optionally, further includes:
First marking unit is generating the contract for the target contract for corresponding to contract consultation participant After consulting completion event, the target contract is labeled as to have consulted state.
Optionally, further includes:
Second marking unit, after being labeled as the target contract to have consulted state, according in the treaty content The target contract is labeled as active states by the entry-into-force time of record.
Optionally, further includes:
Third receiving unit receives the contract status for the target contract of any contract consultation participant submission more New Transaction, the contract status more New Transaction include the last state of the target contract;
Second prompt unit calls intelligent contract of the publication on block chain in response to the contract status more New Transaction The status modifier logic of middle statement generates the contract status for the target contract for corresponding to contract consultation participant Update event prompts corresponding conjunction when so that each contract consultation participant client listening to the contract status update event The last state of the target contract is confirmed with consultation participant;And
Status modifier unit, in response to all contracts consultation participant for receiving submit for the target contract The contract status of last state confirms transaction, the status modifier logic for calling publication to state in the intelligent contract on block chain, The contract status of the target contract is updated to the last state.
Optionally, the contract status includes at least one of: contracting, terminates an agreement, freezing, thawing, is expired, coming into force.
Optionally, further includes:
Statistic unit counts time for the contract consultation transaction that each contract consultation participant is returned for same treaty content Number;
Score unit, and the number obtained according to statistics scores to each contract consultation participant;Wherein, point of scoring Numerical value and the number that statistics obtains are negatively correlated.
According to the third aspect of this specification one or more embodiment, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize the base as described in above-mentioned any embodiment Method is consulted in the contract of block chain.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with Machine instruction realizes that the contract as described in any in above-described embodiment based on block chain consults method when the instruction is executed by processor The step of.
Detailed description of the invention
Fig. 1 is a kind of flow chart for contract signature method based on block chain that an exemplary embodiment provides.
Fig. 2 is a kind of overall architecture signal for contract signature scheme based on block chain that an exemplary embodiment provides Figure.
Fig. 3 is a kind of interaction figure for preview contract based on block chain that an exemplary embodiment provides.
Fig. 4 is a kind of interaction figure for contract signature method based on block chain that an exemplary embodiment provides.
Fig. 5 is a kind of interaction figure for checking contract based on block chain that an exemplary embodiment provides.
Fig. 6 is a kind of flow chart for contract consultation method based on block chain that an exemplary embodiment provides.
Fig. 7 is a kind of overall architecture signal for contract consultation scheme based on block chain that an exemplary embodiment provides Figure.
Fig. 8 is a kind of interaction figure for contract consultation method based on block chain that an exemplary embodiment provides.
Fig. 9 is a kind of interaction for modification information for checking target contract based on block chain that an exemplary embodiment provides Figure.
Figure 10 is a kind of interaction figure for contract of novation state based on block chain that an exemplary embodiment provides.
Figure 11 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.
Figure 12 is a kind of block diagram for contract device based on block chain that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
Referring to Figure 1, Fig. 1 is a kind of process for contract signature method based on block chain that an exemplary embodiment provides Figure.As shown in Figure 1, this method is applied to block chain node, may comprise steps of:
Step 102, the contract that receipt of contract signature initiator's client is submitted signs transaction, the contract signature transaction packet Participant is signed containing contract corresponding with target contract to be signed.
In one embodiment, lower consultation one can be drafted online between contract signature initiator and other contracts signature participant Part target contract to be signed, contract signature initiator can submit contract to block chain node by client after the completion of consultation Signature transaction, to complete the signature to target contract.
Step 104, it signs and trades in response to the contract, the conjunction for calling publication to state in the intelligent contract on block chain With signature logic, generates and sign event corresponding to the contract for the target contract of contract signature participant, so that When each contract signature participant client listens to the contract signature event, prompt corresponding contract signature participant to described Target contract carries out signature confirmation.
It in one embodiment, can be in the client and publication that contract signs participant (signing initiator including contract) in area Contract mould is pre-configured in intelligent contract on block chain (or in the third party's trusted storage space for corresponding to the intelligence contract) Plate.So, contract signature initiator and other contracts signature participant can be chosen and the contract phase when drafting a contract The contract template matched, and fill in contract template and the customized treaty content of initiator need to be signed by contract.For example, to be signed Contract is to rent a house contract, and contract signature initiator is optional to take in drafting the contract template of house-leasing contract, and fills in corresponding Need customized treaty content, such as rent, rental period, house address, the identity information for leasing both sides etc..Based on to contract mould The configuration of plate, contract sign in the contract signature transaction that initiator is submitted by client except comprising contract signature participant it It outside, also may include treaty content of the template identification with target contract of contract template.So, block chain node is received in response Contract when signing transaction, the contract creation logic issued and stated in intelligent contract on block chain can be called, closed for target With creation contract mark, and the incidence relation of contract mark, template identification, treaty content and contract signature participant is established, it will Incidence relation is stored in the slip condition database of the intelligence contract.Meanwhile the incidence relation intelligent contract state After the completion of storing in database, the contract stated in the intelligence contract is further called to sign logic, generates and correspond to contract label The contract for target contract for affixing one's name to participant signs event;Wherein, contract signature event includes the contract mark of target contract.
In one embodiment, each contract signature participant client signs event in the contract for listening to intelligent contract generation Afterwards, corresponding contract signature participant can be prompted to carry out signature confirmation to target contract.So, contract signature participant can pass through Respective client submits contract to check that transaction (the contract mark comprising target contract) comes to target contract to block chain node It is checked, initiator is signed with confirmation contract and initiates whether the target contract of signature is the contract for consulting completion before, thus The contract that consultation is completed before preventing contract signature initiator from distorting.Block chain node is receiving each contract signature participant visitor After the contract that family end is submitted checks transaction (contract checks that transaction is identified comprising the contract of target contract), looked into response to the contract It sees transaction, calls the contract stated in intelligent contract to check logic, search the template mark for identifying associated contract template with contract Know the treaty content with target contract.Further, then by the treaty content of target contract it is added to corresponding with template identification Visualization rendering is carried out in contract template, and is returned to the target that visualization renders to each contract signature participant client and closed Together.
Step 106, the signature for the target contract in response to each contract signature participant submission received is true Recognize transaction, calls the contract signature logic stated in the intelligent contract, generate the needle for corresponding to contract signature participant Completion event is signed to the contract of the target contract, so that each contract signature participant client listens to the contract signature When completion event, target contract signature described in corresponding contract signature participant is prompted to complete.
In one embodiment, each contract signs participant after by checking that target contract confirms that target contract is errorless, The signature for target contract can be submitted to confirm transaction to block chain node.Wherein, the signature that each contract signature participant is submitted Private key signature corresponding with the private key that each contract signature participant is held that confirmation transaction includes.So block chain node is receiving After the signature confirmation transaction for target contract that each contract signature participant is submitted, the contract stated in intelligent contract can be called Sign logic, it is determined whether receive the private key signature for including in the signature confirmation transaction that each contract signature participant is submitted, such as The corresponding private key signature of all contracts signature participant that fruit receives target contract (illustrates that all contract signature participants are equal Agreement contract signs the target contract that initiator submits), then generate correspond to contract signature participant for target contract Contract signs completion event, so that when each contract signature participant client listens to contract signature completion event, it can Corresponding contract signature participant target contract signature is prompted to complete.
In one embodiment, if contract signature participant is disagreed after checking target contract in the contract of the target contract Hold, then event can be signed to contract and not responded, i.e., does not return to the signature confirmation transaction for target contract;Alternatively, returning Back stitching vetos transaction to the signature of target contract.So, if block chain node does not receive all contracts in preset duration It signs the signature for target contract that participant is submitted and confirms transaction;Alternatively, receiving at least one contract signature participant Transaction is vetoed in the signature for the target contract submitted, then target contract is labeled as invalid state.
In one embodiment, the contract signature completion for target contract for corresponding to contract signature participant is being generated After event (at this point, the signature to target contract is completed), target contract is labeled as signed state.Further, exist By target contract labeled as after signed state, target contract is labeled as by the entry-into-force time that can be recorded in content as agreed Active states.
In one embodiment, after completing to the signature of target contract, contract signs participant can also be by submitting needle Apply for the contract status more New Transaction of target contract modifying the contract status of target contract.Therefore, block chain node can connect (contract status more New Transaction includes the contract status more New Transaction for target contract for receiving that any contract signature participant submits The last state of target contract), and in response to the contract status more New Transaction, call publication in the intelligent contract on block chain The status modifier logic of statement generates the contract status update event for target contract for corresponding to contract signature participant (the contract status update event is corresponding with the last state of the target contract, the contract mark including target contract, for referring to Show that the contract status by target contract is updated to the last state;For example, last state is to release signature state, then the contract shape State update event is to indicate that contract status is updated to release the contract status update event of signature state) so that each contract is signed When participant client listens to the contract status update event, prompt corresponding contract signature participant to target contract most New state is confirmed.Similar, each contract signature participant is when listening to contract status update event, if agreeing to mesh The contract status of mark contract is updated to the last state, then the last state for being directed to target contract can be submitted to block chain node Contract status confirmation transaction.So, block chain node may be in response to being directed to for all contracts received signature participant submission The contract status of the last state of target contract confirms transaction, the state for calling publication to state in the intelligent contract on block chain Logic is modified, the contract status of target contract is updated to the last state.
In one embodiment, similar, the contract status of target contract is updated to if contract signature participant disagrees The last state, then can not respond contract status update event, i.e., do not return to the last state for target contract Contract status confirm transaction;Alternatively, returning to the contract status rejection transaction for the last state of target contract.So, area If block chain node does not receive the newest shape for target contract that all contract signature participants are submitted in preset duration The contract status of state confirms transaction, or receive that at least one contract signature participant submits for the newest of target contract The contract status of state vetos transaction, then ignores the contract status more New Transaction, do not execute the contract status of target contract more It is newly the operation of the last state.For example, mentioning for modification state failure can be returned to the sender of contract status more New Transaction Show message.
In one embodiment, the contract status of target contract may include at least one of: signed, release signature, Freeze, thaw, is expired, coming into force.
It should be noted that the transaction in block chain, there are points of the transaction of narrow sense and the transaction of broad sense.The friendship of narrow sense Easily refer to the value Transfer that user issues to block chain;For example, in traditional bit coin block chain network, transaction can be with It is that initiate in block chain one of user transfers accounts.And the transaction of broad sense refers to that one that user issues to block chain has business The business datum of intention;For example, operator can build alliance's chain based on actual business demand, chain portion, alliance is relied on Affix one's name to it is some it is unrelated with value Transfer it is other types of in line service (for example, business of renting a house, vehicle scheduling business, settlement of insurance claim Business, credit services, medical services etc.), and in this kind of alliance's chain, transaction can be one that user issues in alliance's chain The service message or service request being intended to business.
Fig. 2 is a kind of overall architecture signal for contract signature scheme based on block chain that an exemplary embodiment provides Figure.As shown in Fig. 2, contract signature initiator 20 can first pass through client 21 in advance and carry out account registration at server 22, obtain To with itself unique corresponding registered account.Then, contract signature initiator 20 can be somebody's turn to do by logging in client 21 Registered account, and server 22 determines the registered account based on the log-on message of the registered account in client 21 Binding relationship is established between (correspond to contract and sign initiator 20) and client 21.Wherein, which is contract label Affix one's name to the binding relationship between the user information of initiator 20 and the facility information of client 21.Based on the binding relationship, server 22, in the contract signature transaction and signature confirmation transaction for receiving the subsequent transmission of client 21, can be confirmed that these transaction correspond to Initiator 20 is signed in contract.Operation has the client of block chain on server 22, so that the server 22 is configured as an area Block chain node.Contract signature initiator 20 can log in registered account in client 21, and fill in target contract to be signed Contract related content (for example, the template identification of contract template, treaty content, contract signature participant etc.), to pass through client End 21 sends the contract comprising the contract related content to server 22 and signs transaction.Server 22 (as block chain node) exists Intelligent contract is called to generate corresponding contract signature event to be led to by each contract signature participant after receiving contract signature transaction It crosses submission signature confirmation transaction to confirm it, and after receiving the signature confirmation transaction that each contract signature participant is submitted Target contract is signed.
In order to make it easy to understand, the operation realized during contract is signed respectively below for client and server and function Can, it is described in detail in conjunction with the technical solution of Fig. 3-5 pairs of this specification.
Fig. 3 is referred to, Fig. 3 is a kind of interaction figure for preview contract based on block chain that an exemplary embodiment provides. As shown in figure 3, this method may comprise steps of:
Step 302, client 21 sends contract template id and dynamic field to server 22.
Step 304, server 22 calls the contract stated in intelligent contract to check that logic is obtained according to contract template id and closes Same template.
Step 306, the template field in contract template is replaced by dynamic field.
In one embodiment, contract template may include at least one of: contract terms, are closed at the sequence of contract terms With format, the grouping of contract terms etc. of clause.Wherein, the template field in contract terms is used for by contract signature initiator visitor The dynamic field replacement that family end is submitted.For example, contract terms are Party A to Party B's rented house, term of a lease is XX XX month XX Day to XX XX month XX day;House address is XXX, floor space XXX.Wherein, term of a lease, house address, floor space Specific value for template field, the template field can sign the dynamic field that initiator Party A is filled in by client by contract It replaces, so as to rendering to obtain final target contract.
Step 308, visualization rendering is carried out to replaced contract template.
Step 310, server 22 returns to the target contract that visualization renders to client 21.
In one embodiment, when contract signature initiator 20 needs to submit a target contract drafted, visitor can be passed through Family end 21 sends the contract template id that target contract uses and the dynamic field filled in server 22, so that server 22 passes through The contract stated in intelligent contract is called to check that logic carries out visualization rendering, and the mesh that visualization is rendered to target contract Mark contract is back to client 21, to realize preview of the contract signature initiator to drafted target contract.Further, it closes With signature, initiator 20 can check whether the target contract reaches expected by the preview to drafted target contract, and can root It modifies according to actual conditions to target contract.So, when the target contract drafted reaches expected, contract signs initiator 20 can initiate the signature to the target contract.
Fig. 4 is referred to, Fig. 4 is a kind of interaction for contract signature method based on block chain that an exemplary embodiment provides Figure.As shown in figure 4, the interactive process for signing target contract between client 21, server 22, client 23, is handed over Mutual process may comprise steps of:
Step 402, client 21 sends contract signature transaction to server 22.
In one embodiment, contract signature initiator 20 is by the signature transaction of transmission contract to initiate the label to target contract Administration.Wherein, contract signature transaction signs participant, contract template id, dynamic comprising the corresponding contract of target contract to be signed The information such as field.
Step 404, server 22 generates contract and signs event.
In one embodiment, server 22 calls intelligence of the publication on block chain after receiving contract signature transaction The contract creation logic that can be stated in contract, creates contract number for target contract, and establish contract number, contract template id, Dynamic field and contract signature participant incidence relation, by the incidence relation established the intelligence contract slip condition database In stored.Further, after the completion of storage, the contract stated in the intelligence contract is called to sign logic, generates and corresponds to Event is signed in the contract for target contract of each contract signature participant.It is created for example, can record in contract signature event The contract number for the target contract built and each contract of target contract sign participant.
Step 406A, client 21 monitor contract and sign event.
Step 406B, client 23 monitor contract and sign event..
In one embodiment, each client docked with block chain node listen to contract signature event when, according to The contract signature participant recorded in contract signature event judges itself whether belong to contract signature participant, and then is judging Signature confirmation is carried out to target contract by checking the particular content of target contract when itself belonging to contract signature participant.Under Face is described in detail the process for checking target contract by taking client 23 as an example, in conjunction with Fig. 5.
Fig. 5 is referred to, Fig. 5 is a kind of interaction figure for checking contract based on block chain that an exemplary embodiment provides. As shown in figure 5, the interactive process may comprise steps of:
In step 502, client 23 checks transaction to 22 transmission contract of server.
In one embodiment, when the contract signature participant for corresponding to client 23 need to treat the target contract of signature into When row signature confirmation, it can check that target contract is checked in transaction, by submission contract to confirm that target contract is errorless.Its In, contract checks the contract number in transaction comprising target contract to be viewed.
In step 504, server 22 calls the contract stated in intelligent contract to check logic, searches and closes with contract number Contract template id, dynamic field, contract signature participant and the contract status of connection (since target contract is not yet signed at this time, are located In not signing state).
In step 506, the template field in contract template is replaced by dynamic field.
In step 508, visualization rendering is carried out to replaced contract template.
In one embodiment, the process of step 506-508 is similar with the process of above-mentioned steps 306-308, no longer superfluous herein It states.
In step 510, server 22 returns to target contract, the contract signature participation that visualization renders to client 23 Side and contract status.
Step 408A, client 21 send signature confirmation transaction to server 22.
Step 408B, client 23 send signature confirmation transaction to server 22.
In one embodiment, mesh is checked by above-mentioned corresponding to the contract of client 21 and client 23 signature participant After the process confirmation target contract of mark contract can be signed, the signature confirmation transaction for corresponding to itself is sent to server 22, Target contract is signed with the agreement of tell the server 22.Wherein, the signature that each contract signature participant is submitted confirms transaction Include private key signature corresponding with each contract private key for holding of signature participant.
Step 410, server 22 generates contract and signs completion event.
In one embodiment, server 22 calls the contract stated in intelligent contract after receiving signature confirmation transaction Sign logic, it is determined whether receive the private key label for including in the signature confirmation transaction that each contract signature participant is submitted Name;If receiving the corresponding private key signature of all contracts signature participant of target contract, illustrate all contract signature ginsengs Target contract is signed with Fang Jun agreement, then target contract can be signed (for example, all contracts are signed participant Corresponding private key signature and contract number associated storage) and generate corresponding to each contract signature participant for target contract Contract sign completion event.Similar, contract signs the contract number that can record target contract in completion event and target is closed Same each contract signs participant.
In one embodiment, if contract signature participant is disagreed after checking target contract in the contract of the target contract Hold, then event can be signed to contract and not responded, i.e., does not return to the signature confirmation transaction for target contract;Alternatively, returning Back stitching vetos transaction to the signature of target contract.So, if server 22 does not receive all contract label in preset duration It affixes one's name to the signature for target contract that participant is submitted and confirms transaction;It is mentioned alternatively, receiving at least one contract signature participant Transaction is vetoed in the signature for the target contract handed over, then target contract is labeled as invalid state.
In one embodiment, the contract signature completion for target contract for corresponding to contract signature participant is being generated After event (at this point, the signature to target contract is completed), target contract is labeled as signed state.Further, exist By target contract labeled as after signed state, what can be recorded in content (can be recorded in dynamic field) as agreed comes into force Target contract is labeled as active states by the time.
Step 412A, client 21 monitor contract and sign completion event.
Step 412B, client 23 monitor contract and sign completion event.
Step 414A, client 21 confirm that target contract completes signature.
Step 414B, client 23 confirm that target contract completes signature.
In one embodiment, each contract signature participant (is client 21 and client 23 in the present embodiment User) after receiving for the contract signature completion event of target contract, it can confirm that the signature of target contract is completed.
In one embodiment, participant (i.e. contract signature is signed by the contract for corresponding to client 21 due to target contract Initiator) it drafts and initiates to sign, the contract of client 21 signature participant often agrees to the signature to target contract, and its His contract signature participant may and disagree (even if pass through before under line with the contract of client 21 signature participant into Went and consult and reach an agreement) signature to target contract.And in the contract signature scheme based on block chain of this specification, The target contract drafted between each contract signature participant contract signature initiator is also supported to propose modification, and on chain Modification information is consulted, and when obtaining confirmation of all contract signature participants to the modification information based on intelligent contract It modifies to the target contract that this is drafted, to complete the consultation and signature of target contract.It is said below with reference to Fig. 6-8 It is bright.Wherein, due to the consultation being related between each contract signature participant, the contract in above-described embodiment is signed participate in below Side renames as contract consultation participant.
Fig. 6 is referred to, Fig. 6 is a kind of process for contract consultation method based on block chain that an exemplary embodiment provides Figure.As shown in fig. 6, this method is applied to block chain node, may comprise steps of:
Step 602, the contract that receipt of contract consultation initiator's client is submitted consults transaction, the contract consultation transaction packet The contract of the contract containing target identifies and the modification information of the treaty content for the target contract.
In one embodiment, when the target to be signed that any contract signature participant initiates contract signature initiator is closed With there are (at this time as contract consult with initiator) when objection, can be consulted by submission contract transaction on chain with other contracts Signature participant is consulted.
Step 604, it consults and trades in response to the contract, the conjunction for calling publication to state in the intelligent contract on block chain It with consultation logic, generates the contract for the target contract corresponded to and consults event, so that each contract consultation participant visitor When family end listens to the contract consultation event, corresponding contract consultation participant is prompted to confirm the modification information.
In one embodiment, the template identification for the contract template that contract mark is used with target contract, contract consultation participate in Side, target contract treaty content establish that relevant (process for specifically establishing incidence relation can refer to above-mentioned signature target The embodiment of contract).The modification information and contract mark can be established and be closed after receiving contract consultation transaction by block chain node Connection relationship determines that the contract of target contract consults participant further according to contract mark, and generates and correspond to the consultation of each contract The contract for target contract of participant consults event;Similar, contract is consulted the contract that event includes target contract and is identified.
Further, each contract consults participant client after listening to the contract consultation event that intelligent contract generates, Corresponding contract consultation participant can be prompted to carry out consultation confirmation to target contract.So, contract consultation participant can be by each From client to block chain node submit consultation check transaction (contract mark) comprising target contract come to target contract and It is checked for the modification information of the target contract, to confirm whether or not believing according to modification for contract consultation initiator's initiation Cease the modification mode modified to target contract.Block chain node is receiving what each contract consultation participant client was submitted After transaction is checked in consultation, it may be in response to consult and check transaction, the consultation stated in intelligent contract is called to check logic, search and be somebody's turn to do Contract identifies the template identification of associated contract template, the treaty content of target contract, modification information;And by target contract Treaty content be added in contract template corresponding with template identification and carry out visualization rendering, and consult participant to each contract Client returns to the target contract that renders of visualization and modification information, for each contract consultation participant to target contract with repair It converts to breath and compares and check.
Step 606, the consultation for the modification information in response to each contract consultation participant submission received is true Recognize transaction, the change to the contract logic for calling publication to state in the intelligent contract on block chain, based on the modification information to institute The treaty content for stating target contract is modified, and is generated and be directed to the target contract corresponding to contract consultation participant Contract consult completion event, when so that each contract consultation participant client listening to contract consultation completion event, mention Show that target contract consultation described in corresponding contract consultation participant is completed.
In one embodiment, when each contract consultation participant checks target contract and modification information and same by comparison When meaning modifies to target contract according to modification information, the consultation for target contract can be submitted to confirm to block chain node and handed over Easily.Wherein, the consultation confirmation that each contract consultation participant is submitted is traded comprising the private key pair held with each contract consultation participant The private key signature answered.So block chain node is true in the consultation for target contract for receiving each contract consultation participant submission After recognizing transaction, it may be determined whether the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted is received, If the corresponding private key signature of all contracts consultation participant for receiving target contract (illustrates all contract consultation participants Agree to modify to target contract according to modification information), then it generates and is directed to mesh corresponding to each contract consultation participant The contract of mark contract consults completion event, so that each contract consultation participant client listens to contract consultation completion event When, prompt corresponding contract consultation participant target contract consultation to complete.
In one embodiment, the contract consultation completion for target contract for corresponding to contract consultation participant is being generated After event, target contract can be labeled as having consulted state.Further, by target contract labeled as consulted state it Afterwards, target contract is labeled as active states by the entry-into-force time recorded in content as agreed.
In one embodiment, similar, after completing to the consultation of target contract, contract consultation participant can also pass through The contract status more New Transaction for target contract is submitted to apply for modifying the contract status of target contract.Therefore, block chain link Point can receive the contract status more New Transaction for target contract that any contract consultation participant is submitted, and (contract status, which updates, to be handed over Easily include the last state of target contract), and in response to the contract status more New Transaction, call intelligence of the publication on block chain The status modifier logic stated in contract generates the contract status update for target contract for corresponding to contract consultation participant (the contract status update event is corresponding with the last state of the target contract, and the contract mark including target contract is used for event The contract status of target contract is updated to the last state in instruction;For example, last state is to release signature state, the then conjunction It is to indicate that contract status is updated to release the contract status update event of signature state with state update event) so that each contract When consultation participant client listens to the contract status update event, prompt corresponding contract consultation participant to target contract Last state confirmed.Similar, each contract consultation participant is when listening to contract status update event, if agreeing to The contract status of target contract is updated to the last state, then can submit the newest shape for being directed to target contract to block chain node The contract status of state confirms transaction.So, block chain node may be in response to what all contracts received consultation participant was submitted Transaction is confirmed for the contract status of the last state of target contract, and publication is called to state in the intelligent contract on block chain The contract status of target contract is updated to the last state by status modifier logic.
In one embodiment, similar, the contract status of target contract is updated to if contract consultation participant disagrees The last state, then can not respond contract status update event, i.e., do not return to the last state for target contract Contract status confirm transaction;Alternatively, returning to the contract status rejection transaction for the last state of target contract.So, area If block chain node does not receive the newest shape for target contract that all contract consultation participants are submitted in preset duration The contract status of state confirms transaction, or receive that at least one contract signature participant submits for the newest of target contract The contract status of state vetos transaction, then ignores the contract status more New Transaction, do not execute the contract status of target contract more It is newly the operation of the last state.For example, mentioning for modification state failure can be returned to the sender of contract status more New Transaction Show message.
In one embodiment, the contract status of target contract may include at least one of: signed, release signature, Freeze, thaw, is expired, coming into force.
In one embodiment, since there may be repeatedly believe modification during completing to consult target contract The consultation of breath, the process that can be consulted for each contract consultation participant introduce the mechanism of prestige scoring.For example, statistics is each A contract consultation participant is for same treaty content (for example, being directed to the same contract terms in contract template, or for same One template field) number of contract consultation transaction that returns, and participant is consulted to each contract according to the obtained number of statistics It scores;Wherein, the number that the fractional value of scoring and statistics obtain is negatively correlated.By above-mentioned scoring, can measure out Contract consults prestige performance of the participant during consultation of the contract of participation, so as to participate in subsequent consult intentionally with the contract The user just to sign a contract provides reference.It is initiated for example, a certain contract consultation participant is lower online during consultation with consultation Fang Dacheng is to the common recognition of modification information, and when the contract for consulting initiator and initiate to correspond to modification information consults transaction, the conjunction It, then will be into the not sent consultation confirmation transaction (i.e. contract consults participant and goes back on one's word) for the modification information of consultation participant Enter next round consultation link, and the prestige integral of contract consultation participant will be deducted points.
Fig. 7 is a kind of overall architecture signal for contract consultation scheme based on block chain that an exemplary embodiment provides Figure.As shown in fig. 7, contract consultation is initiated for consulting initiator using user's (not shown) of client 23 as contract Registered account can be logged in client 23, and fills in the contract related content of target contract to be signed (for example, target The modification information of the contract mark and the treaty content for the target contract of contract), to pass through client 23 to server 22 It sends the contract comprising the contract related content and consults transaction.Server 22 (as block chain node) is receiving contract consultation Intelligent contract is called to generate corresponding contract consultation event to consult participant by submitting consultation confirmation by each contract after transaction Transaction confirms it, and is believed after receiving the consultation confirmation transaction that all contract consultation participants are submitted based on the modification Breath modifies to the treaty content of target contract.
In order to make it easy to understand, the operation realized during contract is consulted respectively below for client and server and function Can, it is described in detail in conjunction with the technical solution of Fig. 8-9 pairs of this specification.
Fig. 8 is referred to, Fig. 8 is a kind of interaction for contract consultation method based on block chain that an exemplary embodiment provides Figure.As shown in figure 8, the interactive process for consulting target contract between client 21, server 22, client 23, is handed over Mutual process may comprise steps of:
Step 802, client 23 sends contract consultation transaction to server 22.
In one embodiment, contract signature initiator is by the consultation transaction of transmission contract to initiate the contract to target contract Content is modified.Wherein, contract consults contract number of the transaction comprising target contract to be consulted and is directed to target contract The modification information of treaty content.
Step 804, server 22 generates contract and consults event.
In one embodiment, the contract template for the contract template that contract number and target contract based on target contract use Id, contract consultation participant, dynamic field establish relevant, and server 22 is adjusted after receiving contract consultation transaction Logic is consulted with the contract that publication is stated in the intelligent contract on block chain, the modification information that will include in contract consultation transaction Incidence relation is established with the contract number of target contract, determines that the contract consultation of target contract participates in further according to contract number Side, and generate the contract consultation event for target contract for corresponding to each contract consultation participant.For example, contract consults thing Each contract of the contract number and target contract that can record target contract in part consults participant.
Step 806A, client 23 monitor contract and consult event.
Step 806B, client 21 monitor contract and consult event..
In one embodiment, each client docked with block chain node listen to contract consultation event when, according to The contract consultation participant recorded in contract consultation event judges itself whether belong to contract consultation participant, and then is judging By checking target contract and modification information corresponding with the target contract come to repairing when itself belonging to contract consultation participant It converts to breath and carries out consultation confirmation.Below by taking client 21 as an example, the process for checking modification information is retouched in detail in conjunction with Fig. 9 It states.
Fig. 9 is referred to, Fig. 9 is a kind of modification for checking target contract based on block chain that an exemplary embodiment provides The interaction figure of information.As shown in figure 9, the interactive process may comprise steps of:
In step 902, client 21 checks transaction to 22 transmission contract of server.
In one embodiment, when the contract signature participant for corresponding to client 21 needs to treat the target contract of consultation When modification information carries out consultation confirmation, it can check that transaction carries out target contract and corresponding modification information by submission contract It checks.Wherein, contract checks the contract number in transaction comprising target contract to be viewed.
In step 904, server 22 calls the contract stated in intelligent contract to check logic, searches and closes with contract number Contract template id, dynamic field, contract signature participant, contract status and the modification information of connection.
In step 906, by searching for the template field in the dynamic field replacement contract template gone out.
In step 908, visualization rendering is carried out to replaced contract template.
In step 910, server 22 returns to target contract, the contract signature participation that visualization renders to client 21 Side, contract status, modification information.
In one embodiment, client 21 the target contract that renders of visualization for receiving the return of server 22 with repair After converting to breath, corresponding position comparison of the modification information in the target contract that visualization renders can be shown, in order to client The user at end 21 checks.
Step 808A, client 23 send consultation confirmation transaction to server 22.
Step 808B, client 21 send consultation confirmation transaction to server 22.
In one embodiment, target contract is checked by above-mentioned comparison corresponding to the contract consultation participant of client 21 Process confirmation with modification information is agreed to after can modifying according to the modification information to target contract, to the transmission pair of server 22 It should confirm in the consultation of itself and trade, be modified according to the modification information to target contract with the agreement of tell the server 22.Its In, it includes private corresponding with the private key that each contract consultation participant is held that each contract, which consults the consultation confirmation transaction that participant is submitted, Key signature.
Step 810, server 22 is based on modification information and modifies target contract.
Step 812, server 22 generates contract and consults completion event.
In one embodiment, server 22 calls the contract stated in intelligent contract after receiving consultation confirmation transaction Modify logic, it is determined whether receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;Such as Fruit receives the corresponding private key signature of all contracts consultation participant of target contract, illustrates that all contract consultation participants are equal Agreement modifies to target contract according to modification information, then generates after based on modification information modification target contract corresponding to each The contract for target contract of a contract consultation participant consults completion event.Similar, contract is consulted can in completion event Each contract label of the contract number and target contract that record target contract consult participant.
In one embodiment, the contract consultation completion for target contract for corresponding to contract consultation participant is being generated After event, target contract can be labeled as having consulted state.It further, can be complete according to the signature process in above-described embodiment Target contract is labeled as active states by the signature of pairs of target contract, and the entry-into-force time recorded in content as agreed.
Step 814A, client 23 monitor contract and consult completion event.
Step 814B, client 21 monitor contract and consult completion event.
Step 816A, client 23 confirm that the consultation of target contract is completed.
Step 816B, client 21 confirm that the consultation of target contract is completed.
In one embodiment, each contract consultation participant (is client 21 and client 23 in the present embodiment User) after receiving for the contract consultation completion event of target contract, it can confirm that the consultation of target contract is completed.
In one embodiment, each contract signature (consultation) participant is subsequent after completing to the signature of target contract It it may also be desirable to be updated the contract status of target contract.For example, releasing the signed state of target contract, freeze target Contract, releasing frozen state etc..It is described in detail below with reference to process of the Figure 10 to above-mentioned contract of novation state.
0, Figure 10 is a kind of friendship for contract of novation state based on block chain that an exemplary embodiment provides referring to Figure 1 Mutually figure.As shown in Figure 10, the interactive process is with the contract of more fresh target contract between client 21, server 22, client 23 For state, interactive process be may comprise steps of:
Step 1002, client 21 sends contract status more New Transaction to server 22.
In one embodiment, contract signature (or consultation) participant is by sending contract status more New Transaction to initiate to mesh The contract status of mark contract is updated.Wherein, contract status more New Transaction includes the contract number of target contract to be updated With the last state of target contract.
Step 1004, server 22 generates contract status update event.
In one embodiment, server 22 calls publication on block chain after receiving the contract status more New Transaction Intelligent contract in the status modifier logic stated, generate correspond to contract signature (or consultation) participant be directed to target contract Contract status update event.For example, can record contract number and the target conjunction of target contract in contract status update event The same signature of each contract (or consultation) participant.
Step 1006A, client 21 monitor contract status update event.
Step 1006B, client 23 monitor contract status update event..
In one embodiment, each client docked with block chain node when listening to contract status update event, Based on contract the contract consultation participant recorded in state update event judges itself whether belong to contract consultation participant, in turn When judging itself to belong to contract signature (or consultation) participant by checking target contract with the newest shape to target contract State is confirmed.In one case, last state can be recorded in this when generating contract status update event by server 22 To be checked after monitoring contract status update event for user by client 21 and client 23 in contract status update event;? In another case, server 22 can by the contract number associated storage of last state and target contract, with by client 21 with Client 23 checks transaction by transmission contract after monitoring contract status update event to check that (this was checked the last state Journey is similar with above-mentioned embodiment shown in Fig. 9).
Step 1008A, client 21 send contract status confirmation transaction to server 22.
Step 1008B, client 23 send contract status confirmation transaction to server 22.
In one embodiment, corresponding to contract signature (or consultation) participant of client 21 by it is above-mentioned check it is newest The process confirmation of state is agreed to after being updated according to contract status of the last state to target contract, sends out to server 22 The contract status confirmation transaction corresponding to itself is sent, the conjunction according to the last state to target contract is agreed to tell the server 22 It is updated with state.Wherein, the contract status confirmation transaction that the signature of each contract (or consultation) participant is submitted includes and each conjunction The corresponding private key signature of private key held with signature (or consultation) participant.
Step 1010, the contract status of target contract is updated to last state by server 22.
Step 1012A, server 22 send the notification message that contract status is updated successfully to client 21.
Step 1012B, server 22 send the notification message that contract status is updated successfully to client 23.
In one embodiment, between server 22 and client 21 and client 23 can also through the foregoing embodiment in Case mechanism is completed to the notice for being successfully updated contract status.
Figure 11 is a kind of schematic configuration diagram for equipment that an exemplary embodiment provides.Figure 11 is please referred to, in hardware view, The equipment includes processor 1102, internal bus 1104, network interface 1106, memory 1108 and nonvolatile memory 1110, it is also possible that hardware required for other business certainly.Processor 1102 is read from nonvolatile memory 1110 Then corresponding computer program is run into memory 1108, form the contract based on block chain on logic level and consult dress It sets.Certainly, other than software realization mode, other implementations are not precluded in this specification one or more embodiment, than The mode of such as logical device or software and hardware combining, that is to say, that the executing subject of following process flow is not limited to respectively A logic unit is also possible to hardware or logical device.
Figure 12 is please referred to, in Software Implementation, should may include: based on the contract consultation device of block chain
First receiving unit 1201, receipt of contract consult the contract that initiator's client is submitted and consult transaction, the contract The modification information of contract mark and treaty content for the target contract of the consultation transaction comprising target contract;
First prompt unit 1202 is consulted in response to the contract and is traded, and intelligent contract of the publication on block chain is called The contract of middle statement consults logic, generates the contract for the target contract corresponded to and consults event, so that each contract is consulted When quotient's participant client listens to the contract consultation event, prompt corresponding contract consultation participant to the modification information Confirmed;And
Unit 1203 is consulted, the consulting for the modification information submitted in response to each contract consultation participant received Quotient confirms transaction, and the change to the contract logic for calling publication to state in the intelligent contract on block chain is based on the modification information It modifies to the treaty content of the target contract, and generates and be directed to the target corresponding to contract consultation participant The contract of contract consults completion event, so that each contract consultation participant client listens to the contract consultation completion event When, prompt target contract consultation described in corresponding contract consultation participant to complete.
Optionally, the template identification for the contract template that the contract mark is used with the target contract, contract consultation are joined It is established with the treaty content of side, the target contract relevant;First prompt unit 1202 is specifically used for:
The modification information and contract mark are established into incidence relation;
It determines that the contract of the target contract consults participant according to contract mark, and generates and correspond to the conjunction The contract for the target contract with consultation participant consults event;Wherein, the contract consultation event includes the conjunction With mark.
Optionally, further includes:
Second receiving unit 1204 receives the consultation that each contract consultation participant client is submitted and checks transaction, described to consult Quotient checks that transaction is identified comprising the contract of the target contract;
Searching unit 1205 checks transaction in response to the consultation, the consultation stated in intelligent contract is called to check logic, It searches and identifies the template identification of associated contract template, the treaty content of the target contract, modification letter with the contract Breath;And
The treaty content of the target contract is added to contract mould corresponding with the template identification by rendering unit 1206 Carry out visualization rendering in plate, and to each contract consultation participant client return the target contract that visualization renders and The modification information.
Optionally, the consultation confirmation transaction of each contract consultation participant submission is comprising consulting what participant was held with each contract The corresponding private key signature of private key;The consultation unit 1203 is specifically used for:
Determine whether to receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;
If receiving the corresponding private key signature of all contracts consultation participant of the target contract, generation pair The contract for the target contract that contract described in Ying Yu consults participant consults completion event.
Optionally, further includes:
First marking unit 1207, generate correspond to contract consultation participant for the target contract After contract consults completion event, the target contract is labeled as to have consulted state.
Optionally, further includes:
Second marking unit 1208, after being labeled as the target contract to have consulted state, according in the contract The target contract is labeled as active states by the entry-into-force time recorded in appearance.
Optionally, further includes:
Third receiving unit 1209 receives the contract shape for the target contract that any contract consultation participant is submitted State more New Transaction, the contract status more New Transaction include the last state of the target contract;
Second prompt unit 1210 calls intelligence of the publication on block chain in response to the contract status more New Transaction The status modifier logic stated in contract generates the contract for the target contract for corresponding to contract consultation participant State update event when so that each contract consultation participant client listening to the contract status update event, prompts to correspond to Contract consultation participant the last state of the target contract is confirmed;And
Status modifier unit 1211 is closed in response to what all contracts consultation participant received was submitted for the target The contract status of same last state confirms transaction, and the status modifier for calling publication to state in the intelligent contract on block chain is patrolled Volume, the contract status of the target contract is updated to the last state.
Optionally, the contract status includes at least one of: contracting, terminates an agreement, freezing, thawing, is expired, coming into force.
Optionally, further includes:
Statistic unit 1212 counts the contract consultation transaction that each contract consultation participant is returned for same treaty content Number;
Score unit 1213, and the number obtained according to statistics scores to each contract consultation participant;Wherein, it scores The obtained number of fractional value and statistics it is negatively correlated.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (20)

1. a kind of contract based on block chain consults method, comprising:
Receipt of contract consults the contract that initiator's client is submitted and consults transaction, and the contract consultation transaction includes target contract The modification information of contract mark and the treaty content for the target contract;
It consults and trades in response to the contract, the contract consultation logic for calling publication to state in the intelligent contract on block chain, It generates the contract for the target contract corresponded to and consults event, so that each contract consultation participant client listens to institute When stating contract consultation event, corresponding contract consultation participant is prompted to confirm the modification information;And
In response to the consultation confirmation transaction for the modification information that each contract consultation participant received is submitted, hair is called The change to the contract logic that cloth is stated in the intelligent contract on block chain, the conjunction based on the modification information to the target contract It modifies with content, and generates the contract consultation completion for the target contract for corresponding to contract consultation participant Event prompts corresponding contract to consult when so that each contract consultation participant client listening to the contract consultation completion event The consultation of target contract described in quotient's participant is completed.
2. according to the method described in claim 1, the template for the contract template that contract mark is used with the target contract Mark, contract consultation participant, the target contract treaty content establish it is relevant;The generation is consulted corresponding to contract The contract for the target contract of quotient's participant consults event, comprising:
The modification information and contract mark are established into incidence relation;
It determines that the contract of the target contract consults participant according to contract mark, and generates and consult corresponding to the contract The contract for the target contract of quotient's participant consults event;Wherein, the contract consultation event includes the contract mark Know.
3. according to the method described in claim 2, further include:
It receives the consultation that each contract consultation participant client is submitted and checks that transaction, the consultation check that transaction includes the target The contract of contract identifies;
Transaction is checked in response to the consultation, is called the consultation stated in intelligent contract to check logic, is searched and the contract mark Know the template identification of associated contract template, the treaty content of the target contract, the modification information;And
The treaty content of the target contract is added in contract template corresponding with the template identification and carries out visualization wash with watercolours Dye, and the target contract and the modification information that visualization renders are returned to each contract consultation participant client.
4. according to the method described in claim 1, the consultation confirmation transaction that each contract consultation participant is submitted includes and each contract The corresponding private key signature of private key that consultation participant is held;It is described to generate corresponding to contract consultation participant for described The contract of target contract consults completion event, comprising:
Determine whether to receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;
If receiving the corresponding private key signature of all contracts consultation participant of the target contract, generation corresponds to The contract for the target contract of the contract consultation participant consults completion event.
5. according to the method described in claim 1, further include:
After generating the contract for the target contract for corresponding to contract consultation participant and consulting completion event, The target contract is labeled as to have consulted state.
6. according to the method described in claim 5, further include:
By the target contract labeled as after having consulted state, according to the entry-into-force time recorded in the treaty content by institute Target contract is stated labeled as active states.
7. according to the method described in claim 1, further include:
Receive the contract status more New Transaction for the target contract that any contract consultation participant is submitted, the contract shape State more New Transaction includes the last state of the target contract;
In response to the contract status more New Transaction, the status modifier for calling publication to state in the intelligent contract on block chain is patrolled Volume, the contract status update event for the target contract for corresponding to contract consultation participant is generated, so that each close When listening to the contract status update event with consultation participant client, prompt corresponding contract consultation participant to described The last state of target contract is confirmed;And
In response to the contract shape for the last state for the target contract that all contracts consultation participant received is submitted State confirmation transaction, the status modifier logic for calling publication to state in the intelligent contract on block chain, by the target contract Contract status is updated to the last state.
8. according to the method described in claim 7, the contract status includes at least one of: contracting, terminate an agreement, freeze, solve Freeze, is expired, coming into force.
9. according to the method described in claim 1, further include:
Count the number for the contract consultation transaction that each contract consultation participant is returned for same treaty content;
The number obtained according to statistics scores to each contract consultation participant;Wherein, it the fractional value of scoring and counts The number arrived is negatively correlated.
10. a kind of contract based on block chain consults device, comprising:
First receiving unit, receipt of contract consult the contract that initiator's client is submitted and consult transaction, the contract consultation transaction The modification information of contract mark and the treaty content for the target contract comprising target contract;
First prompt unit is consulted in response to the contract and is traded, and publication is called to state in the intelligent contract on block chain Contract consults logic, generates the contract for the target contract corresponded to and consults event, so that each contract consults participant When client listens to the contract consultation event, corresponding contract consultation participant is prompted to carry out the modification information true Recognize;And
Unit is consulted, the consultation confirmation for the modification information submitted in response to each contract consultation participant received is handed over Easily, the change to the contract logic for calling publication to state in the intelligent contract on block chain, based on the modification information to the mesh The treaty content of mark contract is modified, and generates the conjunction for the target contract for corresponding to contract consultation participant With consultation completion event, when so that each contract consultation participant client listening to the contract consultation completion event, prompt pair Target contract consultation described in the contract consultation participant answered is completed.
11. device according to claim 10, the mould for the contract template that the contract mark is used with the target contract Panel sign, contract consultation participant, the target contract treaty content establish it is relevant;The first prompt unit tool Body is used for:
The modification information and contract mark are established into incidence relation;
It determines that the contract of the target contract consults participant according to contract mark, and generates and consult corresponding to the contract The contract for the target contract of quotient's participant consults event;Wherein, the contract consultation event includes the contract mark Know.
12. device according to claim 11, further includes:
Second receiving unit receives the consultation that each contract consultation participant client is submitted and checks that friendship is checked in transaction, the consultation Easily the contract comprising the target contract identifies;
Searching unit checks transaction in response to the consultation, the consultation stated in intelligent contract is called to check logic, lookup and institute The contract of stating identifies the template identification of associated contract template, the treaty content of the target contract, the modification information;And
The treaty content of the target contract is added in contract template corresponding with the template identification and carries out by rendering unit Visualization rendering, and the target contract and the modification that visualization renders are returned to each contract consultation participant client Information.
13. device according to claim 10, the consultation confirmation transaction that each contract consultation participant is submitted include and each conjunction The corresponding private key signature of private key held with consultation participant;The consultation unit is specifically used for:
Determine whether to receive the private key signature for including in the consultation confirmation transaction that each contract consultation participant is submitted;
If receiving the corresponding private key signature of all contracts consultation participant of the target contract, generation corresponds to The contract for the target contract of the contract consultation participant consults completion event.
14. device according to claim 10, further includes:
First marking unit is consulted generating the contract for the target contract for corresponding to contract consultation participant After completion event, the target contract is labeled as to have consulted state.
15. device according to claim 14, further includes:
Second marking unit, by the target contract labeled as after having consulted state, according to being recorded in the treaty content Entry-into-force time by the target contract be labeled as active states.
16. device according to claim 10, further includes:
Third receiving unit receives the contract status for the target contract that any contract consultation participant is submitted and updates friendship Easily, the contract status more New Transaction includes the last state of the target contract;
Second prompt unit calls sound in the intelligent contract issued on block chain in response to the contract status more New Transaction Bright status modifier logic generates the contract status update for the target contract for corresponding to contract consultation participant Event prompts corresponding contract to consult when so that each contract consultation participant client listening to the contract status update event Quotient's participant confirms the last state of the target contract;And
Status modifier unit is directed to the newest of the target contract in response to what all contracts consultation participant received was submitted The contract status of state confirms transaction, the status modifier logic for calling publication to state in the intelligent contract on block chain, by institute The contract status for stating target contract is updated to the last state.
17. device according to claim 16, the contract status includes at least one of: contract, terminate an agreement, freezing, It thaws, is expired, coming into force.
18. device according to claim 10, further includes:
Statistic unit counts the number for the contract consultation transaction that each contract consultation participant is returned for same treaty content;
Score unit, and the number obtained according to statistics scores to each contract consultation participant;Wherein, the fractional value of scoring The number obtained with statistics is negatively correlated.
19. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize side as claimed in any one of claims 1-9 wherein Method.
20. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the instruction is by processor It is realized when execution such as the step of any one of claim 1-9 the method.
CN201910203831.1A 2019-03-18 2019-03-18 Contract based on block chain consults method and device, electronic equipment, storage medium Pending CN110033269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910203831.1A CN110033269A (en) 2019-03-18 2019-03-18 Contract based on block chain consults method and device, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910203831.1A CN110033269A (en) 2019-03-18 2019-03-18 Contract based on block chain consults method and device, electronic equipment, storage medium

Publications (1)

Publication Number Publication Date
CN110033269A true CN110033269A (en) 2019-07-19

Family

ID=67236074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910203831.1A Pending CN110033269A (en) 2019-03-18 2019-03-18 Contract based on block chain consults method and device, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN110033269A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112001794A (en) * 2020-09-02 2020-11-27 上海市建筑学会 Intelligent contract generating method, computer device, and storage medium
CN112308689A (en) * 2020-12-28 2021-02-02 支付宝(杭州)信息技术有限公司 Leasing method and device based on block chain and electronic equipment
CN112308712A (en) * 2019-08-02 2021-02-02 苏红 Method for embedding transaction logic into blockchain transaction
CN112822006A (en) * 2020-12-22 2021-05-18 华北电力大学 Quantum one-vote privacy voting method based on single photon

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960165A (en) * 2017-03-13 2017-07-18 广东网金控股股份有限公司 It is a kind of that the method that electronic contract is conutersigned in many ways is realized based on the intelligent contract of block chain
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108256997A (en) * 2018-01-11 2018-07-06 杭州复杂美科技有限公司 Procurement payment financing method based on block chain intelligence contract
CN108833115A (en) * 2018-06-15 2018-11-16 中山大学 A kind of multi-party Fair PDF contract signature method based on block chain
CN108920976A (en) * 2018-06-14 2018-11-30 张绪宝 A kind of contract signing method, apparatus and system
CN109145275A (en) * 2018-08-07 2019-01-04 广东工业大学 A kind of block chain electronic contract management and intelligent generating system and method
CN109377198A (en) * 2018-12-24 2019-02-22 上海金融期货信息技术有限公司 A kind of signing system known together in many ways based on alliance's chain
CN109409876A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 Electronic contract signature method, apparatus, equipment and storage medium based on block chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106960165A (en) * 2017-03-13 2017-07-18 广东网金控股股份有限公司 It is a kind of that the method that electronic contract is conutersigned in many ways is realized based on the intelligent contract of block chain
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN108256997A (en) * 2018-01-11 2018-07-06 杭州复杂美科技有限公司 Procurement payment financing method based on block chain intelligence contract
CN108920976A (en) * 2018-06-14 2018-11-30 张绪宝 A kind of contract signing method, apparatus and system
CN108833115A (en) * 2018-06-15 2018-11-16 中山大学 A kind of multi-party Fair PDF contract signature method based on block chain
CN109145275A (en) * 2018-08-07 2019-01-04 广东工业大学 A kind of block chain electronic contract management and intelligent generating system and method
CN109409876A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 Electronic contract signature method, apparatus, equipment and storage medium based on block chain
CN109377198A (en) * 2018-12-24 2019-02-22 上海金融期货信息技术有限公司 A kind of signing system known together in many ways based on alliance's chain

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112308712A (en) * 2019-08-02 2021-02-02 苏红 Method for embedding transaction logic into blockchain transaction
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
CN112001794A (en) * 2020-09-02 2020-11-27 上海市建筑学会 Intelligent contract generating method, computer device, and storage medium
CN112822006A (en) * 2020-12-22 2021-05-18 华北电力大学 Quantum one-vote privacy voting method based on single photon
CN112822006B (en) * 2020-12-22 2021-09-03 华北电力大学 Quantum one-vote privacy voting method based on single photon
CN112308689A (en) * 2020-12-28 2021-02-02 支付宝(杭州)信息技术有限公司 Leasing method and device based on block chain and electronic equipment

Similar Documents

Publication Publication Date Title
CN110046907A (en) Contract based on block chain signs method and device, electronic equipment, storage medium
CN110033269A (en) Contract based on block chain consults method and device, electronic equipment, storage medium
CN110135844B (en) Credit recording and inquiring method and device based on block chain and electronic equipment
Lu et al. Blockchain technology for governmental supervision of construction work: Learning from digital currency electronic payment systems
US20230028606A1 (en) Method and apparatus for vertical federated learning
CN107317672A (en) A kind of light weight terminating machine block catenary system
CN110060112A (en) Invoice creation method and device, electronic equipment based on block chain
CN109598518A (en) Method for anti-counterfeit and device, electronic equipment based on block chain
CN109118214A (en) The method and apparatus for running intelligent contract
CN109791591A (en) The method and system of identity and voucher protection and verification is carried out via block chain
CN109872019A (en) Agricultural product quality and safety retroactive method and system
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
GB2546401A (en) Version control for resource allocation modeling
US20130007864A1 (en) System and method for location-aware social networking authentication
CN107203343B (en) A kind of date storage method, system and equipment
Borkowski et al. Caught in chains: Claim-first transactions for cross-blockchain asset transfers
CN109377224A (en) Block chain method of commerce and device, electronic equipment
CN108009445A (en) A kind of trust data management system of half centralization
CN111311410A (en) Community problem multi-department cooperative processing system and method based on block chain
CN110008716A (en) Block chain method of commerce and device, electronic equipment, storage medium
CN111292098A (en) Trusted service supply chain-oriented block chain consensus mechanism construction method
CN109684519A (en) A kind of decentralization chip research and development transaction data storage method and system based on block chain
CN113657911A (en) Safe and efficient traceability system based on block chain
CN113901497A (en) Talent evaluation method based on block chain and federal learning technology
CN110009492A (en) Block chain method of commerce and device, electronic equipment, storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20201020

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201020

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.