Data acquisition method, device, equipment and storage medium

Data call and authorization management are carried out through alliance chain technology, and distributed identity and encryption technology are used to solve the security risks in centralized data management and improve data security and trust.

CN112733121BActive Publication Date: 2024-09-20JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110041858.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-13
Publication Date
2024-09-20
Estimated Expiration
2041-01-13

AI Technical Summary

Technical Problem

The centralized data management solution in the existing technology can easily lead to data leakage and security management risks, and has data trust issues.

Method used

Using alliance chain technology, identity authentication is performed through the data call request sent by the first terminal, distributed identity identifiers are assigned, data authorization credentials are queried, and the request results are encrypted to avoid data storage on a central platform and improve data security.

Benefits of technology

It effectively solves the problem of illegal user intrusion, improves data security, manages data authorization in a decentralized manner, and reduces data leakage and trust risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112733121B
    Figure CN112733121B
Patent Text Reader

Abstract

The present application relates to a data acquisition method, device, equipment and storage medium, the method comprising: obtaining a data call request sent by a first terminal, wherein the data call request carries a first distributed identity identifier of a data authorized user and an identifier of the data call user; according to the data call request, authenticating the data call user corresponding to the first terminal; when the data call user authentication is legal, assigning a second distributed identity identifier to the data call user; according to the second distributed identity identifier, using the first distributed identity identifier, querying the data authorization certificate of the data authorized user; according to the data authorization certificate, sending a data authorization request to the second terminal corresponding to the data authorized user; after determining that the data authorized user has confirmed the authorization, encrypting the request result corresponding to the data call request, and sending the encrypted request result to the first terminal. The present application is used to improve the security of data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of blockchain technology, and in particular to a data acquisition method, device, equipment and storage medium. Background Art

[0002] In the digital economy era, the importance of data security and privacy protection has become increasingly prominent. Therefore, many data security protection solutions have been born. The existing technology builds a big data center platform and sets the permissions for authorized access to the data to be shared through the big data center platform to achieve data authorized access.

[0003] It can be seen that the existing technical solutions are centralized, and the import and export of data are managed through the big data center platform. This is very prone to data leakage and data security management risks, and the data authorization process and authorization results also exist on the big data center platform, which poses a data trust risk. Summary of the invention

[0004] The present application provides a data acquisition method, device, equipment and storage medium to improve data security.

[0005] In a first aspect, the present application provides a data acquisition method, which is applied to a consortium chain, comprising:

[0006] Acquire a data calling request sent by the first terminal, wherein the data calling request carries a first distributed identity identifier of a data authorization user and an identifier of a data calling user;

[0007] According to the data calling request, identity authentication is performed on the data calling user corresponding to the first terminal;

[0008] When the data calling user is authenticated as legitimate, assigning a second distributed identity to the data calling user;

[0009] According to the second distributed identity, using the first distributed identity, querying the data authorization credential of the data authorization user;

[0010] Sending a data authorization request to a second terminal corresponding to the data authorization user according to the data authorization certificate;

[0011] After determining that the data authorization user confirms the authorization, encrypt the request result corresponding to the data call request, and send the encrypted request result to the first terminal.

[0012] Optionally, before querying the data authorization credential of the data authorization user using the first distributed identity identifier according to the second distributed identity identifier, the method further includes:

[0013] Obtaining a data evidence storage request sent by the second terminal, wherein the data evidence storage request carries an identifier of the data authorized user;

[0014] According to the data evidence storage request, the data authorized user is authenticated;

[0015] When the data authorized user is authenticated as legitimate, assigning the first distributed identity to the data authorized user;

[0016] The data authorization credential is distributed to the data authorization user according to the first distributed identity.

[0017] Optionally, the data calling request includes: the identity type of the data calling user;

[0018] According to the data calling request, authenticating the data calling user corresponding to the first terminal includes:

[0019] When the identity type of the data calling user is an individual, using face recognition technology to authenticate the identity of the data calling user;

[0020] When the identity type of the data calling user is an enterprise, the data calling user is authenticated using enterprise authentication technology.

[0021] Optionally, the data evidence storage request includes: the identity type of the data authorized user;

[0022] According to the data evidence storage request, the data authorized user is authenticated, including:

[0023] When the identity type of the data authorized user is the individual, using the face recognition technology to authenticate the identity of the data authorized user;

[0024] When the identity type of the data authorization user is the enterprise, the enterprise authentication technology is used to perform identity authentication on the data authorization user.

[0025] Optionally, sending a data authorization request to a second terminal corresponding to the data authorization user according to the data authorization credential includes:

[0026] Initiate the data authorization request according to the data authorization certificate, digitally sign the data authorization request using a pre-stored private key, generate authorization request verification information, and send the authorization request verification information to the second terminal corresponding to the data authorization user.

[0027] Optionally, after sending the authorization request verification information to the second terminal corresponding to the data authorization user, the method further includes:

[0028] Obtaining indication information returned by the second terminal indicating that a verification operation is being performed;

[0029] Verifying the first distributed identity of the data authorization user and the data authorization credential;

[0030] When the verification is legitimate, an instruction message for executing a data authorization operation is sent to the second terminal.

[0031] Optionally, the authorization request verification information includes any one of a QR code, a barcode and a verification code;

[0032] Generating authorization request verification information, and sending the authorization request verification information to a second terminal corresponding to the data authorization user, including:

[0033] Generate the QR code, and send the QR code to the second terminal corresponding to the data authorized user;

[0034] or, generating the barcode, and sending the barcode to a second terminal corresponding to the data authorized user;

[0035] Or, generate the verification code, and send the verification code to a second terminal corresponding to the data authorized user.

[0036] Optionally, the data call request further includes: data authorization credential type;

[0037] According to the second distributed identity, using the first distributed identity, querying the data authorization credential of the data authorization user includes:

[0038] According to the second distributed identity, the first distributed identity is used to query the data authorization credential corresponding to the data authorization credential type in the data call request.

[0039] Optionally, the method further comprises:

[0040] A hash algorithm is used to calculate hash values ​​of the identity authentication record corresponding to the identity authentication, the data authorization certificate, the data authorization request, and the data authorization record corresponding to the data authorization request, and the hash values ​​are stored in the alliance chain.

[0041] In a second aspect, the present application provides a data acquisition method, applied to a second terminal, comprising:

[0042] Receive data authorization requests sent by the consortium chain;

[0043] The data authorization request is as follows: the alliance chain obtains a data call request sent by the first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization certificate of the data authorization user and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user;

[0044] An authorization operation is performed according to the data authorization request.

[0045] Optionally, receiving a data authorization request sent by the consortium chain, including:

[0046] Receiving the authorization request verification information sent by the alliance chain;

[0047] Performing authorization operations according to the data authorization request, including:

[0048] Verify the authorization request verification information, and return an indication that the verification operation is being performed to the alliance chain;

[0049] Receiving instruction information for executing a data authorization operation sent by the alliance chain;

[0050] According to the instruction information for executing the data authorization operation, the authorization operation is executed, and a data signature is performed on the authorization operation using a pre-stored private key.

[0051] Optionally, the authorization request verification information includes any one of a QR code, a barcode and a verification code;

[0052] Verifying the authorization request verification information and returning indication information of the running verification operation to the alliance chain, including:

[0053] Calling the code scanning function, scanning the QR code, and returning the indication information of the running verification operation to the alliance chain;

[0054] Or, calling the barcode scanning function, scanning the barcode, and returning the indication information of the running verification operation to the alliance chain;

[0055] Or, call the verification function, verify the verification code, and return the indication information of the running verification operation to the alliance chain.

[0056] In a third aspect, the present application provides a data acquisition device, comprising:

[0057] An acquisition module, used for a data call request sent by a first terminal, wherein the data call request carries a first distributed identity identifier of a data authorization user and an identifier of a data call user;

[0058] An authentication module, configured to perform identity authentication on the data calling user corresponding to the first terminal according to the data calling request;

[0059] An allocation module, configured to allocate a second distributed identity to the data calling user when the data calling user is authenticated as legal;

[0060] A query module, configured to query the data authorization credential of the data authorization user using the first distributed identity identifier according to the second distributed identity identifier;

[0061] A first sending module, configured to send a data authorization request to a second terminal corresponding to the data authorization user according to the data authorization certificate;

[0062] The second sending module is used to encrypt the request result corresponding to the data call request after determining that the data authorization user confirms the authorization, and send the encrypted request result to the first terminal.

[0063] In a fourth aspect, the present application provides a data acquisition device, comprising:

[0064] The receiving module is used to receive the data authorization request sent by the alliance chain;

[0065] The data authorization request is as follows: the alliance chain obtains a data call request sent by the first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization certificate of the data authorization user and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user;

[0066] The authorization module is used to perform authorization operations according to the data authorization request.

[0067] In a fifth aspect, the present application provides an electronic device, comprising: a processor, a communication component, a memory and a communication bus, wherein the processor, the communication component and the memory communicate with each other through the communication bus; the memory is used to store computer programs; the processor is used to execute the programs stored in the memory to implement the data acquisition method applied to the alliance chain as described in the first aspect, or to implement the data acquisition method applied to the second terminal as described in the first aspect.

[0068] In a sixth aspect, the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the data acquisition method applied to the alliance chain described in the first aspect, or implements the data acquisition method applied to the second terminal described in the first aspect.

[0069] The above-mentioned technical scheme provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application is applied to the alliance chain, and utilizes the distributed characteristics of the alliance chain to avoid storing all data in a central platform; the present application obtains the data call request sent by the first terminal, and performs identity authentication on the data call user corresponding to the first terminal according to the data call request, effectively solving the problem of illegal user intrusion, and when the data call user authentication is legal, a second distributed identity identifier is assigned to the data call user, so that the data call user uses the second distributed identity identifier as a unique identifier in the alliance chain; according to the second distributed identity identifier, the data authorization certificate of the data authorized user is queried using the first distributed identity identifier carried in the data call request, and according to the data authorization certificate, a data authorization request is sent to the second terminal corresponding to the data authorized user, and after determining that the data authorized user confirms the authorization, the request result corresponding to the data call request is encrypted, and the encrypted request result is sent to the first terminal, effectively improving the security of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

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

[0072] Figure 1 This is a flow chart of a data acquisition method applied to a consortium chain in an embodiment of the present application;

[0073] Figure 2 A schematic diagram of the process of obtaining a data authorization certificate in an embodiment of the present application;

[0074] Figure 3 Schematic diagram of the flow of the data acquisition method applied to the second terminal in the embodiment of the present application;

[0075] Figure 4 This is a schematic diagram of the structure of the first data acquisition device in the embodiment of the present application;

[0076] Figure 5 This is a schematic diagram of the structure of the second data acquisition device in the embodiment of the present application;

[0077] Figure 6 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0079] The first embodiment of the present application provides a data acquisition method, which is applied in a consortium chain. The specific implementation of the method is as follows: Figure 1 As shown:

[0080] Step 101: Obtain a data calling request sent by a first terminal.

[0081] The data calling request carries the first distributed identity of the data authorizing user and the identity of the data calling user.

[0082] A brief introduction to the consortium chain: the consortium chain is only for members of a specific group and a limited number of third parties. It designates multiple pre-selected nodes as bookkeepers, and the generation of each block is jointly decided by all pre-selected nodes.

[0083] Use blockchain technology to establish a consortium chain. In order to store authorization-related data and identity-related data separately and further ensure data security, a consortium chain can be established by establishing a data authorization verification consortium chain and a distributed identity consortium chain. The data authorization verification consortium chain is used for evidence storage services, and the distributed identity consortium chain is used for identity authentication services. Of course, it is also possible to establish a data authorization verification and distributed identity consortium chain, which is used for both evidence storage services and identity authentication services.

[0084] Below, we will take the establishment of a data authorization verification alliance chain and a distributed identity alliance chain as examples for illustration. Of course, this is only an example and is not intended to limit the scope of protection of this application. In addition, some other examples in this application are not intended to limit the scope of protection of this application, so they will not be described one by one.

[0085] Specifically, the participants of the data authorization verification alliance chain include: courts, notary offices, third-party appraisal agencies, regulatory authorities, the Ministry of Education, data custodians, and other enterprises and institutions involved in the maintenance and operation of alliance chain nodes. Among them, the data authorization verification alliance chain aims to provide a decentralized blockchain hash evidence storage service to ensure the authorized access records of the entire life cycle of data authorization access, and the corresponding hash information can be stored and verified on the chain.

[0086] Participants in the distributed identity alliance chain include: Certificate Authority (CA), courts, notary offices, third-party authentication agencies, regulatory authorities, the Ministry of Education, and other enterprises and institutions involved in the maintenance and operation of alliance chain nodes. Among them, the distributed identity alliance chain aims to provide a decentralized mobile identity authentication service.

[0087] Here, the mini program running on the first terminal is used as an example. A mini program is an application that can be used without downloading and installing. Users can open the application by scanning or searching. Users do not need to worry about whether to install too many applications. The application is available at any time, but there is no need to install or uninstall it. It can be seen that the use of mini programs is convenient and fast, and can save the memory space of the terminal for users.

[0088] Specifically, the distributed identity alliance chain receives the data call request sent by the applet running on the first terminal. The data call user logs in to the applet on the first terminal according to the data call user's identifier, searches for the first distributed identity identifier of the data authorization user, and initiates the data call request. When the distributed identity alliance chain authenticates that the data call user is legitimate, the second distributed identity identifier on the chain is allocated to the data call request as the unique identifier of the data call user on the chain.

[0089] The mini program of the present application is a mobile mini program based on distributed identity. The mobile mini program can initiate an application at any time under the mobile Internet, so that users are not restricted by region or time.

[0090] Step 102: According to the data calling request, the data calling user corresponding to the first terminal is authenticated.

[0091] The data call request includes: the identity type of the data call user.

[0092] In a specific embodiment, the distributed identity alliance link receives a data call request sent by the mini-program running on the first terminal, obtains the identity type of the data calling user in the data call request, and when the identity type of the data calling user is an individual, uses face recognition technology to authenticate the data calling user; when the identity type of the data calling user is an enterprise, uses enterprise authentication technology to authenticate the data calling user.

[0093] For example, when the identity type of the data call user is an individual, the distributed identity alliance chain determines whether there is a face in the input face image. If there is a face, it further provides the location, size and location information of each face and each major facial organ. Based on this information, the identity features contained in each face are further extracted, and the extracted identity features are compared with the pre-saved face features to obtain a first matching degree. When the first matching degree is greater than the first preset value, it is determined that the data call user authentication is successful, otherwise, it is determined that the data call user authentication fails.

[0094] For example, when the identity type of the data calling user is an enterprise, the distributed identity alliance chain compares the input enterprise information with the pre-saved enterprise information to obtain a second matching degree. When the second matching degree is greater than a second preset value, it is determined that the data calling user authentication is successful; otherwise, it is determined that the data calling user authentication has failed.

[0095] Among them, when the data calling user performs identity authentication, the private key used by the data calling user to sign when making data calls is securely stored through the key hosting service provided by the CA organization.

[0096] Step 103: when the data calling user is authenticated as legitimate, a second distributed identity is allocated to the data calling user.

[0097] Specifically, when the data calling user is authenticated as legal, the distributed identity alliance chain assigns a second distributed identity identifier to the data calling user. The data calling user uses the second distributed identity identifier as a unique identifier in the distributed identity alliance chain and the data authorization verification alliance chain.

[0098] Step 104: query the data authorization certificate of the data authorization user using the first distributed identity identifier according to the second distributed identity identifier.

[0099] In a specific embodiment, the data authorization user applies for a first distributed identity through a mobile terminal applet based on a distributed identity, and obtains a data authorization certificate based on the first distributed identity, as shown in the following example: Figure 2 As shown:

[0100] Step 201, obtaining a data storage request sent by a second terminal.

[0101] The data notarization request carries the identifier of the data authorized user.

[0102] Specifically, the distributed identity alliance chain obtains a data notarization request sent by the mini program running on the second terminal.

[0103] Step 202: Authenticate the data authorized user according to the data storage request.

[0104] Among them, the data notarization request includes: the identity type of the data authorized user.

[0105] In a specific embodiment, the distributed identity alliance chain obtains the identity type of the data authorization user in the data notarization request. When the identity type of the data authorization user is an individual, the data authorization user is authenticated using face recognition technology; when the identity type of the data authorization user is an enterprise, the data authorization user is authenticated using enterprise authentication technology.

[0106] Among them, when the data authorization user performs identity authentication, the private key of the data authorization user when performing user authorization signing is securely stored through the key hosting service provided by the CA organization.

[0107] Step 203: when the data authorized user is authenticated as legitimate, a first distributed identity is allocated to the data authorized user.

[0108] Specifically, when the data authorization user is authenticated as legal, the distributed identity alliance chain assigns a first distributed identity identifier to the data authorization user. The data authorization user uses the first distributed identity identifier as a unique identifier in the distributed identity alliance chain and the data authorization verification alliance chain.

[0109] Step 204: distribute the data authorization certificate to the data authorization user according to the first distributed identity.

[0110] Specifically, the data custodian in the data authorization verification alliance chain distributes the data authorization certificate to the data authorization user according to the first distributed identity identifier. At this time, the data authorization user can view the data authorization certificate in the mini program.

[0111] In addition, after distributing the data authorization certificate to the data authorized user, the data authorization verification alliance chain will pass the identity authentication record and the data authorization certificate through the hash algorithm to obtain the hash value, and store the hash value. Among them, the identity authentication record is the process from the data authorized user initiating the data evidence request until the data authorized user authenticates the legality.

[0112] In a specific embodiment, the data call request also includes: a data authorization credential type. Of course, a data authorization user has at least one type of data authorization credential. The distributed identity alliance chain uses the first distributed identity identifier to query the data authorization credential corresponding to the data authorization credential type in the data call request based on the second distributed identity identifier.

[0113] For example, take the data authorization credential as an academic certificate as an example: Company A wants to obtain the academic certificate of user B. Company A initiates a data call request in the mini program, which includes: the academic certificate of user B. When the distributed identity alliance chain authenticates that company A is legitimate, it assigns a second distributed identity to company A. Based on the second distributed identity, the distributed identity alliance chain uses the first distributed identity of user B to request the data authorization verification alliance chain to query user B's academic certificate.

[0114] Of course, user B may have only one type of data authorization credential, which is an academic certificate, or may have multiple types of data authorization credentials, such as: user B's degree certificate, etc.

[0115] Step 105: Send a data authorization request to the second terminal corresponding to the data authorization user according to the data authorization certificate.

[0116] In a specific embodiment, after the data call user is authenticated as legitimate, the distributed identity alliance chain sends a query request for the data authorization certificate of the data authorization user to the data authorization alliance chain. The data authorization alliance chain returns the data authorization certificate of the data authorization user to the distributed identity alliance chain based on the query request. The distributed identity alliance chain initiates a data authorization request based on the data authorization certificate, digitally signs the data authorization request with a pre-stored private key, generates authorization request verification information, and sends the authorization request verification information to the applet on the second terminal corresponding to the data authorization user.

[0117] In a specific embodiment, the authorization request verification information includes any one of a QR code, a barcode, and a verification code. The distributed identity alliance chain initiates a data authorization request based on the data authorization certificate, and digitally signs the data authorization request using a pre-stored private key, generates a QR code, and sends the QR code to the applet on the second terminal corresponding to the data authorization user; or, the distributed identity alliance chain initiates a data authorization request based on the data authorization certificate, and digitally signs the data authorization request using a pre-stored private key, generates a barcode, and sends the barcode to the applet on the second terminal corresponding to the data authorization user; or, the distributed identity alliance chain initiates a data authorization request based on the data authorization certificate, and digitally signs the data authorization request using a pre-stored private key, generates a verification code, and sends the verification code to the applet on the second terminal corresponding to the data authorization user.

[0118] The verification code may be in various forms such as pictures, letters or numbers.

[0119] This application is illustrated by taking the generation of a QR code as an example, but it is not intended to limit the scope of protection of this application.

[0120] In a specific embodiment, after the distributed identity alliance chain sends the authorization request verification information to the second terminal corresponding to the data authorization user, it obtains the indication information returned by the mini-program on the second terminal that the verification operation is running, and verifies the first distributed identity identifier of the data authorization user and the data authorization certificate based on the indication information that the verification operation is running. When the verification is legal, it sends the indication information of executing the data authorization operation to the mini-program on the second terminal.

[0121] Step 106: After confirming that the data authorization user confirms the authorization, encrypt the request result corresponding to the data call request, and send the encrypted request result to the first terminal.

[0122] Specifically, after determining that the data authorization user has confirmed the authorization, the request result corresponding to the data call request is encrypted using the public key, and the encrypted request result is sent to the applet corresponding to the first terminal.

[0123] In a specific embodiment, a hash algorithm is used to calculate the hash values ​​of the identity authentication record corresponding to the identity authentication, the data authorization certificate, the data authorization request, and the data authorization record corresponding to the data authorization request, and the hash value is stored in the data authorization verification alliance chain.

[0124] Among them, the identity authentication record is the process from the data authorization user initiating a data notarization request until the data authorization user authenticates the legality, or the data calling user initiating a data calling request until the data calling user authenticates the legality; the data authorization record is the process from the initiation of a data authorization request until the data authorization user confirms the authorization.

[0125] The method provided in the embodiment of the present application is applied to the alliance chain, and utilizes the distributed characteristics of the alliance chain to avoid storing all data in a central platform; the present application obtains the data call request sent by the first terminal, and authenticates the data call user of the first terminal according to the data call request, effectively solving the problem of illegal user intrusion, and when the data call user authentication is legal, a second distributed identity identifier is assigned to the data call user, so that the data call user uses the second distributed identity identifier as a unique identifier in the alliance chain; according to the second distributed identity identifier, the data authorization certificate of the data authorized user is queried using the first distributed identity identifier carried in the data call request, and according to the data authorization certificate, a data authorization request is sent to the second terminal corresponding to the data authorized user, and after determining that the data authorized user confirms the authorization, the request result corresponding to the data call request is encrypted, and the encrypted request result is sent to the first terminal, effectively improving the security of the data.

[0126] The second embodiment of the present application provides a data acquisition method, which is applied in a second terminal. The specific implementation of the method is as follows: Figure 3 As shown:

[0127] Step 301, receiving a data authorization request sent by the consortium chain.

[0128] Among them, the data authorization request is: the alliance chain obtains the data call request sent by the first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization user's data authorization certificate and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user.

[0129] Step 302: Perform authorization operation according to the data authorization request.

[0130] In a specific embodiment, the mini program of the second terminal receives the authorization request verification information sent by the distributed identity alliance chain, verifies the authorization request verification information, and returns the indication information of the running verification operation to the distributed identity alliance chain alliance chain; waits to receive the indication information of executing the data authorization operation sent by the distributed identity alliance chain, executes the authorization operation according to the indication information of executing the data authorization operation, and uses the pre-stored private key to data sign the authorization operation.

[0131] Among them, the authorization record can be viewed in the mini program.

[0132] In a specific embodiment, the authorization request verification information includes any one of a QR code, a bar code, and a verification code. When the second terminal's mini program receives the authorization request verification information sent by the distributed identity alliance chain as a QR code, the mini program calls the scan code function, scans the QR code, and returns the indication information of the verification operation being run to the distributed identity alliance chain alliance chain; when the second terminal's mini program receives the authorization request verification information sent by the distributed identity alliance chain as a bar code, the mini program calls the scan code function, scans the bar code, and returns the indication information of the verification operation being run to the distributed identity alliance chain alliance chain; when the second terminal's mini program receives the authorization request verification information sent by the distributed identity alliance chain as a verification code, it calls the verification function, enters the verification code to verify the verification code, and returns the indication information of the verification operation being run to the alliance chain.

[0133] The verification code may be in various forms such as pictures, letters or numbers.

[0134] The third embodiment of the present application provides a data acquisition device. The specific implementation of the device can refer to the description of the data acquisition method embodiment part, and the repeated parts will not be repeated. Figure 4 As shown:

[0135] The acquisition module 401 is used for receiving a data calling request sent by a first terminal, wherein the data calling request carries a first distributed identity identifier of a data authorizing user and an identifier of a data calling user.

[0136] The authentication module 401 is used to perform identity authentication on the data calling user corresponding to the first terminal according to the data calling request.

[0137] The allocation module 403 is used to allocate a second distributed identity to the data calling user when the data calling user authentication is legal.

[0138] The query module 404 is used to query the data authorization certificate of the data authorization user according to the second distributed identity identifier using the first distributed identity identifier.

[0139] The first sending module 405 is used to send a data authorization request to the second terminal corresponding to the data authorization user according to the data authorization certificate.

[0140] The second sending module 406 is used to encrypt the request result corresponding to the data call request after determining that the data authorization user confirms the authorization, and send the encrypted request result to the first terminal.

[0141] The fourth embodiment of the present application provides a data acquisition device. The specific implementation of the device can refer to the description of the data acquisition method embodiment part, and the repeated parts will not be repeated. Figure 5 As shown:

[0142] The receiving module 501 is used to receive a data authorization request sent by the alliance chain.

[0143] Among them, the data authorization request is: the alliance chain obtains the data call request sent by the first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization user's data authorization certificate and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user.

[0144] The authorization module 502 is used to perform authorization operations according to the data authorization request.

[0145] Based on the same concept, the fifth embodiment of the present application also provides an electronic device, such as Figure 6 As shown, the electronic device mainly includes: a processor 601, a communication component 602, a memory 603 and a communication bus 604, wherein the processor 601, the communication component 602 and the memory 603 complete mutual communication through the communication bus 604. Among them, the memory 603 stores a program that can be executed by the processor 601, and the processor 601 executes the program stored in the memory 603 to implement the following steps: obtaining a data call request sent by the first terminal, wherein the data call request carries the first distributed identity of the data authorized user and the identity of the data call user; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization certificate of the data authorized user; according to the data authorization certificate, a data authorization request is sent to the second terminal corresponding to the data authorized user; after determining that the data authorized user determines the authorization, the request result corresponding to the data call request is encrypted, and the encrypted request result is sent to the first terminal, or, the data authorization request sent by the alliance chain is received, and the authorization operation is performed according to the data authorization request.

[0146] The communication bus 604 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 604 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0147] The communication component 602 is used for communication between the above electronic device and other devices.

[0148] The memory 603 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 601.

[0149] The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0150] In the sixth embodiment of the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is run on a computer, the computer executes the data acquisition method applied to the alliance chain described in the first embodiment, or the data acquisition method applied to the second terminal described in the second embodiment.

[0151] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0152] It should be noted that, in this article, 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. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a 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 further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0153] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A data acquisition method, It is characterized in that Applied to consortium chains, including: Acquire a data calling request sent by the first terminal, wherein the data calling request carries a first distributed identity identifier of a data authorization user and an identifier of a data calling user; According to the data calling request, identity authentication is performed on the data calling user corresponding to the first terminal; When the data calling user is authenticated as legitimate, assigning a second distributed identity to the data calling user; According to the second distributed identity, using the first distributed identity, querying the data authorization credential of the data authorization user; Sending a data authorization request to a second terminal corresponding to the data authorization user according to the data authorization certificate includes: initiating the data authorization request according to the data authorization certificate, digitally signing the data authorization request using a pre-stored private key, generating authorization request verification information, and sending the authorization request verification information to the second terminal corresponding to the data authorization user; After determining that the data authorization user confirms the authorization, encrypt the request result corresponding to the data call request, and send the encrypted request result to the first terminal.

2. The data acquisition method according to claim 1, It is characterized in that Before querying the data authorization credential of the data authorization user using the first distributed identity identifier according to the second distributed identity identifier, the method further includes: Obtaining a data evidence storage request sent by the second terminal, wherein the data evidence storage request carries an identifier of the data authorized user; According to the data evidence storage request, the data authorized user is authenticated; When the data authorized user is authenticated as legitimate, assigning the first distributed identity to the data authorized user; The data authorization credential is distributed to the data authorization user according to the first distributed identity.

3. The data acquisition method according to claim 2, It is characterized in that The data call request includes: the identity type of the data call user; According to the data calling request, authenticating the data calling user corresponding to the first terminal includes: When the identity type of the data calling user is an individual, using face recognition technology to authenticate the identity of the data calling user; When the identity type of the data calling user is an enterprise, the data calling user is authenticated using enterprise authentication technology.

4. The data acquisition method according to claim 2, It is characterized in that The data evidence storage request includes: the identity type of the data authorized user; According to the data evidence storage request, the data authorized user is authenticated, including: When the identity type of the data authorized user is an individual, using face recognition technology to authenticate the identity of the data authorized user; When the identity type of the data authorization user is an enterprise, the identity of the data authorization user is authenticated using enterprise authentication technology.

5. The data acquisition method according to claim 1, It is characterized in that After sending the authorization request verification information to the second terminal corresponding to the data authorization user, the method further includes: Obtaining indication information returned by the second terminal indicating that a verification operation is being performed; Verifying the first distributed identity of the data authorization user and the data authorization credential; When the verification is legitimate, an instruction message for executing a data authorization operation is sent to the second terminal.

6. The data acquisition method according to claim 1, It is characterized in that The authorization request verification information includes any one of a QR code, a barcode and a verification code; Generating authorization request verification information, and sending the authorization request verification information to a second terminal corresponding to the data authorization user, including: Generate the QR code, and send the QR code to the second terminal corresponding to the data authorized user; or, generating the barcode, and sending the barcode to a second terminal corresponding to the data authorized user; Or, generate the verification code, and send the verification code to a second terminal corresponding to the data authorized user.

7. The data acquisition method according to claim 1, It is characterized in that The data call request also includes: data authorization credential type; According to the second distributed identity, using the first distributed identity, querying the data authorization credential of the data authorization user includes: According to the second distributed identity, the first distributed identity is used to query the data authorization credential corresponding to the data authorization credential type in the data call request.

8. The data acquisition method according to any one of claims 1 to 7, It is characterized in that The method further comprises: A hash algorithm is used to calculate hash values ​​of the identity authentication record corresponding to the identity authentication, the data authorization certificate, the data authorization request, and the data authorization record corresponding to the data authorization request, and the hash values ​​are stored in the alliance chain.

9. A data acquisition method, It is characterized in that Applied to the second terminal, including: Receiving a data authorization request sent by the alliance chain, including: receiving authorization request verification information sent by the alliance chain; The data authorization request is as follows: the alliance chain obtains a data call request sent by a first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization certificate of the data authorization user and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user; the authorization request verification information is that the alliance chain initiates the data authorization request according to the data authorization certificate, and uses the pre-stored private key to digitally sign the data authorization request, generates authorization request verification information, and sends it to the second terminal corresponding to the data authorization user; An authorization operation is performed according to the data authorization request.

10. The data acquisition method according to claim 9, It is characterized in that Performing authorization operations according to the data authorization request, including: Verify the authorization request verification information, and return an indication that the verification operation is being performed to the alliance chain; Receiving instruction information for executing a data authorization operation sent by the alliance chain; According to the instruction information for executing the data authorization operation, the authorization operation is executed, and a data signature is performed on the authorization operation using a pre-stored private key.

11. The data acquisition method according to claim 10, It is characterized in that The authorization request verification information includes any one of a QR code, a barcode and a verification code; Verifying the authorization request verification information and returning indication information of the running verification operation to the alliance chain, including: Calling the code scanning function, scanning the QR code, and returning the indication information of the running verification operation to the alliance chain; Or, calling the barcode scanning function, scanning the barcode, and returning the indication information of the running verification operation to the alliance chain; Or, call the verification function, verify the verification code, and return the indication information of the running verification operation to the alliance chain.

12. A data acquisition device, It is characterized in that include: An acquisition module, used for a data call request sent by a first terminal, wherein the data call request carries a first distributed identity identifier of a data authorization user and an identifier of a data call user; An authentication module, configured to perform identity authentication on the data calling user corresponding to the first terminal according to the data calling request; An allocation module, configured to allocate a second distributed identity to the data calling user when the data calling user is authenticated as legal; A query module, configured to query the data authorization credential of the data authorization user using the first distributed identity identifier according to the second distributed identity identifier; A first sending module is used to send a data authorization request to a second terminal corresponding to the data authorization user according to the data authorization certificate, including: initiating the data authorization request according to the data authorization certificate, digitally signing the data authorization request with a pre-stored private key, generating authorization request verification information, and sending the authorization request verification information to the second terminal corresponding to the data authorization user; The second sending module is used to encrypt the request result corresponding to the data call request after determining that the data authorization user confirms the authorization, and send the encrypted request result to the first terminal.

13. A data acquisition device, It is characterized in that include: A receiving module, used to receive a data authorization request sent by the alliance chain, including: receiving authorization request verification information sent by the alliance chain; The data authorization request is as follows: the alliance chain obtains a data call request sent by a first terminal; according to the data call request, the data call user corresponding to the first terminal is authenticated; when the data call user authentication is legal, a second distributed identity is assigned to the data call user; according to the second distributed identity, the first distributed identity is used to query the data authorization certificate of the data authorization user and then send it, wherein the data call request carries the first distributed identity of the data authorization user and the identity of the data call user; the authorization request verification information is that the alliance chain initiates the data authorization request according to the data authorization certificate, and uses the pre-stored private key to digitally sign the data authorization request, generates authorization request verification information, and sends it to the second terminal corresponding to the data authorization user; The authorization module is used to perform authorization operations according to the data authorization request.

14. An electronic device, It is characterized in that include: A processor, a communication component, a memory and a communication bus, wherein the processor, the communication component and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the data acquisition method applied to the alliance chain as described in any one of claims 1-8, or to implement the data acquisition method applied to the second terminal as described in any one of claims 9-11.

15. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by the processor, it implements the data acquisition method applied to the alliance chain as described in any one of claims 1-8, or implements the data acquisition method applied to the second terminal as described in any one of claims 9-11.