Data query request processing method and device, equipment and storage medium
By optimizing hidden queries and shared index sets, the problem of low data security in cross-institutional data collaboration is solved, and two-way privacy protection and data security are improved.
Patent Information
- Application Number
- CN202611112466.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-24
- Publication Date
- 2026-11-27
AI Technical Summary
In cross-organizational data collaboration, data transmission through third-party servers poses a risk of lower security and may lead to data leakage.
By optimizing the hidden query and the shared index set, the data intersection is determined by using the target customer index and the virtual customer index. Only encrypted business data located in the shared index set is queried and returned, avoiding access to non-intersection data.
It achieves two-way privacy protection, improves data security, prevents data leakage, and reduces reliance on third-party servers.
Smart Images

Figure CN123179441A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the financial or other technical fields, and in particular to a method, apparatus, device and storage medium for processing data query requests. Background Technology
[0002] In the financial technology field, cross-institutional data collaboration is being widely applied in an increasing number of business areas. For example, in credit assessment, using data from one's own institution as well as data obtained from other institutions can improve the accuracy of credit assessments.
[0003] In related technologies, parties involved in cross-organizational data collaboration can send their respective data to a third-party server, which then determines the intersection of their data. However, the parties in this collaboration can only access the data intersection through the third-party server, and cannot access other data outside the intersection.
[0004] However, the inventors have discovered at least the following technical problems in the related technology: since both parties in cross-organizational data collaboration need to send their respective data to a third-party server, the data may be leaked from the third-party server, resulting in low data security. Summary of the Invention
[0005] This application provides a method, apparatus, device, and storage medium for processing data query requests to improve data security.
[0006] Firstly, this application provides a method for processing data query requests, including:
[0007] In response to receiving a data query request from the request initiator, the index information carried in the data query request is obtained, the index information including the target customer index and the virtual customer index;
[0008] Determine whether the target customer index and the virtual customer index are within a shared index set, wherein the shared index set represents the intersection of a first encrypted index set corresponding to multiple customers of the request recipient and a second encrypted index set corresponding to multiple customers of the request initiator;
[0009] If the target customer index is within the shared index set, then the first encrypted business data corresponding to the target customer index is queried, and the first encrypted business data is returned to the request initiator; if the virtual customer index is within the shared index set, then the second encrypted business data corresponding to the virtual customer index is queried, and the second encrypted business data is returned to the request initiator.
[0010] Secondly, this application provides a data query request processing apparatus, comprising:
[0011] The acquisition module is used to, in response to receiving a data query request sent by the request initiator, acquire the index information carried in the data query request, wherein the index information includes the target customer index and the virtual customer index;
[0012] The determination module is used to determine whether the target customer index and the virtual customer index are within a shared index set, wherein the shared index set represents the intersection of a first encrypted index set corresponding to multiple customers of the request recipient and a second encrypted index set corresponding to multiple customers of the request initiator.
[0013] The processing module is configured to, if the target customer index is within the shared index set, query the first encrypted business data corresponding to the target customer index and return the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, query the second encrypted business data corresponding to the virtual customer index and return the second encrypted business data to the request initiator.
[0014] Thirdly, this application provides an electronic device, including: a memory and a processor;
[0015] The memory stores the instructions that the computer executes;
[0016] The processor executes computer execution instructions stored in memory, causing the processor to perform the implementation method described in the first aspect above.
[0017] Fourthly, this application provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the embodiments described in the first aspect above.
[0018] Fifthly, this application provides a computer program product, including a computer program that, when executed by a processor, is used to implement the embodiments described in the first aspect above.
[0019] This application provides a method, apparatus, device, and storage medium for processing data query requests. The method includes: in response to receiving a data query request sent by a request initiator, obtaining index information carried in the data query request, the index information including a target customer index and a virtual customer index; determining whether the target customer index and the virtual customer index are within a shared index set, the shared index set representing the intersection of a first encrypted index set corresponding to multiple customers of the request recipient and a second encrypted index set corresponding to multiple customers of the request initiator; if the target customer index is within the shared index set, querying the first encrypted business data corresponding to the target customer index and returning the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, querying the second encrypted business data corresponding to the virtual customer index and returning the second encrypted business data to the request initiator. In this embodiment, because the index information carried in the data query request includes the target customer index and the virtual customer index, a concealed query is used to send the data query request. This ensures that the request recipient cannot identify the true query target of the request sender, thereby improving the data security of the request sender. Furthermore, when the request recipient receives the data query request, it verifies whether the target customer index and the virtual customer index are within the shared index set. It only returns the encrypted business data corresponding to the customer index located within the shared index set, thus preventing the request recipient from accessing encrypted business data outside the shared index set, thereby improving the data security of the request recipient. Therefore, by using concealed queries and the shared index set in tandem, bidirectional privacy protection is achieved for data collaboration, protecting non-intersecting data from both parties while avoiding reliance on third-party servers, thus contributing to improved data security. Attached Figure Description
[0020] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0021] Figure 1 A schematic diagram illustrating an application scenario of a data query request processing method provided in an embodiment of this application;
[0022] Figure 2 A flowchart illustrating a data query request processing method provided in an embodiment of this application;
[0023] Figure 3 A flowchart illustrating a method for determining a shared index set, as provided in this application embodiment;
[0024] Figure 4 A schematic diagram illustrating a data query request processing method provided in an embodiment of this application;
[0025] Figure 5A schematic diagram of the structure of a data query request processing device provided in an embodiment of this application;
[0026] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0027] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0028] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, storage, use, processing, transmission, provision, disclosure, and application of the relevant data all comply with the relevant laws, regulations, and standards of the relevant countries and regions, have taken necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation access points for users to choose to authorize or refuse.
[0030] Furthermore, the technical solution involved in this application, which involves big data analysis of user information (including but not limited to personal biometrics, identity data, consumption data, asset data, electronic terminal operation data, etc.) and the use of artificial intelligence technology for automated decision-making, and makes decisions that have a significant impact on personal rights based on the results of automated decision-making, provides users with corresponding operation entry points for users to choose to agree to or reject the results of automated decision-making; if the user chooses to reject, the process will proceed to the expert decision-making process.
[0031] It should be noted that the data query request processing method, apparatus, device, and storage medium provided in this application can be used in the field of financial technology, or in any field other than financial technology. The application field of the data query request processing method, apparatus, device, and storage medium in this application is not limited.
[0032] In the financial technology field, cross-institutional data collaboration is being widely applied in an increasing number of business areas. For example, in credit assessment, using data from one's own institution as well as data obtained from other institutions can improve the accuracy of credit assessments.
[0033] In related technologies, parties involved in cross-organizational data collaboration can send their respective data to a third-party server, which then determines the intersection of their data. However, the third-party server only allows access to the data intersection, not other data outside of it. This process, which involves sending data to a third-party server, increases the risk of data leakage, resulting in low data security.
[0034] Therefore, preventing data leakage and improving data security during cross-organizational data collaboration is a pressing technical issue that needs to be addressed.
[0035] To address the aforementioned technical issues, the technical concept of this application is as follows: by co-optimizing privacy intersection and hidden query techniques, a bidirectional privacy-protected data collaboration framework is constructed, thereby improving data security.
[0036] Accordingly, the specific steps may include: First, in response to receiving a data query request sent by the request initiator, obtaining the index information carried in the data query request, including the target customer index and the virtual customer index. Then, determining whether the target customer index and the virtual customer index are within a shared index set, where the shared index set represents the intersection of a first encrypted index set corresponding to multiple customers of the request recipient and a second encrypted index set corresponding to multiple customers of the request initiator. Finally, if the target customer index is within the shared index set, querying the first encrypted business data corresponding to the target customer index and returning the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, querying the second encrypted business data corresponding to the virtual customer index and returning the second encrypted business data to the request initiator.
[0037] In this technical solution, because the index information carried in the data query request includes both the target customer index and the virtual customer index, it enables the sending of data query requests through covert queries. This ensures that the request recipient cannot identify the true query target of the request sender, thereby improving the data security of the request sender. Furthermore, when the request recipient receives the data query request, it verifies whether the target customer index and the virtual customer index are within the shared index set. It only returns encrypted business data corresponding to the customer indexes located within the shared index set, thus preventing the request recipient from accessing encrypted business data outside the shared index set, thereby improving the data security of the request recipient. Therefore, by using covert queries and the shared index set in tandem, bidirectional privacy protection is achieved for data collaboration, protecting non-overlapping data from both parties while avoiding reliance on third-party servers, thus contributing to improved data security.
[0038] Figure 1 This is a schematic diagram illustrating an application scenario of a data query request processing method provided in an embodiment of this application. For example... Figure 1 As shown, in a cross-organizational data collaboration application scenario, the request initiating server 101 and the request receiving server 102 are connected via a network. Server 101 sends a data query request to server 102. Upon receiving the transaction request from server 101, server 102 can determine the first encrypted business data of the target customer and the second encrypted business data of the virtual customer using the data query request processing method provided in this application. Server 102 returns the first encrypted business data and the second encrypted business data to server 101. Server 101 decrypts the first encrypted business data to obtain the plaintext business data of the target customer.
[0039] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0040] Figure 2 The flowchart of a data query request processing method provided in this application embodiment Figure 1 ,like Figure 2 As shown, the method includes:
[0041] S201. In response to receiving a data query request sent by the request initiator, obtain the index information carried in the data query request, including the target customer index and the virtual customer index.
[0042] In this embodiment, the request initiator can be any participant in cross-institutional data collaboration. For example, participants in cross-institutional data collaboration between Bank A and Bank B. In this case, the request initiator can be Bank A, and the request recipient can be Bank B; the data query request is used to query business data in Bank B. Alternatively, the request initiator can be Bank B, and the request recipient can be Bank A; in this case, the data query request is used to query business data in Bank A.
[0043] For example, Bank A (the requesting party) initially identifies account A as a potentially risky account and needs to obtain its transaction details from Bank B, but is unwilling to disclose the identity of account A or the purpose of the inquiry. Bank B (the requesting party) holds a large amount of customer transaction detail data (e.g., transaction records of account A, account B, and account C).
[0044] In some embodiments, the received request can use stealth transmission techniques to hide the query target. In this case, the index information carried by the data query request may include the target customer index (corresponding to the real query target) and the virtual customer index (corresponding to the virtual query target).
[0045] Optionally, the number of target customer indexes can be one or more, and the number of virtual customer indexes can be one or more.
[0046] For example, the request initiator can be bank A, and the request recipient can be bank B; the data query request sent by bank A carries the query set as: [real customer index 1, virtual customer index 1, virtual customer index 2].
[0047] In some embodiments, to improve the security of the query set, the request initiator can encrypt the index information using the request recipient's public key.
[0048] Optionally, the process of generating encrypted index information may include: obtaining the target customer identifier corresponding to the target customer, encrypting the target customer identifier using the encryption public key of the requesting recipient, generating the target customer index corresponding to the target customer, and generating a virtual customer index using a random index.
[0049] For example, the encrypted query set can be represented as [EB(real customer index 1), EB(virtual customer index 1), EB(virtual customer index 2)].
[0050] S202. Determine whether the target customer index and the virtual customer index are within the shared index set. The shared index set represents the intersection of the first encrypted index set corresponding to multiple customers of the request initiator and the second encrypted index set corresponding to multiple customers of the request recipient.
[0051] In some embodiments, the customers corresponding to the shared index set are common customers of the request initiator and the request receiver.
[0052] For example, the shared index set includes {6, 9, 4}; where index 6 corresponds to customer "Zhang San"; index 9 corresponds to customer "Li Si"; and index 4 corresponds to customer "Wang Wu". The query set corresponding to the target customer index 6 and the virtual customer indexes (9 and 1) includes {6, 9, 1}. In this case, it is determined that the target customer index 6 and the virtual customer index 9 are within the shared index set.
[0053] In some embodiments, in order to improve the matching efficiency of the shared index set, a polynomial interpolation algorithm can be used to determine whether the target customer index and the virtual customer index are within the shared index set. The polynomial interpolation algorithm is used to create a univariate polynomial by using the encrypted indexes within the shared index set as polynomial roots, and to determine whether the target customer index and the virtual customer index are within the shared index set by linear operations of the univariate polynomial.
[0054] For example, the shared index set includes {6, 9, 4}; where index 6 corresponds to customer "Zhang San"; index 9 corresponds to customer "Li Si"; and index 4 corresponds to customer "Wang Wu". The query set corresponding to the target customer index 6 and the virtual customer indexes (9 and 1) includes {6, 9, 1}. At this point, a univariate polynomial is created using the encrypted indexes within the shared index set as the polynomial root: (x-6)(x-9)(x-4). Substituting the target customer index 6 and the virtual customer index 9 into the univariate polynomial (x-6)(x-9)(x-4) results in 0, confirming that the target customer index 6 and the virtual customer index 9 are within the shared index set. Substituting the virtual customer index 1 into the univariate polynomial (x-6)(x-9)(x-4) results in 0, confirming that the virtual customer index 1 is not within the shared index set.
[0055] S203. If the target customer index is within the shared index set, query the first encrypted business data corresponding to the target customer index and return the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, query the second encrypted business data corresponding to the virtual customer index and return the second encrypted business data to the request initiator.
[0056] In this embodiment, the request recipient only queries the encrypted business data corresponding to the customer index within the shared index set, ensuring that the request initiator cannot obtain business information of other customers. Furthermore, the request recipient can only know that the request initiator accessed its own database, but cannot know which specific customer's database was accessed.
[0057] In some embodiments, the request initiator can decrypt only the business data of the target customer that needs to be queried. Optionally, the method further includes: decrypting the first encrypted business data to obtain the plaintext business data corresponding to the first encrypted business data, and discarding the second encrypted business data.
[0058] For example, if target customer index 6 and virtual customer index 9 are within a shared index set, then the encrypted business data of target customer index 6 (Zhang San) and virtual customer index 9 (Li Si) are returned to the requesting recipient. At this time, the requesting recipient only decrypts the encrypted business data of target customer index 6 (Zhang San) and discards the encrypted business data of virtual customer index 9 (Li Si).
[0059] Optionally, the first encrypted business data can be decrypted using the private key of the request initiator to obtain the plaintext business data. For example, Bank A uses its private key skA to decrypt Zhang San's encrypted business data to obtain Zhang San's plaintext business data; for example, "Transfer of 100,000 yuan to account X on 2024-05-01".
[0060] This application provides a method for processing data query requests: In response to receiving a data query request sent by a request initiator, the method obtains the index information carried in the data query request, including a target customer index and a virtual customer index; determines whether the target customer index and the virtual customer index are within a shared index set, the shared index set representing the intersection of a first encrypted index set corresponding to multiple customers of the request recipient and a second encrypted index set corresponding to multiple customers of the request initiator; if the target customer index is within the shared index set, the method queries the first encrypted business data corresponding to the target customer index and returns the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, the method queries the second encrypted business data corresponding to the virtual customer index and returns the second encrypted business data to the request initiator. In this embodiment, because the index information carried in the data query request includes the target customer index and the virtual customer index, a concealed query is used to send the data query request. This ensures that the request recipient cannot identify the true query target of the request sender, thereby improving the data security of the request sender. Furthermore, when the request recipient receives the data query request, it verifies whether the target customer index and the virtual customer index are within the shared index set. It only returns the encrypted business data corresponding to the customer index located within the shared index set, thus preventing the request recipient from accessing encrypted business data outside the shared index set, thereby improving the data security of the request recipient. Therefore, by using concealed queries and the shared index set in tandem, bidirectional privacy protection is achieved for data collaboration, protecting non-intersecting data from both parties while avoiding reliance on third-party servers, thus contributing to improved data security.
[0061] The following describes the process of determining the shared index set, which is essentially the process of performing privacy intersection on the first encrypted index set corresponding to multiple clients of the request recipient and the second encrypted index set corresponding to multiple clients of the request initiator. The process of determining the shared index set involves identifying the shared client group between the two parties without exposing their respective non-shared clients, thus forming a permissioned set.
[0062] In some embodiments, such as Figure 3 As shown, the process of determining the shared index set includes the following steps S301 to S303:
[0063] S301. Obtain the first customer identifier set corresponding to the request initiator and the second customer identifier set corresponding to the request recipient.
[0064] In this embodiment, the request initiator can be bank A, and the request recipient can be bank B. The first customer identifier set corresponding to bank A is obtained: {account A1, account A2, ..., account A...}. X Optionally, the number of first customer identifiers in the first customer identifier set is not specifically limited. For example, the number of first customer identifiers could be 100,000. Obtain the second customer identifier set corresponding to bank B: {Account B1, Account B2, ..., Account B...} Y Optionally, there is no specific limit to the number of second customer identifiers in the second customer identifier set. For example, the number of second customer identifiers could be 200,000.
[0065] S302. Determine the first encrypted index set corresponding to the first customer identifier set; and determine the second encrypted index set corresponding to the second customer identifier set.
[0066] In some embodiments, this step may include the following steps: performing hash mapping processing on each first customer identifier in the first customer identifier set to obtain a first hash index corresponding to each first customer identifier; encrypting the first hash index corresponding to each first customer identifier using the encryption private key of the request initiator to obtain a first encrypted index set; and performing hash mapping processing on each second customer identifier in the second customer identifier set to obtain a second hash index corresponding to each second customer identifier; encrypting the second hash index corresponding to each second customer identifier using the encryption public key of the request initiator to obtain a second encrypted index set.
[0067] Optionally, such as Figure 4 As shown, each first customer identifier in the first customer identifier set is subjected to hash mapping processing to obtain the first hash index corresponding to each first customer identifier. This includes: performing one-way encryption on each first customer identifier in the first customer identifier set using a collision-free hash mapping algorithm to obtain the first hash index corresponding to each first customer identifier.
[0068] For example, the first customer identifier set is {account A1, account A2, ..., account A}. X}. For each first customer identifier in the first customer identifier set, perform hash mapping processing to obtain the first hash index corresponding to each first customer identifier, including {Index(A1), Index(A2), ..., Index(A...}. X )}. Where Index(A1) is the collision-free hash mapping corresponding to the hash value Hash(A1) of account A1, and Index(A2) is the collision-free hash mapping corresponding to the hash value Hash(A2) of account A2.
[0069] Optionally, a hash mapping process is performed on each second customer identifier in the second customer identifier set to obtain a second hash index corresponding to each second customer identifier, including: performing one-way encryption on each second customer identifier in the second customer identifier set using a collision-free hash mapping algorithm to obtain a second hash index corresponding to each second customer identifier.
[0070] For example, the second customer identifier set is {account B1, account B2, ..., account B}. Y}. For each second customer identifier in the second customer identifier set, perform hash mapping to obtain the second hash index corresponding to each second customer identifier, including {Index(B1), Index(B2), ..., Index(B...}. Y )}. Where Index(B1) is the collision-free hash mapping corresponding to the hash value Hash(B1) of account B1, and Index(B2) is the collision-free hash mapping corresponding to the hash value Hash(B2) of account B2.
[0071] Optionally, the first hash index corresponding to each first customer identifier is encrypted using the private key of the request initiator to obtain the first encrypted index set.
[0072] In some embodiments, the request initiator's encrypted private key can be represented as skA. The request initiator's encrypted public key can be represented as pkA. For example, skA is a large random number privately generated and strictly kept secret by bank A, referred to as bank A's "private key". Here, pkA = g^{skA} mod p is bank A's "public key" calculated using its own private key, which can be publicly disclosed to bank B.
[0073] Optionally, using the private key of the request initiator, the first hash index corresponding to the first customer identifier can be encrypted using the following formula to obtain the first encrypted index;
[0074] Formula 1: EA(IndexA) = g^{IndexA×skA} mod p; where EA(IndexA) represents the first addition index; IndexA represents the first hash index; skA represents the encryption private key of the requester; g is a public, very large "fundamental number"; P is a public, very large prime number used as the modulus; p and g are public parameters agreed upon by both parties in advance.
[0075] Optionally, the first hash index corresponding to each first customer identifier includes {Index(A1), Index(A2), ..., Index(A... X The first encrypted index set is {EA(IndexA1), EA(IndexA2), ..., EA(IndexA3)}; X )}.
[0076] For example, the first hash index of bank A includes the index value of Zhang San, the index value of Li Si, and the index value of Wang Wu. The first encrypted index set includes {6, 9, 4}; wherein, the first encrypted index 6 corresponds to the index value of Zhang San, the first encrypted index 9 corresponds to the index value of Li Si, and the first encrypted index 4 corresponds to the index value of Wang Wu.
[0077] Optionally, the second hash index corresponding to each second customer identifier is encrypted using the encryption public key of the requesting recipient to obtain the second encrypted index set.
[0078] In some embodiments, the requesting recipient's encrypted private key can be represented as skB. The requesting recipient's encrypted public key can be represented as pkB. Optionally, using the requesting recipient's encrypted private key, the second hash index corresponding to the second customer identifier can be encrypted using the following formula two to obtain the second encrypted index;
[0079] Formula 2: EB(IndexB) = g^{IndexB×skB} mod p; where EB(IndexB) represents the second hash index; IndexB represents the second hash index; and skB represents the encrypted private key of the requesting recipient.
[0080] Optionally, the second hash index corresponding to each second customer identifier includes {Index(B1), Index(B2), ..., Index(B... Y The second encrypted index set is {EB(IndexB1), EB(IndexB2), ..., EB(IndexB...}; Y )}.
[0081] For example, the second hash index of Bank B includes the hash index values of Zhang San, Li Si, and Zhao Liu. The second encrypted index set includes {6, 9, 5}; wherein, the index value of Zhang San corresponds to the second encrypted index 6, the index value of Li Si corresponds to the second encrypted index 9, and the index value of Zhao Liu corresponds to the second encrypted index 5.
[0082] S303. Determine the intersection of the first encrypted index set and the second encrypted index set to obtain the shared index set.
[0083] In some embodiments, such as Figure 4 As shown, the intersection of the first and second encrypted index sets can be determined using a commutative encryption algorithm.
[0084] Optionally, the request initiator can be Bank A, and the request recipient can be Bank B; correspondingly, this step may include: Bank A's server calculating a first encrypted index set including {6, 9, 4}; Bank B's server calculating a second encrypted index set including {6, 9, 5}, and sending the second encrypted index set including {6, 9, 5} to Bank A's server; and determining the intersection of the first encrypted index set and the second encrypted index set as {6, 9} through Bank A's server.
[0085] At this point, Zhang San and Li Si are the intersection of the shared indexes of Bank A and Bank B (shared customers), and Zhao Liu is in Bank B. At this point, Bank A only knows that there is a customer with ciphertext 5 in Bank B, but does not know that the customer corresponding to 5 is "Zhao Liu", because 5 is an encrypted index.
[0086] In this embodiment of the application, collision-free hash mapping and exchangeable encryption algorithms are used to ensure that the two parties seeking intersection (such as Bank A and Bank B) can securely calculate the data intersection without disclosing their unique customer information.
[0087] In some embodiments, such as Figure 4 As shown, the above calculation process can also be documented. Optionally, the method further includes uploading key steps (such as intersection hash and query request hash) to the blockchain. If Bank A questions the authenticity of the result, the regulatory agency can retrieve the documented evidence on the blockchain to reproduce the calculation process to ensure the validity of the data.
[0088] Figure 5 A schematic diagram of the structure of a data query request processing device provided in this application embodiment. Figure 1 ,like Figure 5 As shown, the device includes:
[0089] The acquisition module 501 is used to respond to a data query request sent by the request initiator and acquire the index information carried in the data query request. The index information includes the target customer index and the virtual customer index.
[0090] The determination module 502 is used to determine whether the target customer index and the virtual customer index are within the shared index set. The shared index set is used to represent the intersection of the first encrypted index set corresponding to multiple customers of the request initiator and the second encrypted index set corresponding to multiple customers of the request receiver.
[0091] The processing module 503 is used to query the first encrypted business data corresponding to the target customer index if the target customer index is in the shared index set, and return the first encrypted business data to the request initiator; if the virtual customer index is in the shared index set, it queries the second encrypted business data corresponding to the virtual customer index and returns the second encrypted business data to the request initiator.
[0092] In some embodiments, the acquisition module 501 is further configured to acquire a first customer identifier set corresponding to the request initiator and a second customer identifier set corresponding to the request recipient; determine a first encrypted index set corresponding to the first customer identifier set; and determine a second encrypted index set corresponding to the second customer identifier set; and determine the intersection of the first encrypted index set and the second encrypted index set to obtain a shared index set.
[0093] In some embodiments, the acquisition module 501 determines a first encrypted index set corresponding to a first customer identifier set; and determines a second encrypted index set corresponding to a second customer identifier set, including: performing hash mapping processing on each first customer identifier in the first customer identifier set to obtain a first hash index corresponding to each first customer identifier, encrypting the first hash index corresponding to each first customer identifier using the encryption private key of the request initiator to obtain a first encrypted index set; and performing hash mapping processing on each second customer identifier in the second customer identifier set to obtain a second hash index corresponding to each second customer identifier, encrypting the second hash index corresponding to each second customer identifier using the encryption public key of the request initiator to obtain a second encrypted index set.
[0094] In some embodiments, the acquisition module 501 performs hash mapping processing on each first customer identifier in the first customer identifier set to obtain a first hash index corresponding to each first customer identifier, including: performing one-way encryption on each first customer identifier in the first customer identifier set using a collision-free hash mapping algorithm to obtain a first hash index corresponding to each first customer identifier.
[0095] In some embodiments, the acquisition module 501 is further configured to acquire the target customer identifier corresponding to the target customer, encrypt the target customer identifier using the encryption public key of the requesting recipient, generate the target customer index corresponding to the target customer, and generate a virtual customer index using a random index.
[0096] In some embodiments, the determining module 502 determines whether the target customer index and the virtual customer index are within the shared index set, including: determining whether the target customer index and the virtual customer index are within the shared index set by a polynomial interpolation algorithm, wherein the polynomial interpolation algorithm is used to create a univariate polynomial by using the encrypted index in the shared index set as the polynomial root, and determining whether the target customer index and the virtual customer index are within the shared index set by linear operations of the univariate polynomial.
[0097] In some embodiments, the processing module 503 is further configured to decrypt the first encrypted service data through the request initiator to obtain the plaintext service data corresponding to the first encrypted service data, and to discard the second encrypted service data.
[0098] This application provides a data query request processing apparatus. Because the data query request carries index information including a target customer index and a virtual customer index, it enables the sending of data query requests through covert queries. This ensures that the request recipient cannot identify the true query target of the request sender, thereby improving the data security of the request sender. Furthermore, when the request recipient receives the data query request, it verifies whether the target customer index and the virtual customer index are within a shared index set. It only returns encrypted business data corresponding to customer indexes located within the shared index set, thus preventing the request recipient from accessing encrypted business data outside the shared index set, thereby improving the data security of the request recipient. Therefore, by using covert queries and a shared index set in tandem, bidirectional privacy protection is achieved for data collaboration, protecting non-intersecting data from both parties while avoiding reliance on third-party servers, thus contributing to improved data security.
[0099] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes at least one processor 601 and a memory 602. Optionally, the device 600 also includes a communication component 603. The processor 601, memory 602, and communication component 603 are connected via a bus 604.
[0100] In a specific implementation, at least one processor 601 executes computer execution instructions stored in memory 602, causing at least one processor 601 to perform the above-described method.
[0101] The specific implementation process of processor 601 can be found in the above method embodiments, and its implementation principle and technical effect are similar. It will not be repeated here.
[0102] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0103] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0104] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0105] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0106] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0107] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0108] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0109] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily essential to this application.
[0110] It should be further noted that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowchart may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0111] It should be noted that the terms "first," "second," etc., in the claims, specification, and accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, products, or apparatus.
[0112] It should be understood that the above-described device embodiments are merely illustrative, and the device of this application can also be implemented in other ways. For example, the division of units / modules in the above embodiments is only a logical functional division, and there may be other division methods in actual implementation. For example, multiple units, modules, or components may be combined, or integrated into another system, or some features may be ignored or not executed.
[0113] Furthermore, unless otherwise specified, the functional units / modules in the various embodiments of this application can be integrated into one unit / module, or each unit / module can exist physically separately, or two or more units / modules can be integrated together. The integrated units / modules described above can be implemented in hardware or as software program modules.
[0114] When integrated units / modules are implemented in hardware, the hardware can be digital circuits, analog circuits, etc. The physical implementation of the hardware structure includes, but is not limited to, transistors, memristors, etc. Unless otherwise specified, the processor can be any suitable hardware processor, such as a CPU, GPU, FPGA, DSP, and ASIC, etc. Unless otherwise specified, the storage unit can be any suitable magnetic or magneto-optical storage medium, such as Resistive Random Access Memory (RRAM), Dynamic Random Access Memory (DRAM), Static Random Access Memory (SRAM), Enhanced Dynamic Random Access Memory (EDRAM), High-Bandwidth Memory (HBM), Hybrid Memory Cube (HMC), etc.
[0115] If the integrated unit / module is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0116] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0117] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0118] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for processing data query requests, characterized in that, The method includes: In response to receiving a data query request from the request initiator, the index information carried in the data query request is obtained, the index information including the target customer index and the virtual customer index; Determine whether the target customer index and the virtual customer index are within a shared index set, wherein the shared index set represents the intersection of a first encrypted index set corresponding to multiple customers of the request initiator and a second encrypted index set corresponding to multiple customers of the request receiver; If the target customer index is within the shared index set, then the first encrypted business data corresponding to the target customer index is queried, and the first encrypted business data is returned to the request initiator; if the virtual customer index is within the shared index set, then the second encrypted business data corresponding to the virtual customer index is queried, and the second encrypted business data is returned to the request initiator.
2. The processing method according to claim 1, characterized in that, The method further includes: Obtain the first customer identifier set corresponding to the request initiator and the second customer identifier set corresponding to the request recipient; Determine the first encrypted index set corresponding to the first customer identifier set; and determine the second encrypted index set corresponding to the second customer identifier set; The intersection of the first encrypted index set and the second encrypted index set is determined to obtain the shared index set.
3. The processing method according to claim 2, characterized in that, The steps of determining the first encrypted index set corresponding to the first customer identifier set and determining the second encrypted index set corresponding to the second customer identifier set include: Each first customer identifier in the first customer identifier set is hash-mapped to obtain a first hash index corresponding to each first customer identifier. The first hash index corresponding to each first customer identifier is then encrypted using the private key of the request initiator to obtain a first encrypted index set. Similarly, each second customer identifier in the second customer identifier set is hash-mapped to obtain a second hash index corresponding to each second customer identifier. The second hash index corresponding to each second customer identifier is then encrypted using the public key of the request initiator to obtain a second encrypted index set.
4. The processing method according to claim 3, characterized in that, The step of performing hash mapping processing on each first customer identifier in the first customer identifier set to obtain the first hash index corresponding to each first customer identifier includes: Each first customer identifier in the first customer identifier set is one-way encrypted using a collisionless hash mapping algorithm to obtain the first hash index corresponding to each first customer identifier.
5. The processing method according to claim 1, characterized in that, The method further includes: Obtain the target customer identifier corresponding to the target customer, encrypt the target customer identifier using the public key of the request recipient, generate the target customer index corresponding to the target customer, and generate the virtual customer index using a random index.
6. The processing method according to claim 1, characterized in that, Determining whether the target customer index and the virtual customer index are within the shared index set includes: The target customer index and the virtual customer index are determined to be within the shared index set by a polynomial interpolation algorithm. The polynomial interpolation algorithm is used to create a univariate polynomial by using the encrypted index in the shared index set as the polynomial root. The linear operation of the univariate polynomial is then used to determine whether the target customer index and the virtual customer index are within the shared index set.
7. The method according to claim 1, characterized in that, The method further includes: The request initiator decrypts the first encrypted service data to obtain the plaintext service data corresponding to the first encrypted service data, and discards the second encrypted service data.
8. A data query request processing apparatus, characterized in that, The device includes: The acquisition module is used to, in response to receiving a data query request sent by the request initiator, acquire the index information carried in the data query request, wherein the index information includes the target customer index and the virtual customer index; The determination module is used to determine whether the target customer index and the virtual customer index are within a shared index set, wherein the shared index set represents the intersection of a first encrypted index set corresponding to multiple customers of the request initiator and a second encrypted index set corresponding to multiple customers of the request receiver. The processing module is configured to, if the target customer index is within the shared index set, query the first encrypted business data corresponding to the target customer index and return the first encrypted business data to the request initiator; if the virtual customer index is within the shared index set, query the second encrypted business data corresponding to the virtual customer index and return the second encrypted business data to the request initiator.
9. An electronic device, characterized in that, The electronic device includes: a memory and a processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the data query request processing method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the data query request processing method as described in any one of claims 1-7.
11. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the data query request processing method as described in any one of claims 1-7.
