A user identity management method for university alliance based on blockchain and DID
By establishing a consortium chain between universities and using DID and verifiable certificates, it solves the user dependency and data island problems of the centralized identity authentication system, realizes cross-institutional identity management and resource exchange between universities, and ensures privacy protection and information Shared security.
Patent Information
- Application Number
- CN202410806278.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The existing centralized identity authentication system has risks of high user dependence, data silos and privacy information leakage, making it difficult to achieve cross-institutional identity management and resource exchange among universities.
Adopt a university alliance user identity management method based on blockchain and DID, establish an alliance chain through multiple universities, initialize the DID service administrator, the user generates the main DID and derived DID, and uses verifiable certificates to implement identity authentication and service authorization to ensure privacy Protection and decentralized management.
It realizes the global identity management of the university alliance, prevents identity profiling, realizes mutual authentication between different universities and the smallest range of private information use, and ensures the credibility and security of information sharing.
Smart Images

Figure CN118381663B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of blockchain application, and in particular to a university alliance user identity management method based on blockchain and DID. Background Art
[0002] With the development of the Internet and digital technology, the role of identity authentication technology has become more important, which can protect the data security and privacy of individuals and organizations; at the same time, resource interoperability and information mutual recognition are important trends in the development of the digital age, which can promote the coordinated development and cooperation among various industries. In the university scenario, identity authentication and resource interoperability are even more important, which can protect the personal information and privacy of students and teachers and promote the coordinated development and resource sharing among universities. Therefore, promoting identity authentication and resource interoperability in universities has important practical and strategic value.
[0003] The currently popular centralized identity authentication system has some shortcomings. Users are highly dependent on authentication agencies or service providers, which means that users cannot control their own identity information and cannot independently choose authentication agencies or service providers; the centralized architecture relies on a single authentication server or third-party service provider, so once a single point of failure occurs, the entire system will be affected; individuals establish duplicate but not completely identical identity data in different systems, forming an island of personal data; at the same time, institutions have the problem of opaque use of data. A feasible method is to introduce blockchain and decentralized identity management methods to achieve identity authentication and information interoperability in university scenarios. This method can solve the institutional dependence and data island problems of centralized identity authentication. Colleges and universities can achieve cross-institutional identity management and data interoperability, increase the complexity of resource services and the need for institutional interoperability, but this method has the risk of user privacy information leakage, that is, malicious attackers use public information on the alliance chain to profile users and infringe on user privacy. The user's privacy information can be protected by using the method of derived DID, but there is a lack of corresponding solutions in the existing technology. Summary of the invention
[0004] In order to solve the above technical problems, the present invention provides a university alliance user identity management method based on blockchain and DID. The method can effectively provide global identity management for the university alliance established based on the alliance chain, and realize identity authentication and fine-grained service authorization based on verifiable certificates, thereby providing privacy protection, user self-sovereignty and user-friendly decentralized identity management solutions for users in the university alliance.
[0005] To achieve the above purpose, the technical solution adopted by the present invention is as follows:
[0006] Step 1: System initialization: Multiple universities establish a consortium chain including university identities, and initialize the DID identity of the university DID service administrator on the consortium chain; the university DID service administrator defines a list of verifiable certificate definition files and stores the list of verifiable certificate definition files on the consortium chain; the service provider generates a list of attribute requirements that users can download;
[0007] Step 2: User identity initialization: The user generates a primary DID and submits the identity authentication information and primary DID to the university DID service administrator of the user’s university. The university DID service administrator reviews the user’s identity and stores the primary DID on the consortium chain, making the primary DID effective.
[0008] Step 3: Query the attribute requirement list and verifiable certificate definition file required for the service: When the user needs to use the service of the service provider, the user downloads the attribute requirement list published by the service provider. The user selects all verifiable certificate definition files with some or all attributes in the attribute requirement list from the verifiable certificate definition file list of the universities on the alliance chain according to the type of attributes in the attribute requirement list;
[0009] Step 4: Application and issuance of verifiable certificates: The user generates a derived DID and submits it to any university DID service administrator, who verifies the signature and stores the derived DID of the user on the alliance chain. The user sends the derived DID and identity verification information to the university DID service administrator of the university to which the verifiable certificate definition file belongs. After the university DID service administrator of the university to which the verifiable certificate definition file belongs passes the user's identity verification, the verifiable certificate is issued to the derived DID submitted by the user, and the hash value of the verifiable certificate accumulator stored on the alliance chain is calculated and updated.
[0010] Step 5, certification document generation and service acquisition: the user processes the verifiable certificate into a verifiable certificate statement, forms the verifiable certificate statement into a certification document, and sends it to the service provider; the service provider verifies whether the certification document attributes meet the conditions, verifies the validity of each verifiable certificate statement through the hash value of the verifiable certificate accumulator on the alliance chain, and verifies the correctness of the private key signature of the university DID service administrator and the derived DID private key signature corresponding to each verifiable certificate statement through the public key information on the alliance chain. If all are verified, the service is provided;
[0011] Step 6, revocation of verifiable certificate: When the verifiable certificate needs to be revoked, the DID service administrator of the university that issued the verifiable certificate revokes the verifiable certificate by modifying the verifiable certificate accumulator and updating the hash value of the verifiable certificate accumulator on the alliance chain.
[0012] The beneficial effects of the present invention are:
[0013] The method can effectively provide global identity management for the university alliance established based on the alliance chain, provide a privacy-protected identity usage method for different users on the alliance chain, and prevent the identity profiling of users through the data on the alliance chain; at the same time, the use of verifiable certificates in a unified format realizes mutual authentication between different universities, and the minimum scope of privacy information use is achieved through selective disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 This is a flow chart of a university alliance user identity management method based on blockchain and DID in the present invention. DETAILED DESCRIPTION
[0015] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings 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, and do not constitute a limitation of the present invention. 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.
[0016] like Figure 1 As shown in FIG. 1 , a flow chart of a university alliance user identity management method based on blockchain and DID of the present invention is shown, and the method comprises the following steps:
[0017] Step 1: System initialization: Multiple universities establish a consortium chain including university identities, and initialize the DID identity of the university DID service administrator on the consortium chain; the university DID service administrator defines a list of verifiable certificate definition files and stores the list of verifiable certificate definition files on the consortium chain; the service provider generates a list of attribute requirements that users can download;
[0018] Step 2: User identity initialization: The user generates a primary DID and submits the identity certificate and primary DID to the university DID service administrator of the user's university; the university DID service administrator reviews the user's identity and stores the primary DID on the consortium chain, making the primary DID effective;
[0019] Step 3: Query the attribute requirement list and verifiable certificate definition file required for the service: When the user needs to use the service of the service provider, the user downloads the attribute requirement list published by the service provider. The user selects all verifiable certificate definition files with some or all attributes in the attribute requirement list from the verifiable certificate definition file list of the universities on the alliance chain according to the type of attributes in the attribute requirement list;
[0020] Step 4: Application and issuance of verifiable certificates: The user generates a derived DID and submits it to any university DID service administrator, who then stores the user’s derived DID on the consortium chain. The user sends the derived DID and identity verification information to the university DID service administrator. After the user’s identity verification is passed, a verifiable certificate is issued to the derived DID submitted by the user, and the hash value of the verifiable certificate accumulator stored on the consortium chain is calculated and updated.
[0021] Step 5, certification document generation and service acquisition: the user processes the verifiable certificate into a verifiable certificate statement, forms the verifiable certificate statement into a certification document, and sends it to the service provider; the service provider verifies whether the certification document attributes meet the conditions, verifies the validity of each verifiable certificate statement through the hash value of the verifiable certificate accumulator, and verifies the correctness of the signature through the public key information on the alliance chain. If all verifications are passed, the service is provided;
[0022] Step 6, revocation of verifiable certificate: When the verifiable certificate needs to be revoked, the DID service administrator of the university that issued the verifiable certificate revokes the verifiable certificate by modifying the verifiable certificate accumulator and updating the verifiable certificate accumulator hash value on the alliance chain.
[0023] Example
[0024] The present invention will be further described below with reference to specific embodiments.
[0025] The present invention provides a university alliance user identity management method based on blockchain and DID, the method comprising the following steps:
[0026] Step 1: System initialization: Multiple universities establish a consortium chain including university identities, and initialize the DID identity of the university DID service administrator on the consortium chain; the university DID service administrator defines a list of verifiable certificate definition files and stores the list of verifiable certificate definition files on the consortium chain; the service provider generates a list of attribute requirements that users can download;
[0027] Step 1 System initialization specifically includes the following steps:
[0028] Step 1.1, The universities provide management nodes to form a university identity alliance chain. Each university sets up its own university DID service administrator. The alliance chain records the DID identity of the university's DID service administrator and public key , represents the i-th university;
[0029] In the specific implementation, the university alliance chain is a permissioned blockchain. Each member university of the alliance maintains data and provides services by providing management nodes and regularly reaching consensus on the content submitted by each university. After all universities have passed the certification in proportion, new universities can join the blockchain system by providing management nodes to synchronize data. The proportion is set by the specific implementer.
[0030] Among them, each university sets up its own university DID service administrator, who is responsible for managing the management node of the university and submitting the data that needs to be stored on the chain to the management node.
[0031] Step 1.2, the i-th university The university DID service administrator generates the first verifiable certificate definition file list , represents the i-th university The first verifiable certificate definition file, represents the i-th university The mth verifiable certificate definition file, the i-th university The j-th verifiable certificate definition file Includes the i-th university The j-th verifiable certificate definition file The public key and the hash value of the verifiable certificate accumulator , the first verifiable certificate attribute list , the verifiable certificate attribute list includes s elements, represents the first verifiable credential attribute of the first verifiable credential attribute list, Represents the sth verifiable certificate attribute in the first verifiable certificate attribute list, and uses the i-th university Private key After signing, it is stored on the alliance chain;
[0032] The specific process of initializing the certificate definition file in step 1.2 is as follows:
[0033] i-th university The college DID service administrator defines a type of certificate, such as a student ID card or transcript in the specific implementation;
[0034] i-th university The college DID service administrator is the i-th college The j-th verifiable certificate definition file Maintaining a local accumulator of verifiable certificates , and initialized to a random large prime number = , then calculate the hash value of the verifiable certificate accumulator , and stored on the alliance chain;
[0035] One of the certificate definition files can be verified , the verifiable certificate definition files are used separately Private key After signing, it is stored on the chain.
[0036] Step 1.3, Service Provider Generate a user-downloadable list of property requirements , there are h key-value pairs in the list, Indicates the first attribute, Indicates that the property is satisfied The attribute value space of represents the hth attribute, Indicates that the property is satisfied The attribute value space.
[0037] In the specific implementation, the service provider can provide services such as cross-school course selection, venue reservation, book sharing and other resource sharing services. These services require user identity authentication before they can be provided. For the required attributes, the service provider Generate a user-downloadable list of property requirements In the specific implementation, for example, in cross-school course selection, the attribute requirement list can be {college: {school A student ID, school B student ID}, total score: {good}, prerequisite courses: {course C, course D}}. The service provider can Publish it on a website you built.
[0038] Step 2: User identity initialization: The user generates a primary DID and submits the identity authentication information and primary DID to the university DID service administrator of the user’s university. The university DID service administrator reviews the user’s identity and stores the primary DID on the consortium chain, making the primary DID effective.
[0039] Step 2 specifically includes the following steps:
[0040] Step 2.1, the i-th university The tth user Generate a primary DID identity 、User public and private key pair , the user will use the primary DID identity , user public key , the identity verification information is sent to the i-th university The university DID service administrator requests to complete the primary DID initialization;
[0041] Step 2.2, the i-th university After receiving the user's primary DID initialization request, the university DID service administrator verifies the i-th university The tth user The authentication information will be Stored on the alliance chain, the i-th university The tth user The primary DID takes effect. Represents the use of the i-th university Private key For the first hash value Sign.
[0042] In the specific implementation, the user's identity authentication information is defined by each university.
[0043] Step 3: Query the attribute requirement list and verifiable certificate definition file required for the service: When the user needs to use the service of the service provider, the user downloads the attribute requirement list published by the service provider. The user selects all verifiable certificate definition files with some or all attributes in the attribute requirement list from the verifiable certificate definition file list of the universities on the alliance chain according to the type of attributes in the attribute requirement list;
[0044] Step 3 specifically includes the following steps:
[0045] Step 3.1, the i-th university The tth user Need to use a service provider When providing services, download the public property requirement list ;
[0046] Step 3.2, the i-th university The tth user Determine a second list in the university's verifiable certificate definition file list based on the type of attribute in the attribute requirement list , so that the second list satisfies , Indicates the definition file of the first verifiable certificate stored on the alliance chain of the nth university, which contains the attribute list of the second verifiable certificate , the list has q elements, represents a first verifiable certificate attribute of a second list of verifiable certificate attributes, Represents the qth verifiable credential attribute of the second verifiable credential attribute list.
[0047] Step 4: Application and issuance of verifiable certificates: The user generates a derived DID and submits it to any university DID service administrator, who verifies the signature and stores the derived DID of the user on the alliance chain. The user sends the derived DID and identity verification information to the university DID service administrator of the university to which the verifiable certificate definition file belongs. After the university DID service administrator of the university to which the verifiable certificate definition file belongs passes the user's identity verification, the verifiable certificate is issued to the derived DID submitted by the user, and the hash value of the verifiable certificate accumulator stored on the alliance chain is calculated and updated.
[0048] Step 4 specifically includes the following steps:
[0049] Step 4.1, the i-th university The tth user Generate the uth derivative , public and private key pairs , will derive the DID registration request Send to any university DID service administrators of colleges and universities;
[0050] Step 4.2, any university The university DID service administrator receives the derived DID registration request and verifies the signature After it is effective, use the college DID identity of the university DID service administrator The corresponding private key For the second hash value Sign it and On the alliance chain storage, the i-th university The tth user The u-th derivative of come into force;
[0051] Step 4.3, the i-th university The tth user The u-th derivative , the i-th university The j-th verifiable certificate definition file , identity verification information, sent to the i-th university The university DID service administrator applies for the jth type of verifiable certificate issued by the i-th university ;
[0052] The identity verification information needs to be accompanied by the identity verification information of the physical world when the system is initialized. When the user has enough verifiable certificates, the identity can be proved through the verifiable certificates.
[0053] Step 4.4, the i-th university The college DID service administrator is the i-th college The tth user According to the i-th university The j-th verifiable certificate definition file List of verifiable certificate attributes Fill in the corresponding attribute value to generate a large prime number As a serial number, added to the verifiable certificate accumulator Calculate and update the hash value of the verifiable certificate accumulator on the consortium chain , combining the attribute value and the serial number into the jth type of verifiable certificate issued by the i-th university And send it to the i-th university The tth user .
[0054] i-th university The college DID service administrator is the i-th college The tth user Fill in the plaintext attribute value and salt value according to the first verifiable certificate attribute list , The first verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of Is the first verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of The generated random salt value, The sth verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of is the sth verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of The generated random salt value is used to generate a hash value list for the plaintext attribute value of the first verifiable certificate attribute list. , where the first hash value in the hash value list , the sth hash value in the hash value list ; Generate a large prime number As a serial number, added to the verifiable certificate accumulator Calculate and update the hash value of the verifiable certificate accumulator on the consortium chain , the generated verifiable certificate Send to the i-th university The tth user .
[0055] Update the verifiable certificate accumulator value , calculate and update the hash value of the verifiable certificate accumulator on the chain .
[0056] Step 5, certification document generation and service acquisition: the user processes the verifiable certificate into a verifiable certificate statement, forms the verifiable certificate statement into a certification document, and sends it to the service provider; the service provider verifies whether the certification document attributes meet the conditions, verifies the validity of each verifiable certificate statement through the hash value of the verifiable certificate accumulator on the alliance chain, and verifies the correctness of the private key signature of the university DID service administrator and the derived DID private key signature corresponding to each verifiable certificate statement through the public key information on the alliance chain. If all are verified, the service is provided;
[0057] Step 5 specifically includes the following steps:
[0058] Step 5.1, the i-th university The tth user Get the second list with Matching verifiable certificates , Indicates the lth type of verifiable certificate issued by the nth university. After verifying the validity of the signature, the verifiable certificate is included in the attribute requirement list The attribute values of the DID are displayed in plain text, and the others are displayed in plain text hash values, which become a verifiable certificate declaration file. The verifiable certificate declaration file is signed using the private key corresponding to the derived DID when requesting the verifiable certificate, and the combination becomes a certification file. Send to service provider ;
[0059] The specific steps of step 5.1 are:
[0060] i-th university The tth user Get the second list with Matching verifiable certificates , Indicates the lth type of verifiable certificate issued by the nth university. After verifying the validity of the signature, the verifiable certificate is included in the attribute requirement list The attribute values of are displayed in plain text, and the others are displayed as hash values, forming a list of verifiable certificate declarations. , Represents the jth type of verifiable certificate issued by the i-th university after hash value processing , Describes the lth type of verifiable certificate issued by the nth university after hash value processing , using the private key of the u-th derived DID when requesting a verifiable certificate , ..., the e-th derived private key Signatures combined into a certification document , the certification documents Send to service provider .
[0061] Step 5.2, Service Provider Receive supporting documents Finally, check whether the attributes and attribute values meet the attribute requirements list. For each verifiable certificate declaration file in the certification document, the validity of the verifiable certificate declaration is checked through the verifiable certificate accumulator information, and the correctness of the private key signature of the university DID service administrator and the derived DID corresponding to each verifiable certificate declaration is verified through the public key information on the alliance chain. If all are verified, the service is provided.
[0062] The specific steps of step 5.2 are:
[0063] Service Provider Received the , verify whether All the required attributes in , and the attribute values of the attributes belong to the attribute value space of the attributes;
[0064] The service provider verifies the jth type of verifiable certificate issued by the i-th university Validity, from colleges and universities Get the verifiable certificate accumulator value from the university DID service administrator , calculate the hash value and compare it with the hash value stored on the consortium chain, and verify the certificate accumulator if they are consistent Model: Verifiable certificate of type j issued by the i-th university Is the value of the serial number Q in 0? If it is 0, then the i-th university The jth verifiable certificate efficient;
[0065] The public key information on the alliance chain is used to verify whether the private key signature of the university DID service administrator and the private key signature of the derived DID corresponding to each verifiable certificate statement are correct. If both are verified, the service will be provided.
[0066] Step 6, revocation of verifiable certificate: When the verifiable certificate needs to be revoked, the DID service administrator of the university that issued the verifiable certificate revokes the verifiable certificate by modifying the verifiable certificate accumulator and updating the hash value of the verifiable certificate accumulator on the alliance chain.
[0067] The specific steps of step 6 are:
[0068] Verifiable Certificates If the certificate is out of validity or invalid due to other reasons, the university that issued the certificate needs to The university DID service administrator revokes and performs a verifiable certificate accumulator update , then calculate and update the hash value of the verifiable certificate accumulator stored on the consortium chain .
[0069] It is worth noting that the contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field.
[0070] In summary, the method provided by the embodiment of the present invention has the following advantages:
[0071] 1) Trustworthy and tamper-proof storage of identity information: Relying on blockchain technology to implement the university alliance user identity system can effectively promote resource exchange and information mutual recognition among universities, and with the help of the tamper-proof characteristics of blockchain, it ensures the credibility and security of information sharing among universities;
[0072] 2) Global identity management across institutions: DID and verifiable certificate technologies are used to achieve identity management across different institutions, and decentralized and efficient identity authentication and information sharing. Users only need a DID and some verifiable certificates to achieve identity authentication and information sharing in different institutions and application scenarios.
[0073] 3) Protection of information relevance on the alliance chain: Using derived DID technology to resist malicious users from profiling users through identities on the alliance chain, so that the user's identity on the alliance chain has no association with identities on other alliance chains;
[0074] 4) Privacy protection in certificate use: Use a hash function-based attribute processing method to ensure that the minimum scope of certificate content is used when generating certification documents.
[0075] In addition, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be implemented by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.
[0076] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims. The information disclosed in the background technology section of this article is only intended to deepen the understanding of the overall background technology of the present invention, and should not be regarded as an admission or in any form that the information constitutes prior art known to those skilled in the art.
Claims
1. A university alliance user identity management method based on blockchain and DID, characterized in that: The method comprises the following steps: Step 1: System initialization: Multiple universities establish a consortium chain including university identities, and initialize the DID identity of the university DID service administrator on the consortium chain; the university DID service administrator defines a list of verifiable certificate definition files and stores the list of verifiable certificate definition files on the consortium chain; the service provider generates a list of attribute requirements that users can download; Step 2: User identity initialization: The user generates a primary DID and submits the identity authentication information and primary DID to the university DID service administrator of the user’s university. The university DID service administrator reviews the user’s identity and stores the primary DID on the consortium chain, making the primary DID effective. Step 3: Query the attribute requirement list and verifiable certificate definition file required for the service: When the user needs to use the service of the service provider, the user downloads the attribute requirement list published by the service provider. The user selects all verifiable certificate definition files with some or all attributes in the attribute requirement list from the verifiable certificate definition file list of the universities on the alliance chain according to the type of attributes in the attribute requirement list; Step 4: Application and issuance of verifiable certificates: The user generates a derived DID and submits it to any university DID service administrator, who verifies the signature and stores the user's derived DID on the consortium chain. The user sends the derived DID and identity authentication information to the university DID service administrator of the university to which the verifiable certificate definition file belongs; after the university DID service administrator of the university to which the verifiable certificate definition file belongs passes the user's identity authentication, the administrator issues a verifiable certificate to the derived DID submitted by the user, and calculates and updates the hash value of the verifiable certificate accumulator stored on the alliance chain; Step 5, certification document generation and service acquisition: the user processes the verifiable certificate into a verifiable certificate statement, forms the verifiable certificate statement into a certification document, and sends it to the service provider; the service provider verifies whether the certification document attributes meet the conditions, verifies the validity of each verifiable certificate statement through the hash value of the verifiable certificate accumulator on the alliance chain, and verifies the correctness of the private key signature of the university DID service administrator and the derived DID private key signature corresponding to each verifiable certificate statement through the public key information on the alliance chain. If all are verified, the service is provided; Step 6, revocation of verifiable certificate: When the verifiable certificate needs to be revoked, the DID service administrator of the university that issued the verifiable certificate revokes the verifiable certificate by modifying the verifiable certificate accumulator and updating the hash value of the verifiable certificate accumulator on the alliance chain.
2. According to a method for managing university alliance user identities based on blockchain and DID according to claim 1, it is characterized in that: The step 1 comprises: Step 1.1, The universities provide management nodes to form a university identity alliance chain. Each university sets up its own university DID service administrator. The alliance chain records the DID identity of the university’s DID service administrator and public key , represents the i-th university; Step 1.2, the i-th university The university DID service administrator generates the first verifiable certificate definition file list , represents the i-th university The first verifiable certificate definition file, represents the i-th university The mth verifiable certificate definition file, the i-th university The j-th verifiable certificate definition file Includes the i-th university The j-th verifiable certificate definition file The public key and the hash value of the verifiable certificate accumulator , the first verifiable certificate attribute list , the verifiable certificate attribute list includes s elements, represents the first verifiable credential attribute of the first verifiable credential attribute list, Represents the sth verifiable certificate attribute in the first verifiable certificate attribute list, and uses the i-th university Private key After signing, it is stored on the alliance chain; Step 1.3, Service Provider Generate a user-downloadable list of property requirements , this attribute requires that there are h key-value pairs in the list, Indicates the first attribute, Indicates that the property is satisfied The attribute value space of represents the hth attribute, Indicates that the property is satisfied The attribute value space.
3. According to a method for managing university alliance user identity based on blockchain and DID according to claim 1, it is characterized in that: The step 2 comprises: Step 2.1, the i-th university The tth user Generate a primary DID identity 、User public and private key pair , the user will use the primary DID identity , user public key , the identity verification information is sent to the i-th university The university DID service administrator requests to complete the primary DID initialization; Step 2.2, the i-th university After receiving the user's primary DID initialization request, the university DID service administrator verifies the i-th university The tth user The authentication information will be Stored on the alliance chain, the i-th university The tth user The primary DID takes effect. Represents the use of the i-th university Private key For the first hash value Sign.
4. According to a method for managing university alliance user identities based on blockchain and DID according to claim 1, it is characterized in that: The step 3 comprises: Step 3.1, the i-th university The tth user Need to use a service provider When providing services, download the public property requirement list ; Step 3.2, the i-th university The tth user Determine a second list in the university's verifiable certificate definition file list based on the type of attribute in the attribute requirement list , so that the second list satisfies , Indicates the definition file of the first verifiable certificate stored on the alliance chain of the nth university, which contains the attribute list of the second verifiable certificate , the list has q elements, represents a first verifiable certificate attribute of a second list of verifiable certificate attributes, Represents the qth verifiable credential attribute of the second verifiable credential attribute list.
5. According to a method for managing university alliance user identities based on blockchain and DID according to claim 1, it is characterized in that: The step 4 comprises: Step 4.1, the i-th university The tth user Generate the uth derived DID , public and private key pairs , will derive the DID registration request Send to any university DID service administrators of colleges and universities; Step 4.2, any university The university DID service administrator receives the derived DID registration request and verifies the signature After it is effective, use the pth college DID identity of the university DID service administrator The corresponding private key For the second hash value Sign it and On the alliance chain storage, the i-th university The tth user The u-th derived DID come into force; Step 4.3, the i-th university The tth user The u-th derived DID , the i-th university The j-th verifiable certificate definition file , identity verification information, sent to the i-th university The university DID service administrator applies for the jth type of verifiable certificate issued by the i-th university ; Step 4.4, the i-th university The college DID service administrator is the i-th college The tth user According to the i-th university The j-th verifiable certificate definition file First verifiable certificate attribute list Fill in the corresponding attribute value to generate a large prime number As a serial number, added to the verifiable certificate accumulator Calculate and update the hash value of the verifiable certificate accumulator on the consortium chain , combining the attribute value and the serial number into the jth type of verifiable certificate issued by the i-th university And send it to the i-th university The tth user .
6. According to claim 1, a university alliance user identity management method based on blockchain and DID is characterized in that: The step 5 comprises: Step 5.1, the i-th university The tth user Get the second list with Matching verifiable certificates , Indicates the lth type of verifiable certificate issued by the nth university. After verifying the validity of the signature, the verifiable certificate is included in the attribute requirement list The attribute values of the DID are displayed in plain text, and the others are displayed in plain text hash values, which become a verifiable certificate declaration file. The verifiable certificate declaration file is signed using the private key corresponding to the derived DID when requesting the verifiable certificate, and the combination becomes a certification file. Send to service provider ; Step 5.2, Service Provider Receive supporting documents Finally, check whether the attributes and attribute values meet the attribute requirements list. For each verifiable certificate declaration file in the certification document, the validity of the verifiable certificate declaration is checked through the verifiable certificate accumulator information, and the correctness of the private key signature of the university DID service administrator and the derived DID corresponding to each verifiable certificate declaration is verified through the public key information on the alliance chain. If all are verified, the service is provided.
7. According to claim 2, a university alliance user identity management method based on blockchain and DID is characterized in that: The specific steps of the verifiable certificate accumulator are as follows: i-th university The college DID service administrator is the i-th college The j-th verifiable certificate definition file Maintaining a local accumulator of verifiable certificates , and initialized to a random large prime number = , then calculate the hash value of the verifiable certificate accumulator , and stored on the alliance chain; i-th university The university DID service administrator generates a class j verifiable certificate Then, randomly generate a large prime number As a serial number, it can verify the certificate accumulator value update = , then calculate and update the hash value of the verifiable certificate accumulator stored on the consortium chain ; When the jth type of verifiable certificate issued by the i-th university When revoked, perform a verifiable certificate accumulator update = , then calculate and update the hash value of the verifiable certificate accumulator stored on the consortium chain ; Any entity in the system verifies the jth type of verifiable certificate issued by the i-th university Validity, from colleges and universities Get the verifiable certificate accumulator value from the university DID service administrator , calculate the hash value and compare it with the hash value stored on the consortium chain, and verify the verifiable certificate accumulator if they are consistent Model: Verifiable certificate of type j issued by the i-th university Is the value of the serial number Q in 0? If it is 0, then the i-th university Issued a verifiable certificate of type j efficient.
8. According to claim 5, a university alliance user identity management method based on blockchain and DID is characterized in that: The specific steps of generating the verifiable certificate are: i-th university The college DID service administrator is the i-th college The tth user Fill in the plaintext attribute value and salt value according to the first verifiable certificate attribute list , The first verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of Is the first verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of The generated random salt value, The sth verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of is the sth verifiable certificate attribute in the first verifiable certificate attribute list The plaintext attribute value of The generated random salt value is used to generate a hash value list for the plaintext attribute value of the first verifiable certificate attribute list. , where the first hash value in the hash value list , the sth hash value in the hash value list ; Generate a large prime number As a serial number, added to the verifiable certificate accumulator Calculate and update the hash value of the verifiable certificate accumulator on the consortium chain , the generated verifiable certificate Send to the i-th university The tth user .
9. According to claim 6, a university alliance user identity management method based on blockchain and DID is characterized in that: The supporting documents The specific steps of formation are: i-th university The tth user Get the second list with Matching verifiable certificates , and after verifying that the signature is valid, the verifiable certificate is included in the attribute requirement list The attribute values of are displayed in plain text, and the others are displayed in plain text hash values, forming a list of verifiable certificate declarations. , Represents the jth type of verifiable certificate issued by the i-th university after hash value processing , Describes the lth type of verifiable certificate issued by the nth university after hash value processing , using the private key of the u-th derived DID when requesting a verifiable certificate , ..., the e-th derived private key Signatures combined into a certification document , the certification documents Send to service provider .
