Electronic document signing and verification method and system based on blockchain to prevent tampering

By combining blockchain technology with handwritten and digital signatures for electronic document signing, the problems of source authentication and non-repudiation of electronic documents are solved, achieving secure and efficient anti-tampering and anti-forgery measures, and avoiding the risks of device dependence and centralized storage associated with traditional methods.

CN115396117BActive Publication Date: 2024-11-08JINAN INSTITUTE OF SUPERCOMPUTING TECHNOLOGY
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202211018730.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2024-11-08
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

Existing methods for preventing the counterfeiting and tampering of electronic documents cannot effectively prove the authenticity of the source, are easily cracked, and rely on the strength of encryption algorithms. Furthermore, traditional digital certificate devices are inconvenient to use and centralized storage poses security risks.

Method used

A blockchain-based electronic document signing method is adopted, which combines handwritten signature and digital signature technologies to generate an asymmetric encryption key pair. The issuer's handwritten signature and digital signature are embedded into the electronic document, and the hash value stored on the blockchain is used for verification to ensure the uniqueness and non-repudiation of the electronic document.

Benefits of technology

It achieves secure, efficient, and convenient authentication of the source of electronic documents and non-repudiation, avoiding the security risks of device dependence and centralized storage of traditional methods, and improving anti-tampering and anti-forgery capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115396117B_ABST
    Figure CN115396117B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of electronic document issuance, and provides a method and system for signing electronic documents based on blockchain to prevent tampering, which is applied to a server, and the method includes: obtaining identity authentication information of the issuing user end for identity authentication, and if the authentication fails, sending the information of the authentication failure to the issuing user end; if the authentication succeeds, generating an asymmetric encrypted issuer public-private key pair, and sending the authentication success information and the issuer private key to the issuing user end, and sending the issuer public key to the blockchain at the same time; collecting the digital signature of the issuing user end and the handwritten signature of the issuer, and embedding them into the electronic document to obtain the signed electronic document; calculating the hash value of the signed electronic document, and sending the signed electronic document and its hash value to the blockchain; obtaining and recording the storage information fed back by the blockchain. The present invention uses handwritten signature and digital signature technology to solve the problems of issuing source authentication and non-repudiation of electronic documents.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic document issuance, and specifically relates to a method and system for signing and verifying electronic documents based on blockchain to prevent tampering. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] In judicial, notarization, arbitration and other case handling systems, electronic documents are increasingly used instead of paper documents to record case information, handling opinions, rulings, etc. Compared with paper documents, electronic documents have the advantages of being simple to fill out, easy to store and convenient to transmit, but at the same time, electronic documents also have the problem of being easily tampered with and difficult to detect.

[0004] Most of the existing methods for anti-counterfeiting and anti-tampering of electronic documents are based on hash algorithms, encryption algorithms, etc. to generate watermarks or QR codes. When checking or verifying, the same calculation method is used to generate hash values ​​or hash values ​​for the electronic documents, and the watermarks or QR codes are reversed and compared for consistency verification.

[0005] Most existing methods cannot solve the following problems:

[0006] It is impossible to prove the authenticity of the source of electronic documents. Electronic documents do not have the unique attribute of marking the source, and it is impossible to determine the unique issuing source, nor can they be non-repudiated.

[0007] Anti-counterfeiting and anti-tampering rely on the strength of encryption algorithms, which are easy to be cracked and attacked. Once the generation method of watermarks or QR codes is known, it is easy to tamper with the original electronic documents and then use the same method to generate new watermarks or QR codes, which can also pass the verification and achieve the purpose of forgery and tampering.

[0008] Although using digital certificates for digital signatures can solve the above problems, they usually have the following disadvantages:

[0009] Special equipment is required. For example, digital certificates are generally stored in hardware devices such as electronic tokens. They are not convenient to use during the issuance and review process, and there is a possibility of theft.

[0010] Generally, it is necessary to connect to the services of a third party. Since the encrypted data of the third-party system used is generally only stored in the third-party system, it is theoretically and practically impossible to guarantee that the data will not be tampered with. Summary of the invention

[0011] In order to solve the above problems, the present invention proposes an electronic document signing and verification method and system based on blockchain to prevent tampering. The present invention uses handwritten signature and digital signature technology to solve the problems of authentication of the issuance source and non-repudiation of electronic documents. Compared with the existing traditional handwriting identification method based solely on handwritten signature, it has the advantages of being safer, more efficient, reliable and convenient; compared with the digital signature technology based solely on digital certificates, it has the advantages of simple access, no reliance on hardware such as U-Shield UKey, and flexibility and convenience.

[0012] According to some embodiments, the first solution of the present invention provides a method for signing an electronic document based on blockchain to prevent tampering, using the following technical solution:

[0013] An electronic document signing method based on blockchain to prevent tampering is applied to a server, and the method includes:

[0014] Obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication fails, send the authentication failure information to the issuing user end;

[0015] If the verification is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and the verification success information and the issuer's private key are sent to the issuing user, and the issuer's public key is sent to the blockchain;

[0016] Collect the digital signature and handwritten signature of the issuer on the issuing user side, and embed them into the electronic document to obtain the signed electronic document;

[0017] Calculate the hash value of the signed electronic document, and send the signed electronic document and its hash value to the blockchain;

[0018] Get the storage information fed back by the blockchain and record it.

[0019] Furthermore, the collecting of the digital signature and the handwritten signature of the issuer of the issuing user terminal and embedding them into the electronic document to obtain the signed electronic document includes:

[0020] Collect the handwritten signature and digital signature of the issuer through the issuing user terminal;

[0021] Decode the handwritten signature of the issuer to obtain the handwritten signature of the issuer in image format;

[0022] Decode the issuer's digital signature to obtain the issuer's digital signature in image format;

[0023] Inserting the issuer's handwritten signature in image format and the issuer's digital signature in image format into the electronic document;

[0024] Get the signed electronic document.

[0025] Furthermore, the issuer's handwritten signature in picture format and the issuer's digital signature in picture format are pictures in binary format; and the electronic document is in PDF format.

[0026] According to some embodiments, the second solution of the present invention provides a method for signing an electronic document based on blockchain to prevent tampering, using the following technical solution:

[0027] The electronic document signing method based on blockchain to prevent tampering is applied to the issuing user end, and the method includes:

[0028] Collect the user verification information of the issuer and send it to the server;

[0029] If the server verification failure message is received, continue to collect the issuer's user verification information and send it to the server;

[0030] If the server verifies successfully, the private key of the issuer is obtained from the server.

[0031] Collect the handwritten signature of the issuer and digitally sign the handwritten signature of the issuer using the issuer's private key;

[0032] The issuer's digital signature and the issuer's handwritten signature are sent to the server so that the server embeds them into the electronic document.

[0033] Furthermore, the collecting of the handwritten signature of the issuer and the digital signing of the handwritten signature of the issuer using the private key of the issuer are specifically as follows:

[0034] Obtain the handwritten signature of the issuer through the issuing user end and convert it into the handwritten signature of the issuer in image format;

[0035] Base64 encode the issuer's handwritten signature in the image format to obtain the final issuer's handwritten signature;

[0036] Based on the handwritten signature of the issuer in the image format, the issuer's private key is called by the signature algorithm for digital signature to obtain the issuer's digital signature in the image format;

[0037] The issuer's digital signature in the image format is Base64-encoded to obtain the final issuer's digital signature.

[0038] Furthermore, the sending of the issuer's digital signature and the issuer's handwritten signature to the server so that the server embeds them into the electronic document is specifically as follows:

[0039] Send the issuer's digital signature and the issuer's handwritten signature to the server;

[0040] So that the server decodes the handwritten signature of the issuer to obtain the handwritten signature of the issuer in a picture format;

[0041] So that the server decodes the issuer's digital signature to obtain the issuer's digital signature in a picture format;

[0042] So that the server inserts the issuer's handwritten signature in picture format and the issuer's digital signature in picture format into the electronic document to obtain the signed electronic document.

[0043] According to some embodiments, a third solution of the present invention provides a method for verifying electronic documents based on blockchain to prevent tampering, using the following technical solution:

[0044] The electronic document verification method based on blockchain to prevent tampering, using the electronic document signed by the electronic document signing method based on blockchain to prevent tampering as described in the first solution or the second solution, is applied to the server, including:

[0045] Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification;

[0046] Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end;

[0047] If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature;

[0048] Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end;

[0049] If the decryption is successful, a verification success message is sent to the issuing user end.

[0050] According to some embodiments, a fourth solution of the present invention provides an electronic document verification method based on blockchain to prevent tampering, using the following technical solution:

[0051] The electronic document verification method based on blockchain to prevent tampering, using the electronic document signed by the electronic document signing method based on blockchain to prevent tampering as described in the first solution or the second solution, is applied to the signing user end, including:

[0052] Collect the signed electronic document and send it to the server for integrity verification;

[0053] If you receive a message indicating that the server verification has failed, it means that the electronic document is forged or tampered with;

[0054] If the server verifies that the document has been successfully verified, the signed electronic document is collected and sent to the server for signature authenticity verification;

[0055] If you receive a verification failure message from the server, it means that the signature data is forged or tampered with;

[0056] If you receive a successful verification message from the server, it means that the signature data is authentic and valid.

[0057] According to some embodiments, a fifth solution of the present invention provides an electronic document signature verification system based on blockchain to prevent tampering, which adopts the following technical solutions:

[0058] An electronic document signature verification system based on blockchain to prevent tampering includes an issuing user terminal, a server, and a receiving user terminal, wherein both the issuing user terminal and the receiving user terminal communicate with the server;

[0059] The server is used to obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and at the same time, the authentication success information and the issuer's private key are sent to the issuing user end, and the issuer's public key is sent to the blockchain;

[0060] The issuing user terminal is used to send identity authentication information to the server, and after receiving the verification success information sent by the server, collect the handwritten signature of the issuer; obtain the issuer's private key sent by the server to digitally sign the handwritten signature of the issuer, and then send the handwritten signature of the issuer and the digital signature of the issuer to the server;

[0061] The signing client is used to collect the signed electronic document and send it to the server, so that the server can perform integrity verification and signature authenticity verification on the signed electronic document.

[0062] Furthermore, the server performs integrity verification and signature authenticity verification on the signed electronic document, including:

[0063] Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification;

[0064] Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end;

[0065] If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature;

[0066] Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end;

[0067] If the decryption is successful, a verification failure message is sent to the issuing user end.

[0068] Compared with the prior art, the present invention has the following beneficial effects:

[0069] The present invention utilizes handwritten signature and digital signature technology to solve the problems of issuing source authentication and non-repudiation of electronic documents. Compared with the existing traditional handwriting identification method based solely on handwritten signature, it has the advantages of being safer, more efficient, reliable and convenient. Compared with the digital signature technology based solely on digital certificates, it has the advantages of simple access, no reliance on hardware such as U-Shield UKey, and flexibility and convenience.

[0070] The present invention utilizes blockchain technology to store hash values ​​of electronic documents with handwritten signatures, thereby realizing tamper-proof and anti-forgery protection for electronic documents. The distributed ledger storage and consensus algorithm application of blockchain make it difficult to forge and tamper with even if the calculation method of the hash summary algorithm and the encryption algorithm are known, which is safer than watermark or QR code methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0072] Figure 1 It is a flow chart of the method for signing an electronic document based on blockchain to prevent tampering as described in Embodiments 1 and 2 of the present invention;

[0073] Figure 2 This is a flow chart of user registration performed by the issuer at the issuing user terminal as described in Embodiments 1 and 2 of the present invention;

[0074] Figure 3 This is a flow chart of the electronic document verification method based on blockchain to prevent tampering as described in Embodiments 3 and 4 of the present invention. DETAILED DESCRIPTION

[0075] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0076] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0077] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0078] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0079] The present invention relates to various fields that require anti-counterfeiting and anti-tampering of electronic documents, including but not limited to business fields such as justice, finance, notarization, arbitration, etc., and involves the technical field of information systems that utilize electronic documents such as evidence storage, document delivery, and document management and need to ensure the authenticity, legality and validity of electronic documents.

[0080] The technical problems to be solved by the present invention are:

[0081] 1) Conveniently solve the problem of document source authentication and ensure the authenticity and authority of electronic documents;

[0082] 2) Solve the problem that it is difficult to identify forgery and tampering after the original text is tampered with using the same hash algorithm and encryption algorithm to generate a watermark or QR code;

[0083] 3) Solve the problems of centralized storage and reliance on specialized hardware devices for traditional digital signatures.

[0084] Embodiment 1

[0085] like Figure 1-Figure 2 As shown, this embodiment provides a method for signing an electronic document based on blockchain to prevent tampering. The specific scheme is as follows:

[0086] An electronic document signing method based on blockchain to prevent tampering is applied to a server, and the method includes:

[0087] Obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication fails, send the authentication failure information to the issuing user end;

[0088] If the verification is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and the verification success information and the issuer's private key are sent to the issuing user, and the issuer's public key is sent to the blockchain;

[0089] Collect the digital signature and handwritten signature of the issuer on the issuing user side, and embed them into the electronic document to obtain the signed electronic document;

[0090] Calculate the hash value of the signed electronic document, and send the signed electronic document and its hash value to the blockchain;

[0091] Get the storage information fed back by the blockchain and record it.

[0092] The collecting of the digital signature and the handwritten signature of the issuer of the issuing user terminal and embedding them into the electronic document to obtain the signed electronic document includes:

[0093] Collect the handwritten signature and digital signature of the issuer through the issuing user terminal;

[0094] Decode the handwritten signature of the issuer to obtain the handwritten signature of the issuer in image format;

[0095] Decode the issuer's digital signature to obtain the issuer's digital signature in image format;

[0096] Inserting the issuer's handwritten signature in image format and the issuer's digital signature in image format into the electronic document;

[0097] Get the signed electronic document.

[0098] Embodiment 2

[0099] According to some embodiments, this embodiment provides a method for signing an electronic document based on blockchain to prevent tampering, using the following technical solutions:

[0100] The electronic document signing method based on blockchain to prevent tampering is applied to the issuing user end, and the method includes:

[0101] Collect the user verification information of the issuer and send it to the server;

[0102] If the server verification failure message is received, continue to collect the issuer's user verification information and send it to the server;

[0103] If the server verifies successfully, the private key of the issuer is obtained from the server.

[0104] Collect the handwritten signature of the issuer and digitally sign the handwritten signature of the issuer using the issuer's private key;

[0105] The issuer's digital signature and the issuer's handwritten signature are sent to the server so that the server embeds them into the electronic document.

[0106] Specifically, the handwritten signature of the issuer is collected and digitally signed using the issuer's private key, specifically:

[0107] Obtain the handwritten signature of the issuer through the issuing user end and convert it into the handwritten signature of the issuer in image format;

[0108] Base64 encode the issuer's handwritten signature in the image format to obtain the final issuer's handwritten signature;

[0109] Based on the handwritten signature of the issuer in the image format, the issuer's private key is called by the signature algorithm for digital signature to obtain the issuer's digital signature in the image format;

[0110] The issuer's digital signature in the image format is Base64-encoded to obtain the final issuer's digital signature.

[0111] The signature algorithm adopts an algorithm in the prior art, such as DSA or ECDSA.

[0112] It should be noted that the purpose of Base64 encoding is to convert the issuer's handwritten signature in image format and the issuer's digital signature in image format into a string format for easy sending to the server.

[0113] The image format here is png format or other binary format.

[0114] Furthermore, the sending of the issuer's digital signature and the issuer's handwritten signature to the server so that the server embeds them into the electronic document is specifically as follows:

[0115] Send the issuer's digital signature and the issuer's handwritten signature to the server;

[0116] So that the server decodes the handwritten signature of the issuer to obtain the handwritten signature of the issuer in a picture format;

[0117] So that the server decodes the issuer's digital signature to obtain the issuer's digital signature in a picture format;

[0118] So that the server inserts the issuer's handwritten signature in picture format and the issuer's digital signature in picture format into the electronic document to obtain the signed electronic document.

[0119] Among them, the electronic document is in PDF format.

[0120] Embodiment 3

[0121] like Figure 3 As shown, this embodiment provides an electronic document verification method based on blockchain to prevent tampering, using the following technical solutions:

[0122] The electronic document verification method based on blockchain to prevent tampering, using the signed electronic document obtained by the electronic document signing method based on blockchain to prevent tampering as described in the first solution or the second solution, is applied to the server, including:

[0123] Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification;

[0124] Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end;

[0125] If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature;

[0126] Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end;

[0127] If the decryption is successful, a verification failure message is sent to the issuing user end.

[0128] Embodiment 4

[0129] This embodiment provides a blockchain-based electronic document verification method for preventing tampering, using the following technical solutions:

[0130] The electronic document verification method based on blockchain to prevent tampering, using the electronic document signed by the electronic document signing method based on blockchain to prevent tampering as described in the first solution or the second solution, is applied to the signing user end, including:

[0131] Collect the signed electronic document and send it to the server for integrity verification;

[0132] If you receive a message indicating that the server verification has failed, it means that the electronic document is forged or tampered with;

[0133] If the server verifies that the document has been successfully verified, the signed electronic document is collected and sent to the server for signature authenticity verification;

[0134] If you receive a verification failure message from the server, it means that the signature data is forged or tampered with;

[0135] If you receive a successful verification message from the server, it means that the signature data is authentic and valid.

[0136] Embodiment 5

[0137] This embodiment provides a blockchain-based electronic document signature verification system to prevent tampering, using the following technical solutions:

[0138] An electronic document signature verification system based on blockchain to prevent tampering includes an issuing user terminal, a server, and a receiving user terminal, wherein both the issuing user terminal and the receiving user terminal communicate with the server;

[0139] The server is used to obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and at the same time, the authentication success information and the issuer's private key are sent to the issuing user end, and the issuer's public key is sent to the blockchain;

[0140] The issuing user terminal is used to send identity authentication information to the server, and after receiving the verification success information sent by the server, collect the handwritten signature of the issuer; obtain the issuer's private key sent by the server to digitally sign the handwritten signature of the issuer, and then send the handwritten signature of the issuer and the digital signature of the issuer to the server;

[0141] The signing client is used to collect the signed electronic document and send it to the server, so that the server can perform integrity verification and signature authenticity verification on the signed electronic document.

[0142] The server performs integrity verification and signature authenticity verification on the signed electronic document, including:

[0143] Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification;

[0144] Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end;

[0145] If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature;

[0146] Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end;

[0147] If the decryption is successful, a verification success message is sent to the issuing user end.

[0148] Specifically, the working method of the system described in this embodiment is as follows:

[0149] (1) Authenticate the signature operator’s identity by receiving a verification code or performing facial recognition verification via a certified mobile phone number;

[0150] (2) After identity authentication, an asymmetric encryption public key and private key pair unique to the operator are generated. The public key and user information are stored on the blockchain using the blockchain’s tamper-proof and decentralized public query characteristics, and the private key is stored on the operator’s mobile device, such as a mobile phone.

[0151] It should be noted that when a user registers, an asymmetric encryption public key and private key pair exclusive to the user (operator) is generated, but real identity authentication is required during registration. Therefore, an asymmetric encryption public key and private key pair are generated only during registration and after the real identity authentication is passed.

[0152] If the real identity authentication fails during registration, the registration fails and no key pair is generated.

[0153] And asymmetric encryption public and private keys are only generated once.

[0154] (3) When issuing case acceptance notices, generating rulings for case decisions, or issuing other electronic notices with legal effect, the signatory or publisher scans the QR code with a mobile phone or uses a mobile phone APP to enter the handwritten signature collection page or module to collect the user's real signature handwriting. The signatory can be distinguished by handwriting to prevent proxy signing. In addition, there is no need for hardware support such as "U-Shield" or handwriting tablets, which solves the problems of traditional electronic signature docking and usage difficulties;

[0155] (4) The user's handwritten signature (if necessary, the signature time data obtained from the National Time Service Center can be added) is digitally signed using the asymmetric encryption private key stored on the issuer's mobile phone or other mobile device;

[0156] (5) The handwritten signature and the signature data encrypted with the private key are embedded in the original electronic document, and the hash value is calculated using the hash digest algorithm. It should be noted that the method for calculating the hash value is a general hash digest algorithm, such as SHA256 or the national encryption SM3 algorithm. Its characteristic is that a hash value of a fixed length can be output by inputting an original text of any length, and any slight change in the original text will also significantly change the output hash value.

[0157] The electronic document is generated by the server. The original handwritten signature generated at the user's issuing end and the digital signature data encrypted with the private key are sent to the server and then embedded in the original electronic document and synthesized with it.

[0158] (6) storing the hash value of the electronic document (including the original electronic document if necessary) in the distributed ledger of the blockchain system;

[0159] ※If the electronic document has confidentiality or access control requirements, the original electronic document can be encrypted using an encryption algorithm and then stored.

[0160] (7) Based on the characteristics of blockchain data that cannot be deleted once it is uploaded to the chain and is traceable and tamper-proof, when relevant parties question the authenticity of an electronic document or need to verify the electronic document for anti-counterfeiting and anti-tampering, the hash value of the original electronic document to be verified is obtained through the hash digest algorithm, and the calculated hash value is compared with the hash value when it is stored on the blockchain;

[0161] (8) If the hash value comparison passes, it means that the electronic document with the handwritten signature data has not been forged or tampered with and is consistent with the original text when it was uploaded to the chain;

[0162] (9) The embedded digital signature data of the issuer encrypted with the issuer's private key is extracted from the electronic document, and the issuer's public key is obtained from the blockchain for decryption. If the decryption is correct, the issuer's original electronic signature data (and issuance time data) is obtained, which can be used to determine and verify the identity of the issuer of the electronic document; if the decryption cannot be correct, it is determined that the issuer's data is forged or the electronic document is illegally issued.

[0163] The arbitrators shall examine the arbitration case in writing and issue a written award. The main process includes:

[0164] 1) Arbitrator registration and case handling system, which allocates accounts and generates asymmetric public and private key pairs;

[0165] 2) The arbitrators shall examine the arbitration case in writing, review the defense and evidence of each party, and then issue a written award;

[0166] 3) The arbitrator scans the QR code to jump to the handwritten signature page or uses the relevant module of the mobile APP to prepare to sign the award;

[0167] 4) Identity verification through mobile phone verification code or face recognition;

[0168] 5) The arbitrator signs via the touch screen of his / her mobile phone;

[0169] 6) The private key on the arbitrator’s mobile phone is retrieved to digitally sign the handwritten signature. The award with the arbitrator’s handwritten signature and digital signature is transferred to the auditor for review;

[0170] 7) If the review is correct, the electronic document of the award with the arbitrator’s handwritten signature and digital signature will be hashed and stored on the blockchain, and the electronic document of the award will be sent to the applicant and the respondent by email;

[0171] 8) After receiving the electronic version of the ruling, the applicant and the respondent can verify the authenticity and whether the ruling has been tampered with by verifying whether the hash value of the electronic version is consistent with the hash value stored on the blockchain through the blockchain-based evidence storage system;

[0172] 9) The arbitrator’s digital signature is decrypted using the public key of the arbitrator stored on the blockchain to obtain the handwritten signature for comparison to verify whether it was issued by the arbitrator himself.

[0173] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A method for signing electronic documents based on blockchain to prevent tampering, characterized in that: Applied on a server, the method comprises: Obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication fails, send the authentication failure information to the issuing user end; If the verification is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and the verification success information and the issuer's private key are sent to the issuing user, and the issuer's public key is sent to the blockchain; Collect the digital signature and handwritten signature of the issuer on the issuing user side, and embed them into the electronic document to obtain the signed electronic document; Calculate the hash value of the signed electronic document, and send the signed electronic document and its hash value to the blockchain; Obtain and record the storage information fed back by the blockchain; The collecting of the digital signature and the handwritten signature of the issuer of the issuing user terminal and embedding them into the electronic document to obtain the signed electronic document includes: Collect the handwritten signature and digital signature of the issuer through the issuing user terminal; Decode the handwritten signature of the issuer to obtain the handwritten signature of the issuer in image format; Decode the issuer's digital signature to obtain the issuer's digital signature in image format; Inserting the issuer's handwritten signature in image format and the issuer's digital signature in image format into the electronic document; Get the signed electronic document; The issuer's handwritten signature in picture format and the issuer's digital signature in picture format are pictures in binary format; the electronic document is in PDF format.

2. A method for signing electronic documents based on blockchain to prevent tampering, characterized in that: Applied to the issuing user end, the method includes: Collect the user verification information of the issuer and send it to the server; If the server verification failure message is received, continue to collect the issuer's user verification information and send it to the server; If the server verifies successfully, the private key of the issuer is obtained from the server. Collect the handwritten signature of the issuer and digitally sign the handwritten signature of the issuer using the issuer's private key; Sending the issuer's digital signature and the issuer's handwritten signature to the server so that the server embeds them into the electronic document; The collecting of the handwritten signature of the issuer and the digital signing of the handwritten signature of the issuer using the private key of the issuer are specifically as follows: Obtain the handwritten signature of the issuer through the issuing client and convert it into the handwritten signature of the issuer in image format; Base64 encode the issuer's handwritten signature in the image format to obtain the final issuer's handwritten signature; Based on the handwritten signature of the issuer in the image format, the issuer's private key is called by the signature algorithm for digital signature to obtain the issuer's digital signature in the image format; Base64 encode the issuer's digital signature in the image format to obtain the final issuer's digital signature; The sending of the issuer's digital signature and the issuer's handwritten signature to the server so that the server embeds them into the electronic document is specifically as follows: Send the issuer's digital signature and the issuer's handwritten signature to the server; So that the server decodes the handwritten signature of the issuer to obtain the handwritten signature of the issuer in a picture format; So that the server decodes the issuer's digital signature to obtain the issuer's digital signature in a picture format; So that the server inserts the issuer's handwritten signature in picture format and the issuer's digital signature in picture format into the electronic document to obtain the signed electronic document.

3. A method for verifying electronic documents based on blockchain to prevent tampering, characterized in that: The signed electronic document obtained by the blockchain-based tamper-proof electronic document signing method as claimed in any one of claims 1 or 2 is applied to a server, including: Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification; Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end; If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature; Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end; If the decryption is successful, a verification success message is sent to the issuing user end.

4. A method for verifying electronic documents based on blockchain to prevent tampering, characterized in that: The signed electronic document obtained by the blockchain-based tamper-proof electronic document signing method as claimed in any one of claims 1 or 2 is applied to the signing user end, including: Collect the signed electronic document and send it to the server for integrity verification; If you receive a message indicating that the server verification has failed, it means that the electronic document is forged or tampered with; If the server verifies that the document has been successfully verified, the signed electronic document is collected and sent to the server for signature authenticity verification; If you receive a verification failure message from the server, it means that the signature data is forged or tampered with; If you receive a successful verification message from the server, it means that the signature data is authentic and valid.

5. The electronic document signature verification system based on blockchain to prevent tampering is characterized by: It includes a signing user terminal, a server and a signing user terminal, and both the signing user terminal and the signing user terminal communicate with the server; The server is used to obtain the identity authentication information of the issuing user end to perform identity authentication. If the authentication is successful, an asymmetrically encrypted public-private key pair of the issuer is generated, and at the same time, the authentication success information and the issuer's private key are sent to the issuing user end, and the issuer's public key is sent to the blockchain; The issuing user terminal is used to send identity authentication information to the server, and after receiving the verification success information sent by the server, collect the handwritten signature of the issuer; Obtain the issuer's private key sent by the server to digitally sign the issuer's handwritten signature, and then send the issuer's handwritten signature and the issuer's digital signature to the server; The server decodes the handwritten signature of the issuer to obtain the handwritten signature of the issuer in image format; Decode the issuer's digital signature to obtain the issuer's digital signature in image format; Inserting the issuer's handwritten signature in image format and the issuer's digital signature in image format into the electronic document; Get the signed electronic document; The signing client is used to collect the signed electronic document and send it to the server, so that the server can perform integrity verification and signature authenticity verification on the signed electronic document; The issuer's handwritten signature in picture format and the issuer's digital signature in picture format are pictures in binary format; the electronic document is in PDF format.

6. The electronic document signature verification system based on blockchain to prevent tampering as claimed in claim 5 is characterized in that: The server performs integrity verification and signature authenticity verification on the signed electronic document, including: Obtain the electronic document signed by the issuing client, and calculate the hash value of the signed electronic document for integrity verification; Obtain the hash value of the electronic document stored on the blockchain and compare it with the hash value of the signed electronic document. If the comparison is inconsistent, send a verification failure message to the issuing user end; If the comparison is consistent, the electronic document signed by the issuing user is obtained, and the handwritten signature and digital signature of the issuer on the signed electronic document are extracted to verify the authenticity of the signature; Obtain the issuer's public key on the blockchain, and use the issuer's public key to decrypt the issuer's digital signature. If the decryption fails, send a verification failure message to the issuing user end; If the decryption is successful, a verification success message is sent to the issuing user end.

Citation Information

Cited By

  • Encrypted autonomous agent verification in multi-tiered distributed systems of third party agents

    US12556493B2

  • Encrypted autonomous agent verification in multi-tiered distributed systems of third party agents

    US12803927B2

  • Encrypted autonomous agent verification in multi-tiered distributed systems of third party agents

    US20260019380A1