A blockchain-based electronic data notarization method and device

By generating the identity information of users and notarization agencies on the blockchain deposit certificate, and using the IPFS file system to encrypted electronic data, the problems such as data tampering and integrity damage in the existing technology in the existing technology have been solved, and the electronics The credibility, integrity and security of data.

CN112711637BActive Publication Date: 2025-01-24AISINO CORPORATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011622160.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2025-01-24
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

The prior art has problems such as data tampering, integrity damage, transmission defects and incomplete evidence in electronic data storage, making it difficult for data to provide technical credibility, integrity and security.

Method used

Adopt a blockchain -based electronic data notarization method, generate the identity information of users and notarized agencies through the blockchain deposit certificate platform, use the IPFS file system to encrypt and store electronic data, generate evidence numbers and perform digital envelopes and encryption, use user private key signatures Upload to the blockchain to form a user's evidence library, and the notarization agency is notarized and decrypted by a notarized agency to generate an electronic certificate.

Benefits of technology

It achieves the uniqueness, traceability and anti-tampering of electronic data, improves the credibility and integrity of data, reduces the number of transfers and changes, and meets the needs of data storage, fairness and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112711637B_ABST
    Figure CN112711637B_ABST
Patent Text Reader

Abstract

The invention discloses a blockchain-based electronic data notarization method and device, including: a blockchain evidence storage platform generates user and notary agency identity information, encrypts the user's electronic data and stores it in an IPFS file system, and returns the ipfs-hash of the electronic data to the user; generates an evidence number according to the electronic data, encrypts the user's electronic data with a public key as a digital envelope, and calculates the hash value of the electronic data; combines the evidence number, the digital envelope, the ipfs-hash and the hash value of the electronic data into a data packet and signs it with the user's private key to form the user's evidence library; the user obtains the evidence number and the electronic data encryption key with the digital envelope on the blockchain; the notary agency obtains the public key, performs notarization authorization and decryption operations on the evidence; after the notary agency obtains the evidence notarization application and authorization, the electronic data of the evidence is obtained by decryption, the electronic data is hashed and notarized, and an electronic notarial certificate is generated. The credibility and authenticity of the electronic evidence are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain, and specifically to a blockchain-based electronic data notarization method, and also to a blockchain-based electronic data notarization device. Background Art

[0002] As an integrated application of distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm and other technologies, blockchain is considered to be a disruptive innovation in computing mode after mainframes, personal computers and the Internet, and may cause a new technological innovation and industrial change on a global scale. In traditional technology, evidence storage is just to store electronic data in a centralized service system in the form of backup, and the probability of electronic data being tampered with and the risk of integrity being destroyed will inevitably increase. In addition, since electronic data is prone to defects, breakpoints, incomplete evidence and other failures during transmission, electronic data is very easy to be destroyed. This not only places high technical requirements on the third-party evidence storage platform, but also requires reducing the number of transfers and handovers in the generation, storage, storage and subsequent use of electronic data. Therefore, how to provide a technical evidence storage and fair method with data credibility, content integrity and process security is an urgent problem to be solved. Summary of the invention

[0003] To solve the above problems, this application provides a blockchain-based electronic data notarization method, including:

[0004] The blockchain evidence storage platform generates identity information of the user and the notary agency, and uploads the identity information and public key information to the blockchain;

[0005] The user's electronic data is encrypted and stored in the IPFS file system, and the ipfs-hash of the electronic data is returned to the user;

[0006] Generate an evidence number based on the electronic data, encrypt the encryption key of the user's electronic data with the user's public key to perform digital envelope encryption, and calculate the hash value of the electronic data; combine the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and sign it with the user's private key, upload the signed data packet to the blockchain, and form the user's evidence library;

[0007] The user selects the evidence to be notarized and the corresponding notary agency in the evidence library, and obtains the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notary agency obtains the public key to perform notarization authorization and decryption operations on the evidence;

[0008] After receiving the application and authorization for evidence notarization, the notarial agency obtains the electronic data of the evidence by decryption, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

[0009] Preferably, after the step of generating the identity information of the user and the notary agency on the blockchain evidence storage platform, the process further includes:

[0010] The user and the notary agency obtain the corresponding public and private key pairs.

[0011] Preferably, the user's electronic data is encrypted and stored in the IPFS file system, and the ipfs-hash is returned to the user, including:

[0012] The user's electronic data is encrypted using an input or automatically generated encryption key;

[0013] The electronic data is encrypted and stored in the IPFS file system, and the encrypted electronic data is identified by ipfs-hash;

[0014] Return ipfs-hash to the user.

[0015] Preferably, after the step of performing hash notarization on the electronic data, the method further includes:

[0016] Perform notarization on electronic data by comparing it with the original document and update the notarization status.

[0017] Preferably, it also includes:

[0018] Users can check the notarization status during the notarization acceptance period;

[0019] After the notarization is completed, you can view the electronic notarial certificate.

[0020] This application also provides a blockchain-based electronic data notarization device, including:

[0021] The identity information and public key information uploading unit generates the identity information of the user and the notary agency on the blockchain storage platform, and uploads the identity information and public key information to the blockchain;

[0022] The electronic data storage unit stores the user's electronic data in the IPFS file system after encryption, and returns the ipfs-hash of the electronic data to the user;

[0023] The evidence library formation unit generates an evidence number based on the electronic data, uses the user's public key to encrypt the encryption key of the user's electronic data in a digital envelope, and calculates the hash value of the electronic data; combines the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and signs it with the user's private key, and uploads the signed data packet to the blockchain to form the user's evidence library;

[0024] The authorization and decryption unit of evidence, the user selects the evidence to be notarized and the corresponding notary agency in the evidence library, and obtains the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notary agency obtains the public key to perform notarization authorization and decryption operations on the evidence;

[0025] The electronic notarial certificate generation unit, after receiving the application and authorization for evidence notarization, the notarial agency obtains the electronic data of the evidence by decrypting it, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

[0026] Preferably, the identity information and public key information uploading unit includes:

[0027] The public and private key pair acquisition subunit, the user and the notary agency obtain the corresponding public and private key pairs.

[0028] Preferably, the electronic data storage unit comprises:

[0029] The encryption subunit encrypts the user's electronic data by inputting or automatically generating an encryption key;

[0030] Identification subunit, electronic data is encrypted and stored in the IPFS file system, and the encrypted electronic data is identified by ipfs-hash;

[0031] Return the subunit and return ipfs-hash to the user.

[0032] Preferably, the electronic notarial certificate generating unit includes:

[0033] The status update subunit performs notarization on the electronic data by comparing it with the original document and updates the notarization status.

[0034] Preferably, it also includes:

[0035] Status query unit, users can query the notarization status during the notarization acceptance period;

[0036] The certificate viewing unit allows you to view the electronic notarial certificate after the notarization acceptance is completed. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flowchart of a blockchain-based electronic data notarization method provided by this application;

[0038] Figure 2 This is the electronic data encryption and evidence storage flow chart involved in this application;

[0039] Figure 3 This is the electronic data authorization and decryption flow chart involved in this application;

[0040] Figure 4 This is the electronic data notarization flow chart involved in this application;

[0041] Figure 5 This is a schematic diagram of a blockchain-based electronic data notarization device provided by this application. DETAILED DESCRIPTION

[0042] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0043] This application provides a blockchain-based electronic data notarization method, such as Figure 1 As shown, the following steps are included:

[0044] Step S101, the blockchain evidence storage platform generates identity information of the user and the notary agency, and uploads the identity information and public key information to the blockchain.

[0045] Individual or corporate users, users of certificate issuing agencies, etc. generate personal / corporate and authoritative notary agency identity information on the blockchain evidence storage platform respectively. Users and notary agencies obtain the corresponding public and private key pairs and upload the identity information and public key information to the chain.

[0046] Step S102, encrypt the user's electronic data and store it in the IPFS file system, and return the ipfs-hash of the electronic data to the user.

[0047] Individuals or corporate users upload electronic data (files, images, videos, audio, summaries, etc.), encrypt the electronic data by entering or automatically generating an encryption key, and store the encrypted electronic data in the IPFS file system. The encrypted electronic data is identified by ipfs-hash, and the ipfs-hash (the unique identifier of the data in the file system) is returned to the user.

[0048] Step S103, generate an evidence number based on the electronic data, use the user's public key to encrypt the encryption key of the user's electronic data in a digital envelope, and calculate the hash value of the electronic data; combine the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and sign it with the user's private key, upload the signed data packet to the blockchain, and form the user's evidence library.

[0049] Generate an evidence number based on the electronic data, encrypt the encryption key of the user's electronic data with the user's public key to encrypt the digital envelope, calculate the hash value of the electronic data, combine the certificate number, digital envelope, ipfs-hash, hash of the electronic data, and detailed information on the electronic data into a data package and sign it with the user's private key, upload it to the blockchain network, complete the evidence storage, and form the user's evidence library.

[0050] In step S104, the user selects the evidence to be notarized and the corresponding notary agency in the evidence library, and obtains the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notary agency obtains the public key to perform notarization authorization and decryption operations on the evidence.

[0051] The user (enterprise / individual) selects the evidence to be notarized, selects the corresponding authoritative notary agency, queries the evidence information to be notarized on the blockchain, obtains its evidence number and the electronic data encryption key with a digital envelope. The notary agency obtains the public key of the authoritative notary agency through the evidence number and the identity information of the authoritative notary agency, and performs the notarization authorization decryption operation of the electronic data of the evidence.

[0052] Step S105, after receiving the application and authorization for evidence notarization, the notary agency obtains the electronic data of the evidence by decryption, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

[0053] After receiving the notarization application and authorization, the notarization agency decrypts and obtains the electronic data of the evidence. It performs hash notarization on the electronic data, compares the original file with the notarization, updates the notarization status, and generates an electronic notarization certificate.

[0054] Users can check the notarization status during the notarization acceptance period; after the notarization acceptance is completed, they can view the electronic notarial certificate.

[0055] Electronic data encryption and evidence storage process Figure 2 As shown:

[0056] 1. Users upload electronic data (files, pictures, videos, audio).

[0057] 2. Obtain the file hash based on the electronic data and generate the evidence number.

[0058] 3. Generate the encryption key for the electronic data.

[0059] 4. Use the encryption key key to encrypt the electronic data with sm4. The encrypted file is encrypted with base64 encoding and uploaded to the ipfs file system (private network). The ifps file system returns the unique identifier ipfs-hash.

[0060] 5. Use the user's public key to encrypt the encryption key of the electronic data.

[0061] 6. Upload the evidence number, electronic data hash, ipfs-hash, and encrypted key to the blockchain network for chaining.

[0062] Electronic data authorization and decryption process Figure 3 As shown:

[0063] User electronic data authorization:

[0064] 1. The user obtains the encrypted key corresponding to the electronic data through the user name and evidence number.

[0065] 2. The user uses his own private key to decrypt the electronic data encryption key key and obtain the plaintext of the key.

[0066] 3. When the user chooses a notary agency to notarize, the public key of the corresponding notary agency will be returned to the user. The user uses the public key of the notary agency to encrypt the key, update the electronic evidence information on the blockchain, and append the key after the public key agency has made it confidential, so as to realize the notary agency's authorization to access the electronic data.

[0067] Decryption of electronic data by notarial institutions:

[0068] 1. The notary agency obtains the corresponding encrypted key through the evidence number and the name of the notary agency.

[0069] 2. The notary agency uses its own private key to decrypt the encrypted key and obtain the plaintext key.

[0070] 3. The notary agency uses the plaintext key to decrypt the ipfs electronic file and obtain the file stream.

[0071] 4. The notary agency downloads the file stream and obtains the source file.

[0072] The process of electronic data notarization is as follows: Figure 4 As shown:

[0073] Hash notarization:

[0074] 1. The user chooses a notary agency to initiate notarization of evidence.

[0075] 2. The notary agency verifies that the evidence has not been tampered with from the date of deposit to the date of notarization, and compares the ipfs-hash with the ipfs-hash on the chain. If the data is equal, it has not been tampered with, otherwise it has been tampered with.

[0076] 3. After the notarization is completed, the verification results will be encrypted and uploaded to the chain. Only the user and the notary agency can view the verification results. The encryption authorization is the same as the electronic data authorization process.

[0077] 4. After the notarization is passed, a notarization report with a seal will be provided to the user.

[0078] Based on the same inventive concept, the present application also provides a blockchain-based electronic data notarization device 500, such as Figure 5 As shown, including:

[0079] The identity information and public key information uploading unit 510, the blockchain evidence storage platform generates the identity information of the user and the notary agency, and uploads the identity information and public key information to the blockchain;

[0080] The electronic data storage unit 520 stores the user's electronic data in the IPFS file system after encryption, and returns the ipfs-hash of the electronic data to the user;

[0081] The evidence library forming unit 530 generates an evidence number according to the electronic data, uses the user's public key to encrypt the encryption key of the user's electronic data in a digital envelope, and calculates the hash value of the electronic data; combines the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and signs it with the user's private key, and uploads the signed data packet to the blockchain to form the user's evidence library;

[0082] Evidence authorization and decryption unit 540, the user selects the evidence to be notarized and the corresponding notary agency in the evidence library, and obtains the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notary agency obtains the public key to perform notarization authorization and decryption operations on the evidence;

[0083] The electronic notarial certificate generating unit 550, after receiving the evidence notarization application and authorization, the notarial agency obtains the electronic data of the evidence by decrypting it, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

[0084] Preferably, the identity information and public key information uploading unit includes:

[0085] The public and private key pair acquisition subunit, the user and the notary agency obtain the corresponding public and private key pairs.

[0086] Preferably, the electronic data storage unit comprises:

[0087] The encryption subunit encrypts the user's electronic data by inputting or automatically generating an encryption key;

[0088] Identification subunit, electronic data is encrypted and stored in the IPFS file system, and the encrypted electronic data is identified by ipfs-hash;

[0089] Return the subunit and return ipfs-hash to the user.

[0090] Preferably, the electronic notarial certificate generating unit includes:

[0091] The status update subunit performs notarization on the electronic data by comparing it with the original document and updates the notarization status.

[0092] Preferably, it also includes:

[0093] Status query unit, users can query the notarization status during the notarization acceptance period;

[0094] The certificate viewing unit allows you to view the electronic notarial certificate after the notarization acceptance is completed.

[0095] This application provides a blockchain-based electronic data notarization method and device, which can provide electronic data storage, fixation, verification and demonstration services for enterprises or individuals, and ensure the uniqueness, traceability and tamper-proof of the stored electronic data. Based on blockchain and IPFS technology, encryption and privacy protection are performed in the process of electronic data storage business, and business connections are established between enterprises and authoritative institutions such as notary offices, which can not only provide new notarization services for notary offices, but also meet the new technology application and supervision requirements of the competent authorities. In this way, enterprises can reduce operating costs, optimize work processes and improve work efficiency.

[0096] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the specific implementation modes of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be included in the scope of the claims of the present invention.

Claims

1. A blockchain-based electronic data notarization method, characterized in that: include: The blockchain evidence storage platform generates identity information of the user and the notary agency, and uploads the identity information and public key information to the blockchain; The user's electronic data is encrypted and stored in the IPFS file system, and the ipfs-hash of the electronic data is returned to the user; Generate an evidence number based on the electronic data, encrypt the encryption key of the user's electronic data with the user's public key to perform digital envelope encryption, and calculate the hash value of the electronic data; combine the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and sign it with the user's private key, upload the signed data packet to the blockchain, and form the user's evidence library; The user selects the evidence to be notarized and the corresponding notary agency in the evidence library, and obtains the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notary agency obtains the public key and performs notarization authorization and decryption operations on the evidence; After receiving the application and authorization for evidence notarization, the notarial agency obtains the electronic data of the evidence by decryption, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

2. The method according to claim 1, characterized in that After the blockchain evidence storage platform generates the identity information of users and notary agencies, it also includes: The user and the notary agency obtain the corresponding public and private key pairs.

3. The method according to claim 1, characterized in that The user's electronic data is encrypted and stored in the IPFS file system, and the ipfs-hash is returned to the user, including: The user's electronic data is encrypted using an input or automatically generated encryption key; The electronic data is encrypted and stored in the IPFS file system, and the encrypted electronic data is identified by ipfs-hash; Return ipfs-hash to the user.

4. The method according to claim 1, characterized in that After the steps of hashing and notarizing the electronic data, it also includes: Perform notarization on electronic data by comparing it with the original document and update the notarization status.

5. The method according to claim 1, characterized in that Also includes: Users can check the notarization status during the notarization acceptance period; After the notarization is completed, you can view the electronic notarial certificate.

6. An electronic data notarization device based on blockchain, characterized in that: include: The identity information and public key information uploading unit generates the identity information of the user and the notary agency on the blockchain storage platform, and uploads the identity information and public key information to the blockchain; The electronic data storage unit stores the user's electronic data in the IPFS file system after encryption, and returns the ipfs-hash of the electronic data to the user; The evidence library formation unit generates an evidence number based on the electronic data, uses the user's public key to encrypt the encryption key of the user's electronic data in a digital envelope, and calculates the hash value of the electronic data; combines the evidence number, digital envelope, ipfs-hash and the hash value of the electronic data into a data packet and signs it with the user's private key, and uploads the signed data packet to the blockchain to form the user's evidence library; The authorization and decryption unit of evidence: users select the evidence to be notarized and the corresponding notarization agency in the evidence library, and obtain the evidence number and the electronic data encryption key with a digital envelope on the blockchain; the notarization agency obtains the public key and performs notarization authorization and decryption operations on the evidence; The electronic notarial certificate generation unit, after receiving the application and authorization for evidence notarization, the notarial agency obtains the electronic data of the evidence by decrypting it, performs hash notarization on the electronic data, and generates an electronic notarial certificate.

7. The device according to claim 6, characterized in that Identity information and public key information uploading unit, including: The public and private key pair acquisition subunit, the user and the notary agency obtain the corresponding public and private key pairs.

8. The device according to claim 6, characterized in that An electronic data storage unit comprising: Encryption subunit, the user's electronic data is encrypted by input or automatically generated encryption keys; Identification subunit, electronic data is encrypted and stored in the IPFS file system, and the encrypted electronic data is identified by ipfs-hash; Return the subunit and return ipfs-hash to the user.

9. The device according to claim 6, characterized in that The electronic notarial certificate generation unit includes: The status update subunit performs notarization on the electronic data by comparing it with the original document and updates the notarization status.

10. The device according to claim 6, characterized in that Also includes: Status query unit, users can query the notarization status during the notarization acceptance period; The certificate viewing unit allows you to view the electronic notarial certificate after the notarization acceptance is completed.

Citation Information

Patent Citations

  • Evidence storage method based on alliance chain, case filing method and related equipment

    CN111696006A

  • Decentralized Data Marketplace

    US20200058023A1