CN108830545A - Contract dataset processing method, contract management client and block chain managing device - Google Patents

Contract dataset processing method, contract management client and block chain managing device Download PDF

Info

Publication number
CN108830545A
CN108830545A CN201810407842.7A CN201810407842A CN108830545A CN 108830545 A CN108830545 A CN 108830545A CN 201810407842 A CN201810407842 A CN 201810407842A CN 108830545 A CN108830545 A CN 108830545A
Authority
CN
China
Prior art keywords
contract
block chain
party
signature
mentioned
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810407842.7A
Other languages
Chinese (zh)
Other versions
CN108830545B (en
Inventor
夏青
孟平
张德强
史超
金长宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Yibo Software Technology Co.,Ltd.
Original Assignee
Shenzhen Huitong Business Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Huitong Business Co Ltd filed Critical Shenzhen Huitong Business Co Ltd
Priority to CN201810407842.7A priority Critical patent/CN108830545B/en
Publication of CN108830545A publication Critical patent/CN108830545A/en
Application granted granted Critical
Publication of CN108830545B publication Critical patent/CN108830545B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/12Hotels or restaurants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3297Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving time stamps, e.g. generation of time stamps

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Tourism & Hospitality (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of contract dataset processing methods, including:After the first notice for receiving the transmission of block chain managing device signs a contract message, is sent to block chain managing device and read second party signature information request;It receives the second party that block chain managing device is sent and signs information;After second party signature validation of information is errorless, based on contract content and at the first time stamp generate hash1;Hash1 is encrypted according to the private key of first party, to obtain first party signature;Based on contract content, at the first time stamp and first party signature the first contract affairs of building.By not being tampered using contract of guarantee content the characteristics of block chain, time-proven and credible;Reduce the management cost of each contract party itself.

Description

Contract dataset processing method, contract management client and block chain managing device
Technical field
The present invention relates to contract signature field more particularly to a kind of contract dataset processing method, contract management client and Block chain managing device.
Background technique
Existing contract signature method is mainly that two sides, tripartite or multi-party signature papery contract of meeting either are not necessarily to meeting Face, by contracting, plateform system carries out signature electronic contract.
However papery contract need to contract more parts and also exist lose, the risk distorted.Electronic contract passes through signing platform System signing is easy under attack and the problem of safety can be used occurs.
Summary of the invention
The embodiment of the present invention provides a kind of contract dataset processing method, contract management client and block chain managing device, It using the scheme of the embodiment of the present invention, is not tampered using contract of guarantee content the characteristics of block chain, time-proven and credible;Subtract Lack the management cost of each contract party itself and reduces the workload that Contract parameters are manually imported to associated external system, and Avoid the risk that Contract parameters are imported to mistake.
In a first aspect, the embodiment of the present invention provides a kind of contract dataset processing method, the method is applied to contract dataset Processing system, the contract dataset processing system include first party contract management client, second party contract management client and Block chain managing device, the method includes:
After the first notice for receiving the block chain managing device transmission signs a contract message, to the block chain pipe It manages device and sends reading second party signature information request, first notice signs a contract message for notifying the first party to close It signs a contract with management client;
Receive the second party signature information that the block chain managing device is sent;
After second party signature validation of information is errorless, based on contract content and at the first time stamp T1 generate hash1; The hash1 is encrypted according to the private key of first party, to obtain first party signature S1;According to the treaty content, first Time stamp T 1 and first party signature S1 construct the first contract affairs.By the way that treaty content to be stored in block chain, block is utilized The characteristics of chain, contract of guarantee content was not tampered, time-proven and feasible.Treaty content only saves portion on block chain, each to sign About Fang Junke checks treaty content on block chain, reduces and has carried out the management cost of each contract party itself.
It is described according to the treaty content, at the first time stamp T1 and first party signature S1 in a kind of feasible embodiment After constructing the first contract affairs, the method also includes:
The first contract is sent to the block chain managing device and signs transactions requests, and first contract signs transactions requests For requesting the block chain managing device to store the first contract affairs;Described first closes affairs signature request including described First contract affairs;
The first contract signature transaction response that the block chain managing device is sent is received, for responding first contract Sign transactions requests.
In a kind of feasible embodiment, the second party signature information includes the treaty content, the second time stamp T 2 It signs with second party, after the second party signature information for receiving the block chain managing device transmission, the method is also wrapped It includes:
Hash2 is generated according to the treaty content and second time stamp T 2, and second time stamp T 2 is described the Before one timestamp T1;
Second party signature is decrypted according to the public key of second party, to obtain the first hash;
When the first hash is consistent with the hash2, then confirm that the second party signature information is errorless.
It is described to be asked to block chain managing device transmission reading second party signature information in a kind of feasible embodiment Before asking, the method also includes:
Receive Contract parameters/treaty content that first party responsible person terminal device is sent;The treaty content includes Contract template and the parameter;
When receiving the Contract parameters, generated in the contract according to the Contract parameters and the contract template Hold;
Abstract hash is generated according to the treaty content;The abstract hash is added according to the private key of the first party It is close, to obtain signature S;The second contract affairs are constructed according to the treaty content, the abstract hash and signature S;
The second contract is sent to the block chain managing device and signs transactions requests, and second contract signs transactions requests For requesting the block chain to store the second contract affairs;Described second, which closes affairs signature request, includes second contract Affairs;
The second contract signature transaction response that the block chain managing device is sent is received, for responding second contract Sign transactions requests.
In a kind of feasible embodiment, before the hash according to treaty content generation abstract, the method is also Including:
The treaty content is encrypted according to symmetric encipherment algorithm.
In a kind of feasible embodiment, the first contract signature affairs for receiving the block chain managing device and sending After response, the method also includes:
Signing success message is sent to the first party responsible person terminal device.
Second aspect, the embodiment of the present invention provide another contract dataset processing method, and the method is applied to contract number According to processing system, the contract dataset processing system includes first party contract management client, second party contract management client With block chain managing device, including:
When the first notice for receiving the transmission of block chain managing device signs a contract message, filled to the block chain management It sets transmission and reads treaty content request, first notice signs a contract message for notifying the second party contract management client End notice is signed a contract;
The contract information that the block chain managing device is sent is received, the contract information includes treaty content;
After determining that the contract information is errorless, the treaty content is sent to second party responsible person's terminal device;
After receiving signature confirmation instruction, according to the treaty content and the second time stamp T 2, hash2 is generated;According to The private key of second party encrypts the hash2, to obtain second party signature S2;According to the treaty content, the second time It stabs T2 and second party signature S2 constructs third contract affairs.By the way that treaty content to be stored in block chain, block chain is utilized Feature contract of guarantee content is not tampered, time-proven and feasible.Treaty content only saves portion on block chain, each contract party Treaty content can be checked on block chain, reduced and carried out the management cost of each contract party itself.
It is described according to the treaty content, the second time stamp T 2 and second party signature S2 in a kind of feasible embodiment After constructing third contract affairs, the method also includes:
Third contract is sent to the block chain managing device and signs transactions requests, and the third contract signs transactions requests For requesting the block chain managing device to store the third contract affairs;It includes described that the third, which closes affairs signature request, Third contract affairs;
The third contract signature transaction response that the block chain managing device is sent is received, for responding the third contract Sign transactions requests.
In a kind of feasible embodiment, the contract information further includes the abstract hash and signature S of the treaty content, After the contract information for receiving the block chain managing device transmission, the method also includes:
The signature S is decrypted according to the public key of first party, to obtain the 2nd hash;
When the 2nd hash is consistent with the abstract hash, confirm that the content information is errorless.
The third aspect, the embodiment of the present invention provide another contract dataset processing method, and the method is applied to contract number According to processing system, the contract dataset processing system includes first party contract management client, second party contract management client With block chain managing device, the method includes:
The contract that receipt of contract management client is sent signs transactions requests, and the contract management client includes described the One side's contract management client and the second party contract management client, the contract signature transactions requests include described first The contract signature transactions requests that square contract management client is sent and the contract that second party contract management client is sent sign thing Business request;
Block persistence is carried out to the contract affairs in contract signature transactions requests, the contract affairs include contract Content;
Contract, which is sent, to the contract management client signs transaction response.By the way that treaty content is stored in block chain In, it is not tampered using contract of guarantee content the characteristics of block chain, time-proven and feasible.Treaty content only saves portion in area On block chain, each contract party can check treaty content on block chain, reduce and carried out the management cost of each contract party itself.
In a kind of feasible embodiment, the contract affairs in contract signature transactions requests carry out block and hold After longization, the method also includes:
It is sent to contract management customer end A and signs a contract transaction response and send notice to the contract management customer end B It signs a contract message;The transaction response of signing a contract signs affairs for responding the contract that the contract management client is sent Request, the notice sign a contract message for notifying the contract management customer end B to sign a contract;
Wherein, the contract management customer end A is the first party contract management client or the second party contract Management client, the contract management customer end B are the first party contract management client or the second party contract pipe Client is managed, and the contract management customer end A and the contract management client are not the same contract management client.
In a kind of feasible embodiment, the contract affairs in contract signature transactions requests carry out block and hold Longization, including:
Contract affairs in contract signature transactions requests are verified;
It verifies and the contract affairs is packaged into block after passing through;
Store the block.
In a kind of feasible embodiment, it is described to the contract management client send contract signature transaction response it Afterwards, the method also includes:
Treaty content is parsed by intelligent contract, to obtain the Contract parameters of the treaty content;
The Contract parameters of the treaty content are sent to first party associated external system and second party associated external system.
In a kind of feasible embodiment, the method also includes:
Receive the reading second party signature information request that the first party contract management client is sent;
It obtains institute's second party and signs information;
The second party, which is sent, to the first party contract management client signs information.
In a kind of feasible embodiment, the method also includes:
Receive the reading treaty content request that the second party contract management client is sent;
Obtain contract information;
The contract information is sent to the second party contract management client.
Fourth aspect, the embodiment of the present invention provide a kind of contract management client, the contract management client application in Contract dataset processing system, the contract dataset processing system include first party contract management client, second party contract management Client and block chain managing device, the contract management client include:
Transmission unit, for when receive the first notice that the block chain managing device is sent sign a contract message after, It is sent to the block chain managing device and reads second party signature information request, first notice signs a contract message for leading to Know that the first party contract management client is signed a contract;
Receiving unit signs information for receiving the second party that the block chain managing device is sent;
Processing unit, for after second party signature validation of information is errorless, based on contract content and first time to be stabbed T1 generates hash1;The hash1 is encrypted according to the private key of first party, to obtain first party signature S1;According to described Treaty content, at the first time stamp T1 and first party signature S1 construct the first contract affairs.
In a kind of feasible embodiment, the transmission unit is also used to send first to the block chain managing device Contract signs transactions requests, and the first contract signature transactions requests are for requesting the block chain to store the first contract thing Business;Described first, which closes affairs signature request, includes the first contract affairs;
The receiving unit is also used to receive the first contract signature transaction response that the block chain managing device is sent, For responding the first contract signature transactions requests.
In a kind of feasible embodiment, the second party signature information includes the treaty content, the second time stamp T 2 It signs with second party, the contract management client further includes:
The processing unit is also used to after receiving the second party signature information that the block chain managing device is sent, Hash2 is generated according to the treaty content and second time stamp T 2, second time stamp T 2 is stabbed in the first time Before T1;Second party signature is decrypted according to the public key of second party, to obtain the first hash;
Confirmation unit confirms that the second party signature information is errorless when the first hash is consistent with the hash2.
In a kind of feasible embodiment, the contract management device further includes:
The receiving unit, be also used to the block chain managing device send read second party signature information request it Before, receive Contract parameters/treaty content that first party responsible person terminal device is sent;The treaty content includes contract mould Plate and the parameter;
Generation unit, for being given birth to according to the Contract parameters and the contract template when receiving the Contract parameters At the treaty content;
The processing unit is also used to generate abstract hash according to the treaty content;According to the private key of first party to institute It states abstract hash to be encrypted, to obtain signature S;It is closed according to the treaty content, the abstract hash and signature S building second Same affairs;
The transmission unit signs transactions requests for sending the second contract to the block chain managing device, and described the Two contracts signature transactions requests are for requesting the block chain to store the second contract affairs;The second conjunction affairs signature is asked It asks including the second contract affairs;
The receiving unit is also used to receive the second contract signature transaction response that the block chain managing device is sent, For responding the second contract signature transactions requests.
In a kind of feasible embodiment, the transmission unit is also used to
After receiving the second contract signature transaction response that the block chain managing device is sent, to the block chain management Device sends second and notifies message of signing a contract, for notifying second party contract management client to sign a contract.
In a kind of feasible embodiment, before the hash according to treaty content generation abstract, the contract pipe Managing client further includes:
Encryption unit is used for before generating abstract hash according to the treaty content, according to symmetric encipherment algorithm to institute State treaty content encryption.
5th aspect, the embodiment of the invention provides another contract management client, the contract management client is answered For contract dataset processing system, the contract dataset processing system includes first party contract management client, second party contract Management client and block chain managing device, the contract management client include:
Transmission unit, for when receive block chain managing device transmission first notice sign a contract message when, to institute It states block chain managing device and sends reading treaty content request, first notice signs a contract message for notifying described second Square contract management client notification is signed a contract;
Receiving unit, the contract information sent for receiving the block chain managing device, the contract information include Treaty content;
The transmission unit is also used to send out after determining that the contract information is errorless to second party responsible person's terminal device Send the treaty content;
Processing unit, for according to the treaty content and the second time stamp T 2, giving birth to after receiving signature confirmation instruction At hash2;The hash2 is encrypted according to the private key of second party to generate second party signature S2;According in the contract Hold, the second time stamp T 2 and second party signature S2 construct third contract affairs.
In a kind of feasible embodiment, the transmission unit is also used to send third to the block chain managing device Contract signs transactions requests, and the third contract signature transactions requests are for requesting the block chain to store the third contract thing Business;Described first, which closes affairs signature request, includes the third contract affairs;
The receiving unit is also used to receive the third contract signature transaction response that the block chain managing device is sent, For responding the third contract signature transactions requests.
In a kind of feasible embodiment, the contract information further includes the abstract hash and signature S of the treaty content, The contract management client further includes:
Decryption unit, for after receiving the contract information that the block chain managing device is sent, according to first party The signature S is decrypted in public key, to obtain the 2nd hash;
Confirmation unit, for confirming that the content information is errorless when the 2nd hash is consistent with the abstract hash.
6th aspect, the embodiment of the invention provides a kind of block chain managing device, the block chain managing device application In contract dataset processing system, the contract dataset processing system further includes first party contract management client and second party contract Management client, the block chain managing device include:
Receiving unit, the contract sent for receipt of contract management client sign transactions requests, the contract management visitor Family end includes the first party contract management client and the second party contract management client, and the contract signature affairs are asked Ask the contract signature transactions requests sent including the first party contract management client and second party contract management client hair The contract signature transactions requests sent;
Persistence unit, it is described for carrying out block persistence to the contract affairs in contract signature transactions requests Contract affairs include treaty content;
Transmission unit signs transaction response for sending contract to the contract management client.
In a kind of feasible embodiment, the transmission unit is specifically used for:
It is sent to contract management customer end A and signs a contract transaction response and send notice to the contract management customer end B It signs a contract message;The transaction response of signing a contract signs affairs for responding the contract that the contract management client is sent Request, the notice sign a contract message for notifying the contract management customer end B to sign a contract;
Wherein, the contract management customer end A is the first party contract management client or the second party contract Management client, the contract management customer end B are the first party contract management client or the second party contract pipe Client is managed, and the contract management customer end A and the contract management client are not the same contract management client.
In a kind of feasible embodiment, the persistence unit is specifically used for:
Contract affairs in contract signature transactions requests are verified;
It verifies and the contract affairs is packaged into block after passing through;
Store the block.
In a kind of feasible embodiment, the block chain managing device further includes:
Resolution unit, for parsing the treaty content by intelligent contract, to obtain the contract ginseng of the treaty content Number;
The transmission unit is also used to send the conjunction to first party associated external system and second party associated external system With the Contract parameters of content.
In a kind of feasible embodiment, the block chain managing device further includes:
The receiving unit signs information for receiving the reading second party that the first party contract management client is sent Request;
Acquiring unit, for obtaining, second party signs information;
The transmission unit signs information for sending the second party to the first party contract management client.
In a kind of feasible embodiment, the block chain managing device further includes:
The receiving unit, the reading treaty content request sent for receiving the second party contract management client;
The acquiring unit is also used to the acquisition contract information;
The transmission unit, for sending the contract information to the second party contract management client.
7th aspect, the embodiment of the invention provides a kind of contract management clients, including
It is stored with the memory of executable program code;
With the processor coupled;
The processor calls the executable program code stored in the memory, executes as first aspect is whole Perhaps Part Methods or the execution all or part of method of second aspect.
Eighth aspect, the embodiment of the invention provides a kind of block chain managing devices, including
It is stored with the memory of executable program code;
With the processor coupled;
The processor calls the executable program code stored in the memory, executes as the third aspect is whole Or Part Methods.
9th aspect, the embodiment of the invention provides a kind of computer readable storage mediums, including instruction, when it is being calculated When being run on machine so that computer is executed such as all or part of method of first aspect, either execute second aspect all or Part Methods.
Tenth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, including instruction, when it is being calculated When being run on machine, so that computer executes all or part of method of the third aspect.
Tenth on the one hand, and the embodiment of the invention provides a kind of computer program products, including instruction, when it is in computer When upper operation, so that computer executes such as all or part of method of first aspect, second aspect whole or portion are either executed Divide method.
12nd aspect, the embodiment of the invention provides a kind of computer program products, including instruction, when it is in computer When upper operation, so that computer executes all or part of method of the third aspect.
As can be seen that, by saving treaty content on block chain, utilizing block chain in the scheme of the embodiment of the present invention The characteristics of can not be tampered with contract of guarantee content, time-proven and credible.Treaty content is only a in block chain with saving On, each contract party can check treaty content on block chain, reduce the management cost of each contract party itself.Pass through contract Template parses the contract parameter in treaty content by intelligent contract to construct the treaty content in block chain, will close automatically About other associated external systems are written in parameter, reduce the workload that contract parameter is manually imported to other associated external systems, And it avoids in artificial importing process and mistake occurs.
The aspects of the invention or other aspects can more straightforwards in the following description.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is system framework schematic diagram applied by a kind of contract dataset processing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of contract dataset processing method provided in an embodiment of the present invention;
Fig. 3 a is two side's contract template schematic diagrames in hotel and TMC signature;
Fig. 3 b is two side's contract template schematic diagrames of enterprise and TMC signature;
Fig. 3 c is the contract involving three parties template schematic diagram in hotel, TMC and enterprise's signature;
Fig. 3 d is the contract template schematic diagram in hotel of group and TMC signature;
Fig. 4 is a kind of contract transaction data structure schematic diagram provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another contract dataset processing method provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of another contract dataset processing method provided in an embodiment of the present invention;
Fig. 7 is a kind of interactive flow diagram of the method for contract dataset processing provided in an embodiment of the present invention;
Fig. 8 is a kind of intelligent contract installation procedure schematic diagram provided in an embodiment of the present invention;
Fig. 9 is a kind of intelligent contract concrete application process schematic provided in an embodiment of the present invention;
Figure 10 is the interactive flow diagram of another contract dataset processing method provided in an embodiment of the present invention;
Figure 11 is the interactive flow diagram of another contract dataset processing method provided in an embodiment of the present invention;
Figure 12 is the interactive flow diagram of another contract dataset processing method provided in an embodiment of the present invention;
Figure 13 is a kind of structural schematic diagram of contract management client provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram of another contract management client provided in an embodiment of the present invention;
Figure 15 is a kind of structural schematic diagram of block chain managing device provided in an embodiment of the present invention;
Figure 16 is the structural schematic diagram of another contract management client provided in an embodiment of the present invention;
Figure 17 is the structural schematic diagram of another block chain managing device provided in an embodiment of the present invention.
Specific embodiment
Embodiments of the present invention is described in detail with reference to the accompanying drawing.
Referring to Figure 1, Fig. 1 is system framework applied by a kind of contract dataset processing method provided in an embodiment of the present invention Schematic diagram.As shown in Figure 1, the system architecture includes first party contract management client, second party contract management client and area Block chain managing device.
Wherein, above-mentioned first party contract management client and second party contract management client can be to have and be wirelessly connected The handheld device of function or mobile unit etc..Common terminal device includes:Mobile phone, tablet computer, laptop, palm Computer, mobile internet device (mobile internet device, MID), internet of things equipment, wearable device is (for example, intelligence Energy wrist-watch, Intelligent bracelet, pedometer) etc..
It should be pointed out that above-mentioned first party contract management client and second party contract management client can be also installation Software on the end PC or terminal device.
Above-mentioned block chain managing device includes multiple block chain processing nodes, and two in multiple block chain processing node Block chain processing node is respectively that first party contract management client and second party contract management client provide service.
Above-mentioned two sides contract management client can be respectively hotel and enterprise contract management client;It can also be The contract management client of airline and enterprise or other there are two sides of cooperative relationship or multi-party contract management visitors Family end, will not enumerate herein.
Referring to fig. 2, Fig. 2 is a kind of flow diagram of contract dataset processing method provided in an embodiment of the present invention.It is described Method is applied to contract dataset processing system, and the contract dataset processing system includes first party contract management client, second Square contract management client and block chain managing device.As shown in Fig. 2, this method includes:
S201, when receive block chain managing device transmission first notice sign a contract message after, first party contract pipe It manages client and sends reading second party signature information request to block chain managing device.
Wherein, above-mentioned first notice signs a contract message for notifying above-mentioned first party contract management client signature to close Together.
It is described to be asked to block chain managing device transmission reading second party signature information in a kind of feasible embodiment Before asking, the method also includes:
Receive Contract parameters/treaty content that first party responsible person terminal device is sent;The treaty content includes Contract template and the parameter;
When receiving the Contract parameters, generated in the contract according to the Contract parameters and the contract template Hold;
Abstract hash is generated according to the treaty content;The abstract hash is encrypted according to the private key of first party, To obtain signature S;The second contract affairs are constructed according to the treaty content, the abstract hash and signature S;
The second contract is sent to the block chain managing device and signs transactions requests, and second contract signs transactions requests For requesting the block chain to store the second contract affairs;Described second, which closes affairs signature request, includes second contract Affairs;
The second contract signature transaction response that the block chain managing device is sent is received, for responding second contract Sign transactions requests.
Specifically, above-mentioned first party contract management client receives the Contract parameters that first party responsible person terminal device is sent Or treaty content.When receiving Contract parameters, above-mentioned first party contract management client according to the contract template of storage and The Contract parameters generate said contract content.Above-mentioned first contract management client is generated according to said contract content and is made a summary hash;The abstract hash is encrypted according to the private key of first party, to obtain signature S;Then based on contract content, abstract Hash and signature S construct the second contract affairs.Above-mentioned first party contract management client is sent to above-mentioned block chain managing device The second contract signature transactions requests of above-mentioned second contract affairs are carried, to request in the block chain idea device by above-mentioned first The storage of contract affairs is into local block chain.Above-mentioned first party contract management client receives what block chain managing device was sent Second signs a contract transaction response, for responding above-mentioned second contract signature transactions requests.
It should be noted that different contract management clients, i.e., different contract signatories, contract template are also different Sample.
Illustrate said contract template by taking hotel, TMC and enterprise as an example.Fig. 3 a is two side's contracts in hotel and TMC signature Template schematic diagram.The two sides contract template includes but is not limited to:House type & room rate, provide service type & facility using price with And discount, default clause and other business.Fig. 3 b is two side's contract template schematic diagrames of enterprise and TMC signature.The two sides contract Template includes but is not limited to:Travel service entry, service entry charging standard, clearing form and other business.Fig. 3 c be hotel, The contract involving three parties template schematic diagram of TMC and enterprise's signature.The contract involving three parties template includes but is not limited to:Employee owned enterprise, House type & room rate, offer service type & facility use price and discount, default clause and other business.Fig. 3 d is hotel of group With the contract template schematic diagram of TMC signature, which includes:Overall contact section and shops's contact section;Overall contract Part includes but is not limited to default clause and other business;Shops's contact section includes but is not limited to house type & room rate, provides Service type & facility uses price and discount and other business.
Further, said contract content includes overall treaty content and local treaty content.Wherein, overall treaty content For the treaty content of first party and the second party signature, local treaty content is the treaty content of first party and third party's signature, and Second party and third party are master-slave relationship, based on second party, third party be from.For example second party is group of hotel, third party is Shops under group of hotel;For another example, above-mentioned second party is home office, and third party is branch.
According to the method described above, above-mentioned first party contract management client is by above-mentioned overall treaty content and local treaty content It stores in the block chain in above-mentioned block chain managing device.
In a kind of feasible embodiment, above-mentioned first contract management client obtains said contract content (including totality Treaty content and local treaty content) after, said contract content is encrypted according to symmetric encipherment algorithm, is used to encryption The each side that key is participated in signing saves.
S202, first party contract management client receive the second party signature information that the block chain managing device is sent.
Wherein, above-mentioned second party signature information includes treaty content, the second time stamp T 2 and second party signature.
After receiving said contract content, the second time stamp T 2 and second party signature, above-mentioned first party contract management visitor Family end generates hash2 according to said contract content and above-mentioned second time stamp T 2, and above-mentioned second time stamp T 2 is at the first time Before stamp T1;Then according to the public key of second party to above-mentioned second party signature be decrypted, with obtain the first hash with it is above-mentioned When hash2 is consistent, above-mentioned first party contract management client confirms that above-mentioned second party signature information is errorless, i.e. confirmation said contract Content is not tampered with, and determines above-mentioned second party signed.
S203, when the second party signature validation of information it is errorless after, based on contract content and at the first time stamp T1, generate hash1;The hash1 is encrypted according to the private key of first party, to obtain first party signature S1;According in the contract Hold, stamp T1 and first party signature S1 construct the first contract affairs at the first time.
Specifically, after determining that said contract content is not tampered with and determines above-mentioned second party signed, above-mentioned first party To said contract content and at the first time, stamp T1 generates hash1 to contract management client;And according to the private key pair of above-mentioned first party The hash1 is encrypted, to obtain first party signature S1.Then above-mentioned first party contract management client is according in said contract Hold, stamp T1 and first party signature S1 construct above-mentioned first contract affairs at the first time.
Wherein, said contract transaction data structure is as shown in Figure 4.The contract transaction data structure includes:Version, transactions classes Type, contract original text, timestamp, Digital Contract Signature and contract type.
Above-mentioned version is used to indicate the version of said contract transaction data structure;Above-mentioned transaction types are used to indicate above-mentioned conjunction With the type of affairs;Said contract original text is the complete content of contract;Above-mentioned timestamp is third party's time service machine when contract is signed The signing time said contract signature that structure obtains:To the label obtained after the private key encryption of the hash value of treaty content using oneself Name.Said contract type can such as be divided into TMC and hotel signature two side's contracts, TMC and enterprise signature two side's contracts, Group's contract of TMC, the contract involving three parties in hotel and enterprise's signature and TMC and hotel's group signature.
Further, above-mentioned first party contract management client sends the signature of the first contract to above-mentioned block chain managing device Transactions requests and the first contract for receiving above-mentioned block chain managing device transmission sign transaction response.
Wherein, above-mentioned first contract signature transactions requests for request above-mentioned block chain store the first contract affairs and Above-mentioned first, which closes affairs signature request, includes above-mentioned first contract affairs, and above-mentioned first contract signature transaction response is for responding State the first contract signature transactions requests.
Further, after determining that receiving above-mentioned first contract signs transaction response, above-mentioned first party contract management visitor Family end sends signing success message to above-mentioned first party responsible person terminal device.
As can be seen that, by saving treaty content on block chain, utilizing block chain in the scheme of the embodiment of the present invention The characteristics of can not be tampered with contract of guarantee content, time-proven and credible.Treaty content is only a in block chain with saving On, each contract party can check treaty content on block chain, reduce the management cost of each contract party itself.
Referring to Fig. 5, Fig. 5 is a kind of flow diagram of contract dataset processing method provided in an embodiment of the present invention.It is described Method is applied to contract dataset processing system, and the contract dataset processing system includes first party contract management client, second Square contract management client and block chain managing device.As shown in figure 5, this method includes:
S501, when receive block chain managing device transmission first notice sign a contract message when, second party contract pipe It manages client and sends reading treaty content request to block chain managing device.
Wherein, above-mentioned first notice signs a contract message for notifying above-mentioned second party contract management client notification to sign Contract.
Specifically, above-mentioned second contract management client sends reading treaty content to above-mentioned block chain managing device and asks It asks, reads treaty content for requesting, which is above-mentioned first party contract management client in above-mentioned block chain management The treaty content and the treaty content stored in the local block chain of device is above-mentioned first party and second party contract to be signed Content.
S502, second party contract management client receive the contract information that the block chain managing device is sent, described Contract information includes treaty content
In a kind of feasible embodiment, the contract information further includes the abstract hash and signature S of the treaty content, After the contract information for receiving the block chain managing device transmission, the method also includes:
The signature S is decrypted according to the public key of first party, to obtain the 2nd hash;
When the 2nd hash is consistent with the abstract hash, confirm that the content information is errorless.
Specifically, after above-mentioned second contract management client receives said contract information, to contract in the contract information Content carries out being confirmed whether to be tampered.Specially:Above-mentioned second contract management client is according to the public key of Chinese fir first party to upper It states signature S to be decrypted, to obtain the 2nd hash, when the 2nd hash is consistent with above-mentioned abstract hash, then above-mentioned second close It determines that said contract content is not tampered with management client, confirms errorless.
S503, after determining that the contract information is errorless, second party contract management client is to second party responsible person's terminal Equipment sends the treaty content.
Wherein, after determining that said contract content is not tampered with, above-mentioned second party contract management client is to above-mentioned second Square responsible person's terminal device sends said contract content, and above-mentioned second party responsible person terminal device receives said contract content Afterwards, show that the treaty content facilitates second party responsible person to check treaty content.
It is objective to above-mentioned second party contract management by its terminal device after second party responsible person thinks that treaty content is reasonable Family end sends signature confirmation instruction.
S504, after receiving signature confirmation instruction, second party contract management client is according to the treaty content and the Two time stamp Ts 2 generate hash2;The hash2 is encrypted according to the private key of second party, to obtain second party signature S2; Third contract affairs are constructed according to the treaty content, the second time stamp T 2 and second party signature S2.
Specifically, when receive that above-mentioned second party responsible person terminal device sends sign a contract instruction after, above-mentioned second Square contract management client determines that above-mentioned second party responsible person thinks that treaty content is reasonable, can sign the contract.Above-mentioned second Square contract management client generates hash2 according to said contract content and the second time stamp T 2;And according to the private key pair of second party Above-mentioned hash2 is encrypted, to obtain second party signature S2.Above-mentioned second party contract management client is according in said contract Hold, the second time stamp T 2 and second party signature S2 construct contract affairs.
Further, above-mentioned second party contract management client sends the signature of third contract to above-mentioned block chain managing device Transactions requests and the third contract for receiving above-mentioned block chain managing device transmission sign transaction response.
Wherein, above-mentioned third contract signature transactions requests are for requesting block chain to store the third contract affairs;Third Closing affairs signature request includes third contract affairs.Above-mentioned third contract signature transaction response is for responding third contract signature thing Business request.
In a kind of feasible embodiment, said contract content includes overall treaty content and local treaty content.Wherein, Overall treaty content is the treaty content of first party and the second party signature, and local treaty content is first party and third party's signature Treaty content, and second party and third party are master-slave relationship, based on second party, third party be from.For example second party is hotel's collection Group, third party are the shops under group of hotel;For another example, above-mentioned second party is home office, and third party is branch.
Above-mentioned second party responsible person terminal device is sent to above-mentioned second party contract management client for above-mentioned overall conjunction After the signature confirmation instruction of content, above-mentioned second party responsible person terminal device sends to third party responsible person's terminal device and notifies It signs a contract message.When receive the notice sign a contract message after, above-mentioned third party responsible person's terminal device is to above-mentioned second Square contract management client, which is sent, reads local treaty content request;It is sent when receiving above-mentioned second party contract management client Local treaty content after, above-mentioned third party responsible person's terminal device shows above-mentioned local treaty content, and third party is facilitated to be responsible for People checks the part treaty content;After third party responsible person thinks that local treaty content is reasonable, pass through third party responsible person's end End equipment sends signature confirmation instruction to above-mentioned second party contract management client.Above-mentioned second party contract management client according to Above-mentioned steps S504-S506 handles above-mentioned local treaty content, no longer describes herein.
As can be seen that, by the way that treaty content to be stored in block chain, utilizing block in the scheme of the embodiment of the present invention The characteristics of chain, contract of guarantee content was not tampered, time-proven and feasible.Treaty content only saves portion on block chain, each to sign About Fang Junke checks treaty content on block chain, reduces and has carried out the management cost of each contract party itself.
Referring to Fig. 6, Fig. 6 is a kind of flow diagram of contract dataset processing method provided in an embodiment of the present invention.It is described Method is applied to contract dataset processing system, and the contract dataset processing system further includes first party contract management client and the Two side's contract management clients.As shown in fig. 6, this method includes:
The contract that S601, block chain managing device receipt of contract management client are sent signs transactions requests.
Wherein, said contract management client includes above-mentioned first party contract management client and above-mentioned second party contract pipe Client is managed, the contract signature affairs that said contract signature transactions requests first party contract management client described above is sent are asked The contract that second party contract management client of summing is sent signs transactions requests.
Wherein, the contract signature transactions requests that above-mentioned first party contract management client is sent are for requesting above-mentioned block chain Managing device stores the contract affairs for including in the signature transactions requests in its local block chain;Above-mentioned second party contract management Storage should in its local block chain for requesting above-mentioned block chain managing device for the contract signature transactions requests that client is sent The contract affairs for including in signature transactions requests.
S602, block chain managing device carry out block persistence to the contract affairs in contract signature transactions requests.
In a kind of feasible embodiment, the contract affairs in contract signature transactions requests carry out block and hold Longization, including:
Contract affairs in contract signature transactions requests are verified;
It verifies and the contract affairs is packaged into block after passing through;
Store the block.
Specifically, after receiving said contract signature transactions requests, above-mentioned block chain managing device signs the contract Contract affairs in transactions requests are verified;After verification passes through, by with the affairs one that are not packaged in block chain managing device It rises and is packaged into block, then by block storage into the local block chain of block chain managing device.
S603, block chain managing device send contract to contract management client and sign transaction response.
Wherein, said contract signature transaction response is for responding said contract signature transactions requests.
In a kind of feasible embodiment, the contract affairs in contract signature transactions requests carry out block and hold After longization, the method also includes:
It is sent to contract management customer end A and signs a contract transaction response and send notice to the contract management customer end B It signs a contract message;The transaction response of signing a contract signs affairs for responding the contract that the contract management client is sent Request, the notice sign a contract message for notifying the contract management customer end B to sign a contract;
Wherein, the contract management customer end A is the first party contract management client or the second party contract Management client, the contract management customer end B are the first party contract management client or the second party contract pipe Client is managed, and the contract management customer end A and the contract management client are not the same contract management client.
Specifically, above-mentioned block chain managing device receives the contract signature that above-mentioned first party contract management client is sent After transactions requests, above-mentioned block chain managing device is lasting by the contract affairs progress block in said contract signature transactions requests Change, states first party contract management client then up and send contract signature transaction response, for responding said contract signature thing Business request, while being sent to above-mentioned second party contract management client and notifying message of signing a contract, for notifying second party contract Management client is signed a contract.
In a kind of feasible embodiment, method described above further includes:
Receive the reading second party signature information request that the first party contract management client is sent;
It obtains institute's second party and signs information;
The second party, which is sent, to the first party contract management client signs information.
In a kind of feasible embodiment, the method also includes:
Receive the reading treaty content request that the second party contract management client is sent;
Obtain contract information;
The contract information is sent to the second party contract management client.
In a kind of feasible embodiment, above-mentioned block chain managing device receives above-mentioned first party contract management device and sends Notice sign a contract message, the message that then will sign a contract again is sent to above-mentioned second party contract management device, should with notice Second party contract management device is signed a contract;The notice that above-mentioned second party contract management device is sent is received to sign a contract message, Then the message that will sign a contract again is sent to above-mentioned first party contract management device, to notify the first party contract management device label Administration's contract.
In a kind of feasible embodiment, above-mentioned block chain managing device passes through intelligent contract and parses treaty content, with To the Contract parameters of treaty content;And treaty content is sent to first party associated external system and second party associated external system Contract parameters.
Wherein, after obtaining said contract parameter, above-mentioned block chain managing device imports above-mentioned first to the Contract parameters Square associated external system and second party associated external system.
As can be seen that, by saving treaty content on block chain, utilizing block chain in the scheme of the embodiment of the present invention The characteristics of can not be tampered with contract of guarantee content, time-proven and credible.Treaty content is only a in block chain with saving On, each contract party can check treaty content on block chain, reduce the management cost of each contract party itself.Pass through contract Template parses the contract parameter in treaty content by intelligent contract to construct the treaty content in block chain, will close automatically About other associated external systems are written in parameter, reduce the workload that contract parameter is manually imported to other associated external systems, And it avoids in artificial importing process and mistake occurs.
In a specific application scenarios, business-travel management is entrusted to business-travel management company (travel by enterprise Management corporation, TMC), air ticket, hotel reservation etc. when enterprise staff travel can be provided by TMC, enterprise Monthly closing entry expense is to TMC.TMC is to provide enterprise's business-travel management service.For hotel reservation, TMC collects the house type room of hotel's publication Resource is measured, to the information such as enterprise's publication hotel's house type room amount room rate, the open reservation for meeting its travel policy to enterprise staff;Place Manage the order that the travel of enterprise staff is subscribed.TMC monthly closing entry rent is to hotel.Hotel and TMC are signed with enterprise and are had cooperation agreement, To the house type room amount room rate resource in TMC publication hotel, confirm that the reservation order of TMC, processing enterprise staff move in and check out.
TMC, hotel and two sides of enterprise or tripartite usually require the mode signed a contract come to cooperation and approach, are provided The price of commodity & service is (such as:House type room rate) and the contents such as settlement method arranged.The signature mode of current contract may It is signature papery contract, transmits paper by way of aspectant signature or by express delivery, it is possible to also need to sign more Part;It is also likely to be the electronic contract signed on third-party platform.The each side of signature requires respectively to save and manage same Part contract
Papery contract need to contract more parts and also exist lose, the risk distorted, electronic contract passes through signing plateform system Signing is easy under attack and the problem of safety can be used occurs.And it signs and is needed in the information such as contractual house type and room rate TMC system is imported by hand, not only generates extra workload, it is also possible to there is the risk for importing mistake.In order to solve above-mentioned ask Topic, the embodiment of the present invention proposes a kind of contract dataset processing method, referring specifically to method shown in Fig. 7-Figure 12.
Referring to Fig. 7, Fig. 7 is a kind of interactive process signal of the method for contract dataset processing provided in an embodiment of the present invention Figure.This method specifically describes the process signed a contract between TMC and hotel based on block chain.As shown in fig. 7, this method packet It includes:
S701, TMC responsible person terminal device send treaty content C/ Contract parameters to TMC contract management client.
Wherein, said contract content C includes contract template and Contract parameters.The Contract parameters include the room that hotel provides The parameters such as type, room rate, the price of service provided and discount.
When above-mentioned TMC contract management client is stored with contract template, it is negative that above-mentioned TMC contract management client receives TMC Blame the Contract parameters that people's terminal device is sent.And after receiving Contract parameters, above-mentioned TMC contract management client is according to the conjunction Same parameter and contract template generate treaty content C.
In a kind of feasible embodiment, after above-mentioned TMC contract management client obtains said contract content C, the TMC Contract management device encrypts the treaty content according to symmetric encipherment algorithm, the key for encryption be sign a contract it is each Side co-owns.It is subsequent during treaty content C is transmitted in each side, be the encrypted treaty content C of transmission.
S702, TMC contract management client send the first contract to block chain managing device and sign transactions requests.
Wherein, it after the TMC contract management client obtains treaty content C, is generated and is made a summary according to treaty content C Then hash encrypts abstract hash according to the private key of TMC, with generate signature S, then will based on contract content C, abstract Hash and signature S construct the first contract affairs.Above-mentioned TMC contract management client sends above-mentioned to above-mentioned block chain managing device First contract signs transactions requests.
Wherein, above-mentioned first contract signature transactions requests include the first contract affairs.
S703 block chain managing device carries out block persistence.
It should be noted that above-mentioned block chain managing device includes above-mentioned TMC block chain processing node and hotel's block chain Handle node.Before above-mentioned TMC contract management client executing step S701, above-mentioned TMC block chain processing node and hotel Block chain handles node and carries out leader election, to obtain main block chain processing node.
Specifically, said contract affairs are sent to block chain managing device by above-mentioned TMC contract management client, it is therefore an objective to In order to by contract affairs storage to above-mentioned block chain managing device block chain processing node (including above-mentioned TMC block chain handle Node and hotel's block chain handle node) in.
After main block chain processing node in the block chain managing device receives above-mentioned first contract signature transactions requests, Above-mentioned first contract affairs are obtained from the request, and verify the contract transaction correctness.After verification passes through, above-mentioned main block Chain processing node contract affairs are packaged into block, and the block is then sent to each block chain processing node (including above-mentioned TMC Block chain handles node and hotel's block chain handles node).The correctness of affairs in each block chain processing node verification block, After going Except block lieutenant colonel to test unacceptable affairs, above-mentioned main block chain processing node and above-mentioned each block chain processing node storage The block is deposited.TMC block chain client is given when above-mentioned block chain managing device returns to the notice that storage is completed.
It should be noted that the block chain managing device includes endorsement node and row when above-mentioned block chain is alliance's chain Sequence node composition.Wherein, endorsement node can by above-mentioned block chain handle node (including above-mentioned TMC block chain processing node and Hotel's block chain handles node) it serves as, effect is verified to affairs, and checking algorithm can be Byzantine failure tolerance (practical byzantine fault tolerance, PBFT) algorithm is exactly when verifying, and endorsement node ballot is to determine to be It is no to be verified by affairs.
Ordering joint is used to be ranked up to affairs, and the affairs after sequence are then packaged into block and are sent to each block Chain node allows block chain to handle node memory block.
S704, block chain managing device send the first contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned first contract signs transaction response, for responding above-mentioned first contract signature transactions requests and announcement Know that the above-mentioned block chain managing device of above-mentioned TMC contract management client has stored above-mentioned first contract affairs.
S705, block chain managing device send first to hotel management client and notify message of signing a contract.
Wherein, above-mentioned first notice signs a contract message for notifying hotel side to sign a contract.
It should be pointed out that above-mentioned steps S704 and step S705 are performed simultaneously, without sequencing.
S706, hotel's contract management client are sent to block chain managing device reads treaty content request.
S707, block chain managing device send treaty content C, abstract hash and signature S to hotel's contract management client.
Specifically, above-mentioned hotel's contract management client sends above-mentioned reading treaty content to above-mentioned block chain managing device After request;Above-mentioned block chain managing device reads above content contract C, abstract hash and signature S from its local block chain, and Treaty content C, abstract hash and signature S are sent to above-mentioned hotel's contract management client.
S708, hotel's contract management client send treaty content C to hotel's responsible person's terminal device.
Specifically, when receiving said contract content C, above-mentioned hotel's contract management client is with the public key of TMC to label Name S is decrypted, and to obtain the first hash, after determining that the first hash is consistent with above-mentioned abstract hash, then confirms above-mentioned conjunction It is not tampered with content C, treaty content C is sent to above-mentioned hotel responsible person terminal device, to facilitate hotel responsible person to check conjunction With content C.
S709, hotel's responsible person's terminal device send signature confirmation instruction to hotel's contract management client.
Specifically, after above-mentioned hotel responsible person checks said contract content C by its terminal device, it is believed that treaty content C Rationally, then signature confirmation instruction is sent to hotel's contract management client by above-mentioned hotel service responsible person terminal device.
S710, hotel's contract management client send the second contract to block chain managing device and sign transactions requests.
Specifically, after receiving the signature confirmation instruction that above-mentioned hotel responsible person terminal device is sent, above-mentioned hotel is closed With management client according to said contract content C and current time stamp T1, hash1 is generated, and according to the private key in hotel to this Hash1 is encrypted, to generate hotel signature S1.Above-mentioned hotel's contract management client based on contract content C, current time stamp The second contract affairs are closed in T1 and hotel's signature S1 building.Above-mentioned hotel's contract management client is sent out to above-mentioned block chain managing device It serves and states the second contract signature transactions requests.
Wherein, above-mentioned second contract signature transactions requests include above-mentioned second contract affairs.
S711, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles node and block chain processing node in hotel's carries out the process of block persistence.Above-mentioned TMC block chain processing node and After hotel's block chain handles node progress block persistence, above-mentioned TMC block chain processing node and hotel's block chain handle node Local block chain in preserve above-mentioned hotel signing treaty content C, time stamp T 1 and hotel signature S1.The step it is specific Process no longer describes herein referring to above-mentioned steps S703.
S712, block chain managing device send the second contract to hotel's contract management client and sign transaction response.
Wherein, above-mentioned second contract signature transaction response is for responding above-mentioned second contract signature transactions requests.
S713, block chain managing device send second to TMC contract management device and notify message of signing a contract.
Wherein, above-mentioned second notice signs a contract message for informing that TMC contract management client hotel side's signed closes It signs a contract with the notice side TMC.
It should be pointed out that above-mentioned steps S713 and step S714 are performed simultaneously, without sequencing.
S714, TMC contract management client are sent to block chain managing device reads hotel's signature content requests.
Wherein, when receive above-mentioned second notice sign a contract message when, above-mentioned TMC contract management client is to above-mentioned area Block chain managing device sends above-mentioned reading hotel and signs content requests, reads the content signed above-mentioned hotel side, packet for requesting Include treaty content C, time stamp T 1 and hotel signature S1.
S715, block chain managing device send to TMC contract management client and sign with content C, time stamp T 1 and hotel S1。
Specifically, after receiving above-mentioned reading hotel signature content requests, above-mentioned block chain managing device is from its local Said contract content C, time stamp T 1 and hotel signature S1 are read in block chain;When receiving said contract content C, time stamp T 1 It signs after S1 with hotel, above-mentioned TMC contract management client is generated according to sign a contract content C2 and time stamp T 1 of above-mentioned hotel hash1;Then above-mentioned hotel signature S1 is decrypted using the public key in hotel, to obtain the 2nd hash;When the 2nd hash with When above-mentioned hash1 is consistent, above-mentioned TMC contract management client determines that above-mentioned hotel signs a contract to be not tampered with and has signed with hotel side About.
Above-mentioned TMC contract management client generates hash2 according to said contract content C and current time stamp T2, and according to The private key of TMC encrypts hash2, to obtain TMC signature S2.The TMC contract management client is according to said contract content C, time stamp T 2 and TMC signature S2 construct contract management affairs.
S716, TMC contract management client send third contract to block chain managing device and sign transactions requests.
Wherein, above-mentioned third contract signature transactions requests include said contract management affairs.
S717, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles node and block chain processing node in hotel's carries out the process of block persistence.Above-mentioned TMC block chain processing node and Hotel's block chain handles node and carries out block persistence process, and detailed process no longer describes herein referring to above-mentioned steps S703.
After the completion of above-mentioned TMC block chain processing node and hotel's block chain processing node block persistence, the TMC block chain Said contract management affairs are stored in the local block chain of processing node and hotel's block chain processing node.
S718, block chain managing device send third contract to TMC contract management client and sign transaction response.
Wherein, above-mentioned third contract signature transaction response is for responding third contract signature transactions requests.
S719, TMC contract management client send signing success message to TMC responsible person's terminal device.
Further, after receiving above-mentioned third contract signature transaction response, above-mentioned TMC contract management client is upward The terminal device for stating TMC responsible person sends signing success notification, to inform the TMC responsible person and hotel's signing contract success.
S720, block chain managing device parse treaty content C, to obtain Contract parameters.
Specifically, above-mentioned block chain managing device parses said contract management affairs first, to obtain said contract content Then C continues to parse treaty content C, to obtain corresponding Contract parameters by intelligence contract.
Wherein, said contract parameter includes but is not limited to room rate, house type, quantity, service item and price and discount Etc. information.
Contract parameters are imported other related systems of TMC and other related systems of hotel by S721, block chain managing device.
Specifically, other are related to hotel by Contract parameters importing other related systems of TMC for above-mentioned block chain managing device System.Wherein, other related systems of above-mentioned TMC can be hotel's resource delivery system, hotel's settlement system or other systems; Other related systems of above-mentioned hotel can be the asset management system of hotel (property management system, PMS) or Person's other systems.
According to the method described above, the signature of TMC Yu hotel's contract are realized.
Lower mask body introduction handles the tool that intelligent contract is added in node and hotel's block chain processing node in TMC block chain Body process.It is that TMC block chain handles node and hotel's block chain handles and intelligent contract process is added in node referring to Fig. 8, Fig. 8 Schematic diagram.As shown in figure 8, including:
Based on contract clause is write intelligent contract and is packaged by S801, TMC, to obtain intelligent contract packet P.
Wherein, the clause in contract that said contract clause is above-mentioned TMC and hotel signs.
S802, TMC send intelligent contract packet P to TMC contract management client.
S803, TMC contract management client are to intelligent contract packet P ciphering signature, to obtain the first signature intelligence contract packet.
Specifically, after receiving above-mentioned intelligence contract packet P, above-mentioned TMC contract management client is using its private key to this The hash value of intelligent contract packet P is encrypted, and to generate TMC signature S1, and TMC signature S1 is loaded into the intelligence contract packet Signature sequence in, to obtain the first signature intelligence contract packet.
S804, TMC contract management client send the intelligent contract packet of the first signature to hotel's contract management client.
S805, hotel's contract management client send notice to hotel and check message.
Wherein, after receiving above-mentioned first signature intelligence contract packet, above-mentioned hotel's contract management client utilizes TMC's Above-mentioned signature S1 is decrypted in public key, to obtain the hash of S1.As the hash and the above-mentioned intelligent contract packet of first signature of S1 After hash is compared unanimously, above-mentioned hotel's contract management client sends notice to above-mentioned hotel and checks message, to inform that hotel looks into See intelligent contract.
Confirmation message is checked to the transmission of hotel's contract management client by S806, hotel.
Wherein, after confirming that above-mentioned intelligent contract is errorless, above-mentioned hotel is looked into the transmission of above-mentioned hotel's contract management client See confirmation message, it is errorless with indicating intelligent contract.
S807, hotel's contract management client carry out ciphering signature to the intelligent contract packet of the first signature, to obtain the second label The intelligent contract packet of name.
Wherein, above-mentioned hotel's contract management client using its private key to above-mentioned first sign intelligent contract packet hash into Row encryption, to obtain hotel signature S2, the hotel Bing Jianggai signature S2 is loaded in the signature sequence of intelligent contract packet, to obtain second Intelligence of signing contract packet.
S808, hotel's contract management client send the intelligent contract packet of the second signature to TMC contract management client.
S809, TMC contract management client and hotel's contract management client handle node and wine in TMC block chain respectively Shop block chain, which is handled, installs intelligent contract on node.
Specifically, exist when in the signature sequence that TMC contract management client determines the above-mentioned intelligent contract packet of second signature When above-mentioned hotel's signature S2, above-mentioned TMC contract management client and hotel's contract management client are respectively in the processing of TMC block chain Intelligent contract is installed on node and hotel's block chain processing node.
So far, it completes to handle node and the intelligent contract of hotel's block chain processing node addition in TMC block chain.
A specific embodiment of the intelligent contract of hotel's contract is described below.When enterprise staff to check hotel provide When the price and discount of service (such as laundry, shopping etc.) and facility (meeting room, gymnasium and swimming pool etc.), calling can be passed through The intelligent contract of hotel's contract is checked.Detailed process is referring to Fig. 9, the intelligent contract specific example process of the hotel Tu9Wei contract Schematic diagram.As shown in figure 9, including:
S901, enterprise staff terminal device send authentication message to hotel's resource delivery system.
Wherein, above-mentioned authentication message includes identity information of above-mentioned enterprise staff, such as identification card number, enterprise's work number etc..
Specifically, above-mentioned enterprise staff is directly logged in hotel's resource delivery system by using its terminal device or passed through Enterprise's OA turns the modes such as jump and enters above-mentioned hotel's resource delivery system.
S902, hotel's resource delivery system authenticate enterprise staff identity.
Specifically, above-mentioned hotel's resource delivery system traverses interior data library according to the identity information of above-mentioned enterprise staff Determine whether the enterprise staff is the employee of enterprise of contracting with it.
S903, hotel's resource delivery system send authentication successful message to enterprise staff terminal device.
Wherein, when determining above-mentioned enterprise staff is the employee with signing enterprise of hotel, above-mentioned hotel's resource delivery system Authentication successful message is sent to above-mentioned enterprise staff terminal device.
S904, enterprise staff terminal device send first to hotel's resource delivery system and check service request.
Wherein, after receiving above-mentioned authentication successful message, above-mentioned enterprise staff terminal device is sent out to above-mentioned hotel's resource Distribution system sends above-mentioned first and checks service request, and the hotel for including in the contract signed with the request hotel with enterprise is The information such as service, price and the discount of the offer of enterprise staff.
S905, hotel's resource delivery system send second to TMC contract management client and check service request.
It wherein, should due to the treaty content in not stored hotel in above-mentioned hotel's resource delivery system and enterprise's signature Hotel's resource delivery system, which needs to send second to above-mentioned TMC contract management client, checks service request.This second checks clothes Business request carries above-mentioned hotel information and above-mentioned employee owned enterprise information.The hotel information can be hotel ID or hotel's name Claim;The employee owned enterprise information can be enterprise ID or enterprise name.
S906, TMC contract management client send contract list acquisition request to TMC block chain processing node.
Wherein, said contract list acquisition request is signed for the above-mentioned hotel of request and above-mentioned enterprise staff owned enterprise The list of the contract of administration.The contract list acquisition request carries above-mentioned hotel information and above-mentioned employee owned enterprise information.
S907, TMC block chain handle node and send contract list to TMC contract management client.
It wherein, include the number and/or Jiu Dian &TMC of the contract that enterprise & Jiu Dian &TMC tripartite signs in said contract list The number of the contract of two sides signature.
S908, TMC contract management client selection target contract number.
Optionally, above-mentioned target contract number can be the number or hotel & of the contract of enterprise & Jiu Dian &TMC tripartite signature The number of the contract of two side of TMC signature.
Preferably, above-mentioned target contract number can be the number of the contract of enterprise & Jiu Dian &TMC tripartite signature.
S909, TMC contract management client send third to TMC block chain processing node and check service request.
Wherein, above-mentioned third checks that service request carries above-mentioned target contract number.
S910, TMC block chain handle node and send query result to TMC contract management client.
Wherein, above-mentioned TMC block chain processing node obtains target contract according to above-mentioned target contract number, then passes through tune Service entry and the information such as price and discount in the target contract are inquired with corresponding intelligent contract.And to above-mentioned TMC contract Management client sends query result, which includes service entry and price and discount etc. in above-mentioned target contract Information.
S911, TMC contract management client send query result to hotel's resource delivery system.
S912, hotel's resource delivery system send query result to enterprise staff terminal device.
So far, the hotel for including in the contract that above-mentioned enterprise staff is signed by its terminal device acquisition hotel with enterprise is The information such as service, price and the discount of the offer of enterprise, so that the employee can preferably enjoy the service of hotel's offer.
As can be seen that in Fig. 7-embodiment shown in Fig. 9, by introducing contract template, according to the contract template and conjunction Same parameter generates treaty content, and by treaty content storage into block chain, contract of guarantee content can not be distorted, time-proven And confidence level.And for treaty content only with portion is saved into block chain, signing respectively can check contract on block chain, reduce The management costs of contracting parties itself.Treaty content is parsed by block chain to obtain Contract parameters and import associated external system System reduces the artificial workload for importing Contract parameters, avoids the artificial generation for importing Contract parameters mistake.By by contract The message compositions such as the price and discount of middle hotel service facility facilitate checking for enterprise staff at intelligent contract, can allow enterprise Employee enjoys more preferential.
Referring to Figure 10, Figure 10 is the interactive process of the method for another contract dataset processing provided in an embodiment of the present invention Schematic diagram.This method specifically describes the process signed a contract between TMC and enterprise based on block chain.As shown in Figure 10, the party Method includes:
S1001, TMC responsible person terminal device send treaty content C/ Contract parameters to TMC contract management client.
Wherein, said contract content C includes contract template and Contract parameters.The Contract parameters include the room that hotel provides The parameters such as type, room rate, the price of service provided and discount.
When above-mentioned TMC contract management client is stored with contract template, it is negative that above-mentioned TMC contract management client receives TMC Blame the Contract parameters that people's terminal device is sent.And after receiving Contract parameters, above-mentioned TMC contract management client is according to the conjunction Same parameter and contract template generate treaty content C.
In a kind of feasible embodiment, after above-mentioned TMC contract management client obtains said contract content C, the TMC Contract management device encrypts the treaty content according to symmetric encipherment algorithm, the key for encryption be sign a contract it is each Side co-owns.It is subsequent during treaty content C is transmitted in each side, be the encrypted treaty content C of transmission.
S1002, TMC contract management client send the first contract to block chain managing device and sign transactions requests.
Wherein, it after the TMC contract management client obtains treaty content C, is generated and is made a summary according to treaty content C Then hash encrypts abstract hash according to the private key of TMC, with obtain signature S, then will based on contract content C, abstract Hash and signature S construct the first contract affairs.It is above-mentioned to the transmission of above-mentioned block chain managing device to appeal TMC contract management client First contract signs transactions requests, and it includes the first contract affairs which, which signs transactions requests,.
S1003, block chain managing device carry out block persistence.
It should be noted that above-mentioned block chain managing device includes above-mentioned TMC block chain processing node and enterprise's block chain Handle node.Before above-mentioned TMC contract management client executing step S1001, above-mentioned TMC block chain processing node and enterprise Block chain handles node and carries out leader election, to obtain main block chain processing node.
Specifically, said contract affairs are sent to block chain managing device by above-mentioned TMC contract management client, it is therefore an objective to In order to by contract affairs storage to above-mentioned block chain managing device block chain processing node (including above-mentioned TMC block chain handle Node and enterprise's block chain handle node) in.
After main block chain processing node in the block chain managing device receives above-mentioned first contract signature transactions requests, Above-mentioned first contract affairs are obtained from the request, and verify the contract transaction correctness.After verification passes through, above-mentioned main block Chain processing node contract affairs are packaged into block, and the block is then sent to each block chain processing node (including above-mentioned TMC Block chain handles node and enterprise's block chain handles node).The correctness of affairs in each block chain processing node verification block, After going Except block lieutenant colonel to test unacceptable affairs, above-mentioned main block chain processing node and above-mentioned each block chain processing node storage The block is deposited.TMC block chain client is given when above-mentioned block chain managing device returns to the notice that storage is completed.
It should be noted that the block chain managing device includes endorsement node and row when above-mentioned block chain is alliance's chain Sequence node composition.Wherein, endorsement node can by above-mentioned block chain handle node (including above-mentioned TMC block chain processing node and Enterprise's block chain handles node) it serves as, effect is verified to affairs, and it is exactly to verify that checking algorithm, which can be PBFT algorithm, When, endorsement node ballot is to decide whether to verify by affairs.
Ordering joint is used to be ranked up to affairs, and the affairs after sequence are then packaged into block and are sent to each block Chain node allows block chain to handle node memory block.
S1004, block chain managing device send the first contract to TMC contract management client and sign transaction response.
Wherein, above-mentioned first contract signature transaction response is for responding above-mentioned first contract signature transactions requests, in informing It states the above-mentioned block chain managing device of TMC contract management client and has stored above-mentioned first contract affairs.
S1005, block chain managing device send first to enterprise's contract management client and notify message of signing a contract.
Wherein, above-mentioned first notice signs a contract message for notifying enterprise side to sign a contract.
It should be pointed out that above-mentioned steps S1004 and step S1005 are performed simultaneously, without sequencing.
S1006, enterprise's contract management client are sent to block chain managing device reads treaty content request.
S1007, block chain managing device send treaty content C, abstract hash and signature to enterprise's contract management client S。
Specifically, above-mentioned enterprise's contract management client sends above-mentioned reading treaty content to above-mentioned block chain managing device Request;Above-mentioned enterprise's block chain handles node and reads above content contract C, abstract hash and signature S from its local block chain, And treaty content C, abstract hash and signature S are sent to above-mentioned enterprise's contract management client.
S1008, enterprise's contract management client send treaty content C to business manager terminal device.
Specifically, when receiving said contract content C, above-mentioned enterprise's contract management client is with the public key of TMC to label Name S is decrypted, and to obtain the first hash, after determining that the first hash is consistent with above-mentioned abstract hash, then confirms above-mentioned conjunction It is not tampered with content C, treaty content C is sent to above-mentioned business manager terminal device, to facilitate business manager to check conjunction With content C.
S1009, business manager terminal device send signature confirmation instruction to enterprise's contract management client.
Specifically, after above-mentioned business manager checks said contract content C by its terminal device, it is believed that treaty content C Rationally, then signature confirmation instruction is sent to enterprise's contract management client by above-mentioned enterprises service responsible person terminal device.
S1010, enterprise's contract management client send the second contract to block chain managing device and sign transactions requests.
Specifically, after receiving the signature confirmation instruction that above-mentioned business manager terminal device is sent, above-mentioned enterprise is closed With management client according to said contract content C and current time stamp T1, hash1 is generated, and according to the private key of enterprise to this Hash1 is encrypted, to obtain enterprise signature S1.Above-mentioned enterprise's contract management client based on contract content C, current time stamp The second contract affairs are closed in T1 and enterprise's signature S1 building.Above-mentioned enterprise's contract management client is sent out to above-mentioned block chain managing device It serves and states the second contract signature transactions requests.
Wherein, above-mentioned second contract signature transactions requests include above-mentioned second contract affairs.
S1011, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles node and enterprise's block chain processing node carries out the process of block persistence.Above-mentioned TMC block chain processing node and After enterprise's block chain handles node progress block persistence, above-mentioned TMC block chain processing node and enterprise's block chain handle node Local block chain in preserve said contract content C, time stamp T 1 and enterprise signature S1.The detailed process of the step referring to The associated description of above-mentioned steps S1003, no longer describes herein.
S1012, block chain managing device send the second contract to enterprise's contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned second contract signature to above-mentioned enterprise's contract management client Transaction response, for responding above-mentioned second contract signature transactions requests.
S1013, block chain managing device send second to TMC contract management client and notify message of signing a contract
Wherein, above-mentioned second notice signs a contract message for informing that TMC contract management client enterprise side signed closes It signs a contract with the notice side TMC.
It should be pointed out that above-mentioned steps S1012 and step S1013 are performed simultaneously, without sequencing.
S1014, TMC contract management client are sent to block chain managing device reads enterprise's signature content requests.
Wherein, when receive above-mentioned second notice sign a contract message when, above-mentioned TMC contract management client is to above-mentioned area Block chain managing device sends above-mentioned reading enterprise and signs content requests, for requesting the content of the above-mentioned enterprise side signature of reading, packet Include treaty content C, time stamp T 1 and enterprise signature S1.
S1015, block chain managing device send to TMC contract management client and sign with content C, time stamp T 1 and enterprise S1。
Specifically, after receiving above-mentioned reading enterprise signature content requests, above-mentioned block chain managing device is from its local Said contract content C, time stamp T 1 and enterprise's signature above-mentioned TMC contract management client of S1 are read in block chain according to above-mentioned conjunction Hash1 is generated with content C and time stamp T 1;Then above-mentioned enterprise signature S1 is decrypted using the public key of enterprise, to obtain 2nd hash;When the 2nd hash is consistent with above-mentioned hash1, above-mentioned TMC contract management client determines that above-mentioned enterprise's signature is closed It has contracted with being not tampered with enterprise side.
Above-mentioned TMC contract management client generates hash2 according to said contract content C and current time stamp T2, and according to The private key of TMC encrypts hash2, to obtain TMC signature S2.The TMC contract management client is according to said contract content C, time stamp T 2 and TMC signature S2 construct contract management affairs.
S1016, TMC contract management client send third contract to above-mentioned block chain managing device and sign transactions requests.
Specifically, above-mentioned TMC contract management client sends above-mentioned third contract signature to above-mentioned block chain managing device Transactions requests.Wherein, third contract signature transactions requests include said contract management affairs.
S1017, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles node and enterprise's block chain processing node carries out the process of block persistence.Above-mentioned TMC block chain processing node and Enterprise's block chain handle node carry out block persistence process, detailed process referring to above-mentioned steps S1003 associated description, herein No longer describe.
After the completion of above-mentioned TMC block chain processing node and enterprise's block chain processing node block persistence, the TMC block chain Said contract management affairs are stored in the local block chain of processing node and enterprise's block chain processing node.
S1018, block chain managing device send third contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned third contract signature to above-mentioned TMC contract management client Transaction response, for responding third contract signature transactions requests.
S1019, TMC contract management client send signing success message to TMC responsible person's terminal device.
Further, after receiving above-mentioned third contract signature transaction response, above-mentioned TMC contract management client is upward The terminal device for stating TMC responsible person sends signing success notification, to inform the TMC responsible person and enterprise's signing contract success.
S1020, block chain managing device parse treaty content C, to obtain Contract parameters.
Specifically, above-mentioned block chain managing device parses said contract management affairs first, to obtain said contract content Then C continues to parse treaty content C according to intelligent contract, to obtain corresponding Contract parameters.
Wherein, said contract parameter includes but is not limited to room rate, house type, quantity, service item and price and discount Etc. information.
Contract parameters are imported other related systems of TMC and other related systems of enterprise by S1021, block chain managing device.
Specifically, other are related to enterprise by Contract parameters importing other related systems of TMC for above-mentioned block chain managing device System.Wherein, other related systems of above-mentioned TMC can be corporate resources delivery system, enterprise's settlement system or other systems; Other related systems of above-mentioned enterprise can be enterprise PMS or other systems.
According to the method described above, the signature of TMC Yu two side's contract of enterprise are realized.
Referring to Figure 11, Figure 11 is that the interactive process of another contract dataset processing method provided in an embodiment of the present invention is shown It is intended to.This method specifically describes the process that TMC, hotel and enterprise tripartite are signed a contract based on block chain.As shown in figure 11, should Method includes:
S1101, TMC responsible person terminal device send treaty content C/ Contract parameters to TMC contract management client.
Wherein, said contract content C includes contract template and Contract parameters.The Contract parameters include the room that hotel provides The parameters such as type, room rate, the price of service provided and discount.
When above-mentioned TMC contract management client is stored with contract template, it is negative that above-mentioned TMC contract management client receives TMC Blame the Contract parameters that people's terminal device is sent.And after receiving Contract parameters, above-mentioned TMC contract management client is according to the conjunction Same parameter and contract template generate treaty content C.
In a kind of feasible embodiment, after above-mentioned TMC contract management client obtains said contract content C, the TMC Contract management device encrypts the treaty content according to symmetric encipherment algorithm, the key for encryption be sign a contract it is each Side co-owns.It is subsequent during treaty content C is transmitted in each side, be the encrypted treaty content C of transmission.
S1102, TMC contract management client send the first contract to block chain managing device and sign transactions requests.
Wherein, it after the TMC contract management client obtains treaty content C, is generated and is made a summary according to treaty content C Then hash encrypts abstract hash according to the private key of TMC, with obtain signature S, then will based on contract content C, abstract Hash and signature S construct the first contract affairs.Above-mentioned TMC contract management client sends above-mentioned to above-mentioned block chain managing device First contract signs transactions requests.
Wherein, above-mentioned first contract signature transactions requests include the first contract affairs.
S1103, block chain managing device carry out block persistence.
It should be noted that above-mentioned block chain managing device includes above-mentioned TMC block chain processing node, at hotel's block chain It manages node and enterprise's block chain handles node.Before above-mentioned TMC contract management client executing step S1101, the above-mentioned area TMC Block chain handles node, enterprise's block chain processing node and hotel's block chain processing node and carries out leader election, to obtain primary area Block chain handles node.
Specifically, said contract affairs are sent to block chain managing device by above-mentioned TMC contract management client, it is therefore an objective to In order to by contract affairs storage to above-mentioned block chain managing device block chain processing node (including above-mentioned TMC block chain handle Node, enterprise's block chain processing node and hotel's block chain handle node) in.
After main block chain processing node in the block chain managing device receives above-mentioned first contract signature transactions requests, Above-mentioned first contract affairs are obtained from the request, and verify the contract transaction correctness.After verification passes through, above-mentioned main block Chain processing node contract affairs are packaged into block, and the block is then sent to each block chain processing node (including above-mentioned TMC Block chain handles node, enterprise's block chain processing node and hotel's block chain and handles node).Each block chain processing node verification The correctness of affairs in block, after going Except block lieutenant colonel to test unacceptable affairs, above-mentioned main block chain processing node and above-mentioned each A block chain processing node stores the block and deposits.TMC block is given when above-mentioned block chain managing device returns to the notice that storage is completed Chain client.
It should be noted that the block chain managing device includes endorsement node and row when above-mentioned block chain is alliance's chain Sequence node composition.Wherein, endorsement node can by above-mentioned block chain handle node (including above-mentioned TMC block chain processing node, enterprise Industry block chain processing node and hotel's block chain handle node) it serves as, effect is verified to affairs, and checking algorithm can be with It is that PBFT algorithm is exactly when verifying, endorsement node ballot is to decide whether to verify by affairs.
Ordering joint is used to be ranked up to affairs, and the affairs after sequence are then packaged into block and are sent to each block Chain node allows block chain to handle node memory block.
So far, above-mentioned TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node are corresponding Block chain in be stored with said contract content C, abstract hash and signature S.
S1104, block chain managing device send the first contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned first contract signature to above-mentioned TMC contract management client Affairs are corresponding, for responding above-mentioned first contract signature transactions requests and informing the above-mentioned above-mentioned block of TMC contract management client Chain managing device has stored above-mentioned first contract affairs.
S1105, block chain managing device send first to hotel's contract management client and notify message of signing a contract.
Wherein, above-mentioned first notice signs a contract message for notifying hotel side to sign a contract.
It should be pointed out that above-mentioned steps S1104 and step S1105 are performed simultaneously, without sequencing.
S1106, hotel's contract management client are sent to block chain managing device reads treaty content request.
S1107, block chain managing device send treaty content C, abstract hash and signature to hotel's contract management client S。
Specifically, above-mentioned hotel's contract management client sends above-mentioned reading treaty content to above-mentioned block chain managing device Request;Above-mentioned hotel's block chain handles node and reads above content contract C, abstract hash and signature S from its local block chain, And treaty content C, abstract hash and signature S are sent to above-mentioned hotel's contract management client.
S1108, hotel's contract management client send treaty content C to hotel's responsible person's terminal device.
Specifically, when receiving said contract content C, above-mentioned hotel's contract management client is with the public key of TMC to label Name S is decrypted, and to obtain the first hash, after determining that the first hash is consistent with above-mentioned abstract hash, then confirms above-mentioned conjunction It is not tampered with content C, treaty content C is sent to above-mentioned hotel responsible person terminal device, to facilitate hotel responsible person to check conjunction With content C.
S1109, hotel's responsible person's terminal device send signature confirmation instruction to hotel's contract management client.
Specifically, after above-mentioned hotel responsible person checks said contract content C by its terminal device, it is believed that treaty content C Rationally, then signature confirmation instruction is sent to hotel's contract management client by above-mentioned hotel service responsible person terminal device.
S1110, hotel's contract management client send the second contract to block chain managing device and sign transactions requests.
Specifically, after receiving the signature confirmation instruction that above-mentioned hotel responsible person terminal device is sent, above-mentioned hotel is closed With management client according to said contract content C and current time stamp T1, hash1 is generated, and according to the private key in hotel to this Hash1 is encrypted, to obtain hotel signature S1.Above-mentioned hotel's contract management client based on contract content C, current time stamp The second contract affairs are closed in T1 and hotel's signature S1 building.Above-mentioned hotel's contract management client is sent out to above-mentioned block chain managing device It serves and states the second contract signature transactions requests.
Wherein, above-mentioned second contract signature transactions requests include above-mentioned second contract affairs.
S1111, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles the process that node, enterprise's block chain processing node and hotel's block chain processing node carry out block persistence.It is above-mentioned It is above-mentioned after TMC block chain handles node, hotel's block chain processing node and enterprise's block chain processing node progress block persistence It is saved in the local block chain of TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node There are said contract content C, time stamp T 1 and hotel signature S1.The detailed process of the step is referring to above-mentioned steps S1103, herein not It describes again.
Above-mentioned TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node block are lasting After the completion of change, which handles the local block of node, hotel's block chain processing node and enterprise's block chain processing node Above-mentioned second contract affairs are stored in chain.
S1112, block chain managing device send the second contract to hotel's contract management client and sign transaction response.
Wherein, above-mentioned second contract signature transaction response is for responding above-mentioned second contract signature transactions requests.
S1113, block chain managing device send second to enterprise's contract management client and notify message of signing a contract
Wherein, above-mentioned second notice signs a contract message for informing that enterprise's contract management client hotel side signed closes Together and above-mentioned enterprise side is notified to sign a contract.
It should be pointed out that above-mentioned steps S1112 and step S1113 are performed simultaneously, without sequencing.
S1114, enterprise's contract management client send second to block chain managing device and read treaty content request.
Wherein, when receive above-mentioned second notice sign a contract message when, above-mentioned enterprise's contract management client is to above-mentioned Block chain managing device sends above-mentioned second and reads treaty content request, reads the content signed above-mentioned hotel side for requesting, Including treaty content C, time stamp T 1 and hotel signature S1.
S1115, block chain managing device send treaty content C, time stamp T 1 and hotel to enterprise's contract management client Sign S1.
After receiving above-mentioned second reading treaty content request, above-mentioned block chain managing device is from its local block chain Said contract content C, time stamp T 1 and hotel signature S1 are read, and treaty content C, time stamp T 1 and hotel signature S1 are sent out It send to above-mentioned enterprise's contract management client.
S1116, enterprise's contract management client send treaty content C to business manager terminal device.
Specifically, after receiving said contract content C, time stamp T 1 and enterprise signature S1, above-mentioned enterprise's contract management Client generates hash1 according to said contract content C and time stamp T 1;Then using the public key of enterprise to above-mentioned enterprise signature S1 It is decrypted, to obtain the 2nd hash;When the 2nd hash is consistent with above-mentioned hash1, above-mentioned enterprise's contract management client is true Fixed above-mentioned hotel signs a contract to be not tampered with to have contracted with hotel side.Above-mentioned enterprise's contract management client is responsible for above-mentioned enterprise People's terminal device sends treaty content C.
S1117, business manager terminal device send signature confirmation instruction to enterprise's contract management client.
After receiving said contract content C, which shows said contract content C, with convenient Business manager is checked.After confirming that treaty content C is reasonable, business manager passes through its terminal device to above-mentioned enterprise's contract pipe It manages client and sends signature confirmation instruction.
S1118, enterprise's contract management client send third contract to block chain managing device and sign transactions requests.
Wherein, after just receiving above-mentioned signature confirmation instruction, above-mentioned enterprise's contract management client is according in said contract Hold C and current time stamp T2 and generate hash2, and hash2 is encrypted according to the private key of enterprise, to obtain enterprise signature S2. Enterprise's contract management client constructs third contract affairs according to said contract content C, time stamp T 2 and enterprise signature S2, and Third contract, which is sent, to above-mentioned block chain managing device signs transactions requests.
Wherein, above-mentioned third contract signature transactions requests include above-mentioned third contract affairs, and time stamp T 2 is in the above-mentioned time After stamp T1.
S1119, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles the process that node, enterprise's block chain processing node and hotel's block chain processing node carry out block persistence.It is above-mentioned It is above-mentioned after TMC block chain handles node, hotel's block chain processing node and enterprise's block chain processing node progress block persistence It is saved in the local block chain of TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node There are said contract content C, time stamp T 2 and enterprise signature S2.The detailed process of the step is referring to above-mentioned steps S1103, herein not It describes again.
Above-mentioned TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node block are lasting After the completion of change, which handles the local block of node, hotel's block chain processing node and enterprise's block chain processing node Above-mentioned third contract affairs are stored in chain.
S1120, block chain managing device send third contract to enterprise's contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned third contract signature to above-mentioned enterprise's contract management client Transaction response, for responding above-mentioned third contract signature transactions requests.
S1121, block chain managing device send third notice to TMC contract management client and sign message
Wherein, above-mentioned third notice signs a contract message for informing TMC contract management client hotel side and enterprise side Signed contract and the notice side TMC sign a contract.
It should be pointed out that above-mentioned steps S1120 and step S1121 are performed simultaneously, without sequencing.
S1122, TMC contract management client send third to block chain managing device and read treaty content request.
Wherein, specifically, TMC contract management client sends above-mentioned third to block chain managing device and reads treaty content Request, the content for request the content for reading the signature of above-mentioned enterprise and hotel to be signed, including treaty content C, time stamp T 1, when Between stab T2, hotel signature S1 and enterprise sign S2.
S1123, block chain managing device send treaty content C, time stamp T 1, timestamp to TMC contract management client T2, hotel signature S1 and enterprise signature S2.
Specifically, after receiving above-mentioned third and reading treaty content request, above-mentioned block chain managing device is from its local Said contract content C, time stamp T 1, time stamp T 2, hotel signature S1 and enterprise signature S2 are read in block chain, are sent to above-mentioned TMC contract management client.
It is above-mentioned after receiving said contract content C, time stamp T 1,2 hotel of time stamp T signature S1 and enterprise signature S2 TMC contract management client generates hash1 according to said contract content C and time stamp T 1;Then using the public key in hotel to upper It states enterprise signature S1 to be decrypted, to obtain the 3rd hash;When the 3rd hash is consistent with above-mentioned hash1, above-mentioned TMC contract pipe Reason client determines that above-mentioned hotel content of signing a contract is not tampered with and has contracted with hotel side.Above-mentioned TMC contract management client Hash2 is generated according to said contract content C and time stamp T 2;Then above-mentioned enterprise signature S2 is solved using the public key of enterprise It is close, to obtain the 4th hash;When the 4th hash is consistent with above-mentioned hash2, above-mentioned TMC contract management client determines above-mentioned enterprise Industry signs a contract to be not tampered with and contract with enterprise side.
Above-mentioned TMC contract management client generates hash3 according to said contract content C and current time stamp T3, and according to TMC private key encrypts hash3, to obtain TMC signature S3.The TMC contract management client according to said contract content C, Time stamp T 3 and TMC signature S3 construct the 4th contract affairs, and send the signature of the 4th contract thing to above-mentioned block chain managing device Business request, wherein time stamp T 3 is after above-mentioned time stamp T 2.
S1124, TMC contract management client send the 4th contract to block chain managing device and sign transactions requests.
Specifically, TMC contract management client sends the 4th contract to above-mentioned block chain managing device and signs transactions requests. Wherein, above-mentioned 4th contract signature transactions requests include above-mentioned 4th contract affairs.
S1125, block chain managing device carry out block persistence.
It should be noted that the process that above-mentioned block chain managing device carries out block persistence can regard the above-mentioned area TMC as Block chain handles the process that node, enterprise's block chain processing node and hotel's block chain processing node carry out block persistence.It is above-mentioned It is above-mentioned after TMC block chain handles node, hotel's block chain processing node and enterprise's block chain processing node progress block persistence It is saved in the local block chain of TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node There are said contract content C, time stamp T 3 and TMC signature S3.The detailed process of the step is referring to above-mentioned steps S1103, herein not It describes again.
Above-mentioned TMC block chain processing node, hotel's block chain processing node and enterprise's block chain processing node block are lasting After the completion of change, which handles the local block of node, hotel's block chain processing node and enterprise's block chain processing node Above-mentioned 4th contract affairs are stored in chain.
S1126, block chain managing device send the 4th contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned 4th contract signature to above-mentioned TMC contract management client Transaction response, for responding third contract signature transactions requests.
S1127, TMC contract management client send signing success message to TMC responsible person's terminal device.
S1128, block chain managing device parse treaty content C, to obtain Contract parameters.
Specifically, above-mentioned block chain managing device parses above-mentioned 4th contract affairs first, to obtain said contract content Then C continues to parse treaty content C according to intelligent contract, to obtain corresponding Contract parameters.
Contract parameters are imported other related systems of TMC and other related systems of enterprise by S1129, block chain managing device.
Specifically, above-mentioned block chain managing device by said contract parameter import other related systems of TMC and enterprise other Related system.Wherein, other related systems of above-mentioned TMC can be corporate resources delivery system, enterprise's settlement system or other System;Other related systems of above-mentioned enterprise can be PMS or other systems.
According to the method described above, the signature of TMC, enterprise and hotel's contract involving three parties are realized.
Referring to Figure 12, Figure 12 is that the interactive process of another contract dataset processing method provided in an embodiment of the present invention is shown It is intended to.This method is specifically described the shops of hotel below TMC, group of hotel and the group of hotel and is signed a contract based on block chain Process.As shown in figure 12, this method includes:
S1201, TMC responsible person terminal device send treaty content/Contract parameters to TMC contract management client.
It specifically, should when above-mentioned TMC responsible person wants to initiate to sign a contract with above-mentioned group of hotel with shops under it TMC responsible person sends treaty content or Contract parameters to above-mentioned TMC contract management client by its terminal device.
When above-mentioned TMC contract management client has stored contract template, above-mentioned TMC responsible person's terminal device is to above-mentioned TMC contract management client sends said contract parameter;When the not stored said contract template of above-mentioned TMC contract management client When, above-mentioned TMC responsible person's terminal device sends said contract content to above-mentioned TMC contract management client.
Wherein, said contract content includes contract template and Contract parameters.The treaty content includes that TMC and group of hotel are signed Shops's treaty content of the overall treaty content and TMC of administration and shops's signature under group of hotel.Said contract parameter is also wrapped The door of the Contract parameters and TMC of the overall treaty content of the hotel KuoTMCYu group signature and shops's signature under group of hotel The Contract parameters of shop treaty content.
In a kind of feasible embodiment, after above-mentioned TMC contract management client obtains said contract content, the TMC Contract management device encrypts the treaty content according to symmetric encipherment algorithm, the key for encryption be sign a contract it is each Side co-owns.It is subsequent during treaty content is transmitted in each side, be the encrypted treaty content of transmission.
S1202, TMC contract management client send the first overall contract to block chain managing device and sign transactions requests.
Wherein, after receiving said contract parameter, above-mentioned TMC contract management client based on contract join by template and contract Number generates above-mentioned totality treaty content C and shops's treaty content.
Above-mentioned TMC contract management client generates abstract hashC according to above-mentioned totality treaty content C, and according to the private of TMC Key encrypts abstract hashC, to obtain the first signature S1;And according to above-mentioned overall treaty content, abstract hashC and the One signature S1 generates the first contract affairs, and sends the above-mentioned first overall contract signature affairs to above-mentioned block chain managing device and ask It asks, above-mentioned first contract affairs is carried in the request.
S1203, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain Above-mentioned first contract affairs are stored in the local block chain of processing node and hotel's block chain processing node.
S1204, block chain managing device send the first overall contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends the above-mentioned first overall contract to above-mentioned TMC contract management client Transaction response is signed, for responding the above-mentioned first overall contract signature transactions requests and informing above-mentioned TMC contract management client Above-mentioned block chain managing device has stored above-mentioned first contract affairs.
S1205, TMC contract management client send first shops's A contract to block chain managing device and sign transactions requests.
Above-mentioned TMC contract management client generates abstract hashA according to shops A treaty content CA, and according to the private key of TMC Abstract hashA is encrypted, to obtain the second signature S2;And according to above-mentioned shops A treaty content CA, abstract hashA and Second signature S2 generates the second contract affairs, and sends above-mentioned first shops A contract to above-mentioned block chain managing device and sign thing Business is requested, and carries above-mentioned second contract affairs in the request.
S1206, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain Above-mentioned second contract affairs are stored in the local block chain of processing node and hotel's block chain processing node.
S1207, block chain managing device send first shops's A contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned first shops A contract to above-mentioned TMC contract management client Transaction response is signed, for responding above-mentioned first shops A contract signature transactions requests and informing above-mentioned TMC contract management client Above-mentioned block chain managing device has stored above-mentioned second contract affairs.
It should be noted that when above-mentioned shops's treaty content not only includes above-mentioned shops A treaty content, according to above-mentioned Other shops's treaty contents are persisted in block chain managing device by step S1205-S1207 the method.
S1208, block chain managing device send first to hotel's contract management client and notify message of signing a contract.
Wherein, above-mentioned first notice signs a contract message for notifying general headquarters side of hotel to sign overall treaty content.
It should be pointed out that above-mentioned steps S1207 and step S1208 are performed simultaneously, without sequencing.
S1209, hotel's contract management client are sent to block chain managing device reads treaty content request.
S1210, block chain managing device send all treaty contents to hotel's contract management client.
Specifically, above-mentioned hotel's contract management client sends above-mentioned reading treaty content to above-mentioned block chain managing device After request, which handles node and reads all treaty contents from its local block chain, and to above-mentioned hotel's contract Management client sends above-mentioned all treaty contents.Wherein, which includes overall treaty content and shops's contract Content.
S1211, hotel's contract management client send completed contract content to general headquarters of hotel responsible person's terminal device.
Wherein, after obtaining above-mentioned all treaty contents, above-mentioned hotel's contract management client is by all treaty contents Completed contract content is formed, and sends the completed contract content to above-mentioned general headquarters of hotel responsible person's terminal device.
S1212, general headquarters of hotel responsible person's terminal device send signature confirmation instruction to hotel's contract management client.
Wherein, after above-mentioned hotel responsible person checks above-mentioned completed contract content by its terminal device, it is believed that in the contract Hold rationally, then signature confirmation instruction is sent to hotel's contract management client by above-mentioned hotel service responsible person terminal device.
S1213, hotel's contract management client send the second overall contract to block chain managing device and sign transactions requests.
Specifically, after receiving the signature confirmation instruction that above-mentioned hotel responsible person terminal device is sent, above-mentioned hotel is closed With management client according to above-mentioned totality treaty content C and current time stamp T1, hash1 is generated, and according to the private key pair in hotel The hash1 is encrypted, to obtain general headquarters of hotel signature S3.Above-mentioned hotel's contract management client according to overall treaty content C, Third contract affairs are closed in current time stamp T1 and the signature S3 building of general headquarters of hotel.And second is sent to above-mentioned block chain managing device Overall contract signs transactions requests.Wherein, the above-mentioned second overall contract signature transactions requests include above-mentioned third contract affairs.
S1214, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain Above-mentioned third contract affairs are stored in the local block chain of processing node and hotel's block chain processing node.
S1215, block chain managing device send the second overall contract to hotel's contract management client and sign transaction response.
Specifically, above-mentioned block management device sends the above-mentioned second overall contract to hotel's contract management client and signs thing Business response, for responding the above-mentioned second overall contract signature transactions requests and for informing that above-mentioned hotel's contract management client is above-mentioned Above-mentioned third contract affairs have been stored in the local block chain of hotel's block chain processing node.
S1216, block chain managing device send second to TMC contract management client and notify message of signing a contract
Wherein, above-mentioned second notice signs a contract message for informing group of TMC contract management client hotel signed Contract and the notice side TMC sign overall treaty content.
It should be pointed out that above-mentioned steps S1215 and step S1216 are performed simultaneously, without sequencing.
S1217, TMC contract management client are sent to block chain managing device to be read in the overall contract of general headquarters of hotel signature Hold request.
Specifically, when receive above-mentioned second notice sign a contract message when, above-mentioned TMC contract management client is to above-mentioned Block chain managing device sends above-mentioned reading hotel and signs a contract content requests, reads in above-mentioned hotel side's signature for requesting Hold, including overall treaty content C, time stamp T 1 and general headquarters of hotel signature S3
S1218, block chain managing device send overall treaty content C, time stamp T 1 and wine to TMC contract management client Shop general headquarters signature S3.
After receiving above-mentioned reading hotel signature content requests, above-mentioned block chain managing device is from its local block chain Above-mentioned overall treaty content C, time stamp T 1 and general headquarters of hotel signature S3 are read, above-mentioned TMC contract management client is sent to.
Specifically, after receiving above-mentioned overall treaty content C, time stamp T 1 and general headquarters of hotel signature S3, above-mentioned TMC is closed Above-mentioned hash1 is generated according to above-mentioned totality treaty content C and time stamp T 1 with management client;Then the public key pair in hotel is used Above-mentioned general headquarters of hotel signature S3 is decrypted, to obtain the first hash;When the first hash is consistent with above-mentioned hash1, above-mentioned TMC Contract management client determines that above-mentioned hotel signs a contract to be not tampered with and has contracted with hotel side.
Above-mentioned TMC contract management client generates hash2 according to overall treaty content C, time stamp T 2, and according to TMC's Private key encrypts the hash2, to obtain TMC signature S4, and according to overall treaty content C, time stamp T 2 and TMC signature S7 Construct the 4th contract affairs, wherein above-mentioned time stamp T 2 is located at after above-mentioned time stamp T 1.
S1219, TMC contract management client send third totality contract to block chain managing device and sign transactions requests.
Specifically, above-mentioned TMC contract management client sends above-mentioned third totality contract to above-mentioned block chain managing device Sign transactions requests.Wherein, third totality contract signature transactions requests include above-mentioned 4th contract affairs.
S1220, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain Above-mentioned 4th contract affairs are stored in the local block chain of processing node and hotel's block chain processing node.
S1221, block chain managing device send third totality contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends the above-mentioned second overall contract to above-mentioned TMC contract management client Transaction response is signed, for responding the above-mentioned second overall contract signature transactions requests.
S1222, block chain managing device parse overall treaty content C, to obtain the Contract parameters of C.
Specifically, above-mentioned block chain managing device parses said contract affairs first, to obtain above-mentioned overall treaty content Then C continues to parse totality treaty content C according to intelligent contract, to obtain the Contract parameters of C.
Wherein, the Contract parameters of above-mentioned C include but is not limited to the information such as default clause.
S1223, block chain managing device send the contract ginseng of C to TMC associated external system and hotel's associated external system Number.
Wherein, above-mentioned block chain managing device sends the contract of C to TMC associated external system and hotel's associated external system Parameter.Other related systems of above-mentioned TMC can be hotel's resource delivery system, hotel's settlement system or other systems;It is above-mentioned Other related systems of hotel can be PMS or other systems.
S1224, general headquarters of hotel responsible person's terminal device send third notice to shops's A responsible person's terminal device and sign a contract Message.
Wherein, above-mentioned third notice signs a contract message for notifying the side A of shops to sign a contract.
S1225, shops's A responsible person's terminal device send reading shops A treaty content to hotel's contract management client and ask It asks.
S1226, hotel's contract management client send shops A treaty content CA to shops's A responsible person's terminal device.
S1227, shops's A responsible person's terminal device send signature confirmation instruction to hotel's contract management client.
Specifically, after above-mentioned shops A responsible person checks above-mentioned shops A treaty content CA by its terminal device, it is believed that door Shop treaty content CA is reasonable, then is sent and signed to hotel's contract management client by above-mentioned hotel service responsible person terminal device Confirmation instruction.
Specifically, after receiving the signature confirmation instruction that above-mentioned hotel responsible person terminal device is sent, above-mentioned hotel is closed With management client according to above-mentioned shops A treaty content CA and time stamp T A1, hashA1 is generated, and according to the private key pair in hotel The hashA1 is encrypted, to obtain shops A signature SA1.Above-mentioned hotel's contract management client according to shops treaty content CA, The same affairs of pentahapto are closed in time stamp T A1 and shops A signature SA1 building, wherein above-mentioned time stamp T A1 is located at after time stamp T 2.
S1228, hotel's contract management client send second shops's A contract signature affairs to block chain managing device and ask It asks.
Specifically, above-mentioned hotel's contract management client sends the second shops A contract label to above-mentioned block chain managing device Affix one's name to transactions requests.Wherein, above-mentioned second shops A contract signature transactions requests include the above-mentioned same affairs of pentahapto.
S1229, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain The above-mentioned same affairs of pentahapto are stored in the local block chain of processing node and hotel's block chain processing node.
S1230, block chain managing device send second shops's A contract signature affairs to hotel's contract management client and ring It answers.
Specifically, above-mentioned block chain managing device sends above-mentioned second shops A contract label to hotel's contract management client Transaction response is affixed one's name to, for responding above-mentioned second shops A contract signature transactions requests.
S1231, block chain managing device send the 4th to TMC contract management client and notify message of signing a contract.
Wherein, above-mentioned 4th notice signs a contract message for informing that the TMC contract management client shops side's A signed closes Shops's treaty content CA is signed with the notice side TMC.
It should be pointed out that above-mentioned steps S1230 and step S1231 are performed simultaneously, without sequencing.
S1232, TMC contract management client are sent to block chain managing device to be read shops A and signs a contract content requests.
Specifically, above-mentioned TMC contract management client sends above-mentioned reading shops A signature to above-mentioned block chain managing device Treaty content request for request read the side A of above-mentioned shops sign content, including shops A treaty content CA, time stamp T A1 and Shops A signature SA1.
S1233, block chain managing device to TMC contract management client send shops's treaty content CA, time stamp T A1 and Shops A signature SA1.
Specifically, when receive read shops A sign a contract content requests after, above-mentioned block chain managing device is from its local Above-mentioned shops A treaty content CA, time stamp T A1 and shops A signature SA1 are read in block chain, and by shops A treaty content CA, time stamp T A1 and shops A signature SA1 are sent to above-mentioned hotel's contract management client.When receiving above-mentioned shops A contract Content CA, time stamp T A1 and shops A sign after SA1, and above-mentioned TMC contract management client is according to above-mentioned shops A treaty content CA Above-mentioned hashA1 is generated with time stamp T A1;Then above-mentioned shops A signature SA1 is decrypted using the public key in hotel, to obtain 2nd hash;When the 2nd hash is consistent with above-mentioned hashA1, above-mentioned TMC contract management client determines above-mentioned shops A signature Contract is not tampered with has contracted with the side A of shops.
Above-mentioned TMC contract management client according to shops A treaty content CA, time stamp T A2 generate hashA2, and according to The private key of TMC encrypts the hashA2, to obtain TMC signature SA2, and according to shops A treaty content CA, time stamp T A2 The same affairs of the six directions are constructed with TMC signature SA2, wherein time stamp T A2 is after above-mentioned time stamp T A1.
S1234, TMC contract management client send third shops A contract to block chain managing device and sign transactions requests.
Specifically, above-mentioned TMC contract management client sends the signature of third shops A contract to above-mentioned block chain managing device Transactions requests.Wherein, above-mentioned third shops A contract signature transactions requests include the above-mentioned same affairs of the six directions
S1235, block chain managing device carry out block persistence.
It should be noted that the detailed process of the step is retouched referring to the correlation of the step S703 of above-mentioned embodiment illustrated in fig. 7 It states, no longer describes herein.
After above-mentioned TMC block chain processing node and hotel's block chain processing node complete block persistence, the TMC block chain The above-mentioned same affairs of the six directions are stored in the local block chain of processing node and hotel's block chain processing node.
S1236, block chain managing device send third shops A contract to TMC contract management client and sign transaction response.
Specifically, above-mentioned block chain managing device sends above-mentioned third shops A contract to above-mentioned TMC contract management client Transaction response is signed, for responding above-mentioned third shops A contract signature transactions requests.
S1237, TMC contract management client send signing success message to TMC responsible person's terminal device.
S1238, block chain managing device parse shops A treaty content CA, to obtain the Contract parameters of CA.
Specifically, above-mentioned block chain managing device parses said contract affairs first, to obtain above-mentioned overall treaty content Then C continues to parse totality treaty content C according to intelligent contract, to obtain the Contract parameters of C.
Wherein, said contract parameter includes but is not limited to room rate, house type, quantity, service item and price and discount Etc. information.
S1239, block chain managing device send the contract ginseng of CA to TMC associated external system and hotel's associated external system Number.
Wherein, above-mentioned block chain managing device sends the conjunction of CA to TMC associated external system and hotel's associated external system Same parameter.Other related systems of above-mentioned TMC can be hotel's resource delivery system, hotel's settlement system or other systems;On Stating other related systems of hotel can be PMS or other systems.
Referring to Figure 13, Figure 13 is a kind of structural schematic diagram of contract management client provided in an embodiment of the present invention.It is described For contract management client application in contract dataset processing system, the contract dataset processing system includes first party contract management visitor Family end, second party contract management client and block chain managing device.As shown in figure 13, which wraps It includes:
Transmission unit 1301, for notifying message of signing a contract when receive the block chain managing device transmission first Afterwards, it is sent to the block chain managing device and reads second party signature information request, described first notifies message use of signing a contract In notifying the first party contract management client to sign a contract.
Receiving unit 1302 signs information for receiving the second party that the block chain managing device is sent.
Processing unit 1303, for when the second party sign validation of information it is errorless after, based on contract content and when first Between stab T1, generate hash1;The hash1 is encrypted according to the private key of first party, to obtain first party signature S1;According to The treaty content, at the first time stamp T1 and first party signature S1 construct the first contract affairs.
In a kind of feasible embodiment, the second party signature information includes the treaty content, the second time stamp T 2 It signs with second party, the contract management client 1300 further includes:
The processing unit 1303, be also used to receive second party signature information that the block chain managing device is sent it Afterwards, hash2 is generated according to the treaty content and second time stamp T 2, second time stamp T 2 is in the first time Before stamp T1;Second party signature is decrypted according to the public key of second party, to obtain the first hash;
Confirmation unit 1304, when the first hash is consistent with the hash2, confirm second party signature information without Accidentally.
The transmission unit 1301 is also used to send the first contract signature transactions requests to the block chain managing device, The first contract signature transactions requests are for requesting the block chain to store the first contract affairs;Described first closes affairs Signature request includes the first contract affairs.
The receiving unit 1302 is also used to receive the first contract signature affairs that the block chain managing device is sent and rings It answers, for responding the first contract signature transactions requests.
In a kind of feasible embodiment, the contract management device 1300 further includes:
The receiving unit 1302 is also used to ask to block chain managing device transmission reading second party signature information Before asking, Contract parameters/treaty content that first party responsible person terminal device is sent is received;The treaty content includes closing With template and the parameter;
Generation unit 1305, for when receiving the Contract parameters, according to the Contract parameters and the contract mould Plate generates the treaty content;
The processing unit 1303 is also used to generate abstract hash according to the treaty content;According to the private key of first party The abstract hash is encrypted, to obtain signature S;According to the treaty content, the abstract hash and signature S building the Two contract affairs.
In a kind of feasible embodiment, the transmission unit 1301 is also used to send to the block chain managing device Second contract signs transactions requests, and the second contract signature transactions requests are for requesting the block chain storage described second to be closed Same affairs;Described second, which closes affairs signature request, includes the second contract affairs;
The receiving unit 1302 is also used to receive the second contract signature affairs that the block chain managing device is sent and rings It answers, for responding the second contract signature transactions requests.
In a kind of feasible embodiment, before the hash according to treaty content generation abstract, the contract pipe Managing client 1300 further includes:
Encryption unit 1306 is used for before generating abstract hash according to the treaty content, according to symmetric encipherment algorithm The treaty content is encrypted.
In a kind of feasible embodiment, the transmission unit 1301 is also used to:
After receiving the first contract signature transaction response that the block chain managing device is sent, it is responsible for the first party People's terminal device sends signing success message.
It should be noted that above-mentioned each unit (transmission unit 1301, receiving unit 1302, processing unit 1303, confirmation form Member 1304, generation unit 1305 and encryption unit 1306) for executing the correlation step of the above method.
In the present embodiment, contract management client 1300 is presented in the form of unit.Here " unit " can be with Refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), executes one or more The processor and memory of a software or firmware program, integrated logic circuit and/or other device of above-mentioned function can be provided Part.In addition, the above transmission unit 1301, receiving unit 1302, processing unit 1303, confirmation unit 1304, generation unit 1305 It can be realized by the processor 1601 of contract management client shown in Figure 16 with encryption unit 1306.
Referring to Figure 14, Figure 14 is the structural schematic diagram of another contract management client provided in an embodiment of the present invention.Institute Contract management client application is stated in contract dataset processing system, the contract dataset processing system includes first party contract management Client, second party contract management client and block chain managing device.As shown in figure 14, which wraps It includes:
Transmission unit 1401, for when receive block chain managing device transmission first notice sign a contract message when, It is sent to the block chain managing device and reads treaty content request, first notice message of signing a contract is described for notifying Second party contract management client notification is signed a contract.
Receiving unit 1402, the contract information sent for receiving the block chain managing device, the contract information Including treaty content.
The transmission unit 1401 is also used to set after determining that the contract information is errorless to second party responsible person's terminal Preparation send the treaty content.
Processing unit 1403, for when receive signature confirmation instruction after, according to the treaty content and the second timestamp T2 generates hash2;The hash2 is encrypted according to the private key of second party to generate second party signature S2;According to the conjunction Same content, the second time stamp T 2 and second party signature S2 construct third contract affairs.
In a kind of feasible embodiment, the transmission unit 1401 is also used to send to the block chain managing device Third contract signs transactions requests, and the third contract signature transactions requests are closed for requesting the block chain to store the third Same affairs;Described first, which closes affairs signature request, includes the third contract affairs;
The receiving unit 1402 is also used to receive the third contract signature affairs that the block chain managing device is sent and rings It answers, for responding the third contract signature transactions requests.
In a kind of feasible embodiment, the contract information further includes the abstract hash and signature S of the treaty content, The contract management client 1400 further includes:
Decryption unit 1404, for after receiving the contract information that the block chain managing device is sent, according to first The signature S is decrypted in the public key of side, to obtain the 2nd hash;
Confirmation unit 1405, for confirming the content information when the 2nd hash is consistent with the abstract hash It is errorless.
It should be noted that (transmission unit 1401, receiving unit 1402, processing unit 1403, decryption are single for above-mentioned each unit Member 1404 and confirmation unit 1405) for executing the correlation step of the above method.
In the present embodiment, contract management client 1400 is presented in the form of unit.Here " unit " can be with Refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), executes one or more The processor and memory of a software or firmware program, integrated logic circuit and/or other device of above-mentioned function can be provided Part.In addition, the above transmission unit 1401, receiving unit 1402, processing unit 1403, decryption unit 1404 and confirmation unit 1405 It can be realized by the processor 1601 of contract management client shown in Figure 16.
Referring to Figure 15, Figure 15 is that the embodiment of the invention provides a kind of structural schematic diagrams of block chain managing device.It is described Block chain managing device is applied to contract dataset processing system, and the contract dataset processing system further includes first party contract management Client and second party contract management client.As shown in figure 15, the block chain managing device 1500 includes:
Receiving unit 1501, the contract sent for receipt of contract management client sign transactions requests, the contract pipe Reason client includes the first party contract management client and the second party contract management client, and the contract signs thing Business request includes the contract signature transactions requests and second party contract management client that the first party contract management client is sent The contract that end is sent signs transactions requests.
Persistence unit 1502, for carrying out block persistence to the contract affairs in contract signature transactions requests, The contract affairs include treaty content.
Transmission unit 1503 signs transaction response for sending contract to the contract management client.
In a kind of feasible embodiment, the transmission unit 1503 is specifically used for:
It is sent to contract management customer end A and signs a contract transaction response and send notice to the contract management customer end B It signs a contract message;The transaction response of signing a contract signs affairs for responding the contract that the contract management client is sent Request, the notice sign a contract message for notifying the contract management customer end B to sign a contract;
Wherein, the contract management customer end A is the first party contract management client or the second party contract Management client, the contract management customer end B are the first party contract management client or the second party contract pipe Client is managed, and the contract management customer end A and the contract management client are not the same contract management client.
In a kind of feasible embodiment, above-mentioned block chain managing device 1500 further includes:
Resolution unit 1504, for parsing the treaty content by intelligent contract, to obtain the conjunction of the treaty content Same parameter;
The transmission unit 1503 is also used to send institute to first party associated external system and second party associated external system State the Contract parameters of treaty content.
In a kind of feasible embodiment, the persistence unit 1502 is specifically used for:
Contract affairs in contract signature transactions requests are verified;
It verifies and the contract affairs is packaged into block after passing through;
Store the block.
In a kind of feasible embodiment, the block chain managing device 1500 further includes:
The receiving unit 1501, the reading second party signature sent for receiving the first party contract management client Information request;
Acquiring unit 1505, for obtaining, second party signs information;
The transmission unit 1503, for sending the second party signature letter to the first party contract management client Breath.
In a kind of feasible embodiment, the block chain managing device 1500 further includes:
The receiving unit 1501 is asked for receiving the reading treaty content that the second party contract management client is sent It asks;
The acquiring unit 1505 is also used to the acquisition contract information;
The transmission unit 1503, for sending the contract information to the second party contract management client.
It should be noted that above-mentioned each unit (receiving unit 1501, persistence unit 1502, transmission unit 1503, parsing Unit 1504 and acquiring unit 1505) for executing the correlation step of the above method.
In the present embodiment, block chain managing device 1500 is presented in the form of unit.Here " unit " can be with Refer to application-specific integrated circuit (application-specific integrated circuit, ASIC), executes one or more The processor and memory of a software or firmware program, integrated logic circuit and/or other device of above-mentioned function can be provided Part.In addition, the above receiving unit 1501, persistence unit 1502, transmission unit 1503, resolution unit 1504 and acquiring unit 1505 can be realized by the processor 1701 of block chain managing device shown in Figure 17.
As shown in figure 16, contract management client 1600 can be realized with the structure in Figure 16, contract management client End 1600 includes at least one processor 1601, at least one processor 1602 and at least one communication interface 1603.It is described Processor 1601, described 1602 are connected by the communication bus with the communication interface 1603 and complete mutual communication.
Processor 1601 can be general central processor (CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC), or it is one or more for controlling above scheme journey The integrated circuit that sequence executes.
Communication interface 1603 is used for and other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line local area network (Wireless Local Area Networks, WLAN) etc..
Memory 1602 can be read-only (read-only memory, ROM) or can store static information and instruction its The static storage device of his type, arbitrary access (random access memory, RAM) or can store information and instruction Other kinds of dynamic memory is also possible to read-only (the Electrically Erasable of electric erazable programmable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc Deng), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or storing that there is instruction or data structure shape The desired program code of formula and can by any other medium of computer access, but not limited to this.It can be and be individually present, It is connected by bus with processor.It can also be integrated with processor.
Wherein, the memory 1602 is used to store the application code for executing above scheme, and by processor 1601 It is executed to control.The processor 1601 is for executing the application code stored in the memory 1602.
The said contract data of contract management client executing provided above can be performed in the code that memory 1602 stores Processing method, such as after the first notice for receiving the block chain managing device transmission signs a contract message, to the area Block chain managing device, which is sent, to be read second party and signs information request, and first notice signs a contract message for notifying described the One side's contract management client is signed a contract;Receive the second party signature information that the block chain managing device is sent;When described After second party signature validation of information is errorless, based on contract content and at the first time stamp T1 generate hash1;According to the private of first party Key encrypts the hash1, to obtain first party signature S1;According to the treaty content, at the first time stamp T1 and first Side signature S1 constructs the first contract affairs;The first contract, which is sent, to the block chain managing device signs transactions requests, described the One contract signature transactions requests are for requesting the block chain to store the first contract affairs;The first conjunction affairs signature is asked It asks including the first contract affairs;The first contract signature transaction response that the block chain managing device is sent is received, is used for The first contract signature transactions requests are responded, or;
When the first notice for receiving the transmission of block chain managing device signs a contract message, filled to the block chain management It sets transmission and reads treaty content request, first notice signs a contract message for notifying the second party contract management client End notice is signed a contract;The contract information that the block chain managing device is sent is received, the contract information includes in contract Hold;After determining that the contract information is errorless, the treaty content is sent to second party responsible person's terminal device;It is signed when receiving After administration's confirmation instruction, according to the treaty content and the second time stamp T 2, hash2 is generated;According to the private key of second party to described Hash2 is encrypted, to obtain second party signature S2;According to the treaty content, the second time stamp T 2 and second party signature S2 Construct third contract affairs;Third contract, which is sent, to the block chain managing device signs transactions requests, the third contract label Administration's transactions requests are for requesting the block chain managing device to store the third contract affairs;The third is closed affairs signature and is asked It asks including the third contract affairs;The third contract signature transaction response that the block chain managing device is sent is received, is used for Respond the third contract signature transactions requests.
As shown in figure 17, block chain managing device 1700 can be realized with the structure in Figure 17, block chain management dress Setting 1700 includes at least one processor 1701, at least one processor 1702 and at least one communication interface 1703.It is described Processor 1701, the memory 1702 are connected by the communication bus and are completed mutual with the communication interface 1703 Communication.
Processor 1701 can be general central processor (CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC), or it is one or more for controlling above scheme journey The integrated circuit that sequence executes.
Communication interface 1703 is used for and other equipment or communication, such as Ethernet, wireless access network (RAN), nothing Line local area network (Wireless Local Area Networks, WLAN) etc..
Memory 1702 can be read-only (read-only memory, ROM) or can store static information and instruction its The static storage device of his type, arbitrary access (random access memory, RAM) or can store information and instruction Other kinds of dynamic memory is also possible to read-only (the Electrically Erasable of electric erazable programmable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc Deng), magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or storing that there is instruction or data structure shape The desired program code of formula and can by any other medium of computer access, but not limited to this.It can be and be individually present, It is connected by bus with processor.It can also be integrated with processor.
Wherein, the memory 1702 is used to store the application code for executing above scheme, and by processor 1701 It is executed to control.The processor 1701 is for executing the application code stored in the memory 1702.
The said contract data that block chain managing device provided above executes can be performed in the code that memory 1702 stores Processing method, such as the contract that receipt of contract management client is sent sign transactions requests, and the contract management client includes The first party contract management client and the second party contract management client, the contract signature transactions requests include institute The contract that the contract signature transactions requests and second party contract management client for stating the transmission of first party contract management client are sent Sign transactions requests;Block persistence is carried out to the contract affairs in contract signature transactions requests;To the contract management Client sends contract and signs transaction response;Treaty content is parsed by intelligent contract, to obtain the contract of the treaty content Parameter;The Contract parameters of the treaty content are sent to first party associated external system and second party associated external system.
The embodiment of the present invention also provides a kind of computer storage medium, wherein the computer storage medium can be stored with journey Sequence, the program include some or all of any contract dataset processing method recorded in above method embodiment when executing Step.
The embodiment of the present invention also provides a kind of computer program product, including instruction, when run on a computer, packet Include some or all of any contract dataset processing method recorded in above method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed storage device can pass through others Mode is realized.For example, memory device embodiment described above is only schematical, such as the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING of storage device or unit Or communication connection, it can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention There is change place, to sum up above-mentioned, the contents of this specification are not to be construed as limiting the invention.

Claims (21)

1. a kind of contract dataset processing method, the method is applied to contract dataset processing system, the contract dataset processing system System includes first party contract management client, second party contract management client and block chain managing device, which is characterized in that packet It includes:
After the first notice for receiving the block chain managing device transmission signs a contract message, filled to the block chain management It sets transmission and reads second party signature information request, first notice signs a contract message for notifying the first party contract pipe Reason client is signed a contract;
Receive the second party signature information that the block chain managing device is sent;
After second party signature validation of information is errorless, based on contract content and at the first time stamp T1 generate hash1;According to The private key of first party encrypts the hash1, to obtain first party signature S1;According to the treaty content, first time It stabs T1 and first party signature S1 constructs the first contract affairs.
2. the method according to claim 1, wherein it is described according to the treaty content, at the first time stamp T1 and First party is signed after S1 the first contract affairs of building, the method also includes:
The first contract is sent to the block chain managing device and signs transactions requests, and the first contract signature transactions requests are used for The block chain managing device is requested to store the first contract affairs;Described first, which closes affairs signature request, includes described first Contract affairs;
The first contract signature transaction response that the block chain managing device is sent is received, for responding the first contract signature Transactions requests.
3. method according to claim 1 or 2, which is characterized in that the second party signature information includes in the contract Hold, the second time stamp T 2 and second party signature, it is described receive second party signature information that the block chain managing device is sent it Afterwards, the method also includes:
Hash2 is generated according to the treaty content and second time stamp T 2, second time stamp T 2 is at described first Between stab T1 before;
Second party signature is decrypted according to the public key of second party, to obtain the first hash;
When the first hash is consistent with the hash2, then confirm that the second party signature information is errorless.
4. method according to claim 1 to 3, which is characterized in that described send to the block chain managing device reads the Before two sides sign information request, the method also includes:
Receive Contract parameters/treaty content that first party responsible person terminal device is sent;The treaty content includes contract Template and the parameter;
When receiving the Contract parameters, the treaty content is generated according to the Contract parameters and the contract template;
Abstract hash is generated according to the treaty content;The abstract hash is encrypted according to the private key of the first party, To obtain signature S;The second contract affairs are constructed according to the treaty content, the abstract hash and signature S;
The second contract is sent to the block chain managing device and signs transactions requests, and the second contract signature transactions requests are used for The block chain is requested to store the second contract affairs;Described second, which closes affairs signature request, includes the second contract thing Business;
The second contract signature transaction response that the block chain managing device is sent is received, for responding the second contract signature Transactions requests.
5. according to the method described in claim 4, it is characterized in that, it is described according to the treaty content generate abstract hash it Before, the method also includes:
The treaty content is encrypted according to symmetric encipherment algorithm.
6. method according to claim 1-5, which is characterized in that described to receive the block chain managing device hair After the first contract signature transaction response sent, the method also includes:
Signing success message is sent to the first party responsible person terminal device.
7. a kind of contract dataset processing method, the method is applied to contract dataset processing system, the contract dataset processing system System includes first party contract management client, second party contract management client and block chain managing device, which is characterized in that packet It includes:
When the first notice for receiving the transmission of block chain managing device signs a contract message, sent out to the block chain managing device It send and reads treaty content request, first notice signs a contract message for notifying the second party contract management client label Administration's contract;
The contract information that the block chain managing device is sent is received, the contract information includes treaty content;
After determining that the contract information is errorless, the treaty content is sent to second party responsible person's terminal device;
After receiving signature confirmation instruction, according to the treaty content and the second time stamp T 2, hash2 is generated;According to second The private key of side encrypts the hash2, to obtain second party signature S2;According to the treaty content, the second time stamp T 2 Third contract affairs are constructed with second party signature S2.
8. the method according to the description of claim 7 is characterized in that described according to the treaty content, 2 and of the second time stamp T Second party is signed after S2 building third contract affairs, the method also includes:
Third contract is sent to the block chain managing device and signs transactions requests, and the third contract signature transactions requests are used for The block chain managing device is requested to store the third contract affairs;It includes the third that the third, which closes affairs signature request, Contract affairs;
The third contract signature transaction response that the block chain managing device is sent is received, for responding the third contract signature Transactions requests.
9. method according to claim 7 or 8, which is characterized in that the contract information further includes the treaty content Make a summary hash and signature S, after the contract information for receiving the block chain managing device transmission, the method also includes:
The signature S is decrypted according to the public key of first party, to obtain the 2nd hash;
When the 2nd hash is consistent with the abstract hash, confirm that the content information is errorless.
10. a kind of contract dataset processing method, the method is applied to contract dataset processing system, the contract dataset processing system System includes first party contract management client, second party contract management client and block chain managing device, which is characterized in that packet It includes:
The contract that receipt of contract management client is sent signs transactions requests, and the contract management client includes the first party Contract management client or the second party contract management client, the contract signature transactions requests include that the first party is closed The contract signature affairs that the contract signature transactions requests or second party contract management client sent with management client are sent are asked It asks;
Block persistence is carried out to the contract affairs in contract signature transactions requests;
Contract, which is sent, to the contract management client signs transaction response.
11. according to the method described in claim 10, it is characterized in that, the contract in contract signature transactions requests After affairs carry out block persistence, the method also includes:
It is sent to contract management customer end A and signs a contract transaction response and send notice signature to the contract management customer end B Contract message;The transaction response of signing a contract is asked for responding the contract signature affairs that the contract management client is sent It asks, the notice signs a contract message for notifying the contract management customer end B to sign a contract;
Wherein, the contract management customer end A is the first party contract management client or the second party contract management Client, the contract management customer end B are the first party contract management client or second party contract management visitor Family end, and the contract management customer end A and the contract management client are not the same contract management client.
12. 0 or 11 the method according to claim 1, which is characterized in that the conjunction in contract signature transactions requests Block persistence is carried out with affairs, including:
Contract affairs in contract signature transactions requests are verified;
It verifies and the contract affairs is packaged into block after passing through;
Store the block.
13. method described in 0 or 11 according to claim 1, which is characterized in that described send to the contract management client is closed After signature transaction response, the method also includes:
Treaty content is parsed by intelligent contract, to obtain the Contract parameters of the treaty content;
The Contract parameters of the treaty content are sent to first party associated external system and second party associated external system.
14. the described in any item methods of 0-13 according to claim 1, which is characterized in that the method also includes:
Receive the reading second party signature information request that the first party contract management client is sent;
It obtains institute's second party and signs information;
The second party, which is sent, to the first party contract management client signs information.
15. the described in any item methods of 0-13 according to claim 1, which is characterized in that the method also includes:
Receive the reading treaty content request that the second party contract management client is sent;
Obtain contract information;
The contract information is sent to the second party contract management client.
16. a kind of contract management client, which is characterized in that including
It is stored with the memory of executable program code;
With the processor coupled;
The processor calls the executable program code stored in the memory, executes as claim 1-6 is any Method described in, or execute such as the described in any item methods of claim 7-9.
17. a kind of block chain managing device, which is characterized in that including
It is stored with the memory of executable program code;
With the processor coupled;
The processor calls the executable program code stored in the memory, executes claim 10-15 such as and appoints Method described in one.
18. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as Method described in any one of claims 1-6, or execute such as the described in any item methods of claim 7-9.
19. a kind of computer program product, including instruction, when run on a computer, so that computer executes such as right It is required that the described in any item methods of 1-6, or execute such as the described in any item methods of claim 7-9.
20. a kind of computer readable storage medium, including instruction, when run on a computer, so that computer executes such as The described in any item methods of claim 10-15.
21. a kind of computer program product, including instruction, when run on a computer, so that computer executes such as right It is required that the described in any item methods of 10-15.
CN201810407842.7A 2018-04-28 2018-04-28 Contract data processing method, contract management client and block chain management device Active CN108830545B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810407842.7A CN108830545B (en) 2018-04-28 2018-04-28 Contract data processing method, contract management client and block chain management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810407842.7A CN108830545B (en) 2018-04-28 2018-04-28 Contract data processing method, contract management client and block chain management device

Publications (2)

Publication Number Publication Date
CN108830545A true CN108830545A (en) 2018-11-16
CN108830545B CN108830545B (en) 2020-08-25

Family

ID=64147263

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810407842.7A Active CN108830545B (en) 2018-04-28 2018-04-28 Contract data processing method, contract management client and block chain management device

Country Status (1)

Country Link
CN (1) CN108830545B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109377198A (en) * 2018-12-24 2019-02-22 上海金融期货信息技术有限公司 A kind of signing system known together in many ways based on alliance's chain
CN109639651A (en) * 2018-11-22 2019-04-16 安云印(天津)大数据科技有限公司 Contract based on living body authentication and block chain technology signs authentication method and its system online
CN109784875A (en) * 2019-02-28 2019-05-21 深圳市元征科技股份有限公司 A kind of cargo transaction method, apparatus and terminal device based on block chain
CN109960919A (en) * 2019-03-25 2019-07-02 深圳市元征科技股份有限公司 A kind of contract signature method and block chain node device
CN110163006A (en) * 2019-04-18 2019-08-23 阿里巴巴集团控股有限公司 Signature verification method, system, device and equipment in a kind of piece of chain type account book
CN110941860A (en) * 2019-12-10 2020-03-31 博雅正链(北京)科技有限公司 Block chain and biological feature based electronic contract associable analysis verification method
WO2020114114A1 (en) * 2018-12-05 2020-06-11 阿里巴巴集团控股有限公司 Method and apparatus for confirming content of multimedia protocol, and electronic device
WO2021017350A1 (en) * 2019-07-26 2021-02-04 深圳壹账通智能科技有限公司 Bidding document management method and system, and computer readable storage medium
US11057220B2 (en) 2019-04-18 2021-07-06 Advanced New Technologies Co., Ltd. Signature verification for a blockchain ledger

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301782A (en) * 2016-07-26 2017-01-04 杭州文签网络技术有限公司 A kind of signature method and system of electronic contract
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain
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
US20170337534A1 (en) * 2015-11-06 2017-11-23 Cable Television Laboratories, Inc Systems and methods for blockchain virtualization and scalability
CN107679045A (en) * 2016-08-01 2018-02-09 华为技术有限公司 Copyright authorization management method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170337534A1 (en) * 2015-11-06 2017-11-23 Cable Television Laboratories, Inc Systems and methods for blockchain virtualization and scalability
CN106301782A (en) * 2016-07-26 2017-01-04 杭州文签网络技术有限公司 A kind of signature method and system of electronic contract
CN107679045A (en) * 2016-08-01 2018-02-09 华为技术有限公司 Copyright authorization management method and system
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain
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

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109639651A (en) * 2018-11-22 2019-04-16 安云印(天津)大数据科技有限公司 Contract based on living body authentication and block chain technology signs authentication method and its system online
WO2020114114A1 (en) * 2018-12-05 2020-06-11 阿里巴巴集团控股有限公司 Method and apparatus for confirming content of multimedia protocol, and electronic device
CN109377198A (en) * 2018-12-24 2019-02-22 上海金融期货信息技术有限公司 A kind of signing system known together in many ways based on alliance's chain
CN109377198B (en) * 2018-12-24 2022-03-11 上海金融期货信息技术有限公司 Signing system based on multi-party consensus of alliance chain
CN109784875A (en) * 2019-02-28 2019-05-21 深圳市元征科技股份有限公司 A kind of cargo transaction method, apparatus and terminal device based on block chain
CN109960919A (en) * 2019-03-25 2019-07-02 深圳市元征科技股份有限公司 A kind of contract signature method and block chain node device
CN110163006B (en) * 2019-04-18 2020-07-07 阿里巴巴集团控股有限公司 Signature verification method, system, device and equipment in block chain type account book
US11057220B2 (en) 2019-04-18 2021-07-06 Advanced New Technologies Co., Ltd. Signature verification for a blockchain ledger
US11070379B2 (en) 2019-04-18 2021-07-20 Advanced New Technologies Co., Ltd. Signature verification for a blockchain ledger
CN110163006A (en) * 2019-04-18 2019-08-23 阿里巴巴集团控股有限公司 Signature verification method, system, device and equipment in a kind of piece of chain type account book
US11283622B2 (en) 2019-04-18 2022-03-22 Advanced New Technologies Co., Ltd. Signature verification for a blockchain ledger
WO2021017350A1 (en) * 2019-07-26 2021-02-04 深圳壹账通智能科技有限公司 Bidding document management method and system, and computer readable storage medium
CN110941860A (en) * 2019-12-10 2020-03-31 博雅正链(北京)科技有限公司 Block chain and biological feature based electronic contract associable analysis verification method

Also Published As

Publication number Publication date
CN108830545B (en) 2020-08-25

Similar Documents

Publication Publication Date Title
CN108830545A (en) Contract dataset processing method, contract management client and block chain managing device
Zimmermann et al. Digital enterprise architecture-transformation for the internet of things
CN110419055A (en) Block chain data protection based on the account bill model using zero-knowledge proof
CN108985757A (en) Information processing method, apparatus and system, storage medium, electronic equipment
CN108632045A (en) A kind of block chain data processing method, device, processing equipment and system
CN109669986A (en) Blacklist sharing method, device, equipment and storage medium based on block chain
CN108564353A (en) Payment system based on block chain and method
CN108737403A (en) A kind of block chain data processing method, device, processing equipment and system
CN111210003B (en) Longitudinal federated learning system optimization method, device, equipment and readable storage medium
CN110189131A (en) The implementation method and device traded using the secret block chain of ring signatures
CN103455749B (en) Cooperative system, its collaboration method and information processing system
Julkunen et al. HELSINKI STATEMENT ON SOCIAL WORK PRACTICE RESEARCH1
CN109495592A (en) Data collaborative method and electronic equipment
KR101626099B1 (en) Method for providing a service unlocking a door
Abu-Matar Towards a software defined reference architecture for smart city ecosystems
US20200118376A1 (en) Server-recommended digital ticket checking mechanisms
CN104463263A (en) Multi-application systematic framework on IC card and information processing method based on framework
JP6951716B2 (en) User-customized product recommendation device through artificial intelligence-based machine learning
CN106060092A (en) Enterprise object-oriented information interaction method, device and system for education system
CN110197707A (en) Medical record information processing method, device, medium and electronic equipment based on block chain
CN109982150A (en) The trust chain method for building up and Intelligent television terminal of Intelligent television terminal
CN113609781A (en) Automobile production mold optimization method, system, equipment and medium based on federal learning
CN108833371A (en) A kind of method of information exchange, client, server and system
CN110474764A (en) Ciphertext data set intersection calculation method, device, system, client, server and medium
CN109690516A (en) A kind of software-based switch for providing a user product and/or servicing without damaging its privacy

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201222

Address after: Room n14-2-9r, 101 software Avenue, Yuhuatai District, Nanjing, Jiangsu 210000

Patentee after: Nanjing Yibo Software Technology Co.,Ltd.

Address before: 518000 Huawei Electric Research Center, Bantian Huawei base, Longgang District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN SMARTCOM BUSINESS Co.,Ltd.