Blockchain-based physical digital credential generation method, system, device and medium

By building a distributed alliance and entity digital voucher generation contract on the blockchain, the batch generation and security issues of entity data voucher generation in the existing technology are solved, and efficient and secure entity data voucher generation is achieved.

CN118585981BActive Publication Date: 2024-10-18VALUE CHAIN TECHNOLOGY (SHENZHEN) CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411060121.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-05
Publication Date
2024-10-18
Estimated Expiration
2044-08-05

AI Technical Summary

Technical Problem

The existing method of generating entity data certificates cannot be generated in batches, the application operation for the same business in different specific departments is cumbersome, and data security cannot be guaranteed.

Method used

Using a blockchain-based method, a distributed alliance is constructed to issue and verify identity certificates. The entity digital certificate is generated through the entity digital certificate generation contract on the blockchain and registered on the blockchain to ensure the security and reliability of the data. Reliability.

Benefits of technology

It realizes the batch generation of entity data certificates required for unified business, improves the generation efficiency and security, and ensures the trustworthiness and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585981B_ABST
    Figure CN118585981B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for generating entity digital certificates based on blockchain, constructs a distributed alliance with identity certificate issuance and verification functions, is used to issue identity certificates to and verify identity certificates for authenticated distributed network entities, and based on the verified identity certificates, implements the call of the entity digital certificate generation contract on the blockchain, so that the blockchain executes the generation instructions in the entity digital certificate generation contract according to the business type, thereby reading a number of blank digital certificates required for the business type, generating a number of corresponding entity digital certificates, and registering the number of entity digital certificates in the blockchain. Set corresponding blank digital certificate directories for different business types, and associate corresponding data lists with each blank digital certificate to achieve batch generation of entity certificates required by the business type. The setting of the distributed alliance improves the efficiency of entity digital certificate generation while ensuring security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of physical digital credential generation, and in particular to a method, system, device and medium for generating a physical digital credential based on blockchain. Background Art

[0002] Data assetization is to objectify and assetize data so that it can enter the market for trading, circulation and governance. It is a new idea and method to fundamentally solve the problem of data resource optimization. Digital public products are the key point of data assetization.

[0003] Entity data credentials occupy an important position in digital public products. With the large-scale promotion of data assetization, the demand for the generation of entity data credentials has also exploded on a large scale. The existing method of generating a single entity data credential can no longer meet the requirements.

[0004] In addition, the existing generation of entity data credentials requires applicants to apply in different specific departments. After the application is approved, the specific department can only generate the entity data credentials that it has the authority to generate. If the same business applies to generate entity data credentials in multiple specific departments, multiple applications and multiple operations are required, which is cumbersome and wastes a lot of time and energy.

[0005] The physical data credentials are generated by specific departments, and the security of their data depends entirely on the security of the specific department’s network. If the network of a specific department is invaded by a virus, it may easily cause system paralysis and data leakage.

[0006] It can be seen that how to solve the problems existing in the generation of existing entity data credentials, such as the inability to generate in batches, the application of the same business in different specific departments, cumbersome operations, and the inability to guarantee data security, has become a technical problem that technical personnel in this field need to urgently solve. Summary of the invention

[0007] The present invention provides a method, system, device and medium for generating physical digital certificates based on blockchain, so as to solve the technical problems existing in the existing physical data certificate generation, such as the inability to generate in batches, the application of the same business in different specific departments, cumbersome operation, and the inability to guarantee data security, so as to achieve the effects of batch generation of physical data certificates required by unified businesses, secure data content and credible data sources.

[0008] In a first aspect, the present invention provides a method for generating a physical digital certificate based on a blockchain, wherein a plurality of blank digital certificates and physical digital certificate generation contracts are deployed on the blockchain, and the method comprises:

[0009] Building a distributed alliance to issue an identity credential to the distributed network entity to be authenticated in response to the identity credential issuance request of the distributed network entity to be authenticated, wherein the identity credential includes a corresponding public key, and the identity credential and the corresponding public key are written into each service node of the distributed alliance and the blockchain;

[0010] The distributed alliance authenticates the distributed network entity to be authenticated based on the identity credential in response to the verification request of the distributed network entity to be authenticated, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential;

[0011] Based on the authenticated identity credential and the business type that requires the generation of an entity digital credential, the authenticated distributed network entity calls the entity digital credential generation contract to the blockchain, so that the blockchain executes the generation instructions in the entity digital credential generation contract according to the business type, thereby reading a number of blank digital credentials required for the business type, generating a corresponding number of entity digital credentials, and registering the number of entity digital credentials in the blockchain.

[0012] Preferably, the step of constructing a distributed alliance to issue an identity credential to the distributed network entity to be authenticated in response to an identity credential issuance request of the distributed network entity to be authenticated includes:

[0013] A distributed network entity with a certificate issuance function is used as a certificate issuance node, and a distributed network entity with a verification function is used as a verification node, and the certificate issuance node and the verification node form a distributed alliance;

[0014] The credential issuing node responds to an identity credential issuing request sent by the distributed network entity to be authenticated, so as to generate an identity credential and send the identity credential to the distributed network entity to be authenticated.

[0015] Preferably, the credential issuing node generates an identity credential in response to an identity credential issuing request issued by the distributed network entity to be authenticated, including:

[0016] Extracting a unique identifier of the distributed network entity to be authenticated according to the identity certificate issuance request received from the distributed network entity to be authenticated;

[0017] Generate a private key unique to the distributed network entity to be authenticated and the corresponding public key;

[0018] Performing a hash operation on an identity string consisting of a fixed header, a random string, and a unique identifier of the distributed network entity to be authenticated;

[0019] The result of the hash operation is signed using the private key to generate an identity credential.

[0020] Preferably, the authenticating the distributed network entity to be authenticated based on the identity credential to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential, comprises:

[0021] The distributed network entity to be authenticated sends the corresponding identity credential to the verification node to initiate a verification request;

[0022] The verification node reads the identity certificate sent by the distributed network entity to be authenticated according to the written public key to obtain a first identity character string;

[0023] The verification node reads the identity certificate written on the verification node according to the written public key to obtain a second identity character string;

[0024] The first identity string is compared with the second identity string. If they are consistent, verification is passed. After verification, the corresponding authenticated identification of the distributed network entity to be authenticated and the authenticated identification of the identity credential are generated to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential.

[0025] Preferably, based on the authenticated identity credential and the business type that requires the generation of an entity digital credential, the authenticated distributed network entity calls the entity digital credential generation contract on the blockchain, including:

[0026] The authenticated distributed network entity sends the corresponding authenticated identity certificate and the business type for which the entity digital certificate needs to be generated to one of the service nodes of the blockchain;

[0027] The service node of the blockchain identifies the authenticated identifier of the authenticated identity credential;

[0028] After the identification is passed, the blockchain calls the entity digital certificate to generate a contract.

[0029] Preferably, the generating instruction includes:

[0030] Generate a corresponding blank digital certificate directory according to the business type;

[0031] Reading a required blank digital certificate from the blockchain based on the blank digital certificate directory;

[0032] Obtain corresponding data from the blockchain according to the required blank digital certificate;

[0033] The verification node performs a comprehensive analysis on the corresponding data, and generates a corresponding physical digital certificate according to the required blank digital certificate based on the analysis result.

[0034] Preferably, a blank digital certificate issuer is also arranged on the distributed alliance, and the blank digital certificate issuer is used to issue blank digital certificates, and a blank digital certificate issuer unique identification database is registered on the blockchain;

[0035] The issuing of a blank digital certificate comprises:

[0036] The blank digital certificate issuer defines data structure, data governance rules, data interaction operation, data security and data encapsulation format in the blank digital certificate template according to different types of blank digital certificate templates to form a blank digital certificate to be issued;

[0037] The blank digital certificate issuer sends a blank digital certificate on-chain request, the corresponding blank digital certificate issuer unique identifier and the blank digital certificate to be issued to the verification node;

[0038] The verification node reads the blank digital certificate issuer unique identification database from the blockchain based on the blank digital certificate on-chain request;

[0039] Comparing the blank digital certificate issuer unique identifier received from the blank digital certificate issuer with the blank digital certificate issuer unique identifier database to verify the authority of the blank digital certificate issuer;

[0040] If the verification is successful, the blank digital certificate to be issued will be registered in the blockchain.

[0041] In a second aspect, the present invention further provides a blockchain-based entity digital credential generation system, the system comprising: an identity credential issuance unit, an identity credential verification unit, and an entity digital credential generation unit;

[0042] The identity certificate issuing unit is used to build a distributed alliance, to respond to the identity certificate issuance request of the distributed network entity to be authenticated, to issue an identity certificate to the distributed network entity to be authenticated, wherein the identity certificate includes a corresponding public key, and the identity certificate and the corresponding public key are written into each service node of the distributed alliance and the blockchain;

[0043] The identity credential verification unit is used for the distributed alliance to respond to the verification request of the distributed network entity to be authenticated, and authenticate the distributed network entity to be authenticated based on the identity credential, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential;

[0044] The entity digital certificate generation unit is used for the authenticated distributed network entity to call the entity digital certificate generation contract to the blockchain based on the authenticated identity certificate and the business type that needs to generate the entity digital certificate, so that the blockchain executes the generation instructions in the entity digital certificate generation contract according to the business type, thereby reading a number of blank digital certificates required for the business type, generating a corresponding number of entity digital certificates, and registering the several entity digital certificates in the blockchain.

[0045] In a third aspect, the present invention also provides a computer device, comprising a memory, a processor and a transceiver, which are connected via a bus; the memory is used to store a set of computer program instructions and data, and transmit the stored data to the processor, and the processor executes the program instructions stored in the memory to execute the above-mentioned blockchain-based entity digital credential generation method.

[0046] In a fourth aspect, the present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the above-mentioned blockchain-based entity digital certificate generation method is implemented.

[0047] The present invention provides a method, system, device and medium for generating physical digital credentials based on blockchain. Compared with the prior art, the beneficial effects of the embodiments of the present invention are at least one of the following:

[0048] (1) The setting of the distributed alliance completes the data processing and judgment processes on the service nodes of the distributed alliance, which improves the efficiency of generating physical digital certificates while ensuring security;

[0049] (2) Issuing identity credentials to authenticate distributed network entities, using identity credentials as identity verification, and the security of entity digital credentials generated;

[0050] (3) Setting up corresponding blank digital certificate directories for different business types and associating corresponding data lists with each blank digital certificate to realize batch generation of physical certificates required by the business types. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1This is a schematic diagram of the steps of a method for generating a physical digital certificate based on blockchain provided by a preferred embodiment of the present invention;

[0052] Figure 2 It is a schematic diagram of the steps of a method for building a distributed alliance and issuing identity certificates provided by a preferred embodiment of the present invention;

[0053] Figure 3 It is a schematic diagram of the steps of identity credential generation rules provided by a preferred embodiment of the present invention;

[0054] Figure 4 It is a schematic diagram of the steps of an identity credential authentication method provided by a preferred embodiment of the present invention;

[0055] Figure 5 It is a schematic diagram of the steps of a method for calling a contract to generate a physical digital certificate provided by a preferred embodiment of the present invention;

[0056] Figure 6 It is a schematic diagram of the steps of generating instructions provided by a preferred embodiment of the present invention;

[0057] Figure 7 It is a schematic diagram of the steps of a method for issuing a blank digital certificate provided by a preferred embodiment of the present invention;

[0058] Figure 8 It is a schematic diagram of a physical digital credential generation system based on blockchain provided by a preferred embodiment of the present invention;

[0059] Fig. 9 It is a schematic diagram of a computer device provided by a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0060] The following is a detailed explanation of the implementation mode of the present invention in conjunction with the accompanying drawings. The embodiments are provided only for illustrative purposes and cannot be understood as limiting the present invention. The accompanying drawings are only for reference and illustration purposes and do not constitute a limitation on the scope of patent protection of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention. In the description of the present invention, the terms "first", "second", "third", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first", "second", "third", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more.

[0061] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. The terms "vertical", "horizontal", "left", "right", "upper", "lower" and similar expressions used herein are only for illustrative purposes, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. The term "and / or" used herein includes any and all combinations of one or more related listed items. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0062] In the description of the present invention, it should be noted that, unless otherwise defined, all technical and scientific terms used in the present invention have the same meaning as those commonly understood by those skilled in the art. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood by specific circumstances.

[0063] See also Figure 1 In an embodiment of the present invention, a method for generating an entity digital certificate based on blockchain is provided, the method comprising:

[0064] S1. Construct a distributed alliance to respond to the identity credential issuance request of the distributed network entity to be authenticated, issue an identity credential to the distributed network entity to be authenticated, the identity credential includes a corresponding public key, and write the identity credential and the corresponding public key into each service node of the distributed alliance and the blockchain.

[0065] S2. The distributed alliance responds to the verification request of the distributed network entity to be authenticated, and authenticates the distributed network entity to be authenticated based on the identity credential, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential.

[0066] S3. Based on the authenticated identity credential and the business type that requires the generation of a physical digital credential, the authenticated distributed network entity calls the physical digital credential generation contract to the blockchain, so that the blockchain executes the generation instructions in the physical digital credential generation contract according to the business type, thereby reading a number of blank digital credentials required by the business type, generating a number of corresponding physical digital credentials, and registering the physical digital credentials in the blockchain.

[0067] Blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable, and stores transactions and information in a continuously growing chain of data blocks to ensure data security and transparency.

[0068] The generation of physical digital certificates requires a reliable data source. By utilizing the tamper-proof and secure characteristics of blockchain, the data related to physical digital certificates can be stored in the form of blockchain to ensure the reliability of the generated data of physical digital certificates. However, due to the characteristics of blockchain block chain storage, its data operation efficiency is low, and efficient data operation and judgment cannot be achieved.

[0069] In a preferred embodiment of the present invention, a distributed alliance is constructed to issue and verify identity credentials for distributed network entities to be authenticated that need to generate entity digital credentials, so as to improve the efficiency of entity digital credential generation. The distributed alliance and blockchain are linked to each other to improve data security.

[0070] In a preferred embodiment of the present invention, Figure 2 As shown, building a distributed alliance to respond to an identity credential issuance request of a distributed network entity to be authenticated and issue an identity credential to the distributed network entity to be authenticated includes the following steps:

[0071] S101. A distributed network entity with a certificate issuing function is used as a certificate issuing node, and a distributed network entity with a verification function is used as a verification node, and the certificate issuing node and the verification node form a distributed alliance.

[0072] S102: The credential issuing node responds to an identity credential issuing request sent by the distributed network entity to be authenticated to generate an identity credential and send the identity credential to the distributed network entity to be authenticated.

[0073] In a preferred embodiment of the present invention, the distributed alliance at least includes a credential issuing node and a verification node, wherein the credential issuing node is a distributed network entity with a credential issuing function, and the verification node is a distributed network entity with a credential verification function. The credential issuing node and the verification node are constructed into a distributed alliance, which can not only realize data sharing, but also enable the distributed alliance to complete the process requiring data calculation and judgment, without occupying the resources of the blockchain, and without frequently reading data from the blockchain, thereby improving the efficiency of physical digital credential generation.

[0074] In a preferred embodiment of the present invention, Figure 3 As shown, the credential issuing node generates an identity credential in response to an identity credential issuing request issued by a distributed network entity to be authenticated, including the following steps:

[0075] S1011. Extract a unique identifier of the distributed network entity to be authenticated according to the received identity certificate issuance request issued by the distributed network entity to be authenticated.

[0076] S1012: Generate a private key that is exclusive to the unique identifier of the distributed network entity to be authenticated and the corresponding public key.

[0077] S1013. Perform a hash operation on the identity string consisting of a fixed header, a random string, and the unique identifier of the distributed network entity to be authenticated.

[0078] S1014: Use the private key to sign the result of the hash operation to generate an identity certificate.

[0079] In a preferred embodiment of the present invention, the rule for generating an identity credential is as follows: the distributed network entity to be authenticated sends an identity credential issuance request to the credential issuance node of the distributed alliance with its own unique identifier; the credential issuance node receives the distributed network entity unique identifier sent by the distributed network entity to be authenticated, and generates a private key and a corresponding public key that are exclusive to the unique identifier of the distributed network entity to be authenticated; a fixed header exclusive to the distributed network entity to be authenticated, a randomly generated random string, and the unique identifier of the distributed network entity to be authenticated are combined into an identity string, and a hash operation is performed on the identity string; the result of the hash operation is signed using the private key exclusive to the unique identifier of the distributed network entity to be authenticated to generate an identity credential.

[0080] In the preferred embodiment of the present invention, adding a hash operation step can improve the security of the identity certificate and avoid attacks on the distributed alliance and blockchain by unknown distributed network entities. The result of the hash operation is signed and encrypted by a private key, which can further improve the security of the identity certificate.

[0081] Furthermore, the private key and public key that are uniquely identified by the distributed network entity to be authenticated may also be used as part of the identity string to increase the security of the identity credential.

[0082] In a preferred embodiment of the present invention, after the distributed network entity to be authenticated obtains the identity credential, it is necessary to write the identity credential and the public key corresponding to the identity credential into each service node of the Published Alliance and the blockchain so as to facilitate reading during the subsequent identity credential verification process.

[0083] In the preferred embodiment of the present invention, the identity certificate not only indicates that the distributed network entity to be authenticated has the authority to apply for the entity digital certificate, but also the private key and public key that are exclusive to the unique identifier of the distributed network entity to be authenticated are used to verify the transmitted data. At the same time, the identity string composed of the fixed header, the random string and the unique identifier of the distributed network entity to be authenticated is hashed as the rule for generating the identity certificate, further improving the security of the data.

[0084] In the preferred embodiment of the present application, Figure 4 As shown, authenticating the distributed network entity to be authenticated based on the identity credential to mark the distributed network entity to be authenticated as an authenticated distributed network entity includes the following steps:

[0085] S201. The distributed network entity to be authenticated sends the corresponding identity credential to the verification node to initiate a verification request.

[0086] S202. The verification node reads the identity credential sent by the distributed network entity to be authenticated according to the written public key to obtain a first identity character string.

[0087] S203: The verification node reads the identity certificate written on the verification node according to the written public key to obtain a second identity character string.

[0088] S204, comparing the first identity string with the second identity string, and passing the verification if they are consistent. After passing the verification, generating the corresponding authenticated identification of the distributed network entity to be authenticated and the authenticated identification of the identity credential, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential.

[0089] In a preferred embodiment of the present invention, an identity credential is used as a basis for authenticating a distributed network entity to be authenticated. The distributed network entity to be authenticated sends its own identity credential to a verification node. The verification node reads the received identity credential based on a public key that has been written. The result is a hash operation value of an identity string consisting of a fixed header, a random string, and a unique identifier of the distributed network entity to be authenticated. A reverse hash operation is then performed to obtain the identity string, which is defined as a first identity string.

[0090] Furthermore, the verification node compares the identity credential received from the distributed network entity to be authenticated with the set of identity credential that has been written, to obtain the identity credential written by the distributed network entity to be authenticated in the distributed alliance. At this time, the verification node reads the written identity credential according to the written public key, and then performs a reverse hash operation on the read result to obtain an identity string, which is defined as a second identity string.

[0091] Furthermore, the first identity string is compared with the second identity string. If the comparison is consistent, the verification is passed. After the verification is passed, the corresponding authenticated identification of the distributed network entity and the authenticated identification of the identity credential are generated to mark the distributed network entity to be authenticated as an authenticated distributed network entity, and the identity identification corresponding to the distributed network entity to be authenticated is marked as an authenticated identity credential. Among them, the authenticated identification of the identity credential is used as a part of the authenticated identity credential to indicate that the identity credential has been authenticated. For the generation of the authenticated identification, a unified identification can be generated according to the generation rules, or a unique identification can be generated for different identity credentials, as long as it can meet the blockchain for rapid identification according to the identification rules.

[0092] In a preferred embodiment of the present invention, a verification process based on identity credentials is preset in the verification node, wherein the same public key is used to read the identity credentials received from the distributed network entity to be authenticated and the identity credentials that have been written into the verification node, and the reading process can realize preliminary verification of the identity credentials received from the distributed network entity to be authenticated. The identity string obtained by the reverse hash operation is compared to re-verify the identity credentials received from the distributed network entity to be authenticated. Compared with directly using the identity string composed of a fixed header, a random string and the unique identifier of the distributed network entity to be authenticated as an identity credential for identity authentication, it is more secure. The authenticated distributed network entity and the authenticated identity credential have been doubly authenticated by the distributed alliance and the blockchain. In the subsequent process of the authenticated distributed network entity reading data and generating entity digital credentials on the blockchain, it is no longer necessary to re-verify on the blockchain, which can improve the efficiency of generating entity digital credentials.

[0093] In a preferred embodiment of the present invention, the authenticated distributed network entity sends the corresponding authenticated identity certificate and the business type that needs to generate the entity digital certificate to the blockchain, so that the authenticated distributed network entity calls the entity digital certificate generation contract to the blockchain, such as Figure 5 As shown, the following steps are included:

[0094] S301. The authenticated distributed network entity sends the corresponding authenticated identity credential and the business type that requires the generation of an entity digital credential to one of the service nodes of the blockchain.

[0095] S302. The service node of the blockchain identifies the authenticated identifier of the authenticated identity credential.

[0096] S303: After identification, the blockchain calls the entity digital certificate to generate a contract.

[0097] In a preferred embodiment of the present invention, the authenticated distributed network entity sends the corresponding authenticated identity certificate to one of the service nodes of the blockchain, and uses the authenticated identifier of the authenticated identity certificate as the authentication medium of the blockchain. The service node of the blockchain identifies the authenticated identifier of the authenticated identity certificate according to the identification rules. If the authentication is successful, it indicates that the authenticated distributed network entity has been authenticated by the distributed alliance and is safe. The authenticated identifier of the authenticated identity certificate is used as the chain verification of the authenticated distributed network entity, and there is no need to verify the complex identity certificate. It cooperates with the verification of the distributed alliance to identify the distributed network entity, forming a process setting with strict preliminary verification and loose verification during the circulation process, while ensuring security, improving the efficiency of entity digital certificate generation.

[0098] In a preferred embodiment of the present invention, the entity digital certificate generation contract includes corresponding generation instructions, such as Figure 6 As shown, the following steps are included:

[0099] S01. Generate a corresponding blank digital certificate directory according to the business type.

[0100] S02. Read the required blank digital certificate from the blockchain based on the blank digital certificate directory.

[0101] S03. Obtain corresponding data from the blockchain according to the required blank digital certificate.

[0102] S04. The verification node performs a comprehensive analysis on the corresponding data, and generates a corresponding physical digital certificate according to the required blank digital certificate based on the analysis result.

[0103] In a preferred embodiment of the present invention, a corresponding blank digital certificate directory is set for different business types. For example, if the business type is a deposit, the corresponding blank digital certificate directory includes blank checks, promissory notes, deposit certificates and passbooks, etc. Customers can select the required blank digital certificates from the blank digital certificate directory as needed, and read the written blank digital certificates from the blockchain. Each blank digital certificate is set with a unique data list. The relevant data required for the generation of the physical digital certificate is stored in the form of blocks on the blockchain, so the corresponding data can be read in the blockchain according to the data list corresponding to each blank digital certificate. The verification node performs a comprehensive analysis of the read data. If the analysis result meets the requirements of the physical data certificate, the corresponding data read is filled in the corresponding position of the blank digital certificate to generate the physical digital certificate.

[0104] The generation of physical digital certificates in this application can be applied to the generation of physical digital certificates such as public data asset certificates, departmental document certificates, and production operation certificates.

[0105] For example, in the case of electricity bill loans, the power grid company stores electricity consumption data on the blockchain. The bank acts as the identity certificate issuance node and verification node of the distributed alliance. The functional department can also be used as the identity certificate issuance node, and the enterprise in need of electricity bill loans acts as a distributed network entity to be authenticated. The enterprise in need of electricity bill loans only needs to issue an identity certificate issuance request to the bank or functional department with its unique identifier, which can be the number of the business license, to generate an identity certificate. Furthermore, a verification request is sent to the bank through the identity certificate. After the verification is passed, the enterprise in need of electricity bill loans and the corresponding identity certificate are both in the authenticated state. Based on the authenticated identity certificate, the entity digital certificate on the blockchain can be called to generate a contract. The blank digital certificate directory corresponding to the electricity bill loan business includes not only the blank electricity bill data asset certificate generated in the end, but also may include blank electricity bill loan application contracts, blank electricity bill loan generation receipts, etc. The blank digital certificate directory can be flexibly adjusted according to needs and social development to adapt to changes in the times and environment. The electricity consumption data of enterprises in need of electricity bill loans are all stored on the blockchain. After reading the electricity bill data from the blockchain, the bank conducts corporate profiling, credit limit review, loan interest rate verification, and post-loan risk control supervision on the enterprise. If the requirements of the electricity bill loan are met, the corresponding physical digital certificate will be generated according to the required blank digital certificate, and the corresponding physical digital certificate and generation record will be registered in the blockchain.

[0106] Corresponding blank digital certificate directories are configured for different business types. Each blank digital certificate directory is configured with an associated data list. When generating physical digital certificates, you only need to obtain the business type instruction to complete several physical digital certificates related to the business type, thereby realizing the batch automatic generation of physical digital certificates.

[0107] In a preferred embodiment of the present invention, a blank digital certificate issuer is also arranged on the distributed alliance, and the blank digital certificate issuer is used to issue blank digital certificates. There are strict requirements on the qualifications of the blank digital certificate issuer, so the unique identification of the blank digital certificate issuer with the authority to issue blank digital certificates is written into the blockchain to form a blank digital certificate issuer unique identification library. The data of the blank digital certificate issuer unique identification library can only be updated and deleted under specific circumstances. The specific circumstances can be set as: the highest authority party obtains the consent of all nodes in the distributed alliance.

[0108] In a preferred embodiment of the present invention, Figure 7 As shown, issuing a blank digital certificate includes the following steps:

[0109] S001. The blank digital certificate issuer defines data structure, data governance rules, data interaction operations, data security and data encapsulation format in different types of blank digital certificate templates to form a blank digital certificate to be issued.

[0110] S002. The blank digital certificate issuer sends a blank digital certificate on-chain request, the corresponding blank digital certificate issuer unique identifier and the blank digital certificate to be issued to the verification node.

[0111] S003. The verification node reads the blank digital certificate issuer unique identification database from the blockchain based on the blank digital certificate on-chain request.

[0112] S004. Compare the blank digital certificate issuer unique identifier received from the blank digital certificate issuer with the blank digital certificate issuer unique identifier database to verify the authority of the blank digital certificate issuer.

[0113] In a preferred embodiment of the present invention, the generation of a blank digital certificate requires the issuer of the blank digital certificate to perform data structure definition, data governance rule definition, data interaction operation definition, data security definition and data encapsulation format definition according to different types of blank digital certificate templates. After the blank digital certificate is generated, it is also necessary to specify which business type the data certificate corresponds to, as well as the corresponding data list. The corresponding data list serves as an appendix to the blank data certificate and together constitutes the blank digital certificate.

[0114] During the on-chain process, the issuer of the blank digital certificate sends a blank digital certificate on-chain request, the corresponding blank digital certificate issuer unique identifier, and the blank digital certificate to be issued to the verification node. The blank digital certificate on-chain request is used to activate the on-chain process, and the blank digital certificate issuer unique identifier is used to verify the authority of the blank digital certificate issuer. Only after the on-chain process is activated and verified, can the blank digital certificate to be issued be registered on the blockchain.

[0115] In the preferred embodiment of the present application, a distributed alliance with identity certificate issuance and verification functions is constructed to issue identity certificates to the authenticated distributed network entities and verify the identity certificates. Based on the verified identity certificates, the physical digital certificate generation contract on the blockchain is called, so that the blockchain executes the generation instructions in the physical digital certificate generation contract according to the business type, thereby reading several blank digital certificates required by the business type, generating several corresponding physical digital certificates, and registering several physical digital certificates in the blockchain. Set corresponding blank digital certificate directories for different business types, and associate corresponding data lists with each blank digital certificate to achieve batch generation of physical certificates required by the business type. The setting of the distributed alliance improves the efficiency of physical digital certificate generation while ensuring security.

[0116] Accordingly, if Figure 8 As shown, based on a method for generating a physical digital credential based on blockchain, an embodiment of the present invention further provides a physical digital credential generating system based on blockchain, the system comprising: an identity credential issuing unit 1, an identity credential verifying unit 2 and a physical digital credential generating unit 3;

[0117] The identity certificate issuing unit 1 is used to build a distributed alliance, to respond to the identity certificate issuance request of the distributed network entity to be authenticated, to issue an identity certificate to the distributed network entity to be authenticated, the identity certificate includes a corresponding public key, and the identity certificate and the corresponding public key are written into each service node of the distributed alliance and the blockchain;

[0118] The identity credential verification unit 2 is used for the distributed alliance to respond to the verification request of the distributed network entity to be authenticated, and authenticate the distributed network entity to be authenticated based on the identity credential, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential;

[0119] The entity digital certificate generation unit 3 is used for the authenticated distributed network entity to call the entity digital certificate generation contract to the blockchain based on the authenticated identity certificate and the business type that needs to generate the entity digital certificate, so that the blockchain executes the generation instructions in the entity digital certificate generation contract according to the business type, thereby reading a number of blank digital certificates required for the business type, generating a corresponding number of entity digital certificates, and registering the several entity digital certificates in the blockchain.

[0120] For the specific definition of a blockchain-based entity digital credential generation system, please refer to the above-mentioned definition of a blockchain-based entity digital credential generation method, which will not be repeated here. A person of ordinary skill in the art can realize that the various modules and steps described in conjunction with the embodiments disclosed in the present invention can be implemented in hardware, software, or a combination of both. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0121] like Fig. 9 As shown, an embodiment of the present invention provides a computer device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the steps in the above-mentioned blockchain-based entity digital credential generation method embodiment are implemented, for example Figure 1 Steps S1 to S3 described in .

[0122] Those skilled in the art will understand that the Fig. 9 It is only an example of a computer device and does not constitute a limitation of the computer device. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the computer device may also include input and output devices, network access devices, buses, etc.

[0123] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, and uses various interfaces and lines to connect various parts of the entire computer device.

[0124] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the computer device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0125] Wherein, if the module integrated in the computer device 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

[0126] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0127] Accordingly, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to perform the steps in the method for generating a physical digital credential based on blockchain in the above embodiment, for example Figure 1 Steps S1 to S3 described in .

[0128] A method, system, computer device and storage medium for generating physical digital certificates based on blockchain provided in this embodiment are aimed at the technical problems that existing physical data certificates cannot be generated in batches, the same business is invented in different specific departments, the operation is cumbersome, and the data security cannot be guaranteed. The present invention constructs a distributed alliance with identity certificate issuance and verification functions, which is used to issue identity certificates to the authenticated distributed network entities and verify the identity certificates. Based on the verified identity certificates, the physical digital certificate generation contract on the blockchain is called, so that the blockchain executes the generation instructions in the physical digital certificate generation contract according to the business type, thereby reading several blank digital certificates required by the business type, generating several corresponding physical digital certificates, and registering several physical digital certificates in the blockchain. Set corresponding blank digital certificate directories for different business types, and associate corresponding data lists with each blank digital certificate to realize batch generation of physical certificates required by the business type. The setting of the distributed alliance improves the efficiency of physical digital certificate generation while ensuring security.

[0129] The above-mentioned embodiments only express several preferred implementation modes of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principle of the present invention, and these improvements and substitutions should also be regarded as the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for generating physical digital credentials based on blockchain, characterized in that A plurality of blank digital certificates and entity digital certificate generation contracts are deployed on the blockchain, and the method comprises: Building a distributed alliance to issue an identity credential to the distributed network entity to be authenticated in response to the identity credential issuance request of the distributed network entity to be authenticated, wherein the identity credential includes a corresponding public key, and the identity credential and the corresponding public key are written into each service node of the distributed alliance and the blockchain; The distributed alliance authenticates the distributed network entity to be authenticated based on the identity credential in response to the verification request of the distributed network entity to be authenticated, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential; Based on the authenticated identity credential and the business type for which the physical digital credential needs to be generated, the authenticated distributed network entity calls the physical digital credential generation contract on the blockchain, so that the blockchain executes the generation instruction in the physical digital credential generation contract according to the business type, thereby reading a number of blank digital credentials required by the business type, generating a number of corresponding physical digital credentials, and registering the number of physical digital credentials in the blockchain; The generating instruction comprises: Generate a corresponding blank digital certificate directory according to the business type; Reading a required blank digital certificate from the blockchain based on the blank digital certificate directory; Obtain corresponding data from the blockchain according to the required blank digital certificate; The verification node performs a comprehensive analysis on the corresponding data, and generates a corresponding physical digital certificate according to the required blank digital certificate based on the analysis result; A blank digital certificate issuer is also arranged on the distributed alliance, and the blank digital certificate issuer is used to issue blank digital certificates, and a blank digital certificate issuer unique identification database is registered on the blockchain; The issuing of a blank digital certificate comprises: The blank digital certificate issuer defines data structure, data governance rules, data interaction operation, data security and data encapsulation format in the blank digital certificate template according to different types of blank digital certificate templates to form a blank digital certificate to be issued; The blank digital certificate issuer sends a blank digital certificate on-chain request, the corresponding blank digital certificate issuer unique identifier and the blank digital certificate to be issued to the verification node; The verification node reads the blank digital certificate issuer unique identification database from the blockchain based on the blank digital certificate on-chain request; Comparing the blank digital certificate issuer unique identifier received from the blank digital certificate issuer with the blank digital certificate issuer unique identifier database to verify the authority of the blank digital certificate issuer; If the verification is successful, the blank digital certificate to be issued will be registered in the blockchain.

2. The method for generating a physical digital certificate based on blockchain according to claim 1, characterized in that: The step of constructing a distributed alliance to issue an identity credential to the distributed network entity to be authenticated in response to the identity credential issuance request of the distributed network entity to be authenticated includes: A distributed network entity with a certificate issuance function is used as a certificate issuance node, a distributed network entity with a verification function is used as the verification node, and the certificate issuance node and the verification node form a distributed alliance; The credential issuing node responds to an identity credential issuing request sent by the distributed network entity to be authenticated, so as to generate an identity credential and send the identity credential to the distributed network entity to be authenticated.

3. The method for generating a physical digital certificate based on blockchain as claimed in claim 2, characterized in that: The credential issuing node generates an identity credential in response to an identity credential issuing request issued by a distributed network entity to be authenticated, including: Extracting a unique identifier of the distributed network entity to be authenticated according to the identity certificate issuance request received from the distributed network entity to be authenticated; Generate a private key unique to the distributed network entity to be authenticated and the corresponding public key; Performing a hash operation on an identity string consisting of a fixed header, a random string, and a unique identifier of the distributed network entity to be authenticated; The result of the hash operation is signed using the private key to generate an identity credential.

4. The method for generating a physical digital certificate based on blockchain as claimed in claim 3, characterized in that: The authenticating the distributed network entity to be authenticated based on the identity credential to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential, comprising: The distributed network entity to be authenticated sends the corresponding identity credential to the verification node to initiate a verification request; The verification node reads the identity certificate sent by the distributed network entity to be authenticated according to the written public key to obtain a first identity character string; The verification node reads the identity certificate written on the verification node according to the written public key to obtain a second identity character string; The first identity string is compared with the second identity string. If they are consistent, verification is passed. After verification, the corresponding authenticated identification of the distributed network entity to be authenticated and the authenticated identification of the identity credential are generated to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential.

5. The method for generating a physical digital certificate based on blockchain as claimed in claim 4, characterized in that: Based on the authenticated identity credential and the business type that requires the generation of an entity digital credential, the authenticated distributed network entity calls the entity digital credential generation contract on the blockchain, including: The authenticated distributed network entity sends the corresponding authenticated identity certificate and the business type for which the entity digital certificate needs to be generated to one of the service nodes of the blockchain; The service node of the blockchain identifies the authenticated identifier of the authenticated identity credential; After the identification is passed, the blockchain calls the entity digital certificate to generate a contract.

6. A blockchain-based entity digital certificate generation system, characterized in that: The system comprises: an identity certificate issuing unit, an identity certificate verifying unit and a physical digital certificate generating unit; The identity certificate issuing unit is used to build a distributed alliance, to respond to the identity certificate issuance request of the distributed network entity to be authenticated, to issue an identity certificate to the distributed network entity to be authenticated, wherein the identity certificate includes a corresponding public key, and the identity certificate and the corresponding public key are written into each service node of the distributed alliance and the blockchain; The identity credential verification unit is used for the distributed alliance to respond to the verification request of the distributed network entity to be authenticated, and authenticate the distributed network entity to be authenticated based on the identity credential, so as to mark the distributed network entity to be authenticated and the corresponding identity credential as an authenticated distributed network entity and an authenticated identity credential; The entity digital certificate generation unit is used for, based on the authenticated identity certificate and the business type for which the entity digital certificate needs to be generated, the authenticated distributed network entity calling the entity digital certificate generation contract to the blockchain, so that the blockchain executes the generation instruction in the entity digital certificate generation contract according to the business type, thereby reading a number of blank digital certificates required by the business type, generating a number of corresponding entity digital certificates, and registering the number of entity digital certificates in the blockchain; The generating instruction comprises: Generate a corresponding blank digital certificate directory according to the business type; Reading a required blank digital certificate from the blockchain based on the blank digital certificate directory; Obtain corresponding data from the blockchain according to the required blank digital certificate; The verification node performs a comprehensive analysis on the corresponding data, and generates a corresponding physical digital certificate according to the required blank digital certificate based on the analysis result; A blank digital certificate issuer is also arranged on the distributed alliance, and the blank digital certificate issuer is used to issue blank digital certificates, and a blank digital certificate issuer unique identification database is registered on the blockchain; The issuing of a blank digital certificate comprises: The blank digital certificate issuer defines data structure, data governance rules, data interaction operation, data security and data encapsulation format in the blank digital certificate template according to different types of blank digital certificate templates to form a blank digital certificate to be issued; The blank digital certificate issuer sends a blank digital certificate on-chain request, the corresponding blank digital certificate issuer unique identifier and the blank digital certificate to be issued to the verification node; The verification node reads the blank digital certificate issuer unique identification database from the blockchain based on the blank digital certificate on-chain request; Comparing the blank digital certificate issuer unique identifier received from the blank digital certificate issuer with the blank digital certificate issuer unique identifier database to verify the authority of the blank digital certificate issuer; If the verification is successful, the blank digital certificate to be issued will be registered in the blockchain.

7. A computer device, characterized in that: The computer device includes a memory, a processor and a transceiver, which are connected via a bus; the memory is used to store a set of computer program instructions and data, and transmit the stored data to the processor, and the processor executes the program instructions stored in the memory to execute the blockchain-based entity digital credential generation method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed, the blockchain-based entity digital credential generation method as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Alliance trust distributed identity authentication method and system based on block chain

    CN112199726A

  • Decentralization digital identity management method and device based on block chain

    CN114266662A