Online contract signing method and system based on non-tampering database
By using tamper-free databases and remote online ports during the contract signing process, online signing and traceability of electronic contracts is realized, and the existing contract signing methods are solved, and the user experience and contract reliability are improved.
Patent Information
- Application Number
- CN202411835716.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-13
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2044-12-13
AI Technical Summary
The existing contract signing methods are cumbersome and time-consuming and cannot be traced, resulting in poor user experience.
The online contract signing method based on the tamper-free database is adopted, and the electronic contract is generated, signed and checked through the remote online ports of the contract initiator and the signing party. All operation records are kept in the tamper-free database.
It simplifies the contract signing process, realizes reliable transmission and traceability of electronic contracts, and improves user experience.
Smart Images

Figure CN120013549A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, specifically to technical fields such as tamper-proof databases and collaborative remote office, and in particular to an online contract signing method and system based on an tamper-proof database. Background Art
[0002] Currently, contract signing is generally done offline. After the contract drafter drafts the contract, it is printed on paper. After printing, multiple copies are distributed to the corresponding contracting parties. After the contracting parties confirm that the contract content is correct, the contracting parties seal and sign to complete the signing of a contract.
[0003] However, the signing of existing offline contracts requires paper printing, which consumes paper; and the signing and stamping require the contracting personnel to go to the site or confirm the signing by mail, which is a cumbersome and time-consuming offline confirmation operation. Most importantly, the existing contract signing method cannot trace the source after the contract is signed, so when faced with contract disputes, it is impossible to resolve disputes based on traceability information, resulting in a poor user experience. Summary of the invention
[0004] The present application provides an online contract signing method and system based on an unalterable database to solve the problem that existing contract signing schemes are cumbersome, time-consuming and cannot be traced, thus resulting in a poor user experience.
[0005] The technical solution is as follows:
[0006] In a first aspect, a method for online contract signing based on an unalterable database is provided, comprising:
[0007] The contract initiator generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to an unalterable database; wherein the first signature is the result of encrypting the hash value of the electronic contract based on the private key of the contract initiator;
[0008] After the contracting party has checked and confirmed through the remote online port that the contract content of the electronic contract is correct, the contracting party uses the public key of the contract initiator to verify the first signature stored in the tamper-proof database, and after the verification, the electronic contract and the second signature of the electronic contract are stored in the tamper-proof database, wherein the second signature is the result of encrypting the hash value of the electronic contract based on the private key of the contracting party;
[0009] After the contract initiator successfully verifies the latest data in the tamper-proof database, the contract initiator confirms and adds the text signature and the first electronic seal of the contract initiator to the electronic contract through the remote online port, and saves the electronic contract carrying the text signature and the first electronic seal of the contract initiator, the signing time of the contract initiator and the third signature to the tamper-proof database, wherein the third signature is the result of encrypting the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator; the first electronic seal is related to the electronic contract;
[0010] After the contracting party successfully verifies the latest data in the tamper-proof database, the contracting party confirms and adds the contracting party's text signature and second electronic seal to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature to the tamper-proof database, wherein the fourth signature is the result of encrypting the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party; the second electronic seal is related to the electronic contract signed by the contract initiator;
[0011] The contract initiator verifies the signing record saved by the contracting party in the tamper-proof database, and after the verification is passed, it is determined that the signing of this online contract is completed.
[0012] In a possible implementation, the remote online port includes at least the following types: a web page, a mini-program, an email, or other APP interfaces.
[0013] In a possible implementation, the first electronic signature is a barcode or a QR code generated by encrypting the hash value and current time of the electronic contract based on the private key of the contract initiator; and / or;
[0014] The second electronic signature is a barcode or a QR code generated by encrypting the hash value of the electronic contract signed by the contract initiator and the current time based on the private key of the contracting party.
[0015] In a possible implementation, the contract initiator verifies the signature of the latest data in the tamper-proof database, specifically including:
[0016] The contract initiator uses the public key of the contracting party to decrypt the second signature saved by the contracting party in the tamper-proof database; if the decryption is successful, the signature verification is successful.
[0017] In a possible implementation, the contracting party verifies the signature of the latest data in the tamper-proof database, specifically including:
[0018] The contracting party uses the public key of the contract initiator to decrypt the third signature saved by the contract initiator in the tamper-proof database; if the decryption is successful, the first electronic signature is further decrypted using the public key of the contract initiator; if the decryption is successful, the signature verification is passed.
[0019] In a possible implementation, the contract initiator verifies the contract record stored by the contracting party in the tamper-proof database, specifically including:
[0020] The contract initiator uses the public key of the contracting party to decrypt the fourth signature saved by the contracting party in the tamper-proof database; if the decryption is successful, the public key of the contracting party is used to further decrypt the second electronic signature; if the decryption is successful, the signature verification is passed.
[0021] In the second aspect, an online contract signing system based on an unalterable database is provided, including: a contract initiator, a contracting party, and an unalterable database; wherein:
[0022] The contract initiator generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to an unalterable database; wherein the first signature is the result of encrypting the hash value of the electronic contract based on the private key of the contract initiator;
[0023] After the contracting party has checked and confirmed through the remote online port that the contract content of the electronic contract is correct, the contracting party uses the public key of the contract initiator to verify the first signature stored in the tamper-proof database, and after the verification, the electronic contract and the second signature of the electronic contract are stored in the tamper-proof database, wherein the second signature is the result of encrypting the hash value of the electronic contract based on the private key of the contracting party;
[0024] After the contract initiator successfully verifies the latest data in the tamper-proof database, the contract initiator confirms and adds the text signature and the first electronic seal of the contract initiator to the electronic contract through the remote online port, and saves the electronic contract carrying the text signature and the first electronic seal of the contract initiator, the signing time of the contract initiator and the third signature to the tamper-proof database, wherein the third signature is the result of encrypting the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator; the first electronic seal is related to the electronic contract;
[0025] After the contracting party successfully verifies the latest data in the tamper-proof database, the contracting party confirms and adds the contracting party's text signature and second electronic seal to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature to the tamper-proof database, wherein the fourth signature is the result of encrypting the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party; the second electronic seal is related to the electronic contract signed by the contract initiator;
[0026] The contract initiator verifies the signing record saved by the contracting party in the tamper-proof database, and after the verification is passed, it is determined that the signing of this online contract is completed.
[0027] In a third aspect, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the method of the above-mentioned aspect and any possible implementation manner.
[0028] In a fourth aspect, an electronic device is provided, including:
[0029] at least one processor; and
[0030] a memory communicatively connected to the at least one processor; wherein,
[0031] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any possible implementation manner and the aspects described above.
[0032] According to a fifth aspect, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the above-mentioned aspects and any possible implementation method.
[0033] The beneficial effects of the technical solution provided by this application include at least:
[0034] It can be seen from the above technical solution that the electronic contract is generated and signed by the contract initiator and saved in the non-tamperable database. After that, the contracting party checks and confirms the contract content from the non-tamperable database through the remote online port, verifies the electronic contract, and after the verification, the electronic contract is signed and saved in the non-tamperable database. Then, the contract initiator verifies the latest electronic contract in the non-tamperable database, and after the verification, adds the text signature and the first electronic seal to the electronic contract based on the remote online port, and saves it to the non-tamperable database after signing. Then, the contracting party verifies the latest electronic contract in the non-tamperable database, and after the verification, adds the text signature and the second electronic seal of the contracting party to the signed electronic contract based on the remote online port, and saves it to the non-tamperable database after signing. Finally, the contract initiator verifies the latest electronic contract in the non-tamperable database, and after the verification, it is determined that the online contract is signed. Therefore, the online electronic contract replaces the offline paper contract, which simplifies the contract signing process and is convenient and quick. Moreover, each initiation or receipt of the electronic contract will be verified to ensure the reliable transmission of the electronic contract between the contracting party and the contract initiator. At the same time, each confirmation data and modification data of the electronic contract are recorded in the tamper-proof database to prevent the electronic contract from being modified manually. Moreover, as the recorder of the electronic contract signing process, the tamper-proof database records the relevant data of the electronic contract in detail and accurately, which is convenient for traceability.
[0035] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present application, nor is it intended to limit the scope of the present application. Other features of the present application will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0037] Figure 1 It is a schematic diagram of the steps of an online contract signing method based on an unalterable database provided in an embodiment of the present application.
[0038] Figure 2 It is a schematic diagram of the online contract signing process based on an unalterable database provided in an embodiment of the present application.
[0039] Figure 3 It is a structural diagram of an online contract signing system based on an unalterable database provided in an embodiment of the present application.
[0040] Figure 4 This is a structural block diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0041] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0042] Obviously, the described embodiments are only part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0043] It should be noted that the terminal devices involved in the embodiments of the present application may include but are not limited to mobile phones, personal digital assistants (PDAs), wireless handheld devices, tablet computers and other smart devices; display devices may include but are not limited to personal computers, televisions and other devices with display functions.
[0044] In addition, the term "and / or" in this article is only a description of the association relationship between the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0045] The existing contract signing methods are almost all implemented offline, but the confirmation operation is cumbersome and time-consuming. And after the contract is signed, it cannot be traced, and the user experience is poor. In view of this, the present application provides an online contract signing scheme based on an unalterable database, and its inventive concept is: the electronic contract is generated and signed by the contract initiator, and saved in the unalterable database. After that, the contracting party checks and confirms that the contract content is correct from the unalterable database through a remote online port, and then verifies the electronic contract. After the verification is passed, the electronic contract is signed and saved in the unalterable database. Then, the contract initiator verifies the latest electronic contract in the unalterable database, and after the verification is passed, the text signature and the first electronic signature are added to the electronic contract based on the remote online port, and the signature is saved in the unalterable database. After that, the contracting party verifies the latest electronic contract in the unalterable database, and after the verification is passed, the text signature and the second electronic signature of the contracting party are added to the signed electronic contract based on the remote online port, and the signature is saved in the unalterable database. Finally, the contract initiator verifies the latest electronic contract in the tamper-proof database, and after the verification, it is determined that the online contract is signed. In this way, the online electronic contract replaces the offline paper contract, which simplifies the contract signing process and is convenient and fast; moreover, each initiation or receipt of the electronic contract will be verified to ensure the reliable transmission of the electronic contract between the contracting party and the contract initiator. At the same time, each confirmation data and modification data of the electronic contract are recorded in the tamper-proof database to prevent the electronic contract from being modified manually. Moreover, as the recorder of the electronic contract signing process, the tamper-proof database records the relevant data of the electronic contract in detail and accurately, which is convenient for traceability.
[0046] Reference Figure 1 As shown, it is a schematic diagram of the steps of an online contract signing method based on an unalterable database provided by an embodiment of the present application. The execution subject of the online contract signing method is a terminal device participating in the online contract signing scheme based on an unalterable database, that is, the contract initiator and the contracting party; and the unalterable database. In the present application, the contract initiator and the contracting party can be software modules with computing and data processing capabilities, or electronic devices integrated with similar software modules.
[0047] like Figure 1 As shown, the online contract signing method based on the tamper-proof database may include the following steps:
[0048] Step 102: The contract initiator generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to an unalterable database; wherein the first signature is the result of signing the hash value of the electronic contract based on the private key of the contract initiator.
[0049] In this application plan, since it is a contract signing plan, there must be two parties involved in this contract signing plan: the contract initiator who drafts the contract content and initiates the contract signing operation and the contract signing party who signs the contract; the contract initiator here can be regarded as the terminal device used and operated by the contract initiator or group, and can also be called the contract initiating end; the contract signing party can be regarded as the terminal device used and operated by the signatory, and can also be called the signing end.
[0050] After the contract initiator or the contract initiating group drafts the contract, the contract initiator can generate an electronic contract based on the content of the drafted contract. In order to ensure that the electronic contract is not tampered with and has non-repudiation, the contract initiator hashes the electronic contract, generates a summary (hash value), and then signs the hash value with the private key of the contract initiator, thereby obtaining the first signature of the contract initiator on the electronic contract. Afterwards, the electronic contract and the first signature are saved together in the tamper-proof database.
[0051] It should be noted that when hashing an electronic contract, the contract content of the electronic contract is first converted into an image, and then the hash value of the electronic contract image is generated and signed using the corresponding private key. Therefore, the electronic contract involved in this application can be regarded as a contract in image format.
[0052] In the present application scheme, the tamper-proof database may be a tamper-proof database in which data, once written, cannot be changed or deleted, and the latest data or data at other times may be searched based on the data recorded in time series.
[0053] Step 104: After the contracting party has viewed and confirmed through the remote online port that the contract content of the electronic contract is correct, the contracting party uses the public key of the contract initiator to verify the first signature stored in the tamper-proof database, and after the verification is passed, the electronic contract and the second signature of the electronic contract are saved in the tamper-proof database, wherein the second signature is the result of signing the hash value of the electronic contract based on the private key of the contracting party.
[0054] After the electronic contract and the first signature of the electronic contract are saved to the tamper-proof database by the contract initiator, the contracting party can view and confirm the contract content of the electronic contract through the remote online port, that is, the contracting party verifies whether the content of the electronic contract is reasonable and legal and whether it is consistent with the previously agreed content. The remote online port can be at least one of the following types: web page, applet, email or other APP interface. For example, the contracting party can obtain the electronic contract from the tamper-proof database through a web link and view and confirm the contract content of the electronic contract.
[0055] After confirming that the contract content is correct, the contracting party uses the public key of the contract initiator to verify the first signature of the electronic contract in the tamper-proof database. After the verification, the contracting party uses its own private key to sign the hash value of the electronic contract to obtain the second signature of the contracting party on the electronic contract. After that, the confirmed electronic contract and the second signature of the electronic contract are saved in the tamper-proof database. It should be understood that the tamper-proof database records the contract data and also records the time information when the contract-related data is saved.
[0056] In this step, the contracting party verifies the first signature of the electronic contract to ensure the integrity of the electronic contract and authenticate the source of the electronic contract. It can be seen that signing and verifying the electronic contract can verify whether the contract data has been tampered with during the transmission process, and confirm the identity of the transmitter who uploaded the contract data, ensuring the integrity and authenticity of the data.
[0057] It should be understood that in the present application, the contracting party may be a terminal device used by a contracting party, or multiple terminal devices used by multiple contracting parties. That is, the electronic contract signing may be between a contract initiator and a contracting party, or between a contract initiator and multiple contracting parties. This application does not limit this.
[0058] Step 106: After successfully verifying the latest data in the tamper-proof database, the contract initiator confirms and adds the contract initiator's text signature and the first electronic seal to the electronic contract through the remote online port, and saves the electronic contract carrying the contract initiator's text signature and the first electronic seal, the contract initiator's signing time and the third signature to the tamper-proof database, wherein the third signature is the result of signing the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator; the first electronic seal is related to the electronic contract.
[0059] After the electronic contract is initiated by the contract initiator and saved in the tamper-proof database, the contracting party confirms the contract content and verifies the contract signature. The contracting party signs the electronic contract and saves it in the tamper-proof database. At this point, both parties have completed the verification of the contract content. After that, the contract initiator and the contracting party sign the contract in writing, which is the offline signing process.
[0060] In specific implementation, first, the contract initiator verifies the latest data in the tamper-proof database, that is, the electronic contract with the second signature saved by the contracting party. The contract initiator can use the public key of the contracting party to verify the electronic contract with the second signature, and after the verification is successful, "sign" the electronic contract through the remote online port. The "signature" here can include two parts. First, the contract initiator confirms and adds the text signature of the contract initiator on the electronic contract through the remote online port, and second, the contract initiator adds the first electronic signature to the electronic contract through the remote online port. The text signature can be the name of the initiator or group of the electronic contract, for example, the name of the company or the name of the legal person. The first electronic signature can be a barcode or QR code generated by signing the hash value and current time of the electronic contract based on the private key of the contract initiator. Afterwards, the private key of the contract initiator is used to encrypt the hash value of the electronic contract with the text signature of the contract initiator and the first electronic signature, and obtain the third signature of the contract initiator on the electronic contract. Then, the contract initiator will add the electronic contract with the contract initiator's text signature and the first electronic seal and the third signature, together with the contract initiator's signing time, and save them in an unalterable database.
[0061] Step 108: After the contracting party successfully verifies the latest data in the tamper-proof database, it confirms and adds the contracting party's text signature and second electronic seal to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature to the tamper-proof database, wherein the fourth signature is the result of signing the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party; the second electronic seal is related to the electronic contract signed by the contract initiator.
[0062] Specifically, the contracting party verifies the latest data in the tamper-proof database, that is, the electronic contract with the third signature saved by the contract initiator. The contracting party can use the public key of the contract initiator to verify the electronic contract with the third signature, and after the verification is successful, "sign" the electronic contract that has been "signed" by the contract initiator through the remote online port. Similarly, the "signature" here can include two parts: first, the contracting party adds the text signature of the contracting party to the electronic contract signed by the contract initiator through the remote online port; second, the contracting party adds the second electronic signature to the electronic contract signed by the contract initiator through the remote online port. In this step, the text signature can be the name of the signatory of the electronic contract, for example, the name of a certain employee. The second electronic signature can be a barcode or QR code generated by encrypting the hash value and current time of the electronic contract signed by the contract initiator based on the private key of the contracting party. Afterwards, the hash value of the electronic contract with the text signature and the second electronic signature of the contracting party is encrypted using the private key of the contracting party to obtain the fourth signature of the contracting party on the electronic contract. Then, the contracting party will save the electronic contract with the contracting party's text signature and the second electronic seal and the fourth signature, together with the contracting party's signing time, into an unalterable database.
[0063] Optionally, the contracting party verifies the latest data in the tamper-proof database. Specifically, the public key of the contract initiator can be used to decrypt the third signature saved by the contract initiator in the tamper-proof database; if the decryption is successful, the public key of the contract initiator is used to further decrypt the first electronic signature; if the decryption is successful, the verification is successful.
[0064] Step 110: The contract initiator verifies the signing record saved by the contracting party in the tamper-proof database, and after the verification is passed, determines that the signing of this online contract is completed.
[0065] Specifically, the contract initiator uses the public key of the contracting party to decrypt the fourth signature saved by the contracting party in the tamper-proof database; if the decryption is successful, the public key of the contracting party is used to further decrypt the second electronic signature; if the decryption is successful, the signature verification is passed, confirming that the signing of this online contract is completed.
[0066] In this way, through the online electronic contract signing interactive process between the contract initiator and the contracting party, the electronic contract is signed again after each confirmation and verification of the electronic contract, thereby realizing the confirmation and signing of the electronic contract. The intermediate data generated by the entire contract signing process is stored in an unalterable database, which can prevent the electronic contract from being modified manually, and record the relevant data of the electronic contract in detail and accurately, which is convenient for traceability. Moreover, each signature and verification operation can ensure the reliable transmission of the electronic contract between the contracting party and the contract initiator.
[0067] Reference Figure 2 As shown, it is a schematic diagram of the online contract signing process based on the tamper-proof database provided in an embodiment of the present application.
[0068] like Figure 2 As shown in the figure, the initiator of the contract is the terminal device used by company A, which is marked as company A here; the contracting party is the terminal device used by employee B, which is marked as employee B here. Private key a1 and public key a2 on company A; private key b1 and public key b2 on employee B. All data generated by the electronic contract signing process are stored in the unalterable database. In the actual signing plan, when company A or employee B views the data in the unalterable database, they can access it online through a web link.
[0069] The following signing process only shows the important steps. Other steps not shown can be referred to Figure 1 The relevant content of the embodiment shown.
[0070] Step 202: Company A drafts and generates an electronic contract, signs the electronic contract using private key a1, and saves the electronic contract with the first signature into an unalterable database.
[0071] Step 204: Employee B checks the contract content of the electronic contract carrying the first signature.
[0072] Step 206: After verification, employee B uses public key a2 to verify the electronic contract.
[0073] Step 208: After successful signature verification, employee B signs the electronic contract using private key b1 and saves the electronic contract with the second signature into a tamper-proof database.
[0074] Step 210: Company A uses public key b2 to verify the electronic contract carrying the second signature.
[0075] Step 212: After the signature verification is successful, Company A adds the company name to the electronic contract, as well as the QR code signature generated based on private key a1, and signs the electronic contract using private key a1. The electronic contract carrying the third signature, as well as the company name and QR code signature, is saved together with the signing time in an unalterable database.
[0076] Specifically, Company A can use the canvas technology of the web page to sign online to achieve the purpose of adding the company name. Use canvas technology to add the QR code signature to the electronic contract and save it as an electronic contract image. After that, the electronic contract image signed by Company A, the signing time, and the third signature are saved in an unalterable database.
[0077] Step 214: Employee B uses public key a2 to verify the electronic contract carrying the third signature.
[0078] Step 216: After the signature verification is successful, employee B adds the employee name and the QR code signature generated based on the private key b1 to the electronic contract signed by company A, and signs the electronic contract using the private key b1. The electronic contract carrying the fourth signature, the employee name and the QR code signature, together with the signing time, are saved in an unalterable database.
[0079] Similarly, employee B can also use the canvas technology of the web page to add the employee name and QR code signature.
[0080] In this way, the electronic contract is signed through the above process. After that, company A and employee B can view and obtain the signed electronic contract from the tamper-proof database. It can be seen that the electronic contract signing method is convenient and fast. It only needs to be operated online to complete the contract signing. At the same time, the form of the previous contract is preserved to the maximum extent, and it can be printed into paper if necessary. Moreover, the tamper-proof database and cryptography principles are used to ensure security. Every step of the contract signing can be traced, which is convenient for tracking and tracing.
[0081] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0082] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0083] Figure 3 FIG. 1 shows a structural block diagram of an online contract signing system based on an unalterable database provided by an embodiment of the present application. Figure 3 The online contract signing system 300 based on the tamper-proof database of this embodiment may include a contract initiator 301 , a contracting party 302 , and an tamper-proof database 303 . The contract initiator 301 generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to the tamper-proof database 303; wherein the first signature is the result of encrypting the hash value of the electronic contract based on the private key of the contract initiator 301; after the contracting party 302 checks and confirms that the contract content of the electronic contract is correct through the remote online port, the contracting party 302 verifies the first signature stored in the tamper-proof database using the public key of the contract initiator, and after the verification is passed, the electronic contract and the second signature of the electronic contract are saved to the tamper-proof database 303, wherein the second signature is the result of encrypting the hash value of the electronic contract based on the private key of the contracting party 302; after the contract initiator 301 successfully verifies the latest data in the tamper-proof database 303, it confirms and adds the text signature and the first electronic seal of the contract initiator to the electronic contract through the remote online port, and adds the text signature and the first electronic seal of the contract initiator to the electronic contract, and The signed electronic contract, the signing time of the contract initiator and the third signature are saved in the unalterable database 303, wherein the third signature is the result of encrypting the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator 301; the first electronic signature is related to the electronic contract; after the contracting party 302 successfully verifies the latest data in the unalterable database 303, it confirms and adds the text signature and the second electronic signature of the contracting party to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature in the unalterable database 303, wherein the fourth signature is the result of encrypting the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party 302; the second electronic signature is related to the electronic contract signed by the contract initiator; the contract initiator 301 verifies the signing record saved by the contracting party in the unalterable database 303, and after the verification is passed, it is determined that the online contract is signed.
[0084] It should be noted that part or all of the online contract signing system based on an unalterable database of this embodiment may be an application located in a local terminal, or may also be a functional unit such as a plug-in or software development kit (SDK) set in an application located in a local terminal, or may also be a processing engine located in a network-side server, or may also be a distributed system located on the network side.
[0085] It is understandable that the application may be a local program (nativeApp) installed on the local terminal, or may be a webpage program (webApp) of a browser on the local terminal, which is not limited in this embodiment.
[0086] Optionally, in a possible implementation of this embodiment, the remote online port includes at least the following types: a web page, a mini-program, an email or other APP interface.
[0087] Optionally, in a possible implementation of this embodiment, the first electronic signature is a barcode or QR code generated by encrypting the hash value and current time of the electronic contract based on the private key of the contract initiator; and / or; the second electronic signature is a barcode or QR code generated by encrypting the hash value and current time of the electronic contract signed by the contract initiator based on the private key of the contracting party.
[0088] Optionally, in a possible implementation of this embodiment, when the contract initiator 301 verifies the latest data in the tamper-proof database, it specifically uses the public key of the contracting party 302 to decrypt the second signature saved by the contracting party 302 in the tamper-proof database; if the decryption is successful, the signature verification is successful.
[0089] Optionally, in a possible implementation of this embodiment, when the contracting party 302 verifies the latest data in the tamper-proof database, it specifically uses the public key of the contract initiator 301 to decrypt the third signature saved by the contract initiator 301 in the tamper-proof database; if the decryption is successful, the public key of the contract initiator 301 is used to further decrypt the first electronic signature; if the decryption is successful, the verification is successful.
[0090] Optionally, in a possible implementation of this embodiment, when the contract initiator 301 verifies the signing record saved by the contracting party in the tamper-proof database, it specifically uses the public key of the contracting party to decrypt the fourth signature saved by the contracting party 302 in the tamper-proof database; if the decryption is successful, the public key of the contracting party 302 is used to further decrypt the second electronic signature; if the decryption is successful, the verification is successful.
[0091] In this embodiment, the electronic contract can be generated and signed by the contract initiator and saved in the non-tamperable database. After that, the contracting party checks and confirms the contract content from the non-tamperable database through the remote online port, and then verifies the electronic contract. After the verification is passed, the electronic contract is signed and saved in the non-tamperable database. Then, the contract initiator verifies the latest electronic contract in the non-tamperable database, and after the verification is passed, adds the text signature and the first electronic seal to the electronic contract based on the remote online port, and saves it to the non-tamperable database after signing. Then, the contracting party verifies the latest electronic contract in the non-tamperable database, and after the verification is passed, adds the text signature and the second electronic seal of the contracting party to the signed electronic contract based on the remote online port, and saves it to the non-tamperable database after signing. Finally, the contract initiator verifies the latest electronic contract in the non-tamperable database, and after the verification is passed, it is determined that the online contract is signed. Therefore, the online electronic contract replaces the offline paper contract, which simplifies the contract signing process and is convenient and quick. Moreover, each initiation or receipt of the electronic contract will be verified to ensure the reliable transmission of the electronic contract between the contracting party and the contract initiator. At the same time, each confirmation data and modification data of the electronic contract are recorded in the tamper-proof database to prevent the electronic contract from being modified manually. Moreover, as the recorder of the electronic contract signing process, the tamper-proof database records the relevant data of the electronic contract in detail and accurately, which is convenient for traceability.
[0092] An embodiment of the present application provides a computer-readable storage medium, wherein the storage medium stores at least one instruction, and the at least one instruction is loaded and executed by a processor to implement the online contract signing method based on an unalterable database as described above.
[0093] An embodiment of the present application further provides a terminal device, which can execute the operation steps of the contract initiator. At the same time, an embodiment of the present application further provides a terminal device, which can execute the operation steps of the contracting party.
[0094] An embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the online contract signing method based on an unalterable database as described above.
[0095] An embodiment of the present application provides a computer program product, including a computer program, which is implemented when executed by a processor to implement the online contract signing method based on an unalterable database as described above.
[0096] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the relevant laws and regulations and do not violate public order and good morals.
[0097] Figure 4 A schematic block diagram of an example electronic device 400 that can be used to implement an embodiment of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present application described and / or required herein.
[0098] like Figure 4 As shown, the electronic device 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0099] Multiple components in the electronic device 400 are connected to the I / O interface 405, including: an input unit 406, such as a keyboard, a mouse, etc.; an output unit 407, such as various types of displays, speakers, etc.; a storage unit 408, such as a disk, an optical disk, etc.; and a communication unit 409, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 409 allows the electronic device 400 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0100] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above, such as an online contract signing method based on an unalterable database. For example, in some embodiments, the online contract signing method based on an unalterable database may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 400 via the ROM 402 and / or the communication unit 409. When the computer program is loaded into the RAM 403 and executed by the computing unit 401, one or more steps of the online contract signing method based on the unalterable database described above may be executed. Alternatively, in other embodiments, the computing unit 401 may be configured to execute the online contract signing method based on the tamper-proof database in any other appropriate manner (for example, by means of firmware).
[0101] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0102] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0103] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0104] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0105] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0106] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0107] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps disclosed in this application can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in this application can be achieved, and this document does not limit this.
[0108] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An online contract signing method based on an unalterable database, characterized in that: include: The contract initiator generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to an unalterable database; wherein the first signature is the result of encrypting the hash value of the electronic contract based on the private key of the contract initiator; After the contracting party has checked and confirmed through the remote online port that the contract content of the electronic contract is correct, the contracting party uses the public key of the contract initiator to verify the first signature stored in the tamper-proof database, and after the verification, the electronic contract and the second signature of the electronic contract are stored in the tamper-proof database, wherein the second signature is the result of encrypting the hash value of the electronic contract based on the private key of the contracting party; After the contract initiator successfully verifies the latest data in the tamper-proof database, the contract initiator confirms and adds the text signature and the first electronic seal of the contract initiator to the electronic contract through the remote online port, and saves the electronic contract carrying the text signature and the first electronic seal of the contract initiator, the signing time of the contract initiator and the third signature to the tamper-proof database, wherein the third signature is the result of encrypting the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator; the first electronic seal is related to the electronic contract; After the contracting party successfully verifies the latest data in the tamper-proof database, the contracting party confirms and adds the contracting party's text signature and second electronic seal to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature to the tamper-proof database, wherein the fourth signature is the result of encrypting the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party; the second electronic seal is related to the electronic contract signed by the contract initiator; The contract initiator verifies the signing record saved by the contracting party in the tamper-proof database, and after the verification is passed, it is determined that the signing of this online contract is completed.
2. The method according to claim 1, characterized in that The remote online port includes at least the following types: web page, applet, email or other APP interface.
3. The method according to claim 1, characterized in that The first electronic signature is a barcode or a QR code generated by encrypting the hash value and current time of the electronic contract based on the private key of the contract initiator; and / or; The second electronic signature is a barcode or QR code generated by encrypting the hash value of the electronic contract signed by the contract initiator and the current time based on the private key of the contracting party.
4. The method according to any one of claims 1 to 3, characterized in that: The contract initiator verifies the signature of the latest data in the tamper-proof database, specifically including: The contract initiator uses the public key of the contracting party to decrypt the second signature saved by the contracting party in the tamper-proof database; If the decryption is successful, the signature verification is successful.
5. The method according to claims 1 to 3, characterized in that: The contracting party verifies the latest data in the tamper-proof database, specifically including: The contracting party uses the public key of the contract initiator to decrypt the third signature saved by the contract initiator in the tamper-proof database; If the decryption is successful, the first electronic signature is further decrypted using the public key of the contract initiator; If the decryption is successful, the signature verification is successful.
6. The method according to claims 1 to 3, characterized in that: The contract initiator verifies the contract record saved by the contracting party in the tamper-proof database, specifically including: The contract initiator uses the public key of the contracting party to decrypt the fourth signature saved by the contracting party in the tamper-proof database; If the decryption is successful, the second electronic signature is further decrypted using the public key of the contracting party; If the decryption is successful, the signature verification is successful.
7. An online contract signing system based on an unalterable database, characterized in that: include: The contract initiator, the contracting party and the tamper-proof database; among them, The contract initiator generates an electronic contract based on the drafted contract content, and saves the electronic contract and the first signature of the electronic contract to an unalterable database; wherein the first signature is the result of encrypting the hash value of the electronic contract based on the private key of the contract initiator; After the contracting party has checked and confirmed through the remote online port that the contract content of the electronic contract is correct, the contracting party uses the public key of the contract initiator to verify the first signature stored in the tamper-proof database, and after the verification, the electronic contract and the second signature of the electronic contract are stored in the tamper-proof database, wherein the second signature is the result of encrypting the hash value of the electronic contract based on the private key of the contracting party; After the contract initiator successfully verifies the latest data in the tamper-proof database, the contract initiator confirms and adds the text signature and the first electronic seal of the contract initiator to the electronic contract through the remote online port, and saves the electronic contract carrying the text signature and the first electronic seal of the contract initiator, the signing time of the contract initiator and the third signature to the tamper-proof database, wherein the third signature is the result of encrypting the hash value of the electronic contract signed by the contract initiator based on the private key of the contract initiator; the first electronic seal is related to the electronic contract; After the contracting party successfully verifies the latest data in the tamper-proof database, the contracting party confirms and adds the contracting party's text signature and second electronic seal to the electronic contract signed by the contract initiator through the remote online port, and saves the electronic contract signed by the contracting party, the signing time of the contracting party and the fourth signature to the tamper-proof database, wherein the fourth signature is the result of encrypting the hash value of the electronic contract signed by the contracting party based on the private key of the contracting party; the second electronic seal is related to the electronic contract signed by the contract initiator; The contract initiator verifies the signing record saved by the contracting party in the tamper-proof database, and after the verification is passed, it is determined that the signing of this online contract is completed.
8. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
9. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.
10. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
On-line electronic contract signing and verifying methods, device and system
CN105574435A
Electronic contract signing method and system and electronic equipment
CN112329414A
Electronic contract signature method based on block chain
CN114614990A
Electronic contract verification report application method and system, electronic equipment and medium
CN117273654A
Computer-readable recording medium, contract creation system, contract verification system, and final cipher creation system
US20160292804A1