An electronic certificate service system, method, device, medium and equipment

Through the combination of blockchain technology and interstellar file system, the data sharing and security issues in the traditional electronic license system are solved, the secure storage and credibility of electronic licenses are realized, and reliable data sharing across regions and departments is ensured. .

CN114692174BActive Publication Date: 2024-08-27AISINO CORPORATION +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011604193.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-30
Publication Date
2024-08-27
Estimated Expiration
2040-12-30

AI Technical Summary

Technical Problem

The traditional centralized electronic license system has difficulties in data sharing, poor security, and risks of tampering and intrusion, making it difficult to guarantee the credibility and security of electronic licenses.

Method used

Using blockchain technology and the Interstellar File System, electronic license documents are encrypted through the license issuance node and uploaded to the Interstellar File System. Smart contracts and blockchain networks are used for access control to ensure safe storage and non-tampering of electronic licenses.

Benefits of technology

It improves the storage security of electronic certificates, avoids illegal tampering and use, enhances the credibility and security of data, and achieves reliable data sharing across regions and departments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692174B
    Figure CN114692174B
Patent Text Reader

Abstract

The present invention relates to an electronic certificate service system, method, device, medium and equipment. The certificate issuing node can encrypt and save the electronic certificate file to IPFS upon request, and carry the first hash value obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in IPFS, and the second hash value obtained by performing a hash operation on the electronic certificate file information in the access control smart contract, and save it to the blockchain system. By encrypting the electronic certificate file and combining the storage of the encrypted electronic certificate file by the blockchain system and IPFS, the security of the storage of the electronic certificate file is ensured, and the electronic certificate is prevented from being illegally tampered with and used. A certificate library platform system that realizes the on-chain storage of certificates of each issuing party, the privacy protection of certificates, the authorized use of the certificate owner, and the supervised access to the certificate library is realized, which helps the certificate data management and the certificate data sharing and business collaboration between departments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to an electronic certificate service system, method, device, medium and equipment. Background Art

[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] At present, the country is vigorously promoting the electronicization of certificates and actively promoting the application of electronic certificates in government services. By establishing an electronic certificate database, it is possible to achieve cross-regional and cross-departmental sharing of electronic certificates and mutual trust and recognition across the country, and use information technology to solve the problems faced by applicants in obtaining, using and verifying certificates.

[0004] Traditional solutions mostly use centralized systems, where a centralized organization collects and stores the certificate data generated by various business departments and shares it with certificate-using units, enterprises and individuals. However, due to the long-term independence of various government business departments, imperfect infrastructure construction, and lack of security for shared data, it has always been a bottleneck problem that is difficult to solve for cross-regional and cross-departmental information sharing, posing a great challenge to the collection and sharing of electronic certificates. At the same time, centralized systems are subject to the risk of data tampering, falsification and intrusion, which further makes it difficult to ensure the credibility and security of electronic certificates. Summary of the invention

[0005] The embodiments of the present invention provide an electronic certificate service system, method, apparatus, medium and device for solving the problem of poor security in the storage of electronic certificates.

[0006] In a first aspect, the present invention provides an electronic certificate service system, the system comprising a certificate holder node, a certificate issuing node, an interplanetary file system and a blockchain network, wherein:

[0007] The certificate holder node is used to send a certificate information blockchain storage request to the certificate issuing node;

[0008] The certificate issuing node is used to generate an electronic certificate file corresponding to the certificate information blockchain saving request according to the certificate information blockchain saving request, encrypt the electronic certificate file and upload the encrypted electronic certificate file to the interplanetary file system; send the smart contract configured according to the access control policy to the blockchain network, the access control policy is used to control the access to the encrypted electronic certificate file uploaded to the interplanetary file system, the smart contract includes a first hash value and a second hash value, the first hash value is returned by the interplanetary file system, and is a hash value obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; and send the received saving result notification message returned by the blockchain network to the certificate holding subject node;

[0009] The interplanetary file system is used to store the received encrypted electronic certificate file and return the first hash value to the certificate issuing node;

[0010] The blockchain network is used to save the received smart contract sent by the certificate issuing node, and return a saving result notification message to the certificate issuing node, wherein the saving result notification message carries the smart contract address information.

[0011] In a second aspect, the present invention further provides an electronic certificate service method, the method comprising:

[0012] Receive the certificate information blockchain preservation request sent by the certificate holder's subject node;

[0013] Generate an electronic certificate file corresponding to the certificate information blockchain storage request according to the certificate information blockchain storage request;

[0014] Encrypting the electronic certificate file and uploading the encrypted electronic certificate file to the Interstellar File System;

[0015] Sending a smart contract configured according to an access control policy to the blockchain network, wherein the access control policy is used to control access to the encrypted electronic certificate file uploaded to the interplanetary file system, wherein the smart contract includes a first hash value and a second hash value, wherein the first hash value is a hash value returned by the interplanetary file system and obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information;

[0016] The received storage result notification message returned by the blockchain network is sent to the certificate holder node, and the storage result notification message carries the smart contract address information.

[0017] In a third aspect, the present invention further provides an electronic certificate service device, the device comprising:

[0018] The receiving module is used to receive a request for saving the certificate information on the blockchain sent by the certificate holder's subject node; and to receive a saving result notification message returned by the blockchain network.

[0019] A generation module, configured to generate an electronic certificate file corresponding to the certificate information blockchain storage request according to the certificate information blockchain storage request;

[0020] An encryption upload module, used for encrypting the electronic certificate file and uploading the encrypted electronic certificate file to the Interstellar File System;

[0021] A sending module is used to send a smart contract configured according to an access control policy to the blockchain network, wherein the access control policy is used to control access to the encrypted electronic certificate file uploaded to the interplanetary file system, and the smart contract includes a first hash value and a second hash value, wherein the first hash value is a hash value returned by the interplanetary file system, obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; the saving result notification message received by the receiving module is sent to the certificate holding subject node, and the saving result notification message carries the smart contract address information.

[0022] In a fourth aspect, the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores an executable program, and the executable program is executed by a processor to implement the method as described above.

[0023] In a fifth aspect, the present invention further provides an electronic certificate service device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0024] The memory is used to store computer programs;

[0025] The processor is used to implement the above-mentioned method steps when executing the program stored in the memory.

[0026] According to the solution provided by the embodiment of the present invention, the certificate issuing node can encrypt the electronic certificate file and save it to the interplanetary file system according to the request of the certificate holder subject node, and carry the first hash value obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value obtained by performing a hash operation on the electronic certificate file information in the smart contract configured according to the access control policy, and save it to the blockchain system. By encrypting the electronic certificate file and combining the storage of the encrypted electronic certificate file by the blockchain system and the interplanetary file system, the security of the storage of the electronic certificate file is ensured, and the electronic certificate is prevented from being illegally tampered with and used.

[0027] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0029] Figure 1 A schematic diagram of the structure of an electronic certificate service system provided by an embodiment of the present invention;

[0030] Figure 2 A schematic diagram of the departmental hierarchy provided in an embodiment of the present invention;

[0031] Figure 3 A schematic diagram of the architecture of an electronic certificate service system provided by an embodiment of the present invention;

[0032] Figure 4 A timing diagram for uploading an electronic certificate to a chain provided by an embodiment of the present invention;

[0033] Figure 5 A schematic diagram of the electronic certificate sharing process provided by an embodiment of the present invention;

[0034] Figure 6 A timing diagram of the use of an electronic certificate provided in an embodiment of the present invention;

[0035] Figure 7 A schematic diagram of the process of an electronic certificate service method provided by an embodiment of the present invention;

[0036] Figure 8A schematic diagram of the structure of an electronic certificate service device provided by an embodiment of the present invention;

[0037] Fig. 9 A schematic diagram of the structure of an electronic certificate service device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] It should be noted that the "multiple or several" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0040] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein.

[0041] In addition, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or elements is not necessarily limited to those steps or elements explicitly listed, but may include other steps or elements not explicitly listed or inherent to such process, method, product, or apparatus.

[0042] In order to improve the security of electronic certificate storage, this application proposes that blockchain technology can be used to build a blockchain, such as a consortium chain, with the certificate issuing department, certificate supervision department, and certificate use department as key nodes, to achieve an electronic certificate platform system for each certificate issuing department to store electronic certificates on the chain and protect privacy, to help certificate data management and certificate data sharing and business collaboration between departments. Based on the technical characteristics of blockchain technology such as distributed, tamper-proof, traceable, open and transparent, and smart contracts, this application can realize a blockchain electronic certificate solution, which can serve as an effective supplement to the current centralized certificate system.

[0043] Among them, the present application can use the Interplanetary File System (IPFS) to store encrypted electronic certificate files, and store the hash value corresponding to the storage location information returned by IPFS and the hash value of the electronic certificate in the blockchain network through an access control smart contract to ensure that the electronic certificate data cannot be tampered with, and can greatly reduce the waste of resources caused by distributed storage of certificate data on the chain, thereby improving the management and operation efficiency of the system.

[0044] In addition, this application can achieve dynamic authorization of access to electronic certificates based on access control of smart contracts, simplify the authentication process when users query multiple electronic certificates in the information systems of various departments, and ensure that electronic certificate access operations are fully recorded, supervised, and authorized for use by certificate owners.

[0045] In addition, this application also defines the content of electronic certificate storage, and can use the identity-based broadcast encryption system (IBBE) as a privacy protection tool to achieve certificate data sharing and supervision of various types of electronic certificates while ensuring the security and privacy of electronic certificates.

[0046] Based on the above inventive concept, an embodiment of the present invention provides an electronic certificate service system, the structure of which can be as follows: Figure 1 As shown, it includes the certificate holder node 01, the certificate issuing node 02, the interplanetary file system 03 and the blockchain network 04, where:

[0047] The certificate holder node 01 is used to send a certificate information blockchain storage request to the certificate issuing node;

[0048] The certificate issuing node 02 is used to generate an electronic certificate file corresponding to the certificate information blockchain saving request according to the certificate information blockchain saving request, encrypt the electronic certificate file and upload the encrypted electronic certificate file to the interplanetary file system; send the smart contract configured according to the access control policy to the blockchain network, the access control policy is used to control the access to the encrypted electronic certificate file uploaded to the interplanetary file system, the smart contract includes a first hash value and a second hash value, the first hash value is a hash value returned by the interplanetary file system, and is obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; and send the received saving result notification message returned by the blockchain network to the certificate holding subject node;

[0049] The interplanetary file system 03 is used to store the received encrypted electronic certificate file and return the first hash value to the certificate issuing node;

[0050] The blockchain network 04 is used to save the received smart contract sent by the certificate issuing node, and return a saving result notification message to the certificate issuing node, wherein the saving result notification message carries the smart contract address information.

[0051] That is, in the solution provided in this embodiment, secure storage of encrypted electronic certificates can be achieved through IPFS and blockchain networks.

[0052] In a possible implementation, the certificate issuing node encrypting the electronic certificate file may include: encrypting the electronic certificate file through an identity-based broadcast encryption system.

[0053] That is, in the solution provided in this embodiment, encryption of electronic certificate files can be achieved through an identity-based broadcast encryption system.

[0054] Furthermore, in a possible implementation scheme, the certificate holding subject node 01 can also be used to access the smart contract from the blockchain network according to the smart contract address information carried in the received saving result notification message, and obtain the encrypted electronic certificate file from the interstellar file system according to the first hash value in the smart contract; decrypt the encrypted electronic certificate file through an identity-based broadcast encryption system to obtain a decrypted electronic certificate file; determine whether the hash value of the electronic certificate file obtained after decryption is consistent with the second hash value in the smart contract, and if they are consistent, determine that the decrypted electronic certificate file is a valid electronic certificate file.

[0055] That is, in the solution provided in this embodiment, the functions of the electronic certificate service system may also include functions such as enabling the node corresponding to the certificate holder to query the stored electronic certificates through access control.

[0056] In addition, in a possible implementation, the system may further include a certificate use subject node 05:

[0057] The certificate use subject node 05 is used to send a certificate acquisition request to the blockchain network; when receiving the electronic certificate sent by the certificate holding subject node, it sends a verification information acquisition request to the blockchain network, and when receiving the second hash value returned by the blockchain network and determining that the hash value of the received electronic certificate file is consistent with the second hash value, it determines that the received electronic certificate file is a valid electronic certificate file;

[0058] The blockchain network 04 is also used to access the corresponding smart contract according to the certificate acquisition request, and when it is determined that the certificate use subject node is allowed to obtain the electronic certificate corresponding to the certificate acquisition request, send a certificate download request to the certificate holding subject node;

[0059] The certificate holding subject node 01 is also used to access the smart contract from the blockchain network according to the certificate download request and the smart contract address information carried in the received saving result notification message, and obtain the encrypted electronic certificate file from the interstellar file system according to the first hash value in the smart contract, decrypt it through the identity-based broadcast encryption system, and send the decrypted electronic certificate file to the certificate use subject node.

[0060] That is, in the solution provided in this embodiment, the functions of the electronic certificate service system may also include realizing, through access control, the query of the stored electronic certificate by the node corresponding to the certificate user under the authorization of the certificate holder.

[0061] In addition, in a possible implementation, the system may further include a license supervision node 06:

[0062] The certificate supervision node 06 is used to send a certificate supervision request to the certificate issuing node; according to the received smart contract address information, access the smart contract from the blockchain network, and according to the first hash value in the smart contract, obtain the encrypted electronic certificate file from the interstellar file system; decrypt the encrypted electronic certificate file through the identity-based broadcast encryption system to obtain the decrypted electronic certificate file; determine whether the hash value of the electronic certificate file obtained after decryption is consistent with the second hash value in the smart contract, and if they are consistent, determine that the decrypted electronic certificate file is a valid electronic certificate file;

[0063] The license issuing node 02 is also used to send the smart contract address information to the license takeover node according to the license supervision request.

[0064] That is, in the solution provided in this embodiment, the functions of the electronic certificate service system may also include enabling the corresponding nodes of the regulatory department to query and verify the stored electronic certificates through access control.

[0065] Of course, in the solution provided in this embodiment, the certificate issuing node 02 can also update the encrypted electronic certificate file uploaded to the interplanetary file system. For example, when the electronic certificate file expires, the electronic certificate file is updated, and the corresponding smart contract saved in the blockchain network can be updated. The update process of the electronic certificate file is similar to the first upload process of the electronic certificate file, and the update process of the smart contract is similar to the first save process of the smart contract. This embodiment will not be further described.

[0066] It can be understood that in the solution provided in this embodiment, the functions of the electronic certificate service system can also include maintenance functions such as updating the stored electronic certificates by the nodes corresponding to the certificate issuing department through access control.

[0067] In the solution provided in this embodiment, the certificate issuance node is responsible for publishing the electronic certificate information on the chain. The certificate issuance department corresponding to the certificate issuance node can be any national department that can issue certificates, such as the public security department, social security department, civil affairs department, tax department, etc. The certificate holder corresponding to the certificate holding subject node can be any certificate owner such as an enterprise or an individual. The certificate user corresponding to the certificate user subject node can be any certificate user such as an enterprise, an individual, a social organization or a national department. The certificate supervision department corresponding to the certificate supervision node can be, but is not limited to, any national department specified by the certificate issuance node. And if Figure 1 As shown, in an electronic certificate service system, multiple certificate usage subject nodes and multiple supervision nodes may be included.

[0068] In the solution provided by the embodiment of the present invention, the certificate issuing node is responsible for publishing the electronic certificate on the chain, and compiling relevant information, such as the issuing department, certificate type, certificate holder information, certificate template, photo information, etc. into a blockchain electronic certificate file. After adding the access rights of the certificate holder, regulatory department, etc., the electronic certificate file is encrypted through identity-based broadcast encryption technology and stored in IPFS, and the first hash value used to address the encrypted electronic certificate file and the second hash value that can prove the integrity of the electronic certificate (the hash value can be calculated using a domestic hash algorithm, such as SM3) are stored in the electronic certificate authority control smart contract on the chain.

[0069] In addition, in the solution provided in the embodiment of the present invention, in view of the complex hierarchical relationship among the certificate issuing departments, the access rights of electronic certificates can be opened to the upper-level supervision nodes through identity-based broadcast encryption privacy tools, thereby realizing internal penetrating supervision of the certificate issuing departments and reducing the access control pressure of a single node.

[0070] The departmental hierarchy diagram can be, but is not limited to, Figure 2 As shown in the figure, under the national license issuing department, various provincial license issuing departments can be included. Figure 2 It is assumed that the license issuing departments in Province A, Province B, Province C and Province D are included. Under each provincial license issuing department, each municipal license issuing department can be included. Figure 2It is assumed that the license issuing departments of Province A include the license issuing departments of City A1 and City A2, the license issuing departments of Province B include the license issuing departments of City B1, the license issuing departments of Province C include the license issuing departments of City C1, and the license issuing departments of Province D include the license issuing departments of City D1 and City D2.

[0071] At this time, if the A2 city license issuing department issues an electronic certificate, the A2 city license issuing department can be used as the license issuing department, the A province license issuing department and the national license issuing department can be used as the license supervision department, and the A2 city license issuing department, the A province license issuing department, the national license issuing department and the certificate holder can be used as electronic certificate users, and their permissions can be embedded in the ciphertext through IBBE.

[0072] The following is a brief description of the process of encrypting (embedding permissions) and decrypting electronic certificate files through an identity-based broadcast encryption system.

[0073] After receiving a request to save the certificate information on the blockchain, the certificate issuing node can specify a set of electronic certificate user identifiers with various permissions, such as query permissions, for the generated electronic certificate file (for example, an electronic certificate file in PDF format) (which can be denoted as S, where the electronic certificate users in S may include the certificate issuing department, the certificate holder, the certificate user, the certificate supervision department, etc.).

[0074] After generating a symmetric encryption key (which can be recorded as K), the certificate issuing node can use S and the public key of the broadcast encryption system (which can be recorded as PK) to encapsulate K to obtain a ciphertext header (which can be recorded as Hdr), and can use K to encrypt the generated electronic certificate file to obtain an encrypted electronic certificate file (which can be recorded as C). After sending C to IPFS for storage, the second hash value returned by IPFS (which can be used to find the encrypted electronic certificate file in IPFS), the calculated first hash value (which can be used to perform consistency verification of the electronic certificate file), S and Hdr can be written into the smart contract and sent to the blockchain network to achieve storage in the blockchain system.

[0075] The certificate issuing department, certificate holder, certificate user and certificate supervision department can apply for the private key (which can be recorded as SK) corresponding to their own identification (ID, such as domain name, organization name, email address or any string information) through the existing identity-based broadcast encryption system. And based on their own ID, SK, Hdr, S and PK on the chain, they can decrypt K from Hdr. When they find the corresponding C in IPFS through the first hash value on the chain, they can use K to decrypt C and obtain the electronic certificate file.

[0076] The architecture diagram of the electronic certificate service system can be shown as follows: Figure 3 As shown, it can be understood as including the infrastructure layer, application support layer, business application layer and user and service layer.

[0077] Among them, the infrastructure layer can be understood as the blockchain basic network composed of each node of the blockchain network and other supporting resources such as computing, storage, network, and security hardware.

[0078] The application support layer is mainly used to provide an interface service system for the electronic certificate service system, and can provide basic electronic certificate support services such as unified identity authentication, electronic certificate management, smart contract access control, and privacy protection.

[0079] The business application layer can be understood as including electronic certificate issuance system, comprehensive management system and public service platform, etc.

[0080] The service objects of the user and service layer may include certificate issuance, regulatory departments, business systems that use electronic certificates, as well as individual and corporate users, etc.

[0081] It should be noted that the certificate holder can query, download, and print electronic certificates through the electronic certificate service system, and can show electronic certificates to the staff of public management and service agencies in accordance with laws and regulations to prove their identity, qualifications, etc. The certificate user (including individuals or corporate users) can submit service requests to the integrated management system through the public service platform. After authorization by the certificate holder, the certificate holder will pass the relevant electronic certificates to the certificate user.

[0082] The functions of the electronic certificate service system include management functions such as chain-up, query, and verification of electronic certificates. The certificate issuing department can complete the certificate issuance through the electronic certificate issuance system, and at the request of the certificate holder (i.e. the certificate holder), through the integrated management system, encrypt the electronic certificate information with privacy protection, save the encrypted file to IPFS, and upload the first hash value and the second hash value to the blockchain network to realize the chain storage of electronic certificates.

[0083] In the solution provided by the embodiment of the present invention, the certificate holder can initiate a request to upload to the blockchain. The certificate issuing department will fill in the issuing department, certificate type, certificate holder information, certificate template, photo information, etc. to form an electronic certificate file, which will be encrypted and stored in IPFS. The access control smart contract for the electronic certificate is deployed on the blockchain network, and the hash value of the electronic certificate consistency check and the hash value of the storage address returned by IPFS are written into the smart contract. The timing of the issuance and upload of electronic certificates can be as follows: Figure 4 As shown, including:

[0084] Step 101: The certificate holder node sends a certificate information blockchain storage request to the certificate issuing node.

[0085] Step 102: The certificate issuing node generates an electronic certificate file corresponding to the certificate information blockchain storage request, and uses IBBE to specify the access rights of the electronic certificate user, and then encrypts the corresponding electronic certificate file.

[0086] Step 103: The certificate issuing node encrypts the electronic certificate file and uploads it to IPFS.

[0087] In this step, the certificate issuing node can encrypt the electronic certificate file through IBBE and upload it to IPFS.

[0088] Step 104: IPFS saves the encrypted electronic certificate file to the distributed nodes of IPFS.

[0089] Step 105: IPFS returns the hash value corresponding to the IPFS storage address information of the encrypted electronic certificate file to the certificate issuing node, that is, the first hash value.

[0090] Step 106: The certificate issuing node calculates the hash value of the electronic certificate file, that is, the second hash value.

[0091] Step 107: The certificate issuing node deploys the access control smart contract corresponding to the access control policy, and writes the first hash value and the second hash value into the smart contract.

[0092] Step 108: The blockchain network saves the received smart contract and implements the writing of the smart contract into the blockchain network.

[0093] Step 109: The blockchain network returns a saving result notification message to the license issuing node, and the saving result notification message carries the smart contract address information.

[0094] Step 110: The certificate issuing node returns a saving result notification message to the certificate holding subject node.

[0095] In the solution provided by the embodiment of the present invention, the certificate issuing node can create a corresponding access control policy for each electronic certificate to control all operations from the issuer, the certificate holder, and the supervisor to access the electronic certificate, and present it in the form of blockchain transactions to achieve transparent supervision of the certificate use process. The electronic certificate sharing process based on smart contracts can be as follows: Figure 5 As shown, including:

[0096] Step 201: The upper-layer business application system receives an access request from an electronic certificate user.

[0097] Step 202: The upper-level business application system determines the identity of the electronic certificate user.

[0098] If it is determined that the electronic certificate user is the issuer or the holder, since both the issuer and the holder have the smart contract address information, the corresponding functions can be directly supported, including the issuer's maintenance functions such as updating the electronic certificate, and the holder's query, download and print functions. If it is determined that the electronic certificate user is the regulator, the regulator can obtain the smart contract address information from the issuer to support the corresponding functions, including the regulator's query, verification and other regulatory functions of the electronic certificate.

[0099] If it is determined that the electronic certificate user is the certificate user, step 203 may be continued to implement functions of supporting the certificate user to query and verify the electronic certificate.

[0100] Step 203: The smart contract determines whether the configured access control policy allows the user to access.

[0101] If it is determined to be allowed, step 204 can be continued, otherwise, this process can be ended.

[0102] Step 204: The blockchain network sends an authorization request to the certificate holder, and the certificate holder node downloads the electronic certificate file and feeds it back to the certificate user node.

[0103] Step 205: The certificate usage subject node verifies the legitimacy of the electronic certificate file.

[0104] If the verification is successful, it is determined that the received electronic certificate file is a valid electronic certificate file, and this process can be ended. If the verification is unsuccessful, it is determined that the received electronic certificate file is an invalid electronic certificate file, and this process can also be ended.

[0105] The following further describes the process of using the electronic certificate by the user. Figure 6 As shown, including:

[0106] Step 301: The certificate usage subject node sends a certificate acquisition request to the blockchain network.

[0107] Step 302: The blockchain network access smart contract determines whether the certificate usage subject node is allowed to obtain the electronic certificate file corresponding to the certificate acquisition request.

[0108] If it is determined to be allowed, step 303 can be continued, otherwise, this process can be ended.

[0109] Step 303: The blockchain network sends a certificate download request to the certificate holder's node.

[0110] In this step, the blockchain network can send a certificate download request to the certificate holder's main node to request the certificate holder's main node to authorize the download of the electronic certificate file.

[0111] Step 304: The certificate holder subject node determines whether to allow the certificate user subject node to obtain the electronic certificate file.

[0112] If it is determined to be allowed, step 305 can be continued, otherwise, this process can be ended.

[0113] Step 305: The certificate holder node sends a certificate download request to IPFS.

[0114] In this step, the certificate holder's node can access the smart contract and send a certificate download request to IPFS based on the first hash value in the smart contract.

[0115] Step 306: IPFS returns the encrypted electronic certificate file to the certificate holder's main node.

[0116] Step 307: The certificate holder node decrypts the encrypted electronic certificate file.

[0117] Step 308: The certificate holding subject node feeds back the electronic certificate file obtained after decryption to the certificate using subject node.

[0118] Step 309: The certificate usage subject node requests the blockchain network to obtain verification information.

[0119] Step 310: The blockchain network returns verification information to the certificate user node.

[0120] The returned verification information can be understood to include the second hash value to verify the consistency of the electronic certificate file.

[0121] Step 311: The certificate usage subject node performs a legitimacy check based on the second hash value.

[0122] If it is determined that the hash value of the received electronic certificate file is consistent with the second hash value, it is determined that the legality check passes and the received electronic certificate file is a valid electronic certificate file; otherwise, it is determined that the electronic certificate file is an invalid electronic certificate file.

[0123] The embodiment of the present invention further provides an electronic certificate service method, which can be applied to a certificate issuance node, and the steps can be as follows: Figure 7 As shown, including:

[0124] Step 401: Receive a request for saving the certificate information on the blockchain sent by the certificate holder's subject node.

[0125] In this step, the certificate issuing node can receive the certificate information blockchain preservation request sent by the certificate holding subject node.

[0126] Step 402: Generate an electronic certificate file corresponding to the certificate information blockchain storage request based on the certificate information blockchain storage request.

[0127] In this step, the certificate issuing node can compile relevant information, such as issuing department, certificate type, certificate holder information, certificate template, photo information, etc., into a blockchain electronic certificate file based on the certificate information blockchain storage request, and generate an electronic certificate file corresponding to the certificate information blockchain storage request.

[0128] Step 403: Encrypt the electronic certificate file and upload the encrypted electronic certificate file to the Interstellar File System.

[0129] In one possible implementation, the certificate issuing node can encrypt the electronic certificate file through an identity-based broadcast encryption system and upload the encrypted electronic certificate file to IPFS.

[0130] Step 404: Send the smart contract configured according to the access control policy to the blockchain network, where the smart contract includes the first hash value and the second hash value.

[0131] In this step, the certificate issuing node can send a smart contract configured according to an access control policy to the blockchain network. The access control policy is used to control access to the encrypted electronic certificate file uploaded to the InterPlanetary File System, and the smart contract includes a first hash value and a second hash value.

[0132] Among them, the first hash value is the hash value returned by the InterPlanetary File System, which is obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the InterPlanetary File System. The encrypted electronic certificate file can be subsequently addressed in IPFS based on the first hash value. The second hash value is the hash value obtained by performing a hash operation on the electronic certificate file information. The consistency check of the electronic certificate file can be subsequently implemented based on the second hash value.

[0133] Step 405: Send the received saving result notification message returned by the blockchain network to the certificate holder's node.

[0134] In this step, the saved result notification message returned by the received blockchain network after the smart contract is deployed can be sent to the license holder's main node. The saved result notification message carries the smart contract address information, so that the subsequent license issuing node and the license holder's main node can access the smart contract according to the address information of the smart contract.

[0135] Corresponding to the provided method, the following device is further provided.

[0136] The embodiment of the present invention provides an electronic certificate service device, the structure of which can be as follows: Figure 8 As shown, including:

[0137] The receiving module 11 is used to receive a request for saving the certificate information on the blockchain sent by the certificate holder's subject node; and to receive a saving result notification message returned by the blockchain network.

[0138] The generating module 12 is used to generate an electronic certificate file corresponding to the certificate information blockchain saving request according to the certificate information blockchain saving request;

[0139] The encryption upload module 13 is used to encrypt the electronic certificate file and upload the encrypted electronic certificate file to the interstellar file system;

[0140] The sending module 14 is used to send the smart contract configured according to the access control policy to the blockchain network, wherein the access control policy is used to control access to the encrypted electronic certificate file uploaded to the interplanetary file system, and the smart contract includes a first hash value and a second hash value, wherein the first hash value is a hash value returned by the interplanetary file system, and is obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; the saving result notification message received by the receiving module is sent to the certificate holding subject node, and the saving result notification message carries the smart contract address information.

[0141] Optionally, the encryption uploading module 13 encrypts the electronic certificate file, including: encrypting the electronic certificate file through an identity-based broadcast encryption system.

[0142] The functions of each functional unit of each device provided in the above embodiments of the present invention can be implemented through the steps of the above corresponding methods. Therefore, the specific working process and beneficial effects of each functional unit in each device provided in the embodiments of the present invention are not repeated here.

[0143] Based on the same inventive concept, the embodiments of the present invention provide the following devices and media.

[0144] The embodiment of the present invention provides an electronic certificate service device, the structure of which can be as follows: Fig. 9 As shown, it includes a processor 21, a communication interface 22, a memory 23 and a communication bus 24, wherein the processor 21, the communication interface 22, and the memory 23 communicate with each other through the communication bus 24;

[0145] The memory 23 is used to store computer programs;

[0146] The processor 21 is used to implement the steps described in the above method embodiment of the present invention when executing the program stored in the memory.

[0147] Optionally, the processor 21 may specifically include a central processing unit (CPU), an application specific integrated circuit (ASIC), may be one or more integrated circuits for controlling program execution, may be a hardware circuit developed using a field programmable gate array (FPGA), or may be a baseband processor.

[0148] Optionally, the processor 21 may include at least one processing core.

[0149] Optionally, the memory 23 may include a read-only memory (ROM), a random access memory (RAM) and a disk memory. The memory 23 is used to store data required by at least one processor 21 when running. The number of memories 23 may be one or more.

[0150] An embodiment of the present invention further provides a non-volatile computer storage medium, wherein the computer storage medium stores an executable program. When the executable program is executed by a processor, the method provided by the above method embodiment of the present invention is implemented.

[0151] In the specific implementation process, the computer storage medium may include: Universal Serial Bus Flash Drive (USB), mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other storage media that can store program codes.

[0152] In the embodiments of the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the units or division of units are only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0153] The functional units in the embodiment of the present invention may be integrated into one processing unit, or the units may be independent physical modules.

[0154] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the technical solution of the embodiment of the present invention can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device, such as a personal computer, a server, or a network device, or a processor to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: a Universal Serial Bus Flash Drive, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and other media that can store program codes.

[0155] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0156] The present invention is described with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0157] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0158] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0159] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0160] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. An electronic certificate service system, It is characterized in that The system includes a certificate holder node, a certificate issuing node, an interplanetary file system and a blockchain network, wherein: The certificate holder node is used to send a certificate information blockchain storage request to the certificate issuing node; The certificate issuing node is used to generate an electronic certificate file corresponding to the certificate information blockchain saving request according to the certificate information blockchain saving request, encrypt the electronic certificate file and upload the encrypted electronic certificate file to the interplanetary file system; send the smart contract configured according to the access control policy to the blockchain network, the access control policy is used to control the access to the encrypted electronic certificate file uploaded to the interplanetary file system, the smart contract includes a first hash value and a second hash value, the first hash value is returned by the interplanetary file system, and is a hash value obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; and send the received saving result notification message returned by the blockchain network to the certificate holding subject node; The interplanetary file system is used to store the received encrypted electronic certificate file and return the first hash value to the certificate issuing node; The blockchain network is used to save the received smart contract sent by the certificate issuing node, and return a saving result notification message to the certificate issuing node, wherein the saving result notification message carries the smart contract address information.

2. The system according to claim 1, It is characterized in that The certificate issuing node encrypting the electronic certificate file includes: encrypting the electronic certificate file through an identity-based broadcast encryption system.

3. The system according to claim 2, It is characterized in that The certificate holder subject node is further used to access the smart contract from the blockchain network according to the smart contract address information carried in the received saving result notification message, and obtain the encrypted electronic certificate file from the interplanetary file system according to the first hash value in the smart contract; decrypt the encrypted electronic certificate file through the identity-based broadcast encryption system to obtain the decrypted electronic certificate file; Determine whether the hash value of the electronic certificate file obtained after decryption is consistent with the second hash value in the smart contract. If they are consistent, determine that the decrypted electronic certificate file is a valid electronic certificate file.

4. The system according to claim 2, It is characterized in that The system also includes a certificate usage subject node: The certificate-using subject node is used to send a certificate acquisition request to the blockchain network; when receiving the electronic certificate sent by the certificate-holding subject node, it sends a verification information acquisition request to the blockchain network, and when receiving the second hash value returned by the blockchain network and determining that the hash value of the received electronic certificate file is consistent with the second hash value, it determines that the received electronic certificate file is a valid electronic certificate file; The blockchain network is further used to access the corresponding smart contract according to the certificate acquisition request, and when it is determined that the certificate use subject node is allowed to obtain the electronic certificate corresponding to the certificate acquisition request, send a certificate download request to the certificate holding subject node; The certificate holding subject node is also used to access the smart contract from the blockchain network according to the certificate download request and the smart contract address information carried in the received saving result notification message, and obtain the encrypted electronic certificate file from the interplanetary file system according to the first hash value in the smart contract, decrypt it through the identity-based broadcast encryption system, and send the decrypted electronic certificate file to the certificate using subject node.

5. The system according to claim 2, It is characterized in that The system also includes a license supervision node: The certificate supervision node is used to send a certificate supervision request to the certificate issuing node; access the smart contract from the blockchain network according to the received smart contract address information, and obtain the encrypted electronic certificate file from the interplanetary file system according to the first hash value in the smart contract; decrypt the encrypted electronic certificate file through the identity-based broadcast encryption system to obtain the decrypted electronic certificate file; Determine whether the hash value of the electronic certificate file obtained after decryption is consistent with the second hash value in the smart contract, and if they are consistent, determine that the decrypted electronic certificate file is a valid electronic certificate file; The license issuing node is also used to send the smart contract address information to the license taking over node according to the license supervision request.

6. An electronic certificate service method, It is characterized in that The method comprises: Receive the certificate information blockchain preservation request sent by the certificate holder's subject node; Generate an electronic certificate file corresponding to the certificate information blockchain storage request according to the certificate information blockchain storage request; Encrypting the electronic certificate file and uploading the encrypted electronic certificate file to the Interstellar File System; Sending a smart contract configured according to an access control policy to a blockchain network, wherein the access control policy is used to control access to the encrypted electronic certificate file uploaded to the interplanetary file system, wherein the smart contract includes a first hash value and a second hash value, wherein the first hash value is a hash value returned by the interplanetary file system and obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; The received storage result notification message returned by the blockchain network is sent to the certificate holder node, and the storage result notification message carries the smart contract address information.

7. The method according to claim 6, It is characterized in that Encrypting the electronic certificate file includes: encrypting the electronic certificate file through an identity-based broadcast encryption system.

8. An electronic certificate service device, It is characterized in that The device comprises: A receiving module, used to receive a certificate information blockchain preservation request sent by a certificate holder subject node; and receive a preservation result notification message returned by the blockchain network; A generation module, configured to generate an electronic certificate file corresponding to the certificate information blockchain storage request according to the certificate information blockchain storage request; An encryption upload module, used for encrypting the electronic certificate file and uploading the encrypted electronic certificate file to the Interstellar File System; A sending module is used to send a smart contract configured according to an access control policy to the blockchain network, wherein the access control policy is used to control access to the encrypted electronic certificate file uploaded to the interplanetary file system, and the smart contract includes a first hash value and a second hash value, wherein the first hash value is a hash value returned by the interplanetary file system, obtained by performing a hash operation on the storage location information of the encrypted electronic certificate file in the interplanetary file system, and the second hash value is a hash value obtained by performing a hash operation on the electronic certificate file information; the saving result notification message received by the receiving module is sent to the certificate holding subject node, and the saving result notification message carries the smart contract address information.

9. A non-volatile computer storage medium, It is characterized in that The computer storage medium stores an executable program, and the executable program is executed by a processor to implement the method described in any one of claims 6 to 7.

10. An electronic certificate service device, It is characterized in that The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to implement the method steps described in any one of claims 6 to 7 when executing the program stored in the memory.