A transaction data processing method and device
Through homomorphic encryption technology and private key division mechanism, the problems of data security and high operation and maintenance costs in cross-enterprise and cross-subject transaction data processing are solved, and efficient and safe transaction data processing is achieved.
Patent Information
- Application Number
- CN202210346429.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-02
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2042-04-02
AI Technical Summary
In existing technology application scenarios such as joint risk prevention and control, cross-enterprise and cross-subject transaction data processing involves communication between multi-party nodes, resulting in large network impact, unstable computing performance, high operation and maintenance costs, and the inability to effectively guarantee the security of transaction data. Security.
Using homomorphic encryption technology, the transaction data is encrypted into ciphertext by the data provider using the public key and processed by the data center. The private key is divided into the first sub-private key and the second sub-private key, which are stored in the data center respectively. and data users to ensure that the data center and data users cannot decrypt transaction data or processing results, thereby achieving secure processing of transaction data.
On the basis of not leaking transaction data in plain text, it achieves efficient processing of transaction data, reduces operation and maintenance costs, improves computing performance and convenience, and ensures the security and legal compliance of transaction data.
Smart Images

Figure CN114826546B
Abstract
Description
Technical Field
[0001] This document relates to the field of computer technology, and in particular to a transaction data processing method and device. Background Art
[0002] In application scenarios such as joint risk prevention and control, it is usually necessary to collect and calculate transaction data across enterprises and entities. However, in the context of the General Data Protection Regulation (GDPR) and increasingly stringent regulatory compliance requirements, transaction data across enterprises and entities cannot be processed in plain text.
[0003] In this regard, the current main method is to use secure multi-party computing (MPC) technology to implement transaction data processing based on privacy protection, that is, deploy a processing system at each data provider, and implement confidential data interaction and calculation between nodes based on the MPC protocol. However, this transaction data processing solution involves communication between multiple nodes, which is not only greatly affected by the network and has unstable computing performance, but also has high operation and maintenance costs because each node needs to deploy a processing system.
[0004] Based on this, there is an urgent need for a technical solution that can process transaction data conveniently and efficiently while ensuring that the plain text of transaction data is not leaked. Summary of the invention
[0005] The purpose of the embodiments of this specification is to provide a transaction data processing method and device, so as to conveniently and efficiently process transaction data while ensuring that the transaction data is not leaked.
[0006] In order to achieve the above purpose, the embodiments of this specification adopt the following technical solutions:
[0007] In a first aspect, a transaction data processing method is provided, comprising:
[0008] The data center performs target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by the data provider using the public key to homomorphically encrypt the target transaction data and send it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0009] The data center uses the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext, obtains intermediate data, and sends it to the data user;
[0010] The data user uses the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0011] In a second aspect, a transaction data processing method is provided, which is applied to a data center, and the method includes:
[0012] Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0013] The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the ciphertext of the processing result to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to perform homomorphic decryption corresponding to the homomorphic encryption using the second sub-private key to obtain the plaintext of the processing result.
[0014] In a third aspect, a transaction data processing method is provided, which is applied to a data user, and the method includes:
[0015] Receiving intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0016] Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0017] In a fourth aspect, a transaction data processing method is provided, which is applied to a data provider, and the method comprises:
[0018] Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0019] The target transaction data ciphertext is sent to a data center. After the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, the first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and the obtained intermediate data is sent to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0020] In a fifth aspect, a transaction data processing device is provided, which is applied to a data center, and the device includes:
[0021] A first processing unit performs target processing on a target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by a data provider using a public key and sending the ciphertext to the data center, wherein a private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0022] The result ciphertext decryption unit uses the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext, obtains intermediate data and sends it to the data user, and the intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
[0023] In a sixth aspect, a transaction data processing device is provided, which is applied to a data user, and the device includes:
[0024] An intermediate data receiving unit receives intermediate data sent by a data center, wherein the intermediate data is obtained by homomorphically decrypting a processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using a first sub-private key, and the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data using a public key by a data provider and sent to the data center, and the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in a data user;
[0025] The intermediate data decryption unit uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a plain text of the processing result.
[0026] In a seventh aspect, a transaction data processing device is provided, which is applied to a data provider, and the device includes:
[0027] The homomorphic encryption unit uses the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0028] A ciphertext sending unit sends the target transaction data ciphertext to a data center. The target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0029] According to an eighth aspect, an electronic device is provided, including:
[0030] Processor; and
[0031] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0032] Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0033] The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
[0034] In a ninth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a terminal device including a plurality of application programs, the terminal device performs the following operations:
[0035] Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0036] The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
[0037] In a tenth aspect, an electronic device is provided, including:
[0038] Processor; and
[0039] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0040] Receiving intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0041] Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0042] In an eleventh aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a terminal device including a plurality of application programs, the terminal device performs the following operations:
[0043] Receiving intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0044] Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0045] In a twelfth aspect, an electronic device is provided, including:
[0046] Processor; and
[0047] a memory arranged to store computer executable instructions which, when executed, cause the processor to:
[0048] Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0049] The target transaction data ciphertext is sent to a data center. After the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, the first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and the obtained intermediate data is sent to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0050] In a thirteenth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a terminal device including a plurality of application programs, the terminal device performs the following operations:
[0051] Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0052] The target transaction data ciphertext is sent to a data center. After the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, the first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and the obtained intermediate data is sent to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0053] In the scheme of the embodiments of this specification, the data provider uses the public key to perform homomorphic encryption on the transaction data to obtain the transaction data ciphertext and provides it to the data center, and the data center performs corresponding processing on the transaction data ciphertext. Since the original mathematical properties of the transaction data are still retained after being homomorphically encrypted, the transaction data ciphertext can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the transaction data ciphertext is the same as the processing result obtained by processing the transaction data in plain text after being decrypted; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the transaction data ciphertext to obtain the transaction data in plain text, but also unable to decrypt the processing result ciphertext to obtain the processing result plaintext. The transaction data in plain text is reversely deduced to ensure that the transaction data is not leaked and the security of the transaction data is ensured; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext. In this way, the transaction data can be processed without leaking the transaction data in plain text, ensuring the security of the transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings described herein are used to provide a further understanding of this specification and constitute a part of this specification. The illustrative embodiments and descriptions of this specification are used to explain this specification and do not constitute an improper limitation on this specification. In the drawings:
[0055] Figure 1 A schematic diagram of an application scenario of a transaction data processing method provided by an embodiment of this specification;
[0056] Figure 2 One of the flowcharts of a transaction data processing method provided by an embodiment of this specification;
[0057] Figure 3 A second flowchart of a transaction data processing method provided by an embodiment of this specification;
[0058] Figure 4A schematic diagram of a ciphertext block provided for one embodiment of the present specification;
[0059] Figure 5 A third flowchart of a transaction data processing method provided by an embodiment of this specification;
[0060] Figure 6 A fourth flowchart of a transaction data processing method provided by an embodiment of this specification;
[0061] Figure 7 A fifth flowchart of a transaction data processing method provided by an embodiment of this specification;
[0062] Figure 8 One of the structural schematic diagrams of a transaction data processing device provided by one embodiment of this specification;
[0063] Fig. 9 A second structural diagram of a transaction data processing device provided in accordance with an embodiment of the present specification;
[0064] Fig.10 A third structural diagram of a transaction data processing device provided in accordance with an embodiment of the present specification;
[0065] Fig.11 One of the structural schematic diagrams of an electronic device provided by an embodiment of this specification;
[0066] Fig.12 The second structural diagram of an electronic device provided for one embodiment of the present specification. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0068] It should be understood that although the terms "first", "second", etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are only used to separate the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information.
[0069] Some concept descriptions:
[0070] Homomorphic encryption: It is a cryptographic technology based on the computational complexity theory of mathematical problems. The data that has been homomorphically encrypted is processed to obtain an output. This output is decrypted and the result is the same as the output obtained by processing the unencrypted original data in the same way.
[0071] Fully Homomorphic Encryption (FHE): is an encryption algorithm invented by Craig Gentry, which includes 4 algorithms, namely key generation algorithm, encryption algorithm, decryption algorithm and additional evaluation algorithm. Fully homomorphic encryption technology can realize an unlimited number of arbitrary homomorphic operations on encrypted data, that is, it can homomorphically calculate any function.
[0072] As mentioned above, the MPC technology is currently mainly used to implement transaction data processing based on privacy protection, that is, a processing system is deployed on each data provider, and each data provider implements confidential data interaction and calculation between nodes based on the MPC protocol. However, this transaction data processing solution involves communication between multiple nodes, which is not only greatly affected by the network and has unstable computing performance, but also has high operation and maintenance costs because each node needs to deploy a processing system.
[0073] To this end, the embodiments of this specification are intended to provide a transaction data processing solution based on homomorphic encryption technology. The data provider uses the public key to homomorphically encrypt the transaction data to obtain the transaction data ciphertext and provides it to the data center. The data center processes the transaction data ciphertext accordingly. Since the original mathematical properties of the transaction data are still retained after homomorphic encryption, the transaction data ciphertext can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the transaction data ciphertext is the same as the processing result obtained by processing the transaction data in plain text after decryption; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the transaction data ciphertext to obtain the transaction data in plain text, but also unable to decrypt and process it. The result ciphertext obtains the plaintext of the processing result and reversely derives the transaction data in plaintext, thereby ensuring that the transaction data is not leaked and ensuring the security of the transaction data; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext, thereby realizing the processing of transaction data without leaking the transaction data in plaintext, ensuring the security of transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs.
[0074] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0075] The transaction data processing method provided in the embodiments of this specification can be applied to Figure 1 In the scenario shown, the scenario includes: a data center 1, a data provider 2, and a data user 3.
[0076] The data provider 2 refers to the party that provides transaction data, which may include, but is not limited to, various types of transaction platforms. The data user 3 refers to the party that uses the transaction data, which may include, but is not limited to, transaction platforms, risk prevention and control platforms, etc. The data center 1 is used to process the transaction data provided by the data provider 2, such as aggregating the transaction data and risk prevention and control related technologies, and send the processing results to the data user, so that the data user 3 can perform further processing based on the processing results, such as joint risk prevention and control.
[0077] The transaction data processing method provided in the embodiments of this specification will describe in detail the interaction process between the data center 1, the data provider 2 and the data user 3, so as to conveniently and efficiently process the transaction data while ensuring that the transaction data is not leaked.
[0078] Please refer to Figure 2 , is a flow chart of a transaction data processing method provided by an embodiment of this specification, the method may include:
[0079] S202, the data center performs target processing on the target transaction data ciphertext to obtain a processing result ciphertext.
[0080] The target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data and sent to the data center. More specifically, the target transaction data ciphertext can be obtained by the data provider using the public key to perform fully homomorphic encryption on the target transaction data and sent to the data center.
[0081] The public key and its corresponding private key are a pair of pre-generated asymmetric keys. In practical applications, the public key and its corresponding private key can be generated by any appropriate key generation algorithm, which is not limited in the embodiments of this specification.
[0082] The target transaction data refers to the transaction data to be processed, which can be determined according to actual needs, and the embodiments of this specification do not limit this. For example, in the risk joint defense control scenario, if you want to deploy strategies for the user's transaction amount related data, the target transaction data may include the user's transaction amount, etc.; if you want to identify the risk of merchants based on mobile location services (Location Based Service, LBS), the target transaction data may include the transaction location, etc.
[0083] Target processing refers to the processing tasks required for target transaction data, which can also be set according to actual needs, including but not limited to addition, subtraction, multiplication, division, square root and other operations. For example, in the risk joint defense control scenario, if you want to deploy strategies for the user's transaction amount related data, the target processing may include summarizing the user's transaction amount within a certain period of time; if you want to perform LBS-based risk identification on merchants, the target processing may include determining the distance between the merchant's actual transaction location and the expected transaction location.
[0084] Since the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data using the public key, according to the characteristics of the homomorphic encryption technology, the original data characteristics of the target transaction data are still retained after encryption, so the encrypted target transaction data ciphertext can be directly processed by the data center and the processing result obtained by the processing is equivalent to the processing result obtained by performing the same processing on the plaintext transaction data, that is, the processing result obtained by processing the transaction data ciphertext (referred to as the processing result ciphertext in the embodiment of this specification) is the same as the processing result obtained by processing the plaintext transaction data (referred to as the processing result plaintext in the embodiment of this specification) after being decrypted. As a result, the data user can use the private key corresponding to the public key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext to obtain the processing result plaintext.
[0085] S204, the data center uses the first sub-private key to perform homomorphic decryption on the processing result ciphertext corresponding to the homomorphic encryption, obtains the intermediate data and sends it to the data user.
[0086] Taking into account the following possible leakage of target transaction data: after the private key is leaked to the data center, the data center uses the private key to decrypt the target transaction data ciphertext to obtain the target transaction data or decrypts the processing result ciphertext and then reversely derives the target transaction data; after the target transaction data ciphertext is leaked to the data user, the data user uses the private key to decrypt the target transaction data ciphertext to obtain the target transaction data or decrypts the processing result ciphertext and then reversely derives the target transaction data, and so on. In order to avoid the leakage of the target transaction data and ensure the security of the target transaction data, in the embodiments of this specification, the private key can be divided into a first sub-private key and a second sub-private key, that is, the private key includes the first sub-private key and the second sub-private key, and the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0087] In the above S204, homomorphic decryption corresponding to homomorphic encryption refers to a decryption process opposite to homomorphic encryption. Since the data center only has the first sub-private key in the private key, the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the processing result ciphertext, which is actually the first part of the processing result ciphertext decryption. The result of the decryption is intermediate data, and the target transaction data cannot be reversely derived. In addition, the data center cannot use the first sub-private key to decrypt the target transaction data ciphertext to obtain the target transaction data, thereby preventing the target transaction data from being leaked at the data center.
[0088] Furthermore, considering that for some relatively sensitive transaction data, if the target processing for such transaction data is some simple operations, such as the difference between the cumulative transaction amount of a certain object and the preset amount threshold, the data user can easily reversely deduce the original transaction data based on the processing result plaintext after obtaining the processing result plaintext. Therefore, in another embodiment of the present specification, Figure 3 As shown, before the above S204, the transaction data processing method provided in the embodiment of this specification may also include: if the target transaction data is a preset type of transaction data, the data center blinds the processing result ciphertext; accordingly, in the above S204, the data center uses the first sub-private key to decrypt the processing result ciphertext after blinding.
[0089] Among them, the above-mentioned blinding processing can be implemented by any appropriate blinding processing method, which can be selected according to actual needs, and the embodiments of this specification are not limited to this. The preset type can also be set according to actual needs, for example, the preset type can include transaction data involving amount, etc., which is not limited to this embodiment of this specification.
[0090] For example, taking the case where the target transaction data includes the cumulative transaction amount of the target object in multiple preset time periods, and the target processing is to determine the difference between the cumulative transaction amount in each preset time period and the preset amount threshold, after obtaining the processing result ciphertext, the processing result ciphertext can be multiplied by the preset blinding coefficient n, that is, result = [F e (E(x1),E(x2),...,E(x n ))-T]·n, where result represents the ciphertext of the processing result after the blinding operation, and x i represents the cumulative transaction amount in the i-th preset time period, E(x i ) represents the cumulative transaction amount ciphertext obtained by homomorphically encrypting the cumulative transaction amount in the i-th preset time period, F e represents a fully homomorphic computation (i.e., target processing), and its corresponding plaintext processing computation is f, T represents the preset amount threshold, n represents the blinding coefficient, and n>0. In this case, if result>0, then it can be determined that f(x1,x2,...,x n )>T; if result≤0, then we can determine f(x1,x2,...,x n )≤T.
[0091] S206, the data user uses the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0092] In S206, homomorphic decryption corresponding to homomorphic encryption refers to a decryption process opposite to homomorphic encryption. Since the data user only has the second sub-private key in the private key, the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data, which is actually to decrypt the second part of the processing result ciphertext to obtain the processing result plaintext, and then it is impossible to reversely deduce the target transaction data based on the processing result plaintext. Moreover, even if the data user obtains the target transaction data ciphertext, it cannot use the second sub-private key to decrypt the target transaction data ciphertext to obtain the target transaction data, thereby preventing the target transaction data from being leaked at the data user.
[0093] In the embodiments of this specification, the data user may also request the data center to perform target processing on the target transaction data based on the use requirements of the target transaction data; accordingly, the data center performs target processing on the target transaction data in response to the request of the data user. Specifically, taking the risk joint defense scenario as an example, Figure 3 As shown, before the above S202, the transaction data processing method provided in the embodiment of this specification may also include: the data user may determine the target transaction data and the target processing task for the target transaction data based on the risk prevention and control strategy for the target object, and send a data processing request to the data center based on the target transaction data and the target processing task, wherein the data processing request is used to request target processing of the target transaction data; accordingly, after the above S206, the above transaction data processing method may also include: the data user performs risk prevention and control for the target object based on the plain text of the processing result and the risk prevention and control strategy.
[0094] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on the transaction amount data of the target object, and the target transaction data is the transaction amount of a single transaction of the target object within a preset time period. Accordingly, the target processing task includes at least one of the following tasks: determining the cumulative transaction amount of the target object within the preset time period, determining the proportion of the cumulative transaction amount in the total historical transaction amount of the target object, comparing the cumulative transaction amount with a preset transaction amount threshold, determining the difference between the cumulative transaction amount and the preset transaction amount threshold, and so on.
[0095] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on the transaction location of the target object, and the transaction data is the actual transaction location of the target object. Accordingly, the target processing task includes at least one of the following tasks: determining the distance between the actual transaction location and the expected transaction location of the target object, comparing the distance with a preset distance threshold, determining the proportion of the number of transactions in which the distance exceeds the preset distance threshold in the total number of historical transactions of the target object, and so on.
[0096] Of course, in some other optional implementations, the data center may also be triggered to perform target processing on the target transaction data ciphertext after receiving the target transaction data ciphertext provided by the data provider.
[0097] In the embodiments of this specification, the data provider may homomorphically encrypt the target transaction data in any appropriate manner to obtain the target transaction data ciphertext and send it to the data center. In an optional implementation, the data provider may use the public key to homomorphically encrypt each target transaction data separately, obtain the corresponding target transaction data ciphertext and send it to the data center.
[0098] In another optional implementation, in order to improve the efficiency of homomorphic encryption and make full use of the storage space of the target transaction data ciphertext in the data center, the data provider can provide the target transaction data ciphertext to the data center in the form of a ciphertext block for storage. Specifically, before the above S202, the transaction data processing method provided in the embodiment of this specification may also include: the data provider uses the public key to homomorphically encrypt the target transaction data to obtain the target transaction data ciphertext; the data provider determines the offset corresponding to the target transaction data ciphertext based on the size of the target transaction data ciphertext; the data provider generates a ciphertext block based on the target transaction data ciphertext and its corresponding offset, and sends the ciphertext block and offset to the data center. Among them, the offset corresponding to the target transaction data ciphertext is used to characterize the position of the target transaction data ciphertext in the ciphertext block.
[0099] More specifically, Figure 4 As shown, the size of data that can be stored in a single ciphertext block 40 (such as Figure 4 The small square 41 in the target transaction data (such as Figure 4 The black small square 41a in the ciphertext block) and its number determine the target transaction data stored in each ciphertext block and its offset in the ciphertext block to which it belongs ( Figure 4 The offset in is 0), and then based on the offset corresponding to the target transaction data, it is written into the corresponding ciphertext block, and then the offset corresponding to the target transaction data and the obtained ciphertext block are sent to the data center.
[0100] Furthermore, for the data center side, before the above S202, the data center can obtain the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext. Thus, the target transaction data ciphertext can be quickly obtained, especially when the number of target transaction data ciphertexts is large, these target transaction data ciphertexts can be obtained in batches.
[0101] In order to improve the speed of homomorphic encryption, in the transaction data processing method provided in the embodiments of this specification, the data provider uses a public key to homomorphically encrypt the target transaction data. Specifically, it can be implemented as follows: the data provider determines a homomorphic encryption algorithm that matches the target transaction data based on the type of the target transaction data, and based on the matching homomorphic encryption algorithm, uses the public key to homomorphically encrypt the target transaction data.
[0102] For example, if the target transaction data is the transaction amount, the matching homomorphic encryption algorithm can be determined to be a coefficient encoding algorithm; if the target transaction data is the transaction location, the matching homomorphic encryption algorithm can be determined to be a fast Fourier Transform (FFT) encoding algorithm, and so on.
[0103] In the transaction data processing method provided in the embodiments of this specification, a data provider uses a public key to homomorphically encrypt transaction data to obtain a ciphertext of transaction data and provides it to a data center. The data center processes the ciphertext of transaction data accordingly. Since the original mathematical properties of the transaction data are retained after homomorphic encryption, the ciphertext of transaction data can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the ciphertext of transaction data is the same as the processing result obtained by processing the transaction data in plain text after decryption; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the ciphertext of transaction data to obtain the transaction data in plain text, but also unable to decrypt the ciphertext of the processing result to obtain the processed data. The result is plaintext and the transaction data in plaintext is reversely deduced, thereby ensuring that the transaction data is not leaked and ensuring the security of the transaction data; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext. In this way, the transaction data can be processed without leaking the transaction data in plaintext, ensuring the security of the transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs.
[0104] Figure 5 A flowchart of a transaction data processing method provided in an embodiment of the present specification is provided. The method can be applied to a data center. Specifically, the execution subject of the method can be Figure 1 Data center 1 is shown. Figure 5 As shown, the method may include the following steps:
[0105] S502, performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext.
[0106] The target transaction data ciphertext is obtained by the data provider using the public key to homomorphically encrypt the target transaction data and send it to the data center.
[0107] The private key corresponding to the public key includes a first sub-private key and a second sub-private key. The first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0108] Optionally, before the above S502, the transaction data processing method provided in the embodiment of this specification may further include: obtaining the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext.
[0109] S504: Use the first sub-private key to perform homomorphic decryption on the ciphertext of the processing result corresponding to the homomorphic encryption, obtain the intermediate data and send it to the data user.
[0110] Among them, the intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the plaintext of the processing result.
[0111] Optionally, before the above S504, the transaction data processing method provided in the embodiment of this specification may also include: if the target transaction data is a preset type of transaction data, blinding the processing result ciphertext; accordingly, in S504, using the first sub-private key to decrypt the blinded processing result ciphertext.
[0112] The specific implementation of each step from S502 to S504 can be found in Figure 2 The specific implementation methods of the corresponding steps in the illustrated embodiment will not be repeated here.
[0113] Figure 6 A flowchart of a transaction data processing method provided for an embodiment of the present specification is provided. The method can be applied to a data user. Specifically, the execution subject of the method can be Figure 1 Data users shown in 3. Figure 6 As shown, the method may include the following steps:
[0114] S602, receiving intermediate data sent by the data center.
[0115] Among them, the intermediate data is obtained by the data center performing target processing on the target transaction data ciphertext, and then using the first sub-private key to homomorphically decrypt the processing result ciphertext. The target transaction data ciphertext is obtained by the data provider using the public key to homomorphically encrypt the target transaction data and send it to the data center.
[0116] The private key corresponding to the public key includes a first sub-private key and a second sub-private key. The first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0117] S604, use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain the plain text of the processing result.
[0118] Optionally, before the above S602, the transaction data processing method provided in the embodiment of this specification may also include: determining the target transaction data and the target processing task for the target transaction data based on the risk prevention and control strategy for the target object; based on the target transaction data and the target processing task, sending a data processing request to the data center, the data processing request being used to request target processing of the target transaction data; accordingly, after the above S602, risk prevention and control is performed for the target object based on the plain text of the processing result and the risk prevention and control strategy.
[0119] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on transaction amount data of the target object, and the target transaction data is the transaction amount of a single transaction of the target object within a preset time period;
[0120] The target processing task includes at least one of the following tasks: determining the cumulative transaction amount of the target object within the preset time period, determining the proportion of the cumulative transaction amount in the total historical transaction amount of the target object, comparing the cumulative transaction amount with a preset transaction amount threshold, and determining the difference between the cumulative transaction amount and the preset transaction amount threshold.
[0121] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on the transaction location of the target object, and the target transaction data is the actual transaction location of the target object;
[0122] The target processing task includes at least one of the following tasks: determining the distance between the actual transaction location and the expected transaction location of the target object, comparing the distance with a preset distance threshold, and determining the proportion of the number of transactions in which the distance exceeds the preset distance threshold in the total number of historical transactions of the target object.
[0123] The specific implementation of each step from S602 to S604 can be found in Figure 2The specific implementation methods of the corresponding steps in the illustrated embodiment will not be repeated here.
[0124] Figure 7 A flowchart of a transaction data processing method provided in an embodiment of the present specification is provided. The method can be applied to a data provider. Specifically, the execution subject of the method can be Figure 1 The data provider 2 is shown. Figure 7 As shown, the method may include the following steps:
[0125] S702, use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data.
[0126] Optionally, the above S702 can be specifically implemented as follows: based on the type of the target transaction data, determining a homomorphic encryption algorithm that matches the target transaction data; based on the matching homomorphic encryption algorithm, using the public key to homomorphically encrypt the target transaction data.
[0127] S704, sending the target transaction data ciphertext to the data center.
[0128] Among them, the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext.
[0129] The corresponding private key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0130] Optionally, the above S702 can be specifically implemented as: using the public key to homomorphically encrypt the target transaction data to obtain the target transaction data ciphertext; based on the size of the target transaction data ciphertext, determining the offset corresponding to the target transaction data ciphertext; based on the target transaction data ciphertext and its corresponding offset, generating a ciphertext block; accordingly, the above S704 can be specifically implemented as: sending the ciphertext block and the offset to the data center.
[0131] The specific implementation of each step from S702 to S704 can be found in Figure 2 The specific implementation methods of the corresponding steps in the illustrated embodiment will not be repeated here.
[0132] In addition, Figure 5 Corresponding to the transaction data processing method shown, the embodiment of this specification also provides a transaction data processing device. Figure 88 is a schematic diagram of a transaction data processing device 800 provided in an embodiment of the present specification, including:
[0133] The first processing unit 810 performs target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sent to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0134] The result ciphertext decryption unit 820 uses the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext, obtains intermediate data and sends it to the data user. The intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
[0135] In the transaction data processing device provided in the embodiments of the present specification, a data provider uses a public key to homomorphically encrypt transaction data to obtain a ciphertext of the transaction data and provides it to a data center. The data center performs corresponding processing on the ciphertext of the transaction data. Since the original mathematical properties of the transaction data are still retained after homomorphic encryption, the ciphertext of the transaction data can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the ciphertext of the transaction data is the same as the processing result obtained by processing the transaction data in plain text after decryption; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the ciphertext of the transaction data to obtain the transaction data in plain text, but also unable to decrypt the ciphertext of the processing result to obtain the processed data. The result is plaintext and the transaction data in plaintext is reversely deduced, thereby ensuring that the transaction data is not leaked and ensuring the security of the transaction data; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext. In this way, the transaction data can be processed without leaking the transaction data in plaintext, ensuring the security of the transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs.
[0136] Optionally, the device further comprises:
[0137] a blinding processing unit, which performs blinding processing on the processing result ciphertext before the result ciphertext decryption unit uses the first sub-private key to decrypt the processing result ciphertext, if the target transaction data is transaction data of a preset type;
[0138] The result ciphertext decryption unit uses the first sub-private key to decrypt the processing result ciphertext after blinding processing.
[0139] Optionally, the device further comprises:
[0140] The transaction data ciphertext acquiring unit acquires the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext before the first processing unit performs target processing on the target transaction data ciphertext.
[0141] Obviously, the transaction data processing device in the embodiment of this specification can be used as the above Figure 5 The execution subject of the transaction data processing method shown in FIG. Figure 5 The functions realized are as follows. Since the principles are the same, they will not be described here.
[0142] In addition, Figure 6 Corresponding to the transaction data processing method shown, the embodiment of this specification also provides a transaction data processing device. Fig. 9 9 is a schematic diagram of a transaction data processing device 900 provided in an embodiment of the present specification, including:
[0143] The intermediate data receiving unit 910 receives the intermediate data sent by the data center. The intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key. The target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data using the public key by the data provider and sent to the data center. The private key corresponding to the public key includes a first sub-private key and a second sub-private key. The first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0144] The intermediate data decryption unit 920 uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a plain text of the processing result.
[0145] In the transaction data processing device provided in the embodiments of the present specification, a data provider uses a public key to homomorphically encrypt transaction data to obtain a ciphertext of the transaction data and provides it to a data center. The data center performs corresponding processing on the ciphertext of the transaction data. Since the original mathematical properties of the transaction data are still retained after homomorphic encryption, the ciphertext of the transaction data can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the ciphertext of the transaction data is the same as the processing result obtained by processing the transaction data in plain text after decryption; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the ciphertext of the transaction data to obtain the transaction data in plain text, but also unable to decrypt the ciphertext of the processing result to obtain the processed data. The result is plaintext and the transaction data in plaintext is reversely deduced, thereby ensuring that the transaction data is not leaked and ensuring the security of the transaction data; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext. In this way, the transaction data can be processed without leaking the transaction data in plaintext, ensuring the security of the transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs.
[0146] Optionally, the device further comprises:
[0147] A processing task determination unit, which determines the target transaction data and a target processing task to be performed on the target transaction data based on a risk prevention and control strategy for a target object;
[0148] a processing request sending unit, which sends a data processing request to the data center based on the target transaction data and the target processing task, wherein the data processing request is used to request target processing to be performed on the target transaction data;
[0149] The risk prevention and control unit performs risk prevention and control for the target object based on the processing result plaintext and the risk prevention and control strategy after the intermediate data decryption unit uses the second sub-private key to decrypt the intermediate data to obtain the processing result plaintext.
[0150] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on transaction amount data of the target object, and the target transaction data is the transaction amount of a single transaction of the target object within a preset time period;
[0151] The target processing task includes at least one of the following tasks: determining the cumulative transaction amount of the target object within the preset time period, determining the proportion of the cumulative transaction amount in the total historical transaction amount of the target object, comparing the cumulative transaction amount with a preset transaction amount threshold, and determining the difference between the cumulative transaction amount and the preset transaction amount threshold.
[0152] Optionally, the risk prevention and control strategy is to perform risk prevention and control based on the transaction location of the target object, and the target transaction data is the actual transaction location of the target object;
[0153] The target processing task includes at least one of the following tasks: determining the distance between the actual transaction location and the expected transaction location of the target object, comparing the distance with a preset distance threshold, and determining the proportion of the number of transactions in which the distance exceeds the preset distance threshold in the total number of historical transactions of the target object.
[0154] Obviously, the transaction data processing device in the embodiment of this specification can be used as the above Figure 6 The execution subject of the transaction data processing method shown in FIG. Figure 6 The functions realized are as follows. Since the principles are the same, they will not be described here.
[0155] In addition, Figure 7 Corresponding to the transaction data processing method shown, the embodiment of this specification also provides a transaction data processing device. Fig.10 1 is a schematic diagram of a transaction data processing device 1000 provided in an embodiment of the present specification, including:
[0156] The homomorphic encryption unit 1010 uses the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0157] The ciphertext sending unit 1020 sends the target transaction data ciphertext to the data center. The target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain the processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0158] In the transaction data processing device provided in the embodiments of the present specification, a data provider uses a public key to homomorphically encrypt transaction data to obtain a ciphertext of the transaction data and provides it to a data center. The data center performs corresponding processing on the ciphertext of the transaction data. Since the original mathematical properties of the transaction data are still retained after homomorphic encryption, the ciphertext of the transaction data can be directly processed by the data center and the processing result obtained is equivalent to the processing result obtained by performing the same processing on the transaction data in plain text, that is, the processing result obtained by processing the ciphertext of the transaction data is the same as the processing result obtained by processing the transaction data in plain text after decryption; by dividing the private key corresponding to the public key into a first sub-private key and a second sub-private key, storing the first sub-private key in the data center, and storing the second sub-private key in the data user, the data center and the data user are not only unable to decrypt the ciphertext of the transaction data to obtain the transaction data in plain text, but also unable to decrypt the ciphertext of the processing result to obtain the processed data. The result is plaintext and the transaction data in plaintext is reversely deduced, thereby ensuring that the transaction data is not leaked and ensuring the security of the transaction data; the data center uses the first sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the transaction result ciphertext obtained by processing the transaction data ciphertext, obtains the intermediate data and sends it to the data user, and then the data user uses the second sub-private key to perform homomorphic decryption corresponding to homomorphic encryption on the intermediate data to obtain the processing result plaintext. In this way, the transaction data can be processed without leaking the transaction data in plaintext, ensuring the security of the transaction data and the legality and compliance of the transaction data processing process; in addition, the processing of transaction data is performed by the data center, does not involve communication interaction among multiple nodes, is not restricted by the network, can improve computing performance, efficiency and convenience, and does not need to deploy a complete set of corresponding facilities at the data provider, data user and data center, which can reduce operation and maintenance costs.
[0159] Optionally, the homomorphic encryption unit performs homomorphic encryption on the target transaction data using the public key to obtain the target transaction data ciphertext, determines an offset corresponding to the target transaction data ciphertext based on a size of the target transaction data ciphertext, and generates a ciphertext block based on the target transaction data ciphertext and its corresponding offset;
[0160] The ciphertext sending unit sends the ciphertext block and the offset to the data center.
[0161] Optionally, the homomorphic encryption unit determines a homomorphic encryption algorithm that matches the target transaction data based on the type of the target transaction data, and based on the matching homomorphic encryption algorithm, uses the public key to homomorphically encrypt the target transaction data.
[0162] Obviously, the transaction data processing device in the embodiment of this specification can be used as the above Figure 7 The execution subject of the transaction data processing method shown in FIG. Figure 7 The functions realized are as follows. Since the principles are the same, they will not be described here.
[0163] Fig.11 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Fig.11 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0164] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.11 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0165] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0166] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a transaction data processing device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0167] Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0168] The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the ciphertext of the processing result to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to perform homomorphic decryption corresponding to the homomorphic encryption using the second sub-private key to obtain the plaintext of the processing result.
[0169] The above is as in this manual Figure 5The method performed by the transaction data processing device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it 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. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0170] It should be understood that the electronic device of the embodiment of this specification can realize the transaction data processing device in Figure 5 Functions of the embodiments shown. Since the principles are the same, the embodiments of this specification will not be described in detail here.
[0171] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0172] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 5 The method of the embodiment shown is specifically used to perform the following operations:
[0173] Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0174] The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the ciphertext of the processing result to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to perform homomorphic decryption corresponding to the homomorphic encryption using the second sub-private key to obtain the plaintext of the processing result.
[0175] Fig.12 This is a schematic diagram of the structure of an electronic device according to an embodiment of this specification. Fig.12 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.
[0176] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0177] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.
[0178] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a transaction data processing device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:
[0179] Receiving intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0180] Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0181] Alternatively, the processor executes the program stored in the memory and is specifically configured to perform the following operations:
[0182] Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0183] The target transaction data ciphertext is sent to a data center. After the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, the first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and the obtained intermediate data is sent to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0184] The above is as in this manual Figure 6 or Figure 7The method performed by the transaction data processing device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it 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. The methods, steps and logic block diagrams disclosed in the embodiments of this specification can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of this specification can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0185] It should be understood that the electronic device of the embodiment of this specification can realize the transaction data processing device in Figure 6 or Figure 7 Functions of the embodiments shown. Since the principles are the same, the embodiments of this specification will not be described in detail here.
[0186] Of course, in addition to software implementation, the electronic device of this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0187] The embodiment of the present specification also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by a portable electronic device including a plurality of application programs, enable the portable electronic device to execute Figure 6 The method of the embodiment shown is specifically used to perform the following operations:
[0188] Receiving intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user;
[0189] Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
[0190] Alternatively, when the instruction is executed by a portable electronic device including a plurality of application programs, the portable electronic device can execute Figure 7 The method of the embodiment shown is specifically used to perform the following operations:
[0191] Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data;
[0192] The target transaction data ciphertext is sent to a data center. After the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, the first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and the obtained intermediate data is sent to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
[0193] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0194] In short, the above description is only a preferred embodiment of this specification and is not intended to limit the protection scope of this specification. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this specification shall be included in the protection scope of this specification.
[0195] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0196] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0197] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0198] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
Claims
1. A transaction data processing method, comprising: The data provider uses the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data; The data provider determines the offset corresponding to the target transaction data ciphertext based on the size of the target transaction data ciphertext; The data provider generates a ciphertext block based on the target transaction data ciphertext and its corresponding offset, and sends the ciphertext block and the offset to a data center; The data center performs target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by the data provider using the public key to homomorphically encrypt the target transaction data and send it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The data center uses the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext, obtains intermediate data, and sends it to the data user; The data user uses the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
2. The method according to claim 1, before the data center uses the first sub-private key to decrypt the processing result ciphertext, the method further comprises: If the target transaction data is transaction data of a preset type, the data center performs blind processing on the ciphertext of the processing result; The data center uses the first sub-private key to decrypt the processing result ciphertext, including: The data center uses the first sub-private key to decrypt the blinded processing result ciphertext.
3. The method according to claim 1, before the data center performs target processing on the target transaction data ciphertext, the method further comprises: The data user determines the target transaction data and the target processing task to be performed on the target transaction data based on the risk prevention and control strategy for the target object; The data user sends a data processing request to the data center based on the target transaction data and the target processing task, wherein the data processing request is used to request target processing of the target transaction data; After the data user uses the second sub-private key to decrypt the intermediate data to obtain a plain text of the processing result, the method further includes: The data user performs risk prevention and control on the target object based on the plain text of the processing result and the risk prevention and control strategy.
4. The method according to claim 3, wherein the risk prevention and control strategy is to perform risk prevention and control based on the transaction amount data of the target object, and the target transaction data is the transaction amount of a single transaction of the target object within a preset time period; The target processing task includes at least one of the following tasks: determining the cumulative transaction amount of the target object within the preset time period, determining the proportion of the cumulative transaction amount in the total historical transaction amount of the target object, comparing the cumulative transaction amount with a preset transaction amount threshold, and determining the difference between the cumulative transaction amount and the preset transaction amount threshold.
5. The method according to claim 3, wherein the risk prevention and control strategy is risk prevention and control based on the transaction location of the target object, and the target transaction data is the actual transaction location of the target object; The target processing task includes at least one of the following tasks: determining the distance between the actual transaction location and the expected transaction location of the target object, comparing the distance with a preset distance threshold, and determining the proportion of the number of transactions in which the distance exceeds the preset distance threshold in the total number of historical transactions of the target object.
6. The method according to claim 1, wherein the data provider uses the public key to homomorphically encrypt the target transaction data, comprising: The data provider determines, based on the type of the target transaction data, a homomorphic encryption algorithm that matches the target transaction data; The data provider performs homomorphic encryption on the target transaction data using the public key based on the matching homomorphic encryption algorithm.
7. The method according to claim 1, before the data center performs target processing on the target transaction data ciphertext, the method further comprises: The data center obtains the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext.
8. A transaction data processing method, applied to a data center, the method comprising: Based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained from the ciphertext block to which the target transaction data ciphertext belongs, wherein the target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, and the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset; Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the ciphertext of the processing result to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to perform homomorphic decryption corresponding to the homomorphic encryption using the second sub-private key to obtain the plaintext of the processing result.
9. A transaction data processing method, applied to a data user, the method comprising: Receive intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext, using the first sub-private key, the target transaction data ciphertext is obtained by the data center from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
10. A transaction data processing method, applied to a data provider, the method comprising: Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data; Determining an offset corresponding to the target transaction data ciphertext based on the size of the target transaction data ciphertext; Generate a ciphertext block based on the target transaction data ciphertext and its corresponding offset; The ciphertext block and the offset are sent to a data center, and the data center is used to obtain the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext. The target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain the processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
11. A transaction data processing device, applied to a data center, comprising: a transaction data ciphertext acquiring unit, which acquires the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs, based on an offset corresponding to the target transaction data ciphertext, wherein the target transaction data ciphertext is obtained by a data provider performing homomorphic encryption on the target transaction data using a public key, the offset is determined by the data provider based on the size of the target transaction data ciphertext, and the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset; A first processing unit performs target processing on a target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by a data provider using a public key and sending the ciphertext to the data center, wherein a private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The result ciphertext decryption unit uses the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext, obtains intermediate data and sends it to the data user, and the intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
12. A transaction data processing device, applied to a data user, comprising: An intermediate data receiving unit receives intermediate data sent by a data center, wherein the intermediate data is obtained by homomorphically decrypting a processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext using the first sub-private key, the target transaction data ciphertext is obtained by the data center from a ciphertext block to which the target transaction data ciphertext belongs based on an offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained by a data provider performing homomorphic encryption on the target transaction data using a public key, the offset is determined by the data provider based on the size of the target transaction data ciphertext, the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The intermediate data decryption unit uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain a plain text of the processing result.
13. A transaction data processing device, applied to a data provider, comprising: A homomorphic encryption unit, which uses a public key to homomorphically encrypt the target transaction data to obtain a ciphertext of the target transaction data, determines an offset corresponding to the ciphertext of the target transaction data based on a size of the ciphertext of the target transaction data, and generates a ciphertext block based on the ciphertext of the target transaction data and its corresponding offset; A ciphertext sending unit sends the ciphertext block and the offset to a data center, wherein the data center is used to obtain the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext, and the target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain the processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
14. An electronic device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained from the ciphertext block to which the target transaction data ciphertext belongs, wherein the target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, and the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset; Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
15. A computer-readable storage medium storing one or more programs, which, when executed by a terminal device including a plurality of application programs, causes the terminal device to perform the following operations: Based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained from the ciphertext block to which the target transaction data ciphertext belongs, wherein: The target transaction data ciphertext is obtained by the data provider using a public key to homomorphically encrypt the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, and the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset; Performing target processing on the target transaction data ciphertext to obtain a processing result ciphertext, wherein the target transaction data ciphertext is obtained by homomorphically encrypting the target transaction data by the data provider using the public key and sending it to the data center, wherein the private key corresponding to the public key includes a first sub-private key and a second sub-private key, wherein the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; The first sub-private key is used to perform homomorphic decryption corresponding to the homomorphic encryption on the processing result ciphertext to obtain intermediate data and send it to the data user. The intermediate data is used by the data user to use the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption to obtain the processing result plaintext.
16. An electronic device, comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Receive intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext, using the first sub-private key, the target transaction data ciphertext is obtained by the data center from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
17. A computer-readable storage medium storing one or more programs, which, when executed by a terminal device including a plurality of application programs, cause the terminal device to perform the following operations: Receive intermediate data sent by the data center, the intermediate data is obtained by homomorphically decrypting the processing result ciphertext obtained by the data center after performing target processing on the target transaction data ciphertext, using the first sub-private key, the target transaction data ciphertext is obtained by the data center from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext, the target transaction data ciphertext is obtained by the data provider using the public key to perform homomorphic encryption on the target transaction data, the offset is determined by the data provider based on the size of the target transaction data ciphertext, the ciphertext block is generated by the data provider based on the target transaction data ciphertext and its corresponding offset, the private key corresponding to the public key includes a first sub-private key and a second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user; Use the second sub-private key to perform homomorphic decryption on the intermediate data corresponding to the homomorphic encryption to obtain a plain text of the processing result.
18. An electronic device comprising: processor; as well as a memory arranged to store computer executable instructions which, when executed, cause the processor to: Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data; Determining an offset corresponding to the target transaction data ciphertext based on the size of the target transaction data ciphertext; Generate a ciphertext block based on the target transaction data ciphertext and its corresponding offset; The ciphertext block and the offset are sent to a data center, and the data center is used to obtain the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext. The target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain the processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
19. A computer-readable storage medium storing one or more programs, which, when executed by a terminal device including a plurality of application programs, cause the terminal device to perform the following operations: Use the public key to homomorphically encrypt the target transaction data to obtain the ciphertext of the target transaction data; Determining an offset corresponding to the target transaction data ciphertext based on the size of the target transaction data ciphertext; Generate a ciphertext block based on the target transaction data ciphertext and its corresponding offset; The ciphertext block and the offset are sent to a data center, and the data center is used to obtain the target transaction data ciphertext from the ciphertext block to which the target transaction data ciphertext belongs based on the offset corresponding to the target transaction data ciphertext. The target transaction data ciphertext is used by the data center to perform target processing on the target transaction data ciphertext, and then use the first sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the obtained processing result ciphertext and send the obtained intermediate data to the data user, so that the data user uses the second sub-private key to perform homomorphic decryption corresponding to the homomorphic encryption on the intermediate data to obtain the processing result plaintext, wherein the private key corresponding to the public key includes the first sub-private key and the second sub-private key, the first sub-private key is stored in the data center, and the second sub-private key is stored in the data user.
