A method, apparatus, and storage medium for joint analysis of tax, electricity, and loop based on privacy-preserving computation.
By employing a privacy-preserving computation-based tax-electronic-loop joint analysis method, which utilizes encryption and homomorphic operations, the difficulties in data sharing and privacy leaks in tax-electronic-loop joint analysis are resolved, achieving secure data sharing and efficient identification of "high-energy-consuming, high-polluting, and low-efficiency" enterprises.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- AISINO CORPORATION
- Filing Date
- 2022-12-20
- Publication Date
- 2026-07-03
Smart Images

Figure CN116204897B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer application design, and in particular to a method and apparatus for joint analysis of tax, electricity, and loop based on privacy computing. Background Technology
[0002] With the popularization and development of data intelligence concepts and related technologies, tax services have entered the intelligent era of "Internet + Taxation". Privacy computing technologies, represented by federated learning and multi-party secure computation, have solved the problem of private data sharing and exchange to a certain extent, realizing that data is "usable but not visible" in the sharing, storage, and computation stages, and can effectively solve the problems existing in the joint analysis of data sharing under the traditional model.
[0003] Tax-electricity-environment joint analysis combines tax, electricity, and environmental data to conduct a series of index studies, such as the "tax contribution index per unit of energy consumption," the "tax correlation index per unit of pollutants," and the "output value contribution index per unit of energy consumption," to identify "high energy consumption, high pollution, and low tax revenue" enterprises and strengthen tax risk management. Summary of the Invention
[0004] This invention aims to address at least one of the technical problems existing in the prior art. To this end, this invention proposes a tax-electronic-loop joint analysis method based on privacy computing, which can achieve full utilization of data while ensuring data security.
[0005] The present invention also proposes an apparatus and storage medium having the above-mentioned privacy-based computation-based tax-electricity-loop joint analysis method.
[0006] The tax-electronic loop joint analysis method based on privacy computing according to a first aspect of the present invention is characterized by comprising the following steps:
[0007] The first terminal, the second terminal, and the third terminal initialize their respective public and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties.
[0008] The first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys;
[0009] The second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data;
[0010] The third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys;
[0011] The third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys;
[0012] The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data.
[0013] The third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively.
[0014] The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys;
[0015] The second terminal performs a homomorphic operation on the intermediate data of the first key and the second encrypted data of the first key to obtain the final result of the first key;
[0016] The first terminal and the second terminal exchange the final result of the first key and the final result of the first key. The first terminal uses the first private key to decrypt the final result of the first key to obtain the final result. The second terminal uses the second private key to decrypt the final result of the second key to obtain the final result.
[0017] The first terminal and / or the second terminal encrypt the final result using a third public key to obtain a three-key final result, and then send it to the third terminal;
[0018] The third terminal uses the third private key to decrypt the final result of the three keys to obtain the final result.
[0019] The tax-electronic-loop joint analysis method according to embodiments of the present invention has at least the following beneficial effects: The privacy-based computation-based tax-electronic-loop joint analysis method, by establishing an interaction device between the three terminals, enables encrypted processing of each stage of the calculation, ensuring that each terminal cannot see the original data and can only obtain the calculation results; it also guarantees that no single terminal can deduce the original data of any other terminal from the intermediate results. Thus, data full utilization is achieved while ensuring data security.
[0020] According to some embodiments of the present invention, the homomorphic operation in the method refers to calculating the estimated sales data of the product and the tax pollution correlation index.
[0021] According to some embodiments of the present invention, the sales estimate data includes:
[0022] Production estimate = Production power consumption ÷ Power consumption constant
[0023] Product quantity estimate = Beginning inventory + Production estimate - Ending inventory
[0024] Sales revenue estimate = Sales quantity estimate × Average product price
[0025] Sales deviation rate = |(estimated sales value - declared sales value)| / declared sales value.
[0026] According to some embodiments of the present invention, the tax-related pollution index includes:
[0027] Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption
[0028] Tax-related pollution index = Tax declared amount ÷ Pollution equivalent
[0029] The correlation index between high energy consumption, high pollution, and low pollution is calculated as follows: (Tax revenue correlation index × 50%) + (Tax revenue correlation index × 50%).
[0030] A tax-electronic-loop joint analysis apparatus based on privacy computing according to a second aspect of the present invention is characterized in that it comprises:
[0031] First terminal, second terminal, and third terminal;
[0032] When the three terminals are running, the first terminal, the second terminal, and the third terminal initialize their respective public key and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties.
[0033] The first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys;
[0034] The second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data;
[0035] The third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys;
[0036] The third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys;
[0037] The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data.
[0038] The third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively.
[0039] The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys;
[0040] The second terminal performs a homomorphic operation on the intermediate data of the first key and the second encrypted data of the first key to obtain the final result of the first key;
[0041] The first terminal and the second terminal exchange the final result of the first key and the final result of the first key. The first terminal uses the first private key to decrypt the final result of the first key to obtain the final result. The second terminal uses the second private key to decrypt the final result of the second key to obtain the final result.
[0042] The first terminal and / or the second terminal encrypt the final result using a third public key to obtain a three-key final result, and then send it to the third terminal;
[0043] The third terminal uses the third private key to decrypt the final result of the three keys to obtain the final result.
[0044] According to some embodiments of the present invention, the homomorphic operation in the device refers to calculating the estimated sales data of the product and the tax pollution correlation index.
[0045] According to some embodiments of the present invention, the sales estimate data includes:
[0046] Production estimate = Production power consumption ÷ Power consumption constant
[0047] Product quantity estimate = Beginning inventory + Production estimate - Ending inventory
[0048] Sales revenue estimate = Sales quantity estimate × Average product price
[0049] Sales deviation rate = |(estimated sales value - declared sales value)| / declared sales value.
[0050] According to some embodiments of the present invention, the tax-related pollution index includes:
[0051] Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption
[0052] Tax-related pollution index = Tax declared amount ÷ Pollution equivalent
[0053] The correlation index between high energy consumption, high pollution, and low pollution is calculated as follows: (Tax revenue correlation index × 50%) + (Tax revenue correlation index × 50%).
[0054] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0055] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0056] Figure 1 This is a schematic diagram illustrating the steps of the tax-electricity-cycle joint index analysis method based on privacy computing according to an embodiment of the present invention;
[0057] Figure 2 This is a schematic diagram of the data flow in the tax-electricity-cycle joint index analysis method for privacy computing provided in an embodiment of the present invention. Detailed Implementation
[0058] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0059] This invention proposes a joint tax-electricity-environment indicator analysis method based on privacy-preserving computation. Within the framework of privacy-preserving computation, and combined with tax and electricity data, it proposes an assessment method for enterprises characterized by high energy consumption, high pollution, and low tax revenue. These enterprises primarily consume electricity, and the power supply department possesses their electricity consumption data. Their pollution discharge is assessed by the environmental protection department, including air pollution data and solid waste pollution data. Tax data is submitted by the enterprises to the tax authorities, including detailed reports on inventory, product sales, and distribution items.
[0060] Due to privacy and data security concerns, government departments are increasingly emphasizing data assets. Data often remains isolated, with a lack of interconnectivity between power, environmental protection, and tax departments, creating data silos. This presents governance and regulatory challenges: companies underreport or omit revenue data, conceal income, and evade taxes; individual departments struggle to identify companies with "high energy consumption, high pollution, and low efficiency" problems using only their own data.
[0061] To address the aforementioned issues, this proposal suggests a joint analysis method for tax, electricity, and loop within a privacy-preserving computation framework. First, the joint analysis model and its computational indices are presented:
[0062] (1) Sales Assessment
[0063] Production estimate = Production power consumption ÷ Power consumption constant
[0064] Product quantity estimate = Beginning inventory + Production estimate - Ending inventory
[0065] Sales revenue estimate = Sales quantity estimate × Average product price
[0066] Sales deviation rate = |(Estimated sales value - Declared sales value)| / Declared sales value
[0067] The above formula uses electricity consumption to estimate sales revenue and calculates the deviation rate of a company's sales revenue over a period of time. If the deviation rate is too high, it indicates that the company's reported data is abnormal. In the formula, the electricity consumption for production comes from the power sector, while the beginning and ending product inventory and sales revenue reported data come from the tax authorities.
[0068] (2) Tax Pollution Related Index
[0069] Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption
[0070] Tax-related pollution index = Tax declared amount ÷ Pollution equivalent
[0071] The correlation index between high energy consumption, high pollution, and low pollution levels = (Tax revenue energy consumption correlation index × 50%) + (Tax revenue pollution correlation index × 50%)
[0072] The tax-energy consumption correlation index represents the tax revenue generated per kilowatt-hour of electricity consumed, while the tax-pollution correlation index represents the tax revenue associated with each unit of pollutant. The "two highs and one low" correlation index is the correlation coefficient between a taxpayer's energy consumption and pollution generation and the unit tax revenue generated. The tax declaration amount comes from data submitted by the tax authorities, the electricity consumption data from the power sector, and the pollution equivalent data from the environmental protection department. A lower correlation index indicates that the enterprise's production involves high energy consumption and significant pollution.
[0073] The aforementioned data, used as the evaluation standard, requires the original data for computation. From an information security perspective, encryption before transmission is a common technique in this field. To further enhance data privacy, it is necessary to achieve "usable but not visible" data during sharing, storage, and computation.
[0074] For tax application scenarios, there are typically at least three departments: tax, electricity, and environmental protection. Data mining is performed based on data from these departments to achieve fully closed-loop data exchange and computation, thereby improving system security.
[0075] Reference Figure 1 The embodiments of this application provide a method for joint analysis of tax, electricity, and the cycle. For ease of understanding, please refer to... Figure 2 This application also provides a data flow diagram of the method, for reference. Figure 2 This will make it easier to understand the meaning of this method.
[0076] The method includes the following steps:
[0077] In step S100, the first terminal, the second terminal, and the third terminal initialize their respective public key and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties.
[0078] The power company, environmental protection company, and tax company each initialize their public and private key pairs, resulting in (PK1, SK1), (PK2, SK2), and (PK3, SK3) respectively. The three parties then exchange their public keys for subsequent encryption processes.
[0079] In step S200, the first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys.
[0080] In step S300, the second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data.
[0081] In steps S200 and S300 above, the power department uses public keys PK1 and PK2 to encrypt power data X (corresponding to the first data) to obtain PK1(X) and PK2(X), and the environmental protection department uses public keys PK2 and PK1 to encrypt environmental data Y (corresponding to the second data) to obtain PK2(Y) and PK1(Y). The encrypted data are stored locally.
[0082] In step S400, the third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys.
[0083] The tax authorities sent usage data requests to the power and environmental protection departments. After review, the two parties sent encrypted data PK1(X) and PK2(Y) to the tax authorities.
[0084] In step S500, the third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys.
[0085] The tax authorities use two public keys to encrypt tax data Z (third data) to obtain data PK1(Z) and PK2(Z).
[0086] Step S600: The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data.
[0087] The tax authorities use two public keys to encrypt tax data Z, obtaining data PK1(Z) and PK2(Z). They then calculate the intermediate results of the joint analysis of tax and tax-related data: PK1(R) = PK1(X) + PK1(Z) and PK2(W) = PK2(Y) + PK2(Z). In these formulas, "+" represents a homomorphic operation. The resulting PK1(R) and PK2(W) remain encrypted. Generally, homomorphic operations represent the process of processing encrypted data. The specific methods of homomorphic operations vary depending on the specific data processing steps, a concept easily understood by those skilled in the art.
[0088] In step S700, the third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively.
[0089] The tax authorities sent PK1(R) and PK2(W) back to the environmental protection and power departments, respectively.
[0090] Step S800: The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys; the second terminal performs a homomorphic operation on the intermediate data of the one key and the second encrypted data of the one key to obtain the final result of the one key.
[0091] The environmental protection and power departments respectively calculate PK1(T) = PK1(R) + PK1(Y) and PK2(T) = PK2(W) + PK2(X). Where T is the final result of the tax and electricity analysis.
[0092] In step S900, the first terminal and the second terminal exchange the final result of one key and the final result of one key. The first terminal uses the first private key to decrypt the final result of one key to obtain the final result, and the second terminal uses the second private key to decrypt the final result of two keys to obtain the final result.
[0093] The environmental protection and power departments exchange calculation results (PK1(T), PK2(T)) and decrypt them using their respective private keys (SK1, SK2) to obtain the final result T.
[0094] In step S1000, the first terminal and / or the second terminal encrypt the final result using the third public key to obtain the three-key final result, and send it to the third terminal.
[0095] The final result is encrypted using the tax department's public key PK3 and sent back to the tax department. The tax department then decrypts the result T using its private key SK3.
[0096] Based on the data exchange process described above, each step of the calculation is encrypted, ensuring that the original data is not visible to each other, and only the calculation results are available. This guarantees that neither party can deduce the original data from the intermediate results. Thus, data security is ensured while achieving full utilization of the data.
[0097] Another embodiment of this application provides a tax-electronic-loop joint analysis device based on privacy computing, including a first terminal, a second terminal, and a third terminal.
[0098] When the three terminals are running, the first terminal, the second terminal, and the third terminal initialize their respective public key and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties.
[0099] The first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys;
[0100] The second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data;
[0101] The third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys;
[0102] The third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys;
[0103] The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data.
[0104] The third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively.
[0105] The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys;
[0106] The second terminal performs a homomorphic operation on the intermediate data of the first key and the second encrypted data of the first key to obtain the final result of the first key;
[0107] The first terminal and the second terminal exchange the final result of the first key and the final result of the first key. The first terminal uses the first private key to decrypt the final result of the first key to obtain the final result. The second terminal uses the second private key to decrypt the final result of the second key to obtain the final result.
[0108] The first terminal and / or the second terminal encrypt the final result using a third public key to obtain a three-key final result, and then send it to the third terminal;
[0109] The third terminal uses the third private key to decrypt the final result of the three keys to obtain the final result.
[0110] The embodiments of this application, by establishing an interaction device between three terminals, enable encrypted processing of each stage of the calculation, ensuring that each terminal cannot see the original data and can only obtain the calculation results; this guarantees that no one can deduce the original data of any other terminal from the intermediate results. Thus, data is fully utilized while ensuring data security.
[0111] Furthermore, the homomorphic operation in the aforementioned device refers to calculating the estimated sales data of the product and the tax pollution correlation index.
[0112] Furthermore, sales estimates include:
[0113] Production estimate = Production power consumption ÷ Power consumption constant
[0114] Product quantity estimate = Beginning inventory + Production estimate - Ending inventory
[0115] Sales revenue estimate = Sales quantity estimate × Average product price
[0116] Sales deviation rate = |(Estimated sales value - Declared sales value)| / Declared sales value
[0117] Furthermore, the tax-related pollution index includes:
[0118] Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption
[0119] Tax-related pollution index = Tax declared amount ÷ Pollution equivalent
[0120] The correlation index between high energy consumption, high pollution, and low pollution levels = (Tax revenue energy consumption correlation index × 50%) + (Tax revenue pollution correlation index × 50%)
[0121] Another embodiment of this application provides a computer-readable storage medium storing computer-executable instructions for performing the above-described... Figure 1 The method for joint analysis of tax, electricity, and loop based on privacy computing is shown.
[0122] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0123] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0124] The above is a detailed description of the preferred embodiments of this application. However, this application is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A method for joint analysis of tax, electricity, and loop based on privacy-preserving computation, characterized in that, Includes the following steps: The first terminal, the second terminal, and the third terminal initialize their respective public and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties. The first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys; The second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data; The third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys; The third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys; The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data. The third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively. The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys; The second terminal performs a homomorphic operation on the intermediate data of the first key and the second encrypted data of the first key to obtain the final result of the first key; The first terminal and the second terminal exchange the final result of the first key and the final result of the second key. The first terminal uses the first private key to decrypt the final result of the first key to obtain the final result, and the second terminal uses the second private key to decrypt the final result of the second key to obtain the final result. The first terminal and / or the second terminal encrypt the final result using a third public key to obtain a three-key final result, and then send it to the third terminal; The third terminal uses the third private key to decrypt the final result of the three keys to obtain the final result.
2. The method according to claim 1, characterized in that, The homomorphic operation in the method refers to calculating the estimated sales data of the product and the tax pollution correlation index.
3. The method according to claim 2, characterized in that, The tax-related pollution index includes: Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption Tax-related pollution index = Tax declared amount ÷ Pollution equivalent The correlation index of "two highs and one low" = tax revenue energy consumption correlation index × 50% + tax revenue pollution correlation index × 50%.
4. A tax-electronic-loop joint analysis device based on privacy computing, characterized in that, include: First terminal, second terminal, and third terminal; When the three terminals are running, the first terminal, the second terminal, and the third terminal initialize their respective public key and private key pairs to obtain the first public key, the first private key, the second public key, the second private key, the third public key, and the third private key, and then send their respective public keys to the other two parties. The first terminal uses the first public key and the second public key to encrypt the first data in the first terminal, respectively, to obtain the first encrypted data with one key and the first encrypted data with two keys; The second terminal uses the first public key and the second public key to encrypt the second data in the second terminal, respectively, to obtain the first-key second encrypted data and the second-key second encrypted data; The third terminal establishes a connection with the first terminal and the second terminal, and respectively obtains the first encrypted data with one key and the second encrypted data with two keys; The third terminal uses the first public key and the second public key to encrypt the third data in the third terminal, respectively, to obtain the third encrypted data with one key and the third encrypted data with two keys; The third terminal uses the first public key to perform a homomorphic operation on the first encrypted data and the third encrypted data to obtain intermediate data; the third terminal uses the second public key to perform a homomorphic operation on the second encrypted data and the third encrypted data to obtain intermediate data. The third terminal transmits the first key intermediate data and the second key intermediate data to the first terminal and the second terminal respectively. The first terminal performs a homomorphic operation on the intermediate data of the two keys and the first encrypted data of the two keys to obtain the final result of the two keys; The second terminal performs a homomorphic operation on the intermediate data of the first key and the second encrypted data of the first key to obtain the final result of the first key; The first terminal and the second terminal exchange the final result of the first key and the final result of the second key. The first terminal uses the first private key to decrypt the final result of the first key to obtain the final result, and the second terminal uses the second private key to decrypt the final result of the second key to obtain the final result. The first terminal and / or the second terminal encrypt the final result using a third public key to obtain a three-key final result, and then send it to the third terminal; The third terminal uses the third private key to decrypt the final result of the three keys to obtain the final result.
5. The apparatus according to claim 4, characterized in that, The homomorphic operation in the device refers to calculating the estimated sales data of the product and the tax pollution correlation index.
6. The apparatus according to claim 5, characterized in that, The tax-related pollution index includes: Tax-related energy consumption index = Tax declaration amount ÷ Electricity consumption Tax-related pollution index = Tax declared amount ÷ Pollution equivalent The correlation index of "two highs and one low" = tax revenue energy consumption correlation index × 50% + tax revenue pollution correlation index × 50%.
7. A computer-readable storage medium storing computer-executable instructions for performing the method of any one of claims 1 to 3.