Distributed digital identity management method, device, equipment, medium and program product
By receiving and verifying digital identity information on blockchain nodes, and performing signature, attribution and validity verification, the security risks of identity information storage and query in the existing technology are solved, and the security and authenticity of distributed identity management are achieved. .
Patent Information
- Application Number
- CN202410857632.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-29
AI Technical Summary
The identity and credential information provided on demand in the existing supply chain involves security risks of centralized storage and query, especially the risk of forgery, and has high storage and query requirements, making it difficult to ensure the authenticity and security of the information.
Adopt a distributed digital identity management method, use blockchain nodes to receive and verify the digital identity information sent by the first terminal, generate the second digital identity information through signature verification, attribution verification and validity verification, and publish it to the blockchain Conduct distributed management to ensure the authenticity and security of information.
Through multiple verification mechanisms, the identities of blockchain participants can be accurately identified to avoid information forgery, improve the security and authenticity of digital identity information, and reduce the risk of forgery.
Smart Images

Figure CN118862030A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital identity management, and in particular to a distributed digital identity management method, device, equipment, medium and program product. Background Art
[0002] The supply chain involves many participants, each of whom needs to have a unique identity and a series of information corresponding to the identity. Usually, these identity and credential information are provided on demand, and for more important information, original documents, pictures, etc. are provided to ensure authenticity and reliability. In the digital age, the corresponding information is usually provided or stored in the form of pictures or files.
[0003] The identity and credential information provided on demand in the existing supply chain is generally stored and queried in a centralized manner. This centralized storage and query method has high requirements on the storage and query parties. On the one hand, it requires high reliability and low latency hardware and software; on the other hand, it is a trust issue. Only trustworthy and credible institutions can undertake this. However, for identity and credential information provided in the form of pictures or files, there is a security risk of forgery. Summary of the invention
[0004] In view of the problems existing in the prior art, the embodiments of the present invention provide a distributed digital identity management method, device, equipment, medium and program product, which can effectively avoid information forgery, ensure the authenticity and validity of data, and improve the security of digital identity information.
[0005] In a first aspect, an embodiment of the present invention provides a distributed digital identity management method, which is applied to a blockchain node, comprising:
[0006] Receiving a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information;
[0007] Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information;
[0008] After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0009] Performing validity verification on the first attribute information that has passed the attribution verification;
[0010] According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
[0011] As an improvement of the above scheme, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of the issuing object that issues the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0012] As an improvement of the above scheme, the second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0013] As an improvement of the above scheme, the issuance path information includes the issuance path and the number of issuance levels from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0014] As an improvement of the above solution, using the second public key to perform attribution verification on the at least one first attribute information includes:
[0015] Decrypting the identification ciphertext in each of the first attribute information using the second public key to obtain fourth identification information and a second identification code of the corresponding first attribute information;
[0016] Determine whether the fourth identification information is consistent with the second identification information and whether the second identification code is consistent with the first identification code in the corresponding first attribute information;
[0017] If yes, it is determined that the corresponding first attribute information belongs to the subject object, and the attribute verification passes;
[0018] If not, it is determined whether the corresponding first attribute information belongs to the subject object and the attribute verification fails.
[0019] As an improvement of the above solution, the step of verifying the validity of the first attribute information that has passed the attribution verification includes:
[0020] Determine, according to the third identification information, a third public key of the issuing object that issues the attribute value, and use the third public key to sign each attribute value in the first attribute information to obtain a signature to be verified for the corresponding first attribute information;
[0021] Determine whether the signature to be verified is consistent with the attribute value signature in the corresponding first attribute information;
[0022] If not, it is determined that the validity verification of the corresponding first attribute information fails;
[0023] If so, judging whether the preset issuance condition is met according to the issuance path and the issuance level number in the corresponding first attribute information;
[0024] When the issuance condition is met, it is determined that the validity verification of the corresponding first attribute information has passed, otherwise, the validity verification of the corresponding first attribute information has failed.
[0025] As an improvement to the above solution, second digital identity information is generated according to the second identification information and the first attribute information that has passed the validity verification, and the second digital identity information is published to at least one blockchain for distributed management, including:
[0026] Determining whether the first attribute information contains a blockchain identifier;
[0027] When all the first attribute information contain the blockchain identifier, the second attribute information corresponding to each of the first attribute information in the second digital identity information is published to the blockchain corresponding to the corresponding blockchain identifier for storage;
[0028] When all the first attribute information do not contain the blockchain identifier, all the second attribute information in the second digital identity information are merged and published to the target blockchain for storage;
[0029] When part of the first attribute information does not contain the blockchain identifier and part of the first attribute information contains the blockchain identifier, the second attribute information corresponding to the first attribute information containing the blockchain identifier in the second digital identity information is respectively published to the blockchain corresponding to the corresponding blockchain identifier for storage, and the second attribute information corresponding to the first attribute information not containing the blockchain identifier in the second digital identity information is merged and published to the target blockchain for storage.
[0030] As an improvement of the above solution, the issuance conditions include: the issuance path and the number of issuance levels meet preset issuance rules, and the weighted sum of the assignment parameters of the issuance objects at each level in the issuance path is equal to a preset value.
[0031] As an improvement of the above solution, the method further includes:
[0032] The target blockchain is determined according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain.
[0033] As an improvement of the above solution, the target blockchain is determined according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain, including:
[0034] Sorting all the blockchains in descending order of the free storage resources of each blockchain;
[0035] Select a set number of blockchains at the top of the ranking as candidate blockchains;
[0036] The candidate blockchain that receives the largest number of digital identity processing requests within the preset time period is selected as the target blockchain.
[0037] As an improvement of the above solution, before receiving the digital identity processing request sent by the first terminal and carrying the first identification information and the first digital identity information of the subject object, the method further includes:
[0038] Receiving the subject information of the subject object sent by the first terminal; wherein the subject information includes the first identification information and the first public key of the manager of the subject object, the second identification information and the second public key of the subject object;
[0039] The subject information is published to a blockchain for storage, and a storage address of the subject information in the blockchain is sent to the first terminal.
[0040] In a second aspect, an embodiment of the present invention provides a distributed digital identity management method, which is applied to a first terminal and includes:
[0041] Sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, so that the blockchain node performs the following operations:
[0042] Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information;
[0043] After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0044] Performing validity verification on the first attribute information that has passed the attribution verification;
[0045] According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
[0046] As an improvement of the above scheme, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of the issuing object that issues the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0047] As an improvement of the above scheme, the second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0048] As an improvement of the above scheme, the issuance path information includes the issuance path and the number of issuance levels from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0049] As an improvement of the above solution, the method further includes:
[0050] Using a first private key of the administrator of the subject object to sign the first digital identity information;
[0051] Generate the digital identity processing request according to the first identification information and the signed first digital identity information;
[0052] The first attribute information in the first digital identity information is pre-signed using the second private key of the subject object.
[0053] As an improvement of the above solution, the method further includes the following signing step of the first attribute information:
[0054] For each of the first attribute information, assigning a value from the issuing object that issues the attribute value to the first-level issuing object according to the issuing path, and obtaining the assignment parameters of the issuing object at each level in the issuing path;
[0055] The identification ciphertext, the first identification code, the issuance level number, the assignment parameter of the issuance object at each level in the issuance path, and the attribute value are concatenated in a preset order to obtain a first attribute character string;
[0056] Transforming the first attribute character string to obtain a second attribute character string;
[0057] The second attribute character string is signed using the second private key of the subject object to obtain a signature of the first digital identity information.
[0058] As an improvement of the above solution, the first attribute character string is transformed to obtain a second attribute character string, including:
[0059] According to the issuance level of the issuing object that issues the attribute value, the deformation rule of the first attribute string is determined by a preset mapping relationship between the issuance level and the deformation rule; wherein the deformation rule includes: a rule based on crossover operation, a rule based on mutation operation, and a rule based on repeated character splicing;
[0060] The first attribute character string is transformed using the transformation rule to obtain the second attribute character string.
[0061] As an improvement of the above solution, the step of using the transformation rule to transform the first attribute character string to obtain the second attribute character string includes:
[0062] When the deformation rule is a rule based on cross operation, the character string after the first position in the first attribute character string is cross-replaced with the character string after the second position in the base character string of the issuing object for issuing the attribute value, to obtain the second attribute character string;
[0063] When the transformation rule is a rule based on a mutation operation, an XOR operation is performed on the character at the third position and the character at the fourth position in the first attribute string to obtain a mutation character, and the mutation character is used to replace the character at the third position in the first attribute string to obtain the second attribute string;
[0064] When the deformation rule is a rule based on repeated character concatenation, a character string within a set position range in the first attribute character string is selected, and the character string within the set position range is concatenated to the end of the first attribute character string to obtain the second attribute character string.
[0065] As an improvement of the above solution, the method further includes the following second identification information calculation step:
[0066] Obtaining a secret seed and a real-name identity name of the subject object;
[0067] Performing a hash operation on the secret seed to obtain a first hash value;
[0068] A hash operation is performed on the real-name identity name and the first hash value to obtain second identification information of the subject object.
[0069] As an improvement of the above solution, the method further includes the following secret seed calculation step:
[0070] Acquire characteristic information of the subject object; wherein the characteristic information includes the establishment date of the subject object;
[0071] Concatenate the characteristic information and the temporarily generated characters to obtain a third character string;
[0072] For the third character string, a pseudo-random sequence is recursively generated through a preset nonlinear transformation function to obtain a secret seed of the subject object.
[0073] As an improvement of the above solution, the method further includes the following identification ciphertext calculation step:
[0074] Obtaining a first identification code of the subject object; wherein the first identification code is a first randomly generated digital string;
[0075] The second identification information and the first identification code are encrypted using the second private key of the subject object to generate the identification ciphertext.
[0076] As an improvement of the above solution, the method further includes:
[0077] For each of the first attribute information, an attribute application request is sent to a second terminal corresponding to the issuing object that issues the attribute value; wherein the attribute application request carries the second identification information of the subject object and the storage address of the subject information of the subject object;
[0078] receiving a third identification code sent by the second terminal; wherein the third identification code is a second randomly generated digital string;
[0079] Using the second private key of the subject object to sign the real-name identity name, the third identification code and the first hash value to obtain a subject signature value;
[0080] Sending the subject signature value, the identification ciphertext, the first identification code, the real-name identity name, the third identification code and the first hash value to the second terminal, so that the second terminal performs signature verification on the received identification ciphertext, the real-name identity name, the third identification code and the first hash value according to the second public key; wherein the second public key is obtained by the second terminal from the blockchain according to the second identification information and the storage address;
[0081] The first attribute information sent by the second terminal after the signature verification is passed is received.
[0082] As an improvement of the above solution, the method further includes:
[0083] For the received first attribute information, according to the third identification information in the first attribute information, obtain from the blockchain the third public key of the issuing object that issues the corresponding attribute value;
[0084] Using the third public key to sign the attribute value in the first attribute information to obtain the attribute signature to be verified;
[0085] Determine whether the attribute signature to be verified is consistent with the attribute value signature in the first attribute information;
[0086] If so, accept and store the first attribute information;
[0087] If not, reject the first attribute information.
[0088] As an improvement of the above solution, before sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, the method further includes:
[0089] The subject information of the subject object is sent to the blockchain node, so that the blockchain node publishes the subject information to the blockchain for storage; wherein the subject information includes the first identification information and the first public key of the administrator of the subject object, the second identification information and the second public key of the subject object;
[0090] Receive the storage address of the subject information in the blockchain sent by the blockchain node.
[0091] In a third aspect, an embodiment of the present invention provides a distributed digital identity management device, which is applied to a blockchain node, including:
[0092] An information receiving module, configured to receive a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information;
[0093] A signature verification module, used to determine a first public key of a management party of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information;
[0094] an attribution verification module, configured to determine, after the signature verification passes, a second public key of the subject object according to the second identification information, and perform attribution verification on the at least one first attribute information using the second public key;
[0095] A validity verification module, used to verify the validity of the first attribute information that has passed the attribution verification;
[0096] An information publishing module is used to generate second digital identity information according to the second identification information and the first attribute information that has passed validity verification, and publish the second digital identity information to at least one blockchain for distributed management.
[0097] In a fourth aspect, an embodiment of the present invention provides a distributed digital identity management device, applied to a first terminal, including:
[0098] The first information sending module is used to send a digital identity processing request carrying first identification information and first digital identity information of a subject object to a blockchain node, so that the blockchain node performs the following operations:
[0099] Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information;
[0100] After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0101] Performing validity verification on the first attribute information that has passed the attribution verification;
[0102] According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
[0103] In a fifth aspect, an embodiment of the present invention provides a distributed digital identity management device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements a distributed digital identity management method as described in any one of the first aspect or a distributed digital identity management method as described in any one of the second aspect.
[0104] In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute a distributed digital identity management method as described in any one of the first aspect or a distributed digital identity management method as described in any one of the second aspect.
[0105] In the seventh aspect, an embodiment of the present invention provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements a distributed digital identity management method as described in any one of the first aspect or a distributed digital identity management method as described in any one of the second aspect.
[0106] Compared with the prior art, a distributed digital identity management method, device, equipment, medium and program product according to an embodiment of the present invention receives a digital identity processing request sent by a first terminal carrying first identification information and first digital identity information of a subject object through a blockchain node; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information; then, according to the first identification information, the first public key of the manager of the subject object is determined, and the first public key is used to perform signature verification on the first digital identity information; after the signature verification passes, the second public key of the subject object is determined according to the second identification information, and the attribution verification of the at least one first attribute information is performed using the second public key; the validity of the first attribute information that passes the attribution verification is verified; according to the second identification information and the first attribute information that passes the validity verification, the second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management; the embodiment of the present invention searches for the corresponding public key based on the identification information of each participant in the blockchain to perform multiple verifications on the first digital identity information, thereby accurately identifying the identity information of each participant in the blockchain, avoiding information forgery, ensuring the authenticity and validity of the data, and improving the security of the digital identity information. BRIEF DESCRIPTION OF THE DRAWINGS
[0107] In order to more clearly illustrate the technical solution of the present invention, the drawings used in the implementation mode will be briefly introduced below. Obviously, the drawings described below are only some implementation modes of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0108] Figure 1 is a flow chart of a distributed digital identity management method provided by an embodiment of the present invention;
[0109] Figure 2 is a schematic diagram of first digital identity information provided by an embodiment of the present invention;
[0110] Figure 3 is a schematic diagram of second digital identity information provided by an embodiment of the present invention;
[0111] Figure 4 is a schematic diagram of subject information provided by an embodiment of the present invention;
[0112] Figure 5 is a schematic diagram of attribute maintenance information provided by an embodiment of the present invention;
[0113] Figure 6 is another flow chart of a distributed digital identity management method provided by an embodiment of the present invention;
[0114] Figure 7 It is a structural block diagram of a distributed digital identity management device provided by an embodiment of the present invention;
[0115] Figure 8 is another structural block diagram of a distributed digital identity management device provided by an embodiment of the present invention;
[0116] Fig. 9 It is a structural block diagram of a distributed digital identity management device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0117] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of 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.
[0118] It should be noted that, in the embodiments of the present invention, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements. The term "multiple or several" refers to two or more, and the same applies to "multiple / items or several / items". "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.
[0119] Some terminology concepts involved in the embodiments of the present invention are explained below.
[0120] Blockchain: It is a network chain structure formed by multiple participating enterprises / institutions (also referred to as subject objects in the embodiments of the present invention) involved in the production and circulation process of products or services. For example, the suppliers and their managers involved in the traditional supply chain can correspond to at least one blockchain, the product managers can correspond to at least one blockchain separately, and the demanders (purchasers) and their managers can correspond to at least one blockchain, thereby forming a network chain structure containing multiple blockchains based on the supply chain.
[0121] Blockchain node: refers to the terminal device in the blockchain network, such as computers, servers, etc. On the basis of blockchain, each subject object is deployed with a blockchain node, which can communicate with all clients related to the subject object (such as computers, mobile phones, servers, etc.). The blockchain performs distributed storage and synchronization of the first digital identity information of the subject object published / uploaded by each blockchain node. It should be understood that the first digital identity information of the subject object can be sent to the blockchain node through its own corresponding client, or sent to the blockchain node through the client corresponding to the manager of the subject object.
[0122] Taking the supply chain as an example, the main objects involved include product producers (i.e. manufacturers), suppliers (i.e. suppliers), products, demanders (i.e. purchasers, purchasers), management parties of suppliers, management parties of demanders, attribute issuance / certification agencies, etc. Among them, the attribute issuance / certification agency refers to a credible agency that performs attribute certification such as qualifications and certifications on suppliers, products or demanders. The first digital identity information of the product is uploaded to the blockchain node through the terminal of the product manager; the first digital identity information of the supplier and the demander can be uploaded to the blockchain node through their corresponding terminals or the terminals of their managers. In an embodiment of the present invention, the main objects may be suppliers, demanders, manufacturers, distributors, etc., and the issuing object is the attribute issuance / certification agency.
[0123] A distributed digital identity management method provided by an embodiment of the present invention will be described in detail below with reference to the accompanying drawings.
[0124] See also Figure 1 , Figure 1 1 is a flow chart of a distributed digital identity management method provided by an embodiment of the present invention. The distributed digital identity management method is applied to a blockchain node and specifically includes:
[0125] S11: receiving a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information;
[0126] S12: Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information;
[0127] S13: after the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0128] S14: Verifying the validity of the first attribute information that has passed the attribution verification;
[0129] S15: Generate second digital identity information based on the second identification information and the first attribute information that has passed validity verification, and publish the second digital identity information to at least one blockchain for distributed management.
[0130] Among them, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of the issuing object that issued the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0131] The second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0132] The issuance path information includes the issuance path and the issuance level number from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0133] Among them, the issuance path refers to the issuance path from the issuing object that actually issues the attribute value to the subject object to the first-level issuing object. For example, if a certain attribute value is issued by a third-level issuing object (such as a municipal issuance / certification agency), the issuance path is third-level issuing object-second-level issuing object-first-level issuing object, and the number of issuance levels is 3. It should be understood that in actual applications, there is a hierarchical relationship between the issuing objects of various attribute values, such as a first-level issuing object (such as a national agency), a second-level issuing object (authorized by the first-level issuing object, that is, the information of the second-level issuing object carries the identification and signature of the first-level issuing object), and similarly, there are third-level issuing objects, fourth-level issuing objects, etc.
[0134] It should be noted that the embodiments of the present invention are executed by blockchain nodes in a blockchain system. Exemplarily, when the subject object is a supplier, its first digital identity information includes the supplier's second identification information and / or the supplier's management party's first identification information, and at least one first attribute information of the supplier; the supplier's first attribute information includes an identification ciphertext, a first identification code, an attribute value, a third identification information of the issuing object (i.e., the attribute issuing / certifying authority) that issued the attribute value, an attribute value signature, and issuance path information. Among them, the first digital identity information is as follows: Figure 2 As shown, the second digital identity information is as follows Figure 3 shown.
[0135] It should be noted that when the subject object is a supplier, a demander, a distributor or a manufacturer, the attribute value is obtained according to the subject attributes such as the qualification certificate, organization certificate, legal person certificate or capital flow certificate issued by the issuing object to the subject object. For example, the organization code in the organization certificate corresponds to an attribute value in the first attribute information, and the qualification certificate, legal person certificate and capital flow certificate are similar, and will not be repeated here.
[0136] It should be understood that in the digital identity management process, when the administrator of the subject object is the subject object itself, the second identification information of the subject object and the first identification information of the administrator of the subject object are actually the same identification. At this time, the second identification information of the subject object can be regarded as the first identification information of the administrator of the subject object and sent to the blockchain node through the terminal of the subject object. When the administrator of the subject object is not the subject object itself, the second identification information of the subject object and the first identification information of the administrator of the subject object are usually sent to the blockchain node at the same time through the terminal of the administrator of the subject object.
[0137] Specifically, the second identification information of the subject object is calculated in the following way:
[0138] The first terminal obtains the secret seed and real-name identity name of the subject object;
[0139] The first terminal performs a hash operation on the secret seed to obtain a first hash value;
[0140] The first terminal performs a hash operation on the real-name identity name and the first hash value to obtain second identification information of the subject object.
[0141] For example, the second identification information ID of the subject object is Hash(Name, Hash(seed)); wherein Name represents the real-name identity name of the subject object, and Hash(seed) represents the first hash value obtained by performing a hash operation on the secret seed seed.
[0142] Specifically, the secret seed is calculated as follows:
[0143] The first terminal obtains characteristic information of the subject object; wherein the characteristic information includes the establishment date of the subject object;
[0144] The first terminal performs character concatenation on the characteristic information and the temporarily generated characters to obtain a third character string;
[0145] The first terminal recursively generates a pseudo-random sequence for the third character string through a preset nonlinear transformation function to obtain a secret seed of the subject object.
[0146] Specifically, the identification ciphertext is calculated in the following way:
[0147] The first terminal obtains a first identification code of the subject object; wherein the first identification code is a first randomly generated digital string;
[0148] The first terminal uses the second private key of the subject object to perform encryption operation on the second identification information and the first identification code to generate the identification ciphertext.
[0149] For example, the identification ciphertext of the subject object = E sk (ID, salt), where E sk The encryption algorithm representing the second private key sk based on the subject object, such as an asymmetric encryption algorithm, an RSA algorithm, etc., is not specifically limited in the embodiment of the present invention.
[0150] It should be noted that the generation process of the first identification information of the management party of the subject object and the third identification information of the issuing object is similar to the generation process of the second identification information of the subject object mentioned above, and will not be repeated here.
[0151] Furthermore, the method further includes the following process of generating the digital identity processing request:
[0152] The first terminal signs the first digital identity information using the first private key of the administrator of the subject object;
[0153] The first terminal generates the digital identity processing request according to the first identification information and the signed first digital identity information;
[0154] The first attribute information in the first digital identity information is pre-signed using the second private key of the subject object.
[0155] The first terminal signing the first attribute information includes the following steps:
[0156] For each of the first attribute information, assigning a value from the issuing object that issues the attribute value to the first-level issuing object according to the issuing path, and obtaining the assignment parameters of the issuing object at each level in the issuing path;
[0157] The identification ciphertext, the first identification code, the issuance level number, the assignment parameter of the issuance object at each level in the issuance path, and the attribute value are concatenated in a preset order to obtain a first attribute character string;
[0158] Transforming the first attribute character string to obtain a second attribute character string;
[0159] The second attribute character string is signed using the second private key of the subject object to obtain a signature of the first digital identity information.
[0160] In an embodiment of the present invention, the attribute value is combined with the identification ciphertext of the subject object, the randomly generated first identification code, the issuance level number and the issuance path of the issuing object, and then the character string is deformed and signed with the second private key of the subject object, which can increase the risk of the attribute value signature being cracked.
[0161] Specifically, the transforming the first attribute character string to obtain the second attribute character string includes:
[0162] According to the issuance level of the issuing object that issues the attribute value, the deformation rule of the first attribute string is determined by a preset mapping relationship between the issuance level and the deformation rule; wherein the deformation rule includes: a rule based on crossover operation, a rule based on mutation operation, and a rule based on repeated character splicing;
[0163] The first attribute character string is transformed using the transformation rule to obtain the second attribute character string.
[0164] Exemplarily, when the deformation rule is a rule based on crossover operation, the character string after the first position in the first attribute character string is cross-replaced with the character string after the second position in the base character string of the issuing object that issues the attribute value, to obtain the second attribute character string;
[0165] When the transformation rule is a rule based on a mutation operation, an XOR operation is performed on the character at the third position and the character at the fourth position in the first attribute string to obtain a mutation character, and the mutation character is used to replace the character at the third position in the first attribute string to obtain the second attribute string;
[0166] When the deformation rule is a rule based on repeated character concatenation, a character string within a set position range in the first attribute character string is selected, and the character string within the set position range is concatenated to the end of the first attribute character string to obtain the second attribute character string.
[0167] In an embodiment of the present invention, the first terminal uses the signed first digital identity information as the transaction content, and generates a digital identity processing request together with the first identification information of the administrator of the subject object and sends it to the corresponding blockchain node. After receiving the digital identity processing request sent by the first terminal, the blockchain node finds the first public key of the administrator of the subject object based on the first identification information, and uses the first public key to perform signature verification on the first digital identity information; after the signature verification is passed, the second public key of the subject object is found according to the second identification information in the first digital identity information, and the second public key is used to perform attribution verification on at least one first attribute information in the first digital identity information; then the validity of the attribution verification is verified for the at least one first attribute information, and after the validity verification is passed, at least one second digital identity information is generated according to the second identification information and the at least one first attribute information that passes the validity verification; finally, the at least one second digital identity information is published to at least one blockchain for distributed management, such as information storage, access, query management, etc. The embodiment of the present invention searches for the corresponding public key based on the identification information of each participant in the blockchain to perform multiple verifications on the first digital identity information, so that the identity information of each participant in the blockchain can be accurately identified, information forgery can be avoided, data authenticity and validity can be ensured, and the security of digital identity information can be improved.
[0168] Furthermore, before receiving the digital identity processing request sent by the first terminal and carrying the first identification information and the first digital identity information of the subject object, the method further includes:
[0169] Receiving the subject information of the subject object sent by the first terminal; wherein the subject information includes the first identification information and the first public key of the manager of the subject object, the second identification information and the second public key of the subject object;
[0170] The subject information is published to a blockchain for storage, and a storage address of the subject information in the blockchain is sent to the first terminal.
[0171] Among them, the first terminal stores the storage address of the subject information sent by the blockchain node in the blockchain.
[0172] Exemplarily, the subject object, the management party of the subject object and the issuing object all have unique identification and public-private key pairs, such as the first identification information of the management party of the subject object and its first public-private key pair (including the first private key and the first public key), the second identification information of the subject object and its second public-private key pair (including the second private key and the second public key), and the third identification information of the issuing object and its third public-private key pair (including the third private key and the third public key).
[0173] The first terminal will publish the first identification information and the first public key of the management party of the subject object, the second identification information and the second public key of the subject object as the subject information to the block chain node and publish it to the blockchain for distributed storage; wherein, the subject information is as follows: Figure 5 The first private key of the management party of the corresponding subject object and the second private key of the subject object are stored in the first terminal.
[0174] Specifically, step S12: determining the first public key of the administrator of the subject object according to the first identification information, and using the first public key to perform signature verification on the first digital identity information, including:
[0175] Acquire a first public key of a manager of a subject object corresponding to the first identification information from the blockchain;
[0176] Signing the first digital identity information using the first public key, and determining whether the signature value is consistent with the signature value of the first digital identity information;
[0177] If so, it is considered that the first digital identity information signature verification has passed, and the next verification process is performed; otherwise, it is considered that the first digital identity information signature verification has failed, and the first digital identity information is discarded.
[0178] Step S13: determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information, including:
[0179] Obtaining a second public key of the subject object corresponding to the second identification information from the blockchain;
[0180] Decrypting the identification ciphertext in each of the first attribute information using the second public key to obtain fourth identification information and a second identification code of the corresponding first attribute information;
[0181] Determine whether the fourth identification information is consistent with the second identification information and whether the second identification code is consistent with the first identification code in the corresponding first attribute information;
[0182] If yes, it is determined that the corresponding first attribute information belongs to the subject object, the attribute verification is passed, and the next verification process is performed;
[0183] If not, it is determined whether the corresponding first attribute information belongs to the subject object, the attribute verification fails, and the first digital identity information is discarded.
[0184] Step S14: performing validity verification on the first attribute information that has passed the attribution verification, including:
[0185] Obtaining from the blockchain a third public key of an issuing object for issuing the attribute value corresponding to the third identification information;
[0186] Using the third public key to sign each attribute value in the first attribute information, to obtain a signature to be verified for the corresponding first attribute information;
[0187] Determine whether the signature to be verified is consistent with the attribute value signature in the corresponding first attribute information;
[0188] If not, it is determined that the validity verification of the corresponding first attribute information fails, and the first digital identity information is discarded;
[0189] If so, judging whether the preset issuance condition is met according to the issuance path and the issuance level number in the corresponding first attribute information;
[0190] When the issuance conditions are met, it is determined that the validity verification of the corresponding first attribute information has passed, and the next step of the numerical identity information release process is entered; otherwise, the validity verification of the corresponding first attribute information has failed, and the first digital identity information is discarded.
[0191] The issuance conditions include: the issuance path and the number of issuance levels meet preset issuance rules, and the weighted sum of the assignment parameters of the issuance objects at each level in the issuance path is equal to a preset value.
[0192] It should be noted that, in the embodiment of the present invention, there is no specific limitation on the specific value of the preset numerical value, and the user can customize the setting according to needs.
[0193] Exemplarily, the issuance verification rules include that the issuance objects at each level in the issuance path comply with the issuance object hierarchical authorization relationship (that is, two adjacent issuance objects in the issuance path cannot be cross-level), and the number of issuance levels is the same as the number of issuance objects recorded in the issuance path.
[0194] The weighted sum of the assignment parameters of the issuance objects at each level in the issuance path is calculated as follows:
[0195] Multiply the assignment parameters of the issuance objects at each level in the issuance path by the level to which the corresponding issuance objects belong, and add the above products to obtain a weighted sum value; for example, for the issuance path: third-level issuance object-second-level issuance object-first-level issuance object, the assignment parameter of the first-level issuance object is a1, the assignment parameter of the second-level issuance object is a2, and the assignment parameter of the third-level issuance object is a3, then the weighted sum value A=a1×1+a2×2+a3×3.
[0196] Exemplarily, taking the example of the administrator of the subject object publishing the first digital identity information of the subject object, the first terminal of the administrator of the subject object generates the first digital identity information (i.e., transaction content) based on the second identification information of the subject object and its first attribute information, and signs the first digital identity information using the first private key of the administrator of the subject object itself, and generates a digital identity processing request in combination with the first identification information of the administrator of the subject object itself and sends it to the blockchain node; wherein, the attribute value in the first digital identity information is pre-signed using the third private key of the corresponding issuing object (i.e., attribute value signature).
[0197] After receiving the digital identity processing request sent by the first terminal corresponding to the manager of the subject object, the blockchain node first queries the first identification information of the manager of the subject object, then finds out the first public key of the manager of the subject object through the first identification information, and signs the first digital identity information carried by the digital identity processing request through the first public key. By comparing whether the signature is consistent with the signature of the first digital identity information itself, if not, it means that the signature verification is passed (that is, the signature is wrong), and the first digital identity information is discarded.
[0198] If so, it means that the signature verification is successful (that is, the signature is correct), and the first digital identity information is further subject to attribution verification. Specifically, the second identification information of the subject object in the first digital identity information is queried, and then the second public key of the subject object is found through the second identification information. The second public key is used to decrypt the identification ciphertext in the first attribute information in the first digital identity information, and it is determined whether the identification information and identification code obtained after decryption are consistent with the second identification information and the first identification code in the first digital identity information; if not, it means that the attribution verification fails, and the first digital identity information is discarded.
[0199] If yes, it means the attribution verification is passed, and the first digital identity information is further verified. Specifically, the third identification information in the first attribute information is queried, and then the third public key of the corresponding issuing object is found according to the third identification information, and the attribute value in the first attribute information is signed using the third public key. By comparing whether the signature is consistent with the attribute signature in the first attribute information, if not, it means the signature verification is passed (i.e., the signature is wrong), and the first digital identity information is discarded.
[0200] If yes, it means the signature verification is passed (i.e. the signature is correct), proving the attribute value is correct. Further determine whether the issuance path and issuance level in the first attribute information meet the preset issuance conditions. If no, discard the first digital identity information. If yes, proceed to the next step of the digital identity information release management process.
[0201] In an embodiment of the present invention, the first digital identity information that has passed signature verification and attribution verification is combined with the issuance path information of the attribute issuing object of the subject object to verify whether the first attribute information in the first digital identity information is valid, ensuring that the attribute value in the first digital identity information of the subject object is true and valid, and the issuing object that issues the attribute value also meets the requirements. Compared with the prior art that needs to provide a complete picture of attribute information such as qualification certification during the identity authentication process, the embodiment of the present invention only needs to verify the issuance path information and attribute value signature of the issuing object, without providing a complete attribute information picture, thereby avoiding the risk of information leakage and further improving the security of digital identity information.
[0202] Specifically, step S15: generating second digital identity information according to the second identification information and the first attribute information that has passed validity verification, and publishing the second digital identity information to at least one blockchain for distributed management, including:
[0203] Determining whether the first attribute information contains a blockchain identifier;
[0204] When all the first attribute information contain the blockchain identifier, the second attribute information corresponding to each of the first attribute information in the second digital identity information is published to the blockchain corresponding to the corresponding blockchain identifier for storage;
[0205] When all the first attribute information do not contain the blockchain identifier, all the second attribute information in the second digital identity information are merged and published to the target blockchain for storage;
[0206] When part of the first attribute information does not contain the blockchain identifier and part of the first attribute information contains the blockchain identifier, the second attribute information corresponding to the first attribute information containing the blockchain identifier in the second digital identity information is respectively published to the blockchain corresponding to the corresponding blockchain identifier for storage, and the second attribute information corresponding to the first attribute information not containing the blockchain identifier in the second digital identity information is merged and published to the target blockchain for storage.
[0207] In an embodiment of the present invention, the second attribute information is published separately or centrally based on the blockchain identifier. On the one hand, different second attribute information can be stored in different blockchains to realize classified storage of the second attribute information; on the other hand, it can meet the needs of the subject object to store all or part of its own second attribute information in a certain blockchain, thereby meeting different management (such as storage, access, query, etc.) requirements of different second attribute information.
[0208] Furthermore, the method also includes the following target blockchain determination process:
[0209] The target blockchain is determined according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain.
[0210] The target blockchain is determined according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain, including:
[0211] Sorting all the blockchains in descending order of the free storage resources of each blockchain;
[0212] Select a set number of blockchains at the top of the ranking as candidate blockchains;
[0213] The candidate blockchain that receives the largest number of digital identity processing requests within the preset time period is selected as the target blockchain.
[0214] It should be understood that the subject object has multiple first attribute information. The blockchain node can store each first attribute information of the subject object separately, and may store it in different blockchains. It can also aggregate multiple first attribute information and publish them to a specific target blockchain after merging to meet the storage needs of different attribute information of different subject objects.
[0215] In an embodiment of the present invention, based on the number of digital identity processing requests received by each blockchain and the idle storage resources of each blockchain, a target blockchain for centrally storing the second attribute information is determined, so that the storage resources of each blockchain can be balanced.
[0216] In the embodiment of the present invention, the subject object needs to apply for corresponding first attribute information from different issuing objects. The specific process of applying for the first attribute information using the first terminal is as follows:
[0217] For each of the first attribute information, an attribute application request is sent to a second terminal corresponding to the issuing object that issues the attribute value; wherein the attribute application request carries the second identification information of the subject object and the storage address of the subject information of the subject object;
[0218] receiving a third identification code sent by the second terminal; wherein the third identification code is a second randomly generated digital string;
[0219] Using the second private key of the subject object to sign the real-name identity name, the third identification code and the first hash value to obtain a subject signature value;
[0220] Sending the subject signature value, the identification ciphertext, the first identification code, the real-name identity name, the third identification code and the first hash value to the second terminal, so that the second terminal performs signature verification on the received identification ciphertext, the real-name identity name, the third identification code and the first hash value according to the second public key; wherein the second public key is obtained by the second terminal from the blockchain according to the second identification information and the storage address;
[0221] The first attribute information sent by the second terminal after the signature verification is passed is received.
[0222] After receiving the first attribute information, the first terminal obtains the third public key of the issuing object that issues the corresponding attribute value from the blockchain according to the third identification information in the first attribute information;
[0223] Using the third public key to sign the attribute value in the first attribute information to obtain the attribute signature to be verified;
[0224] Determine whether the attribute signature to be verified is consistent with the attribute value signature in the first attribute information;
[0225] If so, accept and store the first attribute information;
[0226] If not, reject the first attribute information.
[0227] For example, a subject object may have multiple attributes, each of which can be applied for separately. The specific attribute application process is as follows:
[0228] The subject object sends an attribute application request to the second terminal through the first terminal to apply for first attribute information from a certain issuing object corresponding to the second terminal, and the attribute application request carries the second identification information of the subject object and the storage address of its subject information;
[0229] The issuing party authenticates the subject object through the second terminal; the specific identity authentication process is as follows:
[0230] The second terminal searches and obtains the second public key of the subject object from the blockchain according to the second identification information and the storage address in the attribute application request, and sends a second digital string, such as a random number nonce, to the first terminal.
[0231] The first terminal uses the second private key of the subject object to sign the information msg=(Name, nonce, Hash(seed)) to obtain the subject signature value sig;
[0232] The first terminal calculates the identification ciphertext of the subject object and generates a random number as a first identification code salt;
[0233] The first terminal sends the identification ciphertext, the first identification code salt, msg, and sig to the second terminal;
[0234] The issuing object verifies the above signature by using the second public key of the subject object through the second terminal; specifically, the second terminal calculates an identification information according to the real-name identity name Name of the subject object and the first hash value Hash (seed), and determines whether the calculated identification is consistent with the second identification information of the subject object in the attribute application request; uses the second public key of the subject object to decrypt the identification ciphertext, and determines whether the identification information and identification code obtained by decryption are consistent with the second identification information and the first identification code salt of the received subject object;
[0235] If the calculated identifier is consistent with the second identifier of the subject object in the attribute application request, and the decrypted identifier and identification code are consistent with the received second identifier and first identifier salt of the subject object, then the identity authentication is successful.
[0236] The second terminal returns the first attribute information carrying the identification ciphertext of the subject object, the first identification code salt, the attribute value, the attribute value signature, the third identification information of the issuing object, and the issuance path information to the first terminal;
[0237] The subject object signs the msg in the received first attribute information using the second private key of the subject object through the first terminal, and determines whether the signature value is consistent with the above subject signature value sig;
[0238] If they are consistent, it means that the signature is correct and the first attribute information is accepted; otherwise, the first attribute information is rejected.
[0239] Further, the first terminal calculates the Hash value of the attribute value in the first attribute information for the received first attribute information, and stores the blockchain identifier corresponding to the blockchain to which the first attribute information is expected to be published and the Hash value of the attribute value, wherein the Hash value serves as the identifier of the corresponding attribute value. The attribute maintenance information maintained by the subject object in the first terminal is shown in 5.
[0240] Afterwards, the first terminal generates a digital identity information processing request based on the first attribute information of the applied subject object and sends it to the blockchain node for individual or centralized release of the attribute information. Subsequently, the blockchain will broadcast the received information.
[0241] It should be understood that when the first attribute information of the subject object is updated, the updated first attribute information can be published to the blockchain through the blockchain node to synchronously update the corresponding second attribute information stored in the blockchain with the first attribute information. The specific process is the same as the above steps S11-S15, and will not be repeated here.
[0242] In other embodiments, the main object may also be a product. In this case, the first digital information of the product includes a product identification, a component identification, a manufacturer identification, and a dealer identification; wherein, the product component refers to each component of the product, and the product component identification includes the identification of each component, and the component itself may still be a product. The attribute value in the first attribute information of the product is obtained according to the main attributes such as the function certificate, performance certificate, and qualification certificate of the product issued by the issuing object to the main object. The generation process of the product identification, manufacturer identification, and dealer identification can refer to the generation process of the second identification when the main object is a supplier, a demander, a manufacturer, or a dealer described above. The attribute application and release process of the first digital information of the product can refer to the attribute application and release process when the main object is a supplier, a demander, a manufacturer, or a dealer described above, and will not be repeated here.
[0243] When the subject object is a product, in addition to using the product's real name Name and secret seed seed to generate the corresponding product identification, the first terminal may also use only the product's secret seed to generate the corresponding second identification information, that is, product identification = Hash Hash (seed).
[0244] Furthermore, the method also includes the following information matching process involving the interaction between the two subject objects, the demander and the supplier. The specific information matching process is as follows:
[0245] The demander's terminal first performs the following procurement information release steps:
[0246] The demander's supplier attribute requirements, product attribute requirements, the supplier's first attribute information corresponding to the issuing object identification list, the issuance path information of the supplier's first attribute information, the issuing object identification list corresponding to the product's first attribute information, the issuance path information of the product's first attribute information, etc. are used as procurement information, and the procurement information is signed with its own second private key and sent to the blockchain node.
[0247] It should be understood that the issuing object identification list is provided by the demander to determine whether the first attribute information of the supplier and the first attribute information of the product are issued / certified by a credible organization. Only the attributes provided by the issuing object in the list are recognized. The supplier attribute requirements are provided by the demander to determine whether the supplier meets the second attribute information required by the demander. The same is true for product attribute requirements.
[0248] The blockchain node performs the following steps:
[0249] Using the second identification information of the demander to find the second public key of the demander, using the second public key to verify the signature of the purchase information, and discarding the purchase information if the signature is wrong;
[0250] If the signature is correct, the corresponding purchase information will be stored in the blockchain; otherwise, the purchase information will be discarded.
[0251] The blockchain will then broadcast the received procurement information; for example, the blockchain node will feedback the transaction identifier, that is, the hash value of the procurement information, to the demander.
[0252] Since the supplier's multiple second attribute information can be stored separately in different blockchains, or stored centrally in the same blockchain, after receiving the transaction identifier broadcast by the blockchain, the supplier will first check whether its own second attribute information is centrally published in a certain blockchain.
[0253] If the second attribute information is not centrally published to the blockchain, the supplier sends the attribute maintenance information it maintains to the procurement information matching module. The attribute maintenance information includes: the hash value of the attribute value, the blockchain identifier and the second identifier information of the supplier, such as Figure 5 shown.
[0254] The procurement information matching module searches for the corresponding second digital identity information containing a second attribute information in the blockchain corresponding to different blockchain identifiers according to the blockchain identifier and the hash value of the attribute value in the attribute maintenance information, and executes the following step a.
[0255] If the second attribute information is centrally published in the blockchain, the supplier sends the supplier's second identification information and the blockchain identifier where the attribute value is located to the procurement information matching module.
[0256] The procurement information matching module searches the corresponding blockchain for the second digital identity information of all the second attribute information of the supplier based on the second identification information and the blockchain identification, and executes the following step b.
[0257] In the embodiment of the present invention, the second attribute information may further include the issuance level number of the issuing object that issues the attribute value.
[0258] Procurement information and product matching process:
[0259] The procurement information matching module performs the following steps; wherein, the procurement information matching module may be a server independent of the demander / supplier terminal (which may also be regarded as a blockchain node).
[0260] Step a: Verify the ownership of the acquired second digital identity information. According to the first identification information of the supplier received in the previous step, obtain the second public key of the supplier from the blockchain;
[0261] The second public key is used to decrypt the second digital identity information, obtain a second identification information and second attribute information (including attribute value and third identification information of the issuing object), and verify whether the decrypted second identification information is consistent with the second identification information sent by the supplier currently received by the procurement information matching module; if not, terminate the procurement information and product matching process; if consistent, it means that the second attribute information does belong to the supplier.
[0262] Step b: Search for suppliers that meet the requirements. The specific process is as follows:
[0263] For the above-mentioned supplier of the attribute maintenance information, or the Hash value of the blockchain identifier and attribute value,
[0264] The procurement information matching module searches for suppliers that meet the requirements according to the supplier attribute requirements in the procurement information, and determines whether the third identification information of the issuing object of the supplier is in the supplier issuing object identification list of the demander;
[0265] If the supplier is in the list of object identifiers issued by the supplier, then the supplier meets the requirements of the demander;
[0266] If it is not in the supplier's issuance object identification list, then the issuance object of the previous level of the corresponding issuance object is searched according to the third identification information in the second attribute information obtained above, until the issuance object of the first level is reached. When the issuance level number of the search process is less than the issuance level number in the second attribute information of the corresponding supplier, the supplier is considered to meet the requirements of the demander, otherwise it does not meet the requirements.
[0267] It should be noted that in the process of publishing the supplier's second digital identity information, the attribute value signature has been verified. In the process of matching procurement information and products, it is only necessary to determine the issuing object of the attribute value, and there is no need to verify the attribute value signature.
[0268] Step c: The procurement information matching module uses the product attribute requirements to retrieve products that meet the requirements, and determines whether the third identification information of the product's issuing object is in the product's issuing object identification list of the demander;
[0269] If it is in the list, go to step d;
[0270] If it is not in the list, then according to the third identification information of the issuing object of the product, find the upper-level certification authority of the issuing object, find the issuing object of the corresponding issuing object, and so on until the first-level issuing object is reached. When the number of issuance levels in the search process is less than the number of issuance levels in the second attribute information of the corresponding product, the product is considered to meet the requirements of the demander and execute step d, otherwise it does not meet the requirements.
[0271] Step d: Determine whether the product's distributor identification matches the second identification information of any supplier retrieved in step b. If they match, the product that meets the requirements retrieved in step c is considered to be the product required by the demander, and the product information is returned to the demander; otherwise, the product that meets the requirements retrieved in step c is considered not to be the product required by the demander.
[0272] The demander purchases the product based on the product information and obtains the required product after the purchase is successful. At this time, the product belongs to a specific owner and is called an item. Item information includes item identification, item management party (owner) identification (i.e., the first identification information of the product management party), item attributes (such as purchase date, price, etc.), corresponding product identification, supplier identification (i.e., the second identification information of the supplier), etc.
[0273] After the demander successfully purchases the item, the item information will be published to the blockchain for subsequent fulfillment.
[0274] The process of publishing item information is as follows:
[0275] The demander's terminal uses the purchased item information, such as item identification, item attributes, corresponding product identification, supplier identification, etc. as the transaction content, signs the transaction content using the demander's second private key, and then sends it to the blockchain node.
[0276] The blockchain node uses the second identification information of the demander to search the blockchain for the second public key corresponding to the demander, and uses the second public key to verify the signature of the above transaction content. After successful verification, the item information is published to the blockchain for storage.
[0277] The item information update process is similar to other update processes and will not be repeated here. The item attributes may also include ownership attributes, that is, the ownership of the item. Through the item information update process, the item ownership may be changed, and the item management party identification may also be changed.
[0278] Compared with the prior art, the embodiment of the present invention identifies the first digital identity information of each participant in the blockchain through identification and attributes. All first attribute information is signed by the corresponding organization to ensure authenticity. All first digital identity information is recorded in the blockchain to improve the efficiency of information sharing. All first attribute information is signed by the corresponding organization to avoid information forgery and ensure that the data is true and valid. At the same time, all first digital identity information is constructed in a modular manner, each identification is managed by the corresponding management party, and each first attribute information has a corresponding organization to issue and certify, which is convenient for the update of the first digital identity information and can ensure that the first digital identity information release process and update process are safe and reliable.
[0279] See also Figure 6The embodiment of the present invention further provides a distributed digital identity management method, which is applied to a second terminal and includes:
[0280] Sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, so that the blockchain node performs the following operations:
[0281] Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information;
[0282] After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0283] Performing validity verification on the first attribute information that has passed the attribution verification;
[0284] According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
[0285] In an optional embodiment, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of an issuing object that issues the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one of the first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0286] In an optional embodiment, the second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0287] In an optional embodiment, the issuance path information includes the issuance path and the number of issuance levels from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0288] In an optional embodiment, the method further includes:
[0289] Using a first private key of the administrator of the subject object to sign the first digital identity information;
[0290] Generate the digital identity processing request according to the first identification information and the signed first digital identity information;
[0291] The first attribute information in the first digital identity information is pre-signed using the second private key of the subject object.
[0292] In an optional embodiment, the method further includes the following signing step of the first attribute information:
[0293] For each of the first attribute information, assigning a value from the issuing object that issues the attribute value to the first-level issuing object according to the issuing path, and obtaining the assignment parameters of the issuing object at each level in the issuing path;
[0294] The identification ciphertext, the first identification code, the issuance level number, the assignment parameter of the issuance object at each level in the issuance path, and the attribute value are concatenated in a preset order to obtain a first attribute character string;
[0295] Transforming the first attribute character string to obtain a second attribute character string;
[0296] The second attribute character string is signed using the second private key of the subject object to obtain a signature of the first digital identity information.
[0297] In an optional embodiment, the transforming the first attribute character string to obtain the second attribute character string includes:
[0298] According to the issuance level of the issuing object that issues the attribute value, the deformation rule of the first attribute string is determined by a preset mapping relationship between the issuance level and the deformation rule; wherein the deformation rule includes: a rule based on crossover operation, a rule based on mutation operation, and a rule based on repeated character splicing;
[0299] The first attribute character string is transformed using the transformation rule to obtain the second attribute character string.
[0300] In an optional embodiment, the adopting the transformation rule to transform the first attribute character string to obtain the second attribute character string includes:
[0301] When the deformation rule is a rule based on cross operation, the character string after the first position in the first attribute character string is cross-replaced with the character string after the second position in the base character string of the issuing object for issuing the attribute value, to obtain the second attribute character string;
[0302] When the transformation rule is a rule based on a mutation operation, an XOR operation is performed on the character at the third position and the character at the fourth position in the first attribute string to obtain a mutation character, and the mutation character is used to replace the character at the third position in the first attribute string to obtain the second attribute string;
[0303] When the deformation rule is a rule based on repeated character concatenation, a character string within a set position range in the first attribute character string is selected, and the character string within the set position range is concatenated to the end of the first attribute character string to obtain the second attribute character string.
[0304] In an optional embodiment, the method further includes the following second identification information calculation step:
[0305] Obtaining a secret seed and a real-name identity name of the subject object;
[0306] Performing a hash operation on the secret seed to obtain a first hash value;
[0307] A hash operation is performed on the real-name identity name and the first hash value to obtain second identification information of the subject object.
[0308] In an optional embodiment, the method further includes the following secret seed calculation step:
[0309] Acquire characteristic information of the subject object; wherein the characteristic information includes the establishment date of the subject object;
[0310] Concatenate the characteristic information and the temporarily generated characters to obtain a third character string;
[0311] For the third character string, a pseudo-random sequence is recursively generated through a preset nonlinear transformation function to obtain a secret seed of the subject object.
[0312] In an optional embodiment, the method further includes the following identification ciphertext calculation step:
[0313] Obtaining a first identification code of the subject object; wherein the first identification code is a first randomly generated digital string;
[0314] The second identification information and the first identification code are encrypted using the second private key of the subject object to generate the identification ciphertext.
[0315] In an optional embodiment, the method further includes:
[0316] For each of the first attribute information, an attribute application request is sent to a second terminal corresponding to the issuing object that issues the attribute value; wherein the attribute application request carries the second identification information of the subject object and the storage address of the subject information of the subject object;
[0317] receiving a third identification code sent by the second terminal; wherein the third identification code is a second randomly generated digital string;
[0318] Using the second private key of the subject object to sign the real-name identity name, the third identification code and the first hash value to obtain a subject signature value;
[0319] Sending the subject signature value, the identification ciphertext, the first identification code, the real-name identity name, the third identification code and the first hash value to the second terminal, so that the second terminal performs signature verification on the received identification ciphertext, the real-name identity name, the third identification code and the first hash value according to the second public key; wherein the second public key is obtained by the second terminal from the blockchain according to the second identification information and the storage address;
[0320] The first attribute information sent by the second terminal after the signature verification is passed is received.
[0321] In an optional embodiment, the method further includes:
[0322] For the received first attribute information, according to the third identification information in the first attribute information, obtain from the blockchain the third public key of the issuing object that issues the corresponding attribute value;
[0323] Using the third public key to sign the attribute value in the first attribute information to obtain the attribute signature to be verified;
[0324] Determine whether the attribute signature to be verified is consistent with the attribute value signature in the first attribute information;
[0325] If so, accept and store the first attribute information;
[0326] If not, reject the first attribute information.
[0327] In an optional embodiment, before sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, the method further includes:
[0328] The subject information of the subject object is sent to the blockchain node, so that the blockchain node publishes the subject information to the blockchain for storage; wherein the subject information includes the first identification information and the first public key of the administrator of the subject object, the second identification information and the second public key of the subject object;
[0329] Receive the storage address of the subject information in the blockchain sent by the blockchain node.
[0330] It should be noted that the working process of each module in the distributed digital identity management device described in the embodiment of the present invention can refer to the working process of the distributed digital identity management method described in the above embodiment, and the technical effect achieved is the same as the distributed digital identity management method described in the above embodiment, which will not be repeated here.
[0331] See also Figure 7 The embodiment of the present invention further provides a distributed digital identity management device, which is applied to a blockchain node and includes:
[0332] The information receiving module 11 is used to receive a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information;
[0333] A signature verification module 12, configured to determine a first public key of a management party of the subject object according to the first identification information, and perform signature verification on the first digital identity information using the first public key;
[0334] The attribution verification module 13 is used to determine the second public key of the subject object according to the second identification information after the signature verification is passed, and use the second public key to perform attribution verification on the at least one first attribute information;
[0335] A validity verification module 14, used to verify the validity of the first attribute information that has passed the attribution verification;
[0336] The information publishing module 15 is used to generate second digital identity information according to the second identification information and the first attribute information that has passed validity verification, and publish the second digital identity information to at least one blockchain for distributed management.
[0337] In an optional embodiment, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of an issuing object that issues the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one of the first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0338] In an optional embodiment, the second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0339] In an optional embodiment, the issuance path information includes the issuance path and the number of issuance levels from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0340] In an optional embodiment, the attribution verification module 13 includes:
[0341] a decryption unit, configured to decrypt the identification ciphertext in each of the first attribute information using the second public key to obtain fourth identification information and a second identification code of the corresponding first attribute information;
[0342] The first judgment unit is used to judge whether the fourth identification information is consistent with the second identification information and whether the second identification code is consistent with the first identification code in the corresponding first attribute information; if so, it is determined that the corresponding first attribute information belongs to the subject object and the attribute verification passes; if not, it is determined whether the corresponding first attribute information belongs to the subject object and the attribute verification fails.
[0343] In an optional embodiment, the validity verification module 14 includes:
[0344] a signing unit, configured to determine, according to the third identification information, a third public key of an issuing object that issues the attribute value, and use the third public key to sign each attribute value in the first attribute information to obtain a signature to be verified for the corresponding first attribute information;
[0345] A second judgment unit is used to judge whether the signature to be verified is consistent with the attribute value signature in the corresponding first attribute information; if not, it is determined that the validity verification of the corresponding first attribute information fails;
[0346] The third judgment unit is used to judge whether the preset issuance conditions are met based on the issuance path and the issuance level number in the corresponding first attribute information; when the issuance conditions are met, determine that the validity verification of the corresponding first attribute information has passed, otherwise, the validity verification of the corresponding first attribute information has failed.
[0347] In an optional embodiment, the information publishing module 15 includes:
[0348] a fourth determination unit, configured to determine whether the first attribute information contains a blockchain identifier;
[0349] A first information publishing unit, configured to publish the second attribute information corresponding to each of the first attribute information in the second digital identity information to the blockchain corresponding to the corresponding blockchain identifier for storage when all of the first attribute information contain the blockchain identifier;
[0350] A second information publishing unit, configured to merge and publish all the second attribute information in the second digital identity information to a target blockchain for storage when all the first attribute information do not contain the blockchain identifier;
[0351] The third information publishing unit is used to publish the second attribute information corresponding to the first attribute information containing the blockchain identifier in the second digital identity information to the blockchain corresponding to the corresponding blockchain identifier for storage when part of the first attribute information does not contain the blockchain identifier and part of the first attribute information contains the blockchain identifier, and to merge and publish the second attribute information corresponding to the first attribute information in the second digital identity information that does not contain the blockchain identifier to the target blockchain for storage.
[0352] In an optional embodiment, the issuance condition includes: the issuance path and the number of issuance levels comply with preset issuance rules, and the weighted sum of the assignment parameters of the issuance objects at each level in the issuance path is equal to a preset value.
[0353] In an optional embodiment, the device further includes:
[0354] The target blockchain module is used to determine the target blockchain based on the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain.
[0355] In an optional embodiment, the target blockchain determination module includes:
[0356] A sorting unit, used to sort all the blockchains in descending order of free storage resources of each blockchain;
[0357] A screening unit, used to select a set number of blockchains at the top of the ranking as candidate blockchains;
[0358] The target blockchain determination unit is used to select the candidate blockchain that has received the largest number of digital identity processing requests within the preset time period as the target blockchain.
[0359] In an optional embodiment, the device further includes:
[0360] A subject information receiving module, used for receiving the subject information of the subject object sent by the first terminal before receiving the digital identity processing request carrying the first identification information and the first digital identity information of the subject object sent by the first terminal; wherein the subject information includes the first identification information and the first public key of the administrator of the subject object, the second identification information and the second public key of the subject object;
[0361] The subject information publishing module is used to publish the subject information to the blockchain for storage, and send the storage address of the subject information in the blockchain to the first terminal.
[0362] It should be noted that the working process of each module in the distributed digital identity management device described in the embodiment of the present invention can refer to the working process of the distributed digital identity management method described in the above embodiment, and the technical effect achieved is the same as the distributed digital identity management method described in the above embodiment, which will not be repeated here.
[0363] See also Figure 8 The embodiment of the present invention further provides a distributed digital identity management device, which is applied to a first terminal and includes:
[0364] The first information sending module 21 is used to send a digital identity processing request carrying first identification information and first digital identity information of a subject object to a blockchain node, so that the blockchain node performs the following operations:
[0365] Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information;
[0366] After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information;
[0367] Performing validity verification on the first attribute information that has passed the attribution verification;
[0368] Generate second digital identity information based on the second identification information and verify the first attribute information through validity, and publish the second digital identity information to at least one blockchain for distributed management.
[0369] In an optional embodiment, the first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of an issuing object that issues the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one of the first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
[0370] In an optional embodiment, the second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
[0371] In an optional embodiment, the issuance path information includes the issuance path and the number of issuance levels from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
[0372] In an optional embodiment, the device further includes:
[0373] A first signature module 22, configured to sign the first digital identity information using a first private key of the administrator of the subject object;
[0374] A request generating module 23, configured to generate the digital identity processing request according to the first identification information and the signed first digital identity information;
[0375] The first attribute information in the first digital identity information is pre-signed using the second private key of the subject object.
[0376] In an optional embodiment, the device further includes:
[0377] An assignment module, configured to assign, for each of the first attribute information, a value from an issuing object that issues the attribute value to a first-level issuing object according to the issuing path, and obtain an assignment parameter for each level of the issuing object in the issuing path;
[0378] A string concatenation module, used for concatenating the identification ciphertext, the first identification code, the number of issuance levels, the assignment parameters of the issuance object at each level in the issuance path and the attribute value in a preset order to obtain a first attribute string;
[0379] A character string deformation module, used for deforming the first attribute character string to obtain a second attribute character string;
[0380] The second signature module is used to sign the second attribute character string using the second private key of the subject object to obtain the signature of the first digital identity information.
[0381] In an optional embodiment, the character string deformation module includes:
[0382] A deformation rule determination unit is used to determine the deformation rule of the first attribute string according to the issuance level of the issuance object that issues the attribute value, through a preset mapping relationship between the issuance level and the deformation rule; wherein the deformation rule includes: a rule based on crossover operation, a rule based on mutation operation, and a rule based on repeated character concatenation.
[0383] A deformation unit is used to deform the first attribute character string by using the deformation rule to obtain the second attribute character string.
[0384] Wherein, when the deformation rule is a rule based on cross operation, the character string after the first position in the first attribute character string is cross-replaced with the character string after the second position in the base character string of the issuing object that issues the attribute value, to obtain the second attribute character string;
[0385] When the transformation rule is a rule based on a mutation operation, an XOR operation is performed on the character at the third position and the character at the fourth position in the first attribute string to obtain a mutation character, and the mutation character is used to replace the character at the third position in the first attribute string to obtain the second attribute string;
[0386] When the deformation rule is a rule based on repeated character concatenation, a character string within a set position range in the first attribute character string is selected, and the character string within the set position range is concatenated to the end of the first attribute character string to obtain the second attribute character string.
[0387] In an optional embodiment, the device further includes:
[0388] A first information acquisition module, used to acquire the secret seed and real-name identity name of the subject object;
[0389] A first hash operation module, used to perform a hash operation on the secret seed to obtain a first hash value;
[0390] The second hash operation module is used to perform a hash operation on the real-name identity name and the first hash value to obtain second identification information of the subject object.
[0391] In an optional embodiment, the device further includes:
[0392] A second information acquisition module is used to acquire characteristic information of the subject object; wherein the characteristic information includes the establishment date of the subject object;
[0393] A character concatenation module, used for concatenating the characteristic information and the temporarily generated characters to obtain a third character string;
[0394] The secret seed generation module is used to recursively generate a pseudo-random sequence for the third character string through a preset nonlinear transformation function to obtain the secret seed of the subject object.
[0395] In an optional embodiment, the device further includes:
[0396] A third information module is used to obtain a first identification code of the subject object; wherein the first identification code is a first digital string generated randomly;
[0397] The identification ciphertext generation module is used to use the second private key of the subject object to perform encryption operation on the second identification information and the first identification code to generate the identification ciphertext.
[0398] In an optional embodiment, the device further includes:
[0399] An attribute application request sending module, configured to send an attribute application request to a second terminal corresponding to an issuing object that issues the attribute value for each of the first attribute information; wherein the attribute application request carries the second identification information of the subject object and the storage address of the subject information of the subject object;
[0400] An identification code receiving module, configured to receive a third identification code sent by the second terminal; wherein the third identification code is a second randomly generated digital string;
[0401] A subject signature module, used to sign the real-name identity name, the third identification code and the first hash value using the second private key of the subject object to obtain a subject signature value;
[0402] A second information sending module, configured to send the subject signature value, the identification ciphertext, the first identification code, the real-name identity name, the third identification code and the first hash value to the second terminal, so that the second terminal performs signature verification on the received identification ciphertext, the real-name identity name, the third identification code and the first hash value according to the second public key; wherein the second public key is obtained by the second terminal from the blockchain according to the second identification information and the storage address;
[0403] The first attribute information receiving module is used to receive the first attribute information sent by the second terminal after the signature verification is passed.
[0404] In an optional embodiment, the device further includes:
[0405] A public key acquisition module, configured to acquire, for the received first attribute information, a third public key of an issuing object that issues a corresponding attribute value from the blockchain according to the third identification information in the first attribute information;
[0406] An attribute signature module, used to sign the attribute value in the first attribute information using the third public key to obtain an attribute signature to be verified;
[0407] The attribute signature judgment module is used to judge whether the attribute signature to be verified is consistent with the attribute value signature in the first attribute information; if so, accept and store the first attribute information; if not, reject the first attribute information.
[0408] In an optional embodiment, the device further includes:
[0409] A subject information sending module, used for sending the subject information of the subject object to the blockchain node before sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, so that the blockchain node publishes the subject information to the blockchain for storage; wherein the subject information includes the first identification information and the first public key of the administrator of the subject object, the second identification information and the second public key of the subject object;
[0410] A storage address receiving module is used to receive the storage address of the subject information in the blockchain sent by the blockchain node.
[0411] It should be noted that the working process of each module in the distributed digital identity management device described in the embodiment of the present invention can refer to the working process of the distributed digital identity management method described in the above embodiment, and the technical effect achieved is the same as the distributed digital identity management method described in the above embodiment, which will not be repeated here.
[0412] See also Fig. 9 , Fig. 9 : is a block diagram of a distributed digital identity management device provided in an embodiment of the present invention. The distributed digital identity management device includes a processor 31, a memory 32, and a computer program stored in the memory 32 and executable on the processor 31. When the processor 31 executes the computer program, the steps in the above-mentioned distributed digital identity management method embodiments are implemented, such as steps S11 to S15 or step S21.
[0413] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 32 and executed by the processor 31 to implement the present invention. The one or more modules / units may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program in the distributed digital identity management device.
[0414] The distributed digital identity management device may include, but is not limited to, a processor 31 and a memory 32. Those skilled in the art will appreciate that the schematic diagram is merely an example of a distributed digital identity management device and does not constitute a limitation on the distributed digital identity management device. The distributed digital identity management device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the distributed digital identity management device may also include input and output devices, network access devices, buses, and the like.
[0415] The processor 31 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 31 is the control center of the distributed digital identity management device, and uses various interfaces and lines to connect various parts of the entire distributed digital identity management device.
[0416] The memory 32 can be used to store the computer program and / or module, and the processor 31 realizes various functions of the distributed digital identity management device by running or executing the computer program and / or module stored in the memory 32, and calling the data stored in the memory 32. The memory 32 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 32 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 Med ia 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.
[0417] Wherein, if the module / unit integrated in the distributed digital identity management 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. When the computer program is executed by the processor 31, the steps of the above-mentioned method embodiments can be implemented. 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. The computer-readable medium can include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-On lyMemory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0418] It should be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.
[0419] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, many improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.
Claims
1. A distributed digital identity management method, characterized in that: Applied to blockchain nodes, including: Receiving a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information; Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information; Performing validity verification on the first attribute information that has passed the attribution verification; According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
2. The distributed digital identity management method according to claim 1, characterized in that: The first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of the issuing object that issued the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
3. The distributed digital identity management method according to claim 2, characterized in that: The second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
4. The distributed digital identity management method according to claim 2, characterized in that: The issuance path information includes the issuance path and the issuance level number from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
5. The distributed digital identity management method according to claim 2, characterized in that: Using the second public key to perform attribution verification on the at least one first attribute information includes: Decrypting the identification ciphertext in each of the first attribute information using the second public key to obtain fourth identification information and a second identification code of the corresponding first attribute information; Determine whether the fourth identification information is consistent with the second identification information and whether the second identification code is consistent with the first identification code in the corresponding first attribute information; If yes, it is determined that the corresponding first attribute information belongs to the subject object, and the attribute verification passes; If not, it is determined whether the corresponding first attribute information belongs to the subject object and the attribute verification fails.
6. The distributed digital identity management method according to claim 4, characterized in that: The performing validity verification on the first attribute information that passes the attribution verification includes: Determine, according to the third identification information, a third public key of the issuing object that issues the attribute value, and use the third public key to sign each attribute value in the first attribute information to obtain a signature to be verified for the corresponding first attribute information; Determine whether the signature to be verified is consistent with the attribute value signature in the corresponding first attribute information; If not, it is determined that the validity verification of the corresponding first attribute information fails; If so, judging whether the preset issuance condition is met according to the issuance path and the issuance level number in the corresponding first attribute information; When the issuance condition is met, it is determined that the validity verification of the corresponding first attribute information has passed, otherwise, the validity verification of the corresponding first attribute information has failed.
7. The distributed digital identity management method according to claim 4, characterized in that: Generate second digital identity information according to the second identification information and the first attribute information that has passed validity verification, and publish the second digital identity information to at least one blockchain for distributed management, including: Determining whether the first attribute information contains a blockchain identifier; When all the first attribute information contain the blockchain identifier, the second attribute information corresponding to each of the first attribute information in the second digital identity information is published to the blockchain corresponding to the corresponding blockchain identifier for storage; When all the first attribute information do not contain the blockchain identifier, all the second attribute information in the second digital identity information are merged and published to the target blockchain for storage; When part of the first attribute information does not contain the blockchain identifier and part of the first attribute information contains the blockchain identifier, the second attribute information corresponding to the first attribute information containing the blockchain identifier in the second digital identity information is respectively published to the blockchain corresponding to the corresponding blockchain identifier for storage, and the second attribute information corresponding to the first attribute information not containing the blockchain identifier in the second digital identity information is merged and published to the target blockchain for storage.
8. The distributed digital identity management method according to claim 6, characterized in that: The issuance conditions include: the issuance path and the number of issuance levels meet preset issuance rules, and the weighted sum of the assignment parameters of the issuance objects at each level in the issuance path is equal to a preset value.
9. The distributed digital identity management method according to claim 7, characterized in that: The method further comprises: The target blockchain is determined according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain.
10. The distributed digital identity management method according to claim 9, characterized in that: The determining the target blockchain according to the number of digital identity processing requests received by each blockchain within a preset time period and the idle storage resources of each blockchain includes: Sorting all the blockchains in descending order of the free storage resources of each blockchain; Select a set number of blockchains at the top of the ranking as candidate blockchains; The candidate blockchain that receives the largest number of digital identity processing requests within the preset time period is selected as the target blockchain.
11. The distributed digital identity management method according to claim 1, characterized in that: Before receiving the digital identity processing request sent by the first terminal and carrying the first identification information and the first digital identity information of the subject object, the method further includes: Receiving the subject information of the subject object sent by the first terminal; wherein the subject information includes the first identification information and the first public key of the manager of the subject object, the second identification information and the second public key of the subject object; The subject information is published to a blockchain for storage, and a storage address of the subject information in the blockchain is sent to the first terminal.
12. A distributed digital identity management method, characterized in that: Applied to the first terminal, comprising: Sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, so that the blockchain node performs the following operations: Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information; After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information; Performing validity verification on the first attribute information that has passed the attribution verification; According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
13. The distributed digital identity management method according to claim 12, characterized in that: The first attribute information includes an identification ciphertext, a first identification code, issuance path information, an attribute value, an attribute value signature, and third identification information of the issuing object that issued the attribute value; the second digital identity information includes the second identification information, the attribute value in at least one first attribute information, and the third identification information; wherein the identification ciphertext is generated based on the second identification information and the first identification code.
14. The distributed digital identity management method according to claim 13, characterized in that: The second digital identity information includes the second identification information and at least one second attribute information; wherein each second attribute information corresponds to one first attribute information, including the attribute value in the corresponding first attribute information and the third identification information.
15. The distributed digital identity management method according to claim 13, characterized in that: The issuance path information includes the issuance path and the issuance level number from the issuing object that issued the attribute value to the first-level issuing object; wherein, the attribute value signature is obtained by signing the attribute value based on the third private key of the issuing object that issued the attribute value.
16. The distributed digital identity management method according to claim 15, characterized in that: The method further comprises: Using a first private key of the administrator of the subject object to sign the first digital identity information; Generate the digital identity processing request according to the first identification information and the signed first digital identity information; The first attribute information in the first digital identity information is pre-signed using the second private key of the subject object.
17. The distributed digital identity management method according to claim 16, characterized in that: The method further comprises the following step of signing the first attribute information: For each of the first attribute information, assigning a value from the issuing object that issues the attribute value to the first-level issuing object according to the issuing path, and obtaining the assignment parameters of the issuing object at each level in the issuing path; The identification ciphertext, the first identification code, the issuance level number, the assignment parameter of the issuance object at each level in the issuance path, and the attribute value are concatenated in a preset order to obtain a first attribute character string; Transforming the first attribute character string to obtain a second attribute character string; The second attribute character string is signed using the second private key of the subject object to obtain a signature of the first digital identity information.
18. The distributed digital identity management method according to claim 17, characterized in that: The step of transforming the first attribute character string to obtain a second attribute character string includes: According to the issuance level of the issuing object that issues the attribute value, the deformation rule of the first attribute string is determined by a preset mapping relationship between the issuance level and the deformation rule; wherein the deformation rule includes: a rule based on crossover operation, a rule based on mutation operation, and a rule based on repeated character splicing; The first attribute character string is transformed using the transformation rule to obtain the second attribute character string.
19. The distributed digital identity management method according to claim 18, characterized in that: The step of transforming the first attribute character string by using the transformation rule to obtain the second attribute character string includes: When the deformation rule is a rule based on cross operation, the character string after the first position in the first attribute character string is cross-replaced with the character string after the second position in the base character string of the issuing object for issuing the attribute value, to obtain the second attribute character string; When the transformation rule is a rule based on a mutation operation, an XOR operation is performed on the character at the third position and the character at the fourth position in the first attribute string to obtain a mutation character, and the mutation character is used to replace the character at the third position in the first attribute string to obtain the second attribute string; When the deformation rule is a rule based on repeated character concatenation, a character string within a set position range in the first attribute character string is selected, and the character string within the set position range is concatenated to the end of the first attribute character string to obtain the second attribute character string.
20. The distributed digital identity management method according to claim 13, characterized in that: The method further comprises the following second identification information calculation step: Obtaining a secret seed and a real-name identity name of the subject object; Performing a hash operation on the secret seed to obtain a first hash value; A hash operation is performed on the real-name identity name and the first hash value to obtain second identification information of the subject object.
21. The distributed digital identity management method according to claim 20, characterized in that: The method further comprises the following secret seed calculation step: Acquire characteristic information of the subject object; wherein the characteristic information includes the establishment date of the subject object; Concatenate the characteristic information and the temporarily generated characters to obtain a third character string; For the third character string, a pseudo-random sequence is recursively generated through a preset nonlinear transformation function to obtain a secret seed of the subject object.
22. The distributed digital identity management method according to claim 13, characterized in that: The method also includes the following identification ciphertext calculation step: Obtaining a first identification code of the subject object; wherein the first identification code is a first randomly generated digital string; The second identification information and the first identification code are encrypted using the second private key of the subject object to generate the identification ciphertext.
23. The distributed digital identity management method according to claim 20, characterized in that: The method further comprises: For each of the first attribute information, an attribute application request is sent to a second terminal corresponding to the issuing object that issues the attribute value; wherein the attribute application request carries the second identification information of the subject object and the storage address of the subject information of the subject object; receiving a third identification code sent by the second terminal; wherein the third identification code is a second randomly generated digital string; Using the second private key of the subject object to sign the real-name identity name, the third identification code and the first hash value to obtain a subject signature value; Sending the subject signature value, the identification ciphertext, the first identification code, the real-name identity name, the third identification code and the first hash value to the second terminal, so that the second terminal performs signature verification on the received identification ciphertext, the real-name identity name, the third identification code and the first hash value according to the second public key; wherein the second public key is obtained by the second terminal from the blockchain according to the second identification information and the storage address; The first attribute information sent by the second terminal after the signature verification is passed is received.
24. The distributed digital identity management method according to claim 23, characterized in that: The method further comprises: For the received first attribute information, according to the third identification information in the first attribute information, obtain from the blockchain the third public key of the issuing object that issues the corresponding attribute value; Using the third public key to sign the attribute value in the first attribute information to obtain the attribute signature to be verified; Determine whether the attribute signature to be verified is consistent with the attribute value signature in the first attribute information; If so, accept and store the first attribute information; If not, reject the first attribute information.
25. The distributed digital identity management method according to claim 12, characterized in that: Before sending a digital identity processing request carrying the first identification information and the first digital identity information of the subject object to the blockchain node, the method further includes: The subject information of the subject object is sent to the blockchain node, so that the blockchain node publishes the subject information to the blockchain for storage; wherein the subject information includes the first identification information and the first public key of the administrator of the subject object, the second identification information and the second public key of the subject object; Receive the storage address of the subject information in the blockchain sent by the blockchain node.
26. A distributed digital identity management device, characterized in that: Applied to blockchain nodes, including: An information receiving module, configured to receive a digital identity processing request sent by a first terminal and carrying first identification information and first digital identity information of a subject object; wherein the first digital identity information includes second identification information of the subject object and at least one first attribute information; A signature verification module, used to determine a first public key of a management party of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; an attribution verification module, configured to determine, after the signature verification passes, a second public key of the subject object according to the second identification information, and perform attribution verification on the at least one first attribute information using the second public key; A validity verification module, used to verify the validity of the first attribute information that has passed the attribution verification; An information publishing module is used to generate second digital identity information according to the second identification information and the first attribute information that has passed validity verification, and publish the second digital identity information to at least one blockchain for distributed management.
27. A distributed digital identity management device, characterized in that: Applied to the first terminal, comprising: The first information sending module is used to send a digital identity processing request carrying first identification information and first digital identity information of a subject object to a blockchain node, so that the blockchain node performs the following operations: Determine the first public key of the administrator of the subject object according to the first identification information, and use the first public key to perform signature verification on the first digital identity information; wherein the first digital identity information includes the second identification information of the subject object and at least one first attribute information; After the signature verification is passed, determining the second public key of the subject object according to the second identification information, and using the second public key to perform attribution verification on the at least one first attribute information; Performing validity verification on the first attribute information that has passed the attribution verification; According to the second identification information and the first attribute information that has passed validity verification, second digital identity information is generated, and the second digital identity information is published to at least one blockchain for distributed management.
28. A distributed digital identity management device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the distributed digital identity management method as described in any one of claims 1 to 11 or the distributed digital identity management method as described in any one of claims 12 to 25 is implemented.
29. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the distributed digital identity management method as described in any one of claims 1 to 11 or the distributed digital identity management method as described in any one of claims 12 to 25.
30. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the distributed digital identity management method as described in any one of claims 1 to 11 or the distributed digital identity management method as described in any one of claims 12 to 25 is implemented.
Citation Information
Cited By
Distributed digital identifier management method and system
CN121750298A
Communication method, apparatus, and system
WO2026153102A1
Digital identity generation method, digital identity authentication method, electronic apparatus and computer program product
WO2026189023A1
