CN110113334A - Contract processing method, equipment and storage medium based on block chain - Google Patents

Contract processing method, equipment and storage medium based on block chain Download PDF

Info

Publication number
CN110113334A
CN110113334A CN201910365734.2A CN201910365734A CN110113334A CN 110113334 A CN110113334 A CN 110113334A CN 201910365734 A CN201910365734 A CN 201910365734A CN 110113334 A CN110113334 A CN 110113334A
Authority
CN
China
Prior art keywords
electronic contract
block chain
signatory
node
domain name
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
CN201910365734.2A
Other languages
Chinese (zh)
Other versions
CN110113334B (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.)
Jiangsu Full Chain Communication Information Technology Co Ltd
Original Assignee
Jiangsu Full Chain Communication Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Full Chain Communication Information Technology Co Ltd filed Critical Jiangsu Full Chain Communication Information Technology Co Ltd
Priority to CN201910365734.2A priority Critical patent/CN110113334B/en
Publication of CN110113334A publication Critical patent/CN110113334A/en
Application granted granted Critical
Publication of CN110113334B publication Critical patent/CN110113334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • 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/3247Cryptographic 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 digital signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2107File encryption

Abstract

The embodiment of the present invention provides a kind of contract processing method, equipment and storage medium based on block chain.Wherein, the information of the first electronic contract text in the account book of domain name block chain network including electronic contract and all signatory's nodes;Any signatory's node of electronic contract obtains the first electronic contract text from domain name block chain network, and verifies to treaty content;If verifying does not pass through, the first electronic contract text is updated, and is uploaded to the second obtained electronic contract text is updated in domain name block chain network;If being verified, then generate the confirmation message for indicating confirmation signature, and the confirmation message is uploaded in domain name block chain network, so that accounting nodes are after confirmation receives the determination message of all signatory's nodes of the electronic contract, by the block chain account book of the determination message write-in domain name block chain network of all signatory's nodes, signature is completed.The embodiment of the present invention improves the safety and convenience of electronic contract signature.

Description

Contract processing method, equipment and storage medium based on block chain
Technical field
The present embodiments relate to block chain technical field more particularly to a kind of contract processing method based on block chain, Equipment and storage medium.
Background technique
The signature of Current electronic contract needs contract side to log in special electronic contract signature platform, and uses e-commerce The CA certificate that the center certification authority (Certificate Authority, abbreviation CA) is signed and issued is signed.
But current electronic contract signature platform is centralization, even with block chain, after also only signing Electronic contract upload to and carry out depositing card on block chain, once electronic contract signs platform by hacker attack, then electronic contract Signature will be safe to be affected, and it is often online lower progress that contract side, which obtains the process of CA certificate, and process is complicated.To work as The safety of preceding electronic contract signature process and convenience be not high, needs a kind of technology to improve the peace of electronic contract signature process Full property and convenience.
Summary of the invention
The embodiment of the present invention provides a kind of contract processing method, equipment and storage medium based on block chain, in domain The signature of electronic contract is realized on name block chain and deposits card.
In a first aspect, the embodiment of the present invention provides a kind of contract processing method based on block chain, which comprises
The information of electronic contract to be signed is stored in the block chain account book of domain name block chain network, the electronic contract It include the information of all signatory's nodes of the first electronic contract text and the electronic contract to be signed in information;
Any signatory's node of the electronic contract obtains first electronics from domain name block chain network and closes Same text, and treaty content is verified;
If verifying does not pass through, signatory's node is updated the first electronic contract text, and will update The second obtained electronic contract text uploads in domain name block chain network, so that other signatories of the electronic contract Node is based on the second electronic contract text and re-starts signature;
If being verified, signatory's node generates the confirmation message for indicating confirmation signature, and will be described true Recognize message to upload in domain name block chain network, so that the accounting nodes in domain name block chain network are received in confirmation To after the determination message of all signatory's nodes of the electronic contract, described in the determination message write-in by all signatory's nodes The block chain account book of domain name block chain network, completes the signature of the electronic contract.
In one embodiment, the first electronic contract text be by the encrypted ciphertext of preset-key, It further include the corresponding key ciphertext of each signatory's node in the information of the electronic contract to be signed, for each signatory Node, corresponding key ciphertext are the ciphertext generated after being encrypted using its public key to the preset-key.
It in one embodiment, include the electronic contract in the information of all signatory's nodes of the electronic contract All signatory's nodes domain name block chain mark;Any signatory's node of the electronic contract is from domain name block chain The first electronic contract text is obtained in network, and treaty content is verified, comprising: any label of the electronic contract Management side node is identified according to the domain name block chain of itself, and the first electronic contract text is obtained from domain name block chain network Sheet and its corresponding key ciphertext;Signatory's node solves its corresponding key ciphertext according to the public key of itself It is close to obtain the preset-key;The first electronic contract text is decrypted in acquisition contract based on the preset-key Hold, and the treaty content is verified.
It in one embodiment, include that the first electronic contract text passes through the signatory in the confirmation message The signature text obtained after the private key signature of node.
It in one embodiment, include the private key using signatory's node in the confirmation message to described first After the contract number or cryptographic Hash of electronic contract text carry out signature processing, signed data is obtained.
Second aspect, the embodiment of the present invention provide the participation node in a kind of domain name block chain network, domain name block The information of electronic contract to be signed is stored in the block chain account book of chain network, includes wait sign in the information of the electronic contract The first electronic contract text and the electronic contract all signatory's nodes information, the participation node includes:
Memory;
Processor;
Communication interface;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as being executed by the processor following Operation:
The first electronic contract text is obtained from domain name block chain network, and treaty content is verified;
The second electronics that if verifying does not pass through, the first electronic contract text is updated, and update is obtained Contract text uploads in domain name block chain network, so that other signatory's nodes of the electronic contract are based on described the Two electronic contract texts re-start signature;
If being verified, the confirmation message for indicating confirmation signature is generated, and the confirmation message is uploaded into institute It states in domain name block chain network, so that the accounting nodes in domain name block chain network receive the electronic contract in confirmation All signatory's nodes determination message after, domain name block chain network is written into the determination message of all signatory's nodes Block chain account book, complete the signature of the electronic contract.
In one embodiment, the first electronic contract text be by the encrypted ciphertext of preset-key, It further include the corresponding key ciphertext of each signatory's node in the information of the electronic contract to be signed, for each signatory Node, corresponding key ciphertext are the ciphertext generated after being encrypted using its public key to the preset-key.
It in one embodiment, include the electronic contract in the information of all signatory's nodes of the electronic contract All signatory's nodes domain name block chain mark;
The processor obtains the first electronic contract text, and pairing in execution from domain name block chain network When the operation verified with content, specifically perform the following operations:
The domain name block chain mark that node is participated according to place obtains first electricity from domain name block chain network Sub- contract text and the corresponding key ciphertext of participation node where it;
The key ciphertext got is decrypted according to the public key that place participates in node and obtains the preset-key;
Acquisition treaty content is decrypted to the first electronic contract text based on the preset-key, and to the conjunction It is verified with content.
It in one embodiment, include that the first electronic contract text passes through the signatory in the confirmation message The signature text obtained after the private key signature of node.
It in one embodiment, include the private key using signatory's node in the confirmation message to described first After the contract number or cryptographic Hash of electronic contract text carry out signature processing, signed data is obtained.
The third aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The computer program is executed by processor to realize method described in first aspect.
Contract processing method, equipment and storage medium provided in an embodiment of the present invention based on block chain, by will be wait sign The information of the electronic contract of administration is uploaded in the block chain account book of domain name block chain network and is stored, in the information of electronic contract The information of all signatory's nodes including the first electronic contract text and electronic contract to be signed, so that the electronic contract Any signatory's node obtains the first electronic contract text from domain name block chain network, and verifies to treaty content, In, if verifying, not if, the signature node is updated the first electronic contract text, and the second electronics that update is obtained Contract text uploads in domain name block chain network, so that other signatory's nodes of electronic contract are based on the second electronic contract text This is signed again, if being verified, which generates the confirmation message for indicating confirmation signature, and the confirmation is disappeared Breath uploads in domain name block chain network, so that the accounting nodes in domain name block chain network are receiving all of electronic contract After the determination message of signatory's node, by the block chain account of the determination message write-in domain name block chain network of all signatory's nodes This, completes the signature of electronic contract.Due in technical solution provided in an embodiment of the present invention, the signature process of electronic contract and Depositing card is completed in domain name block chain network, is signed and issued independent of traditional electronic contract signature platform and the center CA CA certificate does not need again to deposit contract in domain name block chain network after conditional electronic contract is signed and signed on platform Card improves electronic contract signature and deposits the convenience of card.And domain name block chain network is compared to the electricity of traditional centralization Sub- contract signature platform has natural security advantages, thus the signature of execution electronic contract can in domain name block chain network The safety of raising contract signature, is encrypted additionally by key pair electronic contract, so that signatory's ability of only contract Treaty content is obtained, the confidentiality and safety of electronic contract signature can be further increased.
Detailed description of the invention
Fig. 1 is a kind of schematic diagram of application scenarios provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the contract processing method provided in an embodiment of the present invention based on block chain;
Fig. 3 is the flow chart that step 202 executes method in Fig. 2 embodiment provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the participation node in domain name block chain network provided in an embodiment of the present invention.
Through the above attached drawings, it has been shown that the specific embodiment of the disclosure will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
In order to help to understand technical solution of the present invention, simply it is situated between to the relevant content of electronic contract first below It continues:
Electronic contract refers to signature both sides or multi-party party, by internet electronically reach set up, change, Terminate the agreement of certain civil rights and obligations relationship.Simply, electronic contract is exactly the electronization of papery contract, is conventional paper The system upgrade of matter contract.
The big advantage of electronic contract four: " it is more, it is fastly, good, save ", wherein it is so-called " more ", refer to that single user can handle institute The contract magnitude of the management work of some electronic contracts, server storage is larger.It is so-called " fast ", it does not need exactly to find institute in person Have link signs people, as long as there is network, signing people and can providing examination reports at any time for each link can also accomplish that more people are different Ground is signed simultaneously, so, greatly improves the efficiency of contract.It is so-called " good ", refer to that the management of electronic contract is precisely steady It is fixed, the problems such as effectively avoiding human error, be less prone to contract loss, damage.So-called " province ", refers to the reduction of expense, electronics Contract does not need the costs such as the no mailing of mailing printing, printing, environmentally protective.
It after portion papery contract is drafted at present, needs to give official seal responsible person and affixes one's seal, affixing one's seal practical is exactly contract The file common from one page has risen to one by contract law protection, the contract with legal effect.
And this movement that complete to affix one's seal, it is necessary to meet three conditions: first, there is official seal;Second, whom to determine to control Make this official seal;Third will cover this official seal in a determining time by determining control people.And for electronic contract It also needs to meet above three condition.Does so how electronic contract realize these three conditions? it is closed below with reference to electronics It is illustrated with signature mode.
Electronic contract signs mode
Directly sign and seal on electronic contract platform, three conditions that equally meet above of affixing one's seal: official seal, official seal control People processed, what is determined affixes one's seal the time.
1. official seal → CA certificate
2. official seal controls people → mobile phone identifying code
3. → timestamp of affixing one's seal the time
First, the corresponding official seal of electronic contract be e-business certification authorized organization (Certificate Authority, Abbreviation CA) certificate.As long as going to compare the user information that confirmation user provides online to be true by preset technological means , then just complete user authentication, these mechanisms will by electronic contract platform to user issue one can represent and Prove the legal CA certificate of the user.This CA certificate is equivalent to the official seal that official mission carves on line to user.
Second, it is mobile phone identifying code that electronic contract, which corresponds to official seal control people, sends verifying by the mobile phone specified to user Code, and identifying code backfilled by user to guarantee that affix one's seal is user for operation.
Third, electronic contract corresponding determining time of affixing one's seal are timestamp.
By CA certificate, mobile phone identifying code, timestamp, electronic contract equally realizes traditionally on paper contract people, chapter, time Three unification.
It is viewed from above, electronic contract and the not essential difference of traditionally on paper contract, but electronic contract is compared to tradition Papery contract has the advantages such as convenient, fast again, solves the problems, such as that papery contract exists and is easily lost, damages.
However, to ensure that the judicial effect of electronic contract, existing electronic contract is both needed to sign in special electronic contract flat It is signed on platform, current electronic contract signature platform is centralization, even with block chain, after also only signing Electronic contract upload to and carry out depositing card on block chain, once electronic contract signs platform by hacker attack, then electronic contract Signature will be safe to be affected, and it is often online lower progress that contract side, which obtains the process of CA certificate, and process is complicated.To work as The safety of preceding electronic contract signature process and convenience be not high, needs a kind of technology to improve the peace of electronic contract signature process Full property and convenience.
Contract processing method provided in an embodiment of the present invention based on block chain, it is intended to solve the technology as above of the prior art Problem, this method can be adapted for communication system shown in FIG. 1.As shown in Figure 1, the communication system include: signatory's node 11, Signatory's node 12 and domain name block chain network 13, wherein signatory's node 11, signatory's node 12 access domain name block link network Network 13, signatory's node 11 and signatory's node 12 specifically can be the equipment such as terminal device, server.11 He of signatory's node Signatory's node 12 is the signatory of same contract.Signatory's node 11 and signatory's node 12 are respectively arranged with Distributed Application (Decentralized Application, abbreviation DAPP), can be with by the DAPP signatory node 11 and signatory's node 12 Electronic contract is uploaded in domain name block chain network 13 and is kept accounts, and the electronic contract is signed on chain.In addition, It only schematically illustrates herein, does not limit the structure of the domain name block chain network and the node in the domain name block chain network Number.
How technical solution of the present invention and technical solution of the present invention are solved with specifically embodiment below above-mentioned Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Fig. 2 is the flow chart of the contract processing method provided in an embodiment of the present invention based on block chain.This method specifically walks It is rapid as follows:
Step 201, domain name block chain network block chain account book in store the information of electronic contract to be signed, the electricity It include the letter of all signatory's nodes of the first electronic contract text and the electronic contract to be signed in the information of sub- contract Breath.
Step 202, the electronic contract any signatory's node described is obtained from domain name block chain network One electronic contract text, and treaty content is verified.
If step 203, verifying do not pass through, signatory's node is updated the first electronic contract text, And uploaded to the second obtained electronic contract text is updated in domain name block chain network, so that its of the electronic contract His signatory's node is based on the second electronic contract text and re-starts signature.
If step 204 is verified, signatory's node generates the confirmation message for indicating confirmation signature, and The confirmation message is uploaded in domain name block chain network, so that the accounting nodes in domain name block chain network exist After confirmation receives the determination message of all signatory's nodes of the electronic contract, by the determination message of all signatory's nodes The block chain account book that domain name block chain network is written, completes the signature of the electronic contract.
Referring to Fig. 1, by taking signatory's node 11 in Fig. 1 as an example, signatory's node 11 of contract passes through human-computer interaction interface Contract template is provided a user, and prompts user according to the information of template input treaty content and all signatory's nodes, wherein It include but is not limited to the domain name block chain mark of signatory's node in the information of signatory's node.
Signatory's node 11 generates the first electronic contract text according to the treaty content that user inputs, and using the private of itself Key signs to the information of all signatory's nodes of the first electronic contract text and the contract, and the message after signature is wide It is multicast in domain name block chain network.Accounting nodes in domain name block chain network are upon receiving the message to the private key label of message Name is verified, and after being verified, by the record of the information association of the first electronic contract text and all signatory's nodes Into block chain account book.
After signatory's node 12 of contract starts DAPP, with the presence or absence of associated therewith in automatically retrieval domain name block chain network Electronic contract to be signed, then signatory's node 12 to domain name block chain network sends request message if it exists, wraps in the message Include the domain name block chain mark of signatory's node 12.Domain name block chain network the request message for receiving signatory's node 12 it Afterwards, it is sent to according to the first electronic contract text that the domain name block chain of signatory's node 12 mark uploads signatory's node 11 Signatory's node 12.
Signatory's node 12 shows the treaty content of the first electronic contract text after receiving the first electronic contract text Show to user, so that user verifies treaty content, and receives the verification result of user's input.
If being verified, then signatory's node 12 generates the confirmation message signed for indicating confirmation, and by the confirmation Message uploads in domain name block chain network, so that the accounting nodes in domain name block chain network receive the contract in confirmation After the determination message of all signatory's nodes, by the block of the confirmation message write-in domain name block chain network of all signatory's nodes Chain account book completes the signature of electronic contract.
If verifying does not pass through, then signatory's node 12 exports the editing interface of the first electronic contract text to user, make It obtains user to edit the content of the first electronic contract, to edited content after receiving user and editing the instruction completed Saved to obtain the more new version of the first electronic contract text --- the second electronic contract text.
Signatory's node 12 carries out the second electronic contract using the private key of itself after obtaining the second electronic contract text Signature, and the contract after signature is uploaded in domain name block chain network, so that signatory's node 11 is from domain name block chain network The second electronic contract text of middle acquisition, and verification operation identical with above-mentioned signatory's node 12 is executed, until contract parties is equal It is verified the electronic contract of a certain version, and after generating confirmation message, block chain account book is written into the confirmation message of each side, it is complete It is signed at contract.
Wherein, the confirmation message package that the present embodiment is related to includes: electronic contract text passes through the signatory for implementing verification operation The signature text obtained after the private key signature of node, and/or use the private key for executing signatory's node of verification operation to electronics After the contract number or cryptographic Hash of contract text carry out signature processing, signed data is obtained.Wherein, on confirmation message only includes It states in the mode of signed data, can be avoided domain name block chain to the redundant storage of electronic contract.
Contract processing method, equipment and storage medium provided in this embodiment based on block chain, by will be to be signed The information of electronic contract is uploaded in the block chain account book of domain name block chain network and is stored, and includes in the information of electronic contract The information of all signatory's nodes of first electronic contract text and electronic contract to be signed, so that any of the electronic contract Signatory's node obtains the first electronic contract text from domain name block chain network, and verifies to treaty content, wherein if Verifying is not updated the first electronic contract text by the then signature node, and will update obtained the second electronic contract text Originally it uploads in domain name block chain network, so that other signatory's nodes of electronic contract are based on the second electronic contract text again Signature, if being verified, which generates the confirmation message for indicating confirmation signature, and the confirmation message is uploaded Into domain name block chain network, so that the accounting nodes in domain name block chain network are in all signatories for receiving electronic contract It is complete by the block chain account book of the determination message write-in domain name block chain network of all signatory's nodes after the determination message of node At the signature of electronic contract.Due in technical solution provided in this embodiment, the signature process of electronic contract and deposits card and be all It is completed in domain name block chain network, independent of the CA certificate that traditional electronic contract signature platform and the center CA are signed and issued, It does not need to carry out contract in domain name block chain network to deposit card again after conditional electronic contract is signed and signed on platform, improve The convenience of card is signed and deposited to electronic contract.And domain name block chain network is signed compared to the electronic contract of traditional centralization Platform has natural security advantages, thus the signature of execution electronic contract can be improved contract label in domain name block chain network The safety of administration.
Fig. 3 is the flow chart that step 202 executes method in Fig. 2 embodiment provided in an embodiment of the present invention, in Fig. 3 embodiment In, the so-called first electronic contract text of Fig. 2 embodiment is by the encrypted ciphertext of preset-key, with Fig. 2 embodiment In example for, signatory's node 11 get user input treaty content after, based on preset-key to treaty content It carries out encryption and generates the first electronic contract text.In the information of the electronic contract to be signed stored in domain name block chain network also Including the corresponding key ciphertext of each signatory's node, the corresponding key ciphertext of each signatory's node is the public affairs using the node The ciphertext that key generates after encrypting to preset-key.As shown in figure 3, step 202 includes:
Step 301, the electronic contract any signatory's node according to the domain name block chain of itself identify, from the domain The first electronic contract text and its corresponding key ciphertext are obtained in name block chain network.
Step 302, signatory's node, which are decrypted its corresponding key ciphertext according to the public key of itself, obtains institute State preset-key.
Acquisition treaty content is decrypted to the first electronic contract text based on the preset-key in step 303, and The treaty content is verified.
The present embodiment is encrypted by key pair electronic contract, so that the signatory of only contract could obtain in contract Hold, the confidentiality and safety of electronic contract signature can be further increased.
Fig. 4 is the structural schematic diagram of the participation node in a kind of domain name block chain network provided in an embodiment of the present invention.This It is real that the participation node in domain name block chain network that inventive embodiments provide can execute the contract processing method based on block chain The process flow of example offer is applied, as shown in figure 4, storing in the block chain account book of the domain name block chain network where participation node 40 There is the information for participating in node electronic contract to be signed, includes the first electronic contract to be signed in the information of the electronic contract The information of all signatory's nodes of text and the electronic contract.Participating in node 40 includes: memory 41, processor 42, meter Calculation machine program and communication interface 43;Wherein, the computer program stores in the memory, and is configured as by processor 42 execute following operation: obtain the first electronic contract text from domain name block chain network, and to treaty content into Row verifying;If verifying does not pass through, the first electronic contract text is updated, and is closed the second obtained electronics is updated It is uploaded in domain name block chain network with text, so that other signatory's nodes of the electronic contract are based on described second Electronic contract text re-starts signature;If being verified, the confirmation message for indicating confirmation signature is generated, and will be described Confirmation message uploads in domain name block chain network, so that the accounting nodes in domain name block chain network connect in confirmation After the determination message of all signatory's nodes for receiving the electronic contract, institute is written into the determination message of all signatory's nodes The block chain account book for stating domain name block chain network, completes the signature of the electronic contract.
In one embodiment, the first electronic contract text be by the encrypted ciphertext of preset-key, It further include the corresponding key ciphertext of each signatory's node in the information of the electronic contract to be signed, for each signatory Node, corresponding key ciphertext are the ciphertext generated after being encrypted using its public key to the preset-key.
It in one embodiment, include the electronic contract in the information of all signatory's nodes of the electronic contract All signatory's nodes domain name block chain mark;
The processor obtains the first electronic contract text, and pairing in execution from domain name block chain network When the operation verified with content, specifically perform the following operations:
The domain name block chain mark that node is participated according to place obtains first electricity from domain name block chain network Sub- contract text and the corresponding key ciphertext of participation node where it;
The key ciphertext got is decrypted according to the public key that place participates in node and obtains the preset-key;
Acquisition treaty content is decrypted to the first electronic contract text based on the preset-key, and to the conjunction It is verified with content.
It in one embodiment, include that the first electronic contract text passes through the signatory in the confirmation message The signature text obtained after the private key signature of node.
It in one embodiment, include the private key using signatory's node in the confirmation message to described first After the contract number or cryptographic Hash of electronic contract text carry out signature processing, signed data is obtained.
Participation node in the domain name block chain network of embodiment illustrated in fig. 4 can be used for executing the skill of above method embodiment Art scheme, it is similar that the realization principle and technical effect are similar, and details are not described herein again.
In addition, the embodiment of the present invention also provides a kind of computer readable storage medium, it is stored thereon with computer program, institute Computer program is stated to be executed by processor to realize the contract processing method described in above-described embodiment based on block chain.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, 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 or logical of device or unit Letter connection can be electrical property, mechanical 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 hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the present invention The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various It can store the medium of program code.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each functional module Division progress for example, in practical application, can according to need and above-mentioned function distribution is complete by different functional modules At the internal structure of device being divided into different functional modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (11)

1. a kind of contract processing method based on block chain, which is characterized in that the described method includes:
The information of electronic contract to be signed, the information of the electronic contract are stored in the block chain account book of domain name block chain network In include the first electronic contract text and the electronic contract to be signed all signatory's nodes information;
Any signatory's node of the electronic contract obtains the first electronic contract text from domain name block chain network This, and treaty content is verified;
If verifying does not pass through, signatory's node is updated the first electronic contract text, and update is obtained The second electronic contract text upload in domain name block chain network so that other signatory's nodes of the electronic contract Signature is re-started based on the second electronic contract text;
If being verified, signatory's node generates the confirmation message for indicating confirmation signature, and the confirmation is disappeared Breath uploads in domain name block chain network, so that the accounting nodes in domain name block chain network receive institute in confirmation After the determination message of all signatory's nodes for stating electronic contract, domain name is written into the confirmation message of all signatory's nodes The block chain account book of block chain network, completes the signature of the electronic contract.
2. the method according to claim 1, wherein the first electronic contract text is to add by preset-key Ciphertext after close in the information of the electronic contract to be signed further includes that the corresponding key of each signatory's node is close Text, for each signatory's node, corresponding key ciphertext is raw after being encrypted using its public key to the preset-key At ciphertext.
3. according to the method described in claim 2, it is characterized in that, in the information of all signatory's nodes of the electronic contract The domain name block chain of all signatory's nodes including the electronic contract identifies;
Any signatory's node of the electronic contract obtains the first electronic contract text from domain name block chain network This, and treaty content is verified, comprising:
Any signatory's node of the electronic contract is identified according to the domain name block chain of itself, from domain name block chain network Middle acquisition the first electronic contract text and its corresponding key ciphertext;
Signatory's node is decrypted its corresponding key ciphertext according to the public key of itself and obtains the preset-key;
Acquisition treaty content is decrypted to the first electronic contract text based on the preset-key, and in the contract Appearance is verified.
4. method according to any one of claim 1-3, which is characterized in that include described first in the confirmation message The signature text that electronic contract text obtains after the private key signature of signatory's node.
5. method according to any one of claim 1-3, which is characterized in that include described in use in the confirmation message After the private key of signatory's node carries out signature processing to the contract number or cryptographic Hash of the first electronic contract text, signed Name data.
6. the participation node in a kind of domain name block chain network, which is characterized in that the block chain account of domain name block chain network The information of electronic contract to be signed is stored in this, includes the first electronic contract text to be signed in the information of the electronic contract The information of all signatory's nodes of this and the electronic contract, the participation node include:
Memory;
Processor;
Communication interface;And
Computer program;
Wherein, the computer program stores in the memory, and is configured as executing following operation by the processor:
The first electronic contract text is obtained from domain name block chain network, and treaty content is verified;
The second electronic contract that if verifying does not pass through, the first electronic contract text is updated, and update is obtained Text uploads in domain name block chain network, so that other signatory's nodes of the electronic contract are based on second electricity Sub- contract text re-starts signature;
If being verified, the confirmation message for indicating confirmation signature is generated, and the confirmation message is uploaded into the domain In name block chain network, so that the accounting nodes in domain name block chain network receive the institute of the electronic contract in confirmation After the determination message of sealed contract side's node, by the area of the determination message write-in domain name block chain network of all signatory's nodes Block chain account book, completes the signature of the electronic contract.
7. participation node according to claim 6, which is characterized in that the first electronic contract text is close by presetting The encrypted ciphertext of key, the electronic contract to be signed information in further include the corresponding key of each signatory's node Ciphertext, for each signatory's node, corresponding key ciphertext is after being encrypted using its public key to the preset-key The ciphertext of generation.
8. participation node according to claim 7, which is characterized in that the letter of all signatory's nodes of the electronic contract The domain name block chain mark of all signatory's nodes in breath including the electronic contract;
The processor obtains the first electronic contract text in execution from domain name block chain network, and in contract When holding the operation verified, specifically perform the following operations:
The domain name block chain mark that node is participated according to place, first electronics is obtained from domain name block chain network and is closed Same text and the corresponding key ciphertext of participation node where it;
The key ciphertext got is decrypted according to the public key that place participates in node and obtains the preset-key;
Acquisition treaty content is decrypted to the first electronic contract text based on the preset-key, and in the contract Appearance is verified.
9. participation node a method according to any one of claims 6-8, which is characterized in that include described in the confirmation message The signature text that first electronic contract text obtains after the private key signature of signatory's node.
10. participation node a method according to any one of claims 6-8, which is characterized in that include adopting in the confirmation message After carrying out signature processing with contract number or cryptographic Hash of the private key of signatory's node to the first electronic contract text, Obtain signed data.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Method according to any one of claims 1 to 5 is realized when being executed by processor.
CN201910365734.2A 2019-05-05 2019-05-05 Contract processing method and device based on block chain and storage medium Active CN110113334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910365734.2A CN110113334B (en) 2019-05-05 2019-05-05 Contract processing method and device based on block chain and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910365734.2A CN110113334B (en) 2019-05-05 2019-05-05 Contract processing method and device based on block chain and storage medium

Publications (2)

Publication Number Publication Date
CN110113334A true CN110113334A (en) 2019-08-09
CN110113334B CN110113334B (en) 2021-09-10

Family

ID=67487971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910365734.2A Active CN110113334B (en) 2019-05-05 2019-05-05 Contract processing method and device based on block chain and storage medium

Country Status (1)

Country Link
CN (1) CN110113334B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598460A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Block chain-based electronic signature method and device and storage medium
CN111080295A (en) * 2019-12-04 2020-04-28 腾讯科技(深圳)有限公司 Block chain-based electronic contract processing method and equipment
CN111669268A (en) * 2020-06-03 2020-09-15 北京八分量信息科技有限公司 Block chain-based electronic data processing method and device and related products
CN112270556A (en) * 2020-11-23 2021-01-26 苏州园启软件有限公司 Method for verifying authenticity of electronic contract, electronic device and storage medium
CN112910661A (en) * 2021-05-10 2021-06-04 恒生电子股份有限公司 Block chain consensus method, device, equipment and medium suitable for electronic subscription

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain
US20170178127A1 (en) * 2015-12-18 2017-06-22 International Business Machines Corporation Proxy system mediated legacy transactions using multi-tenant transaction database
CN107403303A (en) * 2017-06-16 2017-11-28 兴业数字金融服务(上海)股份有限公司 A kind of signature method for the electronic contract system that card is deposited based on block chain
CN108920976A (en) * 2018-06-14 2018-11-30 张绪宝 A kind of contract signing method, apparatus and system
CN109102298A (en) * 2018-06-08 2018-12-28 浙江捷尚人工智能研究发展有限公司 Contract signature method, electronic equipment, storage medium and system based on block chain
CN109409876A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 Electronic contract signature method, apparatus, equipment and storage medium based on block chain
CN109472686A (en) * 2018-10-12 2019-03-15 深圳壹账通智能科技有限公司 Contract signing method, apparatus and terminal device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170178127A1 (en) * 2015-12-18 2017-06-22 International Business Machines Corporation Proxy system mediated legacy transactions using multi-tenant transaction database
CN106504008A (en) * 2016-10-24 2017-03-15 中山大学 A kind of fair contract signature method based on block chain
CN107403303A (en) * 2017-06-16 2017-11-28 兴业数字金融服务(上海)股份有限公司 A kind of signature method for the electronic contract system that card is deposited based on block chain
CN109102298A (en) * 2018-06-08 2018-12-28 浙江捷尚人工智能研究发展有限公司 Contract signature method, electronic equipment, storage medium and system based on block chain
CN108920976A (en) * 2018-06-14 2018-11-30 张绪宝 A kind of contract signing method, apparatus and system
CN109409876A (en) * 2018-09-27 2019-03-01 深圳壹账通智能科技有限公司 Electronic contract signature method, apparatus, equipment and storage medium based on block chain
CN109472686A (en) * 2018-10-12 2019-03-15 深圳壹账通智能科技有限公司 Contract signing method, apparatus and terminal device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110598460A (en) * 2019-09-27 2019-12-20 腾讯科技(深圳)有限公司 Block chain-based electronic signature method and device and storage medium
CN111080295A (en) * 2019-12-04 2020-04-28 腾讯科技(深圳)有限公司 Block chain-based electronic contract processing method and equipment
CN111080295B (en) * 2019-12-04 2024-04-09 腾讯科技(深圳)有限公司 Electronic contract processing method and device based on blockchain
CN111669268A (en) * 2020-06-03 2020-09-15 北京八分量信息科技有限公司 Block chain-based electronic data processing method and device and related products
CN112270556A (en) * 2020-11-23 2021-01-26 苏州园启软件有限公司 Method for verifying authenticity of electronic contract, electronic device and storage medium
CN112910661A (en) * 2021-05-10 2021-06-04 恒生电子股份有限公司 Block chain consensus method, device, equipment and medium suitable for electronic subscription

Also Published As

Publication number Publication date
CN110113334B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN106961336B (en) A kind of key components trustship method and system based on SM2 algorithm
CN110113334A (en) Contract processing method, equipment and storage medium based on block chain
CN110287732A (en) One kind depositing card method based on block chain electronic contract
CN106341493A (en) Entity rights oriented digitalized electronic contract signing method
CN111801910A (en) System and method for authenticating off-chain data based on proof verification
CN103095456B (en) The processing method of transaction message and system
CN107396360A (en) Block verification method and device
CN109614802B (en) Anti-quantum-computation signature method and signature system
CN107483212A (en) A kind of method of both sides' cooperation generation digital signature
CN109586919A (en) A kind of online contract signs method automatically
CN101419686A (en) A kind of on-line contract signing system based on the internet
JP2020511018A (en) System and method for generating digital marks
CN108768652A (en) It is a kind of can the attack of anti-quantum alliance's block chain bottom encryption method
CN112069547B (en) Identity authentication method and system for supply chain responsibility main body
CN109560935B (en) Anti-quantum-computation signature method and signature system based on public asymmetric key pool
CN110365662B (en) Business approval method and device
CN109600228A (en) The signature method and sealing system of anti-quantum calculation based on public keys pond
CN109981287A (en) A kind of code signature method and its storage medium
CN113515756B (en) High-credibility digital identity management method and system based on block chain
CN111737715A (en) Decentralized electronic contract online signing method and system
CN110113244A (en) A kind of instant communicating system and method based on block chain technology
CN110414961A (en) Prevent transfer account method, device, equipment and the storage medium of the track transactions side of producing
CN110189184A (en) A kind of electronic invoice storage method and device
CN111131318B (en) Decentralized key management and distribution method, system and storage medium
CN109978543B (en) Contract signing method and device, electronic equipment and storage medium

Legal Events

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