Cost calculation management method and system based on account management

Through the expense calculation method based on account management, using threshold homomorphic encryption and privacy computing platform, it solves the problems of low efficiency and insufficient security of the existing expense management system, achieves efficient and accurate expense statistics and allocation, and meets the needs of modern enterprises. High concurrency requirements.

CN118446762BActive Publication Date: 2024-10-11BEIJING TIANHONG RUIZHI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410903397.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-10-11
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

The existing expense management system is inefficient, has a high error rate, and cannot achieve comprehensive expense management and control. Moreover, the centralized architecture cannot meet the high concurrency and high availability requirements of modern enterprises.

Method used

Adopt an expense calculation management method based on account management, encrypt account management expense data through a threshold homomorphic encryption algorithm, and use trusted third parties and privacy computing platforms to perform multi-party collaborative decryption and statistical analysis to achieve cost sharing and ensure account privacy Protection and computational efficiency.

Benefits of technology

It improves the accuracy and efficiency of expense management, reduces manual allocation errors, achieves comprehensive coverage and refined management of multiple expense types, and enhances the security and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118446762B_ABST
    Figure CN118446762B_ABST
Patent Text Reader

Abstract

The present invention provides a fee calculation management method and system based on account management, which relates to the field of fee management technology, including obtaining account management fee data of multiple accounts to be processed within a preset time period, encrypting the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combining partial decryption results corresponding to multiple accounts using an interpolation algorithm by a trusted third party to obtain a complete plaintext intermediate result; sending the complete plaintext intermediate result to a privacy computing platform, calculating the fee statistics results of each account under different fee types, and the total fee amount under each fee type; according to the preset fee sharing rules, determining the fee amount under each fee type that each account should share based on the fee statistics results, and generating a fee sharing result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to expense management technology, and in particular to an expense calculation management method and system based on account management. Background Art

[0002] With the rapid development of social economy, the scale of enterprises is constantly expanding, the types of business are becoming more and more diversified, and the internal expense management of enterprises is becoming more and more complicated. The traditional expense management method mainly relies on manual processing, which has problems such as low efficiency, high error rate, and untimely data, and can no longer meet the management needs of modern enterprises.

[0003] At present, there are some expense management systems on the market, but most of them have relatively simple functions and lack integration and data sharing with other internal systems of the enterprise, and cannot achieve comprehensive expense management and control. For example, some systems can only handle specific types of expenses, such as travel expenses or project expenses, and cannot cover all types of expenses of the enterprise; although some systems can record expense data, they lack data analysis and decision support functions and cannot provide effective guidance for the financial management of the enterprise.

[0004] In addition, most existing expense management systems use a centralized architecture, where all data and processing are performed on a central server, which creates system performance bottlenecks and single-point failure risks. As the scale of corporate business continues to expand, centralized architectures can no longer meet the high concurrency and high availability requirements of enterprises. Summary of the invention

[0005] The embodiments of the present invention provide a fee calculation management method and system based on account management, which can solve the problems in the prior art.

[0006] According to a first aspect of the embodiments of the present invention,

[0007] Provides fee calculation management methods based on account management, including:

[0008] Acquire account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes account identification, fee type and fee amount, wherein the fee type includes at least one of fund collection fee, risk reserve, account maintenance fee and customer service fee; encrypt the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combine partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result, wherein the threshold homomorphic encryption algorithm supports multi-party collaborative decryption and can directly calculate the encrypted data;

[0009] The complete plaintext intermediate result is sent to the privacy computing platform. The privacy computing platform is based on the secure multi-party computing protocol. Without revealing the account management fee data of each account, it calculates the fee statistics of each account under different fee types and the total fee amount under each fee type;

[0010] Receive the fee statistics results and total fee amounts for different fee types returned by the privacy computing platform, determine the fee amounts for each fee type that should be shared by each account based on the fee statistics results according to the preset fee sharing rules, and generate the fee sharing results.

[0011] In an optional embodiment,

[0012] The account management fee data is encrypted based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and a trusted third party uses an interpolation algorithm to combine partial decryption results corresponding to multiple accounts to obtain a complete plaintext intermediate result including:

[0013] The key management center generates the public parameters required by the threshold homomorphic encryption algorithm, randomly selects the private key, and uses the Shamir secret sharing algorithm to split the private key into multiple shards, which are distributed to multiple accounts respectively. The multiple accounts are used as participants, the public key is the public parameter, and the private key shards are held by each participant;

[0014] For each piece of account management fee data, extract the fee amount therein, encrypt the fee amount using the public key to obtain encrypted fee data, and the encrypted fee data together with the original account identifier and fee type constitute the encrypted account management fee data;

[0015] Aggregating and statistically analyzing the encrypted account management fee data to obtain an encrypted intermediate result, and sending the encrypted intermediate result to a trusted third party;

[0016] The trusted third party randomly selects at least a preset decryption threshold number of participants, sends a decryption request to the participants, and the selected participants use their own private key fragments to partially decrypt the encrypted intermediate results, generate partial decryption results and send them to the trusted third party;

[0017] After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate result;

[0018] Among them, the threshold homomorphic encryption algorithm introduces a threshold decryption mechanism based on the Paillier encryption algorithm, supports multi-party collaborative decryption, and retains homomorphic addition operations.

[0019] In an optional embodiment,

[0020] After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate results including:

[0021] After receiving the decryption request message sent by the trusted third party, the selected participant uses the private key shards held by itself to partially decrypt the encrypted intermediate result and generate a partial decryption result;

[0022] The participants send the partial decryption results to the trusted third party through a secure channel, and repeat the calculation and sending of the partial decryption results for all the encrypted intermediate results to be decrypted until all partial decryption operations are completed, where each participant only uses its own private key shard for calculation;

[0023] After the trusted third party collects the partial decryption results sent by the participants that at least reach the preset decryption threshold number, the trusted third party combines the partial decryption results into a complete plaintext using an interpolation algorithm. For the encrypted intermediate results to be restored, the trusted third party selects the partial decryption results that at least reach the preset decryption threshold number;

[0024] The interpolation coefficient is calculated using the interpolation algorithm, and then the restored plaintext intermediate result is calculated using the interpolation coefficient and the selected partial decryption result, and the steps of calculating the interpolation coefficient and restoring the plaintext result are repeated for all the encrypted intermediate results until all the plaintext intermediate results are restored;

[0025] The trusted third party packages all the recovered plaintext intermediate results to obtain the complete plaintext intermediate results.

[0026] In an optional embodiment,

[0027] The complete plaintext intermediate result is sent to the privacy computing platform. Based on the secure multi-party computing protocol, the privacy computing platform calculates the fee statistics of each account under different fee types without revealing the plaintext data of the account management fees of each account. The total fee amount under each fee type includes:

[0028] The privacy computing platform divides the plaintext intermediate results according to the account and fee type to obtain the original fee data of each account under different fee types; applies the secret sharing algorithm to each original fee data, divides the original fee data into multiple sharing values, and synchronizes the multiple sharing values ​​to the computing node corresponding to the privacy computing platform;

[0029] After receiving the shared value, the computing node performs secure calculations on the shared value according to the predefined calculation logic, and uses a secret reconstruction algorithm to combine the results of the secure calculations of the shared value to obtain the fee statistics results of each account under different fee types and the total fee amount under each fee type.

[0030] In an optional embodiment,

[0031] After calculating the fee statistics of each account under different fee types and the total fee amount under each fee type, the method further includes:

[0032] Perform a privacy query on the fee statistics of each account under different fee types and the total fee amount under each fee type, and set an initial privacy budget corresponding to the privacy query, where the initial privacy budget is used to indicate the degree of privacy leakage allowed;

[0033] The privacy computing platform determines the global sensitivity corresponding to the privacy query through data sampling, and determines the query weight value corresponding to the privacy query based on the graph model, wherein the global sensitivity is used to indicate the maximum change in query results between adjacent data sets; the query weight value is used to indicate the importance of the privacy query;

[0034] Based on the global sensitivity and the query weight value, with the goal of minimizing the error of the query result and maximizing the utilization efficiency of the privacy budget, the initial privacy budget is dynamically adjusted through multi-objective optimization, and the privacy budget consumed by each privacy query is tracked, and the remaining privacy budget is dynamically updated.

[0035] In an optional embodiment,

[0036] Determining the query weight value corresponding to the privacy query based on the graph model includes:

[0037] Constructing a query dependency directed weighted graph according to the dependency relationships between the privacy queries, wherein the nodes in the query dependency directed weighted graph represent the privacy queries, the directed edges represent the dependency relationships between the privacy queries, and the weights of the directed edges represent the influence of the dependency relationships;

[0038] On the query dependency directed weighted graph, evaluating the importance of the privacy query by calculating the centrality metric of the node, wherein the centrality metric includes degree centrality, betweenness centrality and neighbor centrality;

[0039] The calculated query centrality measure is normalized to obtain a normalized query weight value.

[0040] In an optional embodiment,

[0041] The cost-sharing rules include:

[0042] The fund collection fee is allocated based on the proportion of the fund collection amount of each account to the total fund collection amount of all accounts;

[0043] For risk reserves, they are apportioned according to the proportion of the risk coefficient of each account to the total risk coefficient of all accounts. The risk coefficient is calculated based on the historical trading behavior and risk control data of the account;

[0044] Account maintenance fees are apportioned based on the proportion of each account’s opening time to the total opening time of all accounts;

[0045] Customer service fees are allocated based on the proportion of service requests from each account to the total number of service requests from all accounts.

[0046] In the second aspect of the embodiments of the present application,

[0047] Provides a fee calculation management system based on account management, including:

[0048] The first unit is used to obtain account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes an account identifier, a fee type and a fee amount, wherein the fee type includes at least one of a fund collection fee, a risk reserve, an account maintenance fee and a customer service fee; encrypting the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combining partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result, wherein the threshold homomorphic encryption algorithm supports multi-party collaborative decryption and can directly calculate the encrypted data;

[0049] The second unit is used to send the complete plaintext intermediate result to the privacy computing platform. The privacy computing platform is based on a secure multi-party computing protocol. Under the premise of not revealing the account management fee data of each account, the fee statistics results of each account under different fee types and the total fee amount under each fee type are calculated;

[0050] The third unit is used to receive the fee statistics results and total fee amounts for different fee types returned by the privacy computing platform, determine the fee amounts of each fee type that should be shared by each account based on the fee statistics results according to the preset fee sharing rules, and generate the fee sharing results.

[0051] According to a third aspect of the embodiments of the present invention,

[0052] An electronic device is provided, comprising:

[0053] processor;

[0054] a memory for storing processor-executable instructions;

[0055] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0056] A fourth aspect of the embodiments of the present invention is:

[0057] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0058] This application uses the threshold homomorphic encryption algorithm to encrypt the account management fee data, thereby protecting the account's privacy information and preventing sensitive data from being leaked. At the same time, the threshold homomorphic encryption algorithm supports direct calculation of encrypted data, improving calculation efficiency, and subsequent fee statistics and allocation can be performed without decryption.

[0059] The introduction of a trusted third party uses an interpolation algorithm to combine partial decryption results of multiple accounts to obtain a complete plaintext intermediate result, achieving multi-party collaborative decryption and improving the security and reliability of the system. Even if problems occur among individual participants, it will not affect the correctness of the entire decryption process and results.

[0060] By using the privacy computing platform to perform fee statistics and calculations based on the secure multi-party computing protocol, the fee statistics results and total fee amounts of each account under different fee types were obtained without revealing the plain text data of the account management fees of each account. This not only protects account privacy, but also realizes accurate calculation of fees, improving the accuracy and efficiency of fee management.

[0061] According to the preset expense allocation rules, the expense amount to be allocated to each account is determined based on the expense statistics results, and the expense allocation results are automatically generated. This avoids errors and deviations in manual allocation, improves the fairness and rationality of expense allocation, and reduces the workload of financial personnel.

[0062] This method can process account management expense data of multiple accounts within a preset time period, and supports multiple expense types, such as fund collection fees, risk reserves, account maintenance fees, and customer service fees, etc., achieving comprehensive coverage and refined management of corporate expense management. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] Figure 1 A schematic diagram of a flow chart of a method for calculating and managing expenses based on account management according to an embodiment of the present invention;

[0064] Figure 2The figure is a schematic diagram of the structure of the expense calculation and management system based on account management according to an embodiment of the present invention. DETAILED DESCRIPTION

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

[0066] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0067] Figure 1 FIG. 1 is a flow chart of a method for calculating and managing fees based on account management according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0068] S101. Acquire account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes an account identifier, a fee type, and a fee amount; encrypt the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combine partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result;

[0069] For example, in the fee calculation management method based on account management proposed in the present invention, it is first necessary to obtain the account management fee data of multiple accounts to be processed within a preset time period. These account management fee data are usually stored in the financial system or account management system of the enterprise, and can be obtained through a data interface or data export.

[0070] Account management fee data includes three key fields: account identification, fee type and fee amount. Among them, the account identification is used to uniquely identify each account, which can be an account number, customer ID, etc.; the fee type represents different types of fees incurred during the account management process, such as fund collection fees, risk reserves, account maintenance fees and customer service fees, etc.; the fee amount is the actual amount value under the corresponding fee type.

[0071] In order to protect account privacy and prevent sensitive data leakage, this method uses a threshold homomorphic encryption algorithm to encrypt account management fee data. Threshold homomorphic encryption is a special homomorphic encryption scheme that allows multiple parties to participate in the encryption and decryption process. Only when the number of participants reaches a preset threshold value can the data be successfully decrypted. An important feature of threshold homomorphic encryption is that it supports multi-party collaborative decryption. In the decryption stage, a sufficient number of participants need to provide their sub-key shares to successfully restore the plaintext data. This improves the security and reliability of data decryption and prevents malicious behavior by individual participants.

[0072] After obtaining the complete plaintext intermediate results, it is necessary to further perform cost statistics and apportionment calculations on these data. In order to continue to protect account privacy during the calculation process, this method introduces a privacy computing platform and uses the secure multi-party computing protocol to implement cost calculation under privacy protection. Secure multi-party computing is a cryptographic protocol that allows multiple participants to jointly calculate an agreed function without disclosing their own private data.

[0073] In this method, the privacy computing platform can select an appropriate secure multi-party computing protocol to interact with various account management systems or trusted third parties to complete the calculation tasks of cost statistics and allocation. The privacy computing platform decrypts the received encrypted intermediate results to obtain the final cost statistics and allocation results.

[0074] Through the secure multi-party computing protocol, the privacy computing platform can calculate the fee statistics of each account under different fee types and the total fee amount under each fee type without knowing the plaintext fee data of each account. This not only protects account privacy, but also realizes accurate calculation of fees.

[0075] In an optional embodiment,

[0076] The account management fee data is encrypted based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and a trusted third party uses an interpolation algorithm to combine partial decryption results corresponding to multiple accounts to obtain a complete plaintext intermediate result including:

[0077] The key management center generates the public parameters required by the threshold homomorphic encryption algorithm, randomly selects the private key, and uses the Shamir secret sharing algorithm to split the private key into multiple shards, which are distributed to multiple accounts respectively. The multiple accounts are used as participants, the public key is the public parameter, and the private key shards are held by each participant;

[0078] For each piece of account management fee data, extract the fee amount therein, encrypt the fee amount using the public key to obtain encrypted fee data, and the encrypted fee data together with the original account identifier and fee type constitute the encrypted account management fee data;

[0079] Aggregating and statistically analyzing the encrypted account management fee data to obtain an encrypted intermediate result, and sending the encrypted intermediate result to a trusted third party;

[0080] The trusted third party randomly selects at least a preset decryption threshold number of participants, sends a decryption request to the participants, and the selected participants use their own private key fragments to partially decrypt the encrypted intermediate results, generate partial decryption results and send them to the trusted third party;

[0081] After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate result;

[0082] Among them, the threshold homomorphic encryption algorithm introduces a threshold decryption mechanism based on the Paillier encryption algorithm, supports multi-party collaborative decryption, and retains homomorphic addition operations.

[0083] In an optional embodiment,

[0084] After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate results including:

[0085] After receiving the decryption request message sent by the trusted third party, the selected participant uses the private key shards held by itself to partially decrypt the encrypted intermediate result and generate a partial decryption result;

[0086] The participants send the partial decryption results to the trusted third party through a secure channel, and repeat the calculation and sending of the partial decryption results for all the encrypted intermediate results to be decrypted until all partial decryption operations are completed, where each participant only uses its own private key shard for calculation;

[0087] After the trusted third party collects the partial decryption results sent by the participants that at least reach the preset decryption threshold number, the trusted third party combines the partial decryption results into a complete plaintext using an interpolation algorithm. For the encrypted intermediate results to be restored, the trusted third party selects the partial decryption results that at least reach the preset decryption threshold number;

[0088] The interpolation coefficient is calculated using the interpolation algorithm, and then the restored plaintext intermediate result is calculated using the interpolation coefficient and the selected partial decryption result, and the steps of calculating the interpolation coefficient and restoring the plaintext result are repeated for all the encrypted intermediate results until all the plaintext intermediate results are restored;

[0089] The trusted third party packages all the recovered plaintext intermediate results to obtain the complete plaintext intermediate results.

[0090] For example, the Key Management Center (KMC) is responsible for generating and distributing encryption keys. The Account Management System (AMS) holds account management fee data and encrypts it. The Privacy-Preserving Computation Platform (PPCP) is responsible for performing aggregate calculations on encrypted data and interacting with trusted third parties to restore plaintext calculation results. The Trusted Third Party (TTP) is responsible for collecting partial decryption results from each participant and restoring the plaintext. Participant: holds private key shards and participates in the decryption process. Participants are usually played by multiple account management systems.

[0091] And explain the formula parameters involved below:

[0092] Security parameter k: indicates the number of bits of the key length, which is used to control the security strength of the cryptographic system. Usually 128, 192 or 256 are selected. Decryption threshold t: indicates the minimum number of participants required to participate in the decryption process. When the number of participants participating in the decryption is greater than or equal to t, the plaintext can be successfully restored. Number of participants w: indicates the total number of participants participating in the key sharing and decryption process. The private key will be divided into w pieces and distributed to each participant.

[0093] Public key pk: consists of two parts (n, g), where n is the RSA modulus, Represents a random number. The public key is used to encrypt data. Private key shard {sk 1 ,…,sk w}: The private key λ is divided into w shards, and each participant holds a shard sk i . Private key shards are used for partial decryption.

[0094] Large prime numbers p and q: used to construct the RSA modulus n; Carmichael function value lcm(p-1,q-1), which is the least common multiple of p-1 and q-1. The L function is used to calculate the plaintext.

[0095] Fee amount m: represents the original account management fee amount, which is a plain text value. Fee amount ciphertext c: represents the encrypted result of fee amount m, which is a cipher text value.

[0096] The random number r is used in the encryption process. The partial decryption result c i : Indicates that the i-th participant uses its private key shard sk i The result of partially decrypting the ciphertext c.

[0097] represents the factorial of the number of parties involved in decryption, where l is the number of parties involved in decryption. 1 ,x 2 ,…x t : represents the numbered set of parties involved in the decryption process. Lagrange interpolation coefficient ω i : Used to combine partial decryption results into the final plaintext during the result recovery phase of threshold decryption.

[0098] The key management center is responsible for generating the public and private key pairs required for threshold Paillier homomorphic encryption, and splitting the private key into multiple shards and distributing them to the participants. The specific steps are as follows:

[0099] Input: Security parameters k , decryption threshold t , the number of participants w ;

[0100] Output: Public key pk , private key sharding sk 1 , sk 2 …sk w ;

[0101] Choose two large prime numbers p and q of security parameter bits, satisfying ;

[0102] Calculate n=pq, .

[0103] Select random number , so that ,in .

[0104] The public key is pk=(n,g).

[0105] Use Shamir's secret sharing algorithm to split the private key into w pieces:

[0106] Choose a t-1 degree polynomial f(x) on random numbers, satisfying f(0)=λ. For i=1,2,…,w, calculate .

[0107] The private key shards are sent to w participants respectively, and the public key pk is made public.

[0108] For each account management fee data, the account management system extracts the fee amount and encrypts it using the public key. The encryption algorithm is as follows:

[0109] Input: public key, fee amount m;

[0110] Output: fee amount ciphertext c;

[0111] Select random number ; Calculate ciphertext ; Output ciphertext c.

[0112] The encrypted fee amount ciphertext c, together with the original account identifier and fee type, constitutes the encrypted account management fee data.

[0113] The privacy computing platform aggregates and statistically analyzes the encrypted account management fee data to obtain some intermediate results in ciphertext form. The homomorphic nature of Paillier encryption allows direct calculation of ciphertext:

[0114] Additive Homomorphism: ;

[0115] Homomorphism of number multiplication: ;

[0116] By using the homomorphic property, aggregate calculations such as sum and average can be implemented in the ciphertext domain. For example, for the fee amount ciphertext, their sum can be expressed as:

[0117] ;

[0118] The privacy computing platform sends the ciphertext aggregation results to a trusted third party and requests decryption.

[0119] To decrypt the aggregated ciphertext, the collaboration of at least t parties is required. The decryption process is divided into two steps: partial decryption and result recovery.

[0120] Some of the decryption steps are as follows:

[0121] Input: private key shard, ciphertext;

[0122] Output: Partial decryption result c i ;

[0123] calculate ,in , l is the number of parties involved in decryption.

[0124] Output partial decryption results c i .

[0125] The participants send the partial decryption results to the trusted third party. After receiving at least t partial decryption results, the trusted third party recovers the results:

[0126] Input: partial decryption results, number of participants involved in decryption .

[0127] Output: Plain text m.

[0128] Compute the Lagrange interpolation coefficients:

[0129] ,

[0130] Where i=1,…,t.

[0131] calculate ,in .

[0132] Output plaintext m.

[0133] At this point, the trusted third party has successfully restored the plaintext form of the aggregated ciphertext, which is the statistical result of the account management fees.

[0134] Through the threshold decryption mechanism, the decryption power is distributed to multiple participants. Only when the number of participants participating in the decryption reaches the preset decryption threshold can the complete plaintext data be restored. This greatly improves the security of the data and prevents a single participant or a few participants from maliciously leaking data or private keys.

[0135] During the decryption process, each participant only uses its own private key fragment for partial decryption, and will not disclose the private key fragment to other participants or trusted third parties. At the same time, the participants send partial decryption results to the trusted third party through a secure channel, ensuring communication security and further protecting the privacy of all parties.

[0136] By setting the decryption threshold, the minimum number of participants required for decryption can be flexibly controlled. This mechanism allows the decryption threshold to be adjusted according to the actual application scenario and security requirements, balancing security and availability. Even if individual participants are offline or refuse to participate in decryption, as long as the number of participants participating in the decryption reaches the decryption threshold, the plaintext can be successfully restored. This greatly improves the fault tolerance of the system and ensures the smooth progress of the decryption process.

[0137] This technical solution is suitable for distributed environments and supports multi-party participation and collaboration. By distributing the decryption power to multiple participants, secure data sharing and computing can be achieved across different geographical locations and organizations. Partial decryption operations of the participants can be performed in parallel, and each participant only needs to partially decrypt the encrypted intermediate result once. By collecting a sufficient number of partial decryption results, the trusted third party uses an interpolation algorithm to efficiently restore the complete plaintext, avoiding complex decryption calculations.

[0138] S102. Send the complete plaintext intermediate result to the privacy computing platform. The privacy computing platform calculates the fee statistics of each account under different fee types and the total fee amount under each fee type based on the secure multi-party computing protocol without revealing the account management fee data of each account.

[0139] In an optional embodiment,

[0140] The complete plaintext intermediate result is sent to the privacy computing platform. Based on the secure multi-party computing protocol, the privacy computing platform calculates the fee statistics of each account under different fee types without revealing the account management fee data of each account. The total fee amount under each fee type includes:

[0141] The privacy computing platform divides the plaintext intermediate results according to the account and fee type to obtain the original fee data of each account under different fee types; applies the secret sharing algorithm to each original fee data, divides the original fee data into multiple sharing values, and synchronizes the multiple sharing values ​​to the computing node corresponding to the privacy computing platform;

[0142] After receiving the shared value, the computing node performs secure calculations on the shared value according to the predefined calculation logic, and uses a secret reconstruction algorithm to combine the results of the secure calculations of the shared value to obtain the fee statistics results of each account under different fee types and the total fee amount under each fee type.

[0143] For example, after receiving the complete plaintext intermediate result, the privacy computing platform first divides the plaintext intermediate result according to the account and fee type to obtain the original fee data of each account under different fee types. w accounts, b types of expenses, the original expense data after segmentation can be expressed as , where d ai,aj Represents the original fee data of the ai-th account under the aj-th fee type.

[0144] In order to protect the privacy of the original cost data, the privacy computing platform applies a secret sharing algorithm to each original cost data and divides it into multiple sharing values. Taking additive secret sharing as an example, for the original cost data, the privacy computing platform randomly generates ak-1 sharing values ; Calculate the akth share value:

[0145] ;

[0146] In this way, the original cost data is split into multiple shared values.

[0147] The privacy computing platform synchronizes the generated shared value to the corresponding computing node. After receiving the shared value, the computing node performs secure calculations on the shared value according to the predefined calculation logic. The predefined calculation logic may include addition and multiplication calculation logic. The secure multi-party computing protocol ensures that the privacy data of any participant is not disclosed during the calculation process. This solution adopts the SecureML protocol, which supports addition and multiplication operations on the shared value.

[0148] For the account's fee statistics under the fee type R ai,aj , the computing node first performs an addition operation on the corresponding shared value:

[0149] ;

[0150] in, K Indicates the number of shared values.

[0151] The calculation node performs addition operations on the shared values ​​of all accounts to obtain the total fee amount under a certain fee type:

[0152] ;

[0153] in, E Indicates the number of shared values.

[0154] After completing all security calculations, the computing node uses a secret reconstruction algorithm to combine the results of the shared value calculation to obtain the fee statistics of each account under different fee types and the total fee amount under each fee type.

[0155] For the fee statistics of each account under each fee type, each computing node sends the shared value calculated by itself to the privacy computing platform. After the privacy computing platform collects the shared values ​​sent by all computing nodes, it restores the original fee statistics through addition operations.

[0156] Similarly, for the total fee amount under each fee type, the privacy computing platform obtains the final total fee amount by collecting and recovering the shared values ​​sent by the computing nodes.

[0157] At this point, the privacy computing platform has successfully calculated the fee statistics of each account under different fee types, as well as the total fee amount under each fee type without knowing the plaintext fee data of each account.

[0158] In an optional embodiment,

[0159] After calculating the fee statistics of each account under different fee types and the total fee amount under each fee type, the method further includes:

[0160] Perform a privacy query on the fee statistics of each account under different fee types and the total fee amount under each fee type, and set an initial privacy budget corresponding to the privacy query, where the initial privacy budget is used to indicate the degree of privacy leakage allowed;

[0161] The privacy computing platform determines the global sensitivity corresponding to the privacy query through data sampling, and determines the query weight value corresponding to the privacy query based on the graph model, wherein the global sensitivity is used to indicate the maximum change in query results between adjacent data sets; the query weight value is used to indicate the importance of the privacy query;

[0162] Based on the global sensitivity and the query weight value, with the goal of minimizing the error of the query result and maximizing the utilization efficiency of the privacy budget, the initial privacy budget is dynamically adjusted through multi-objective optimization, and the privacy budget consumed by each privacy query is tracked, and the remaining privacy budget is dynamically updated.

[0163] In an optional embodiment,

[0164] Determining the query weight value corresponding to the privacy query based on the graph model includes:

[0165] Constructing a query dependency directed weighted graph according to the dependency relationships between the privacy queries, wherein the nodes in the query dependency directed weighted graph represent the privacy queries, the directed edges represent the dependency relationships between the privacy queries, and the weights of the directed edges represent the influence of the dependency relationships;

[0166] On the query dependency directed weighted graph, evaluating the importance of the privacy query by calculating the centrality metric of the node, wherein the centrality metric includes degree centrality, betweenness centrality and neighbor centrality;

[0167] The calculated query centrality measure is normalized to obtain a normalized query weight value.

[0168] For example, after obtaining the fee statistics of each account under different fee types and the total fee amount under each fee type, the privacy computing platform supports privacy queries on these results. Each privacy query corresponds to an initial privacy budget, which is used to indicate the degree of privacy leakage allowed. The larger the privacy budget, the weaker the privacy protection and the higher the accuracy of the query results; conversely, the smaller the privacy budget, the stronger the privacy protection, but the accuracy of the query results may be reduced.

[0169] In order to dynamically adjust the privacy budget during the privacy query process, the privacy computing platform needs to determine the global sensitivity and query weight value of each privacy query.

[0170] Global sensitivity is used to indicate the maximum change in query results between adjacent datasets. For a given privacy query V, its global sensitivity is defined as:

[0171] ;

[0172] Among them, △V represents the global sensitivity, D、 Represents any two adjacent data sets, that is, there is only one record difference between them; express L1 Norm, that is, the sum of the absolute values ​​of each element of the query result vector.

[0173] The query weight value is used to indicate the importance of the privacy query. The larger the weight value, the more important the query is and the more privacy budget should be allocated. The privacy computing platform determines the query weight value based on the graph model. The specific steps are as follows:

[0174] Construct a query dependency graph G=(V,E), where the node set V represents all privacy queries and the edge set E represents the dependency relationship between privacy queries. If the result of any privacy query affects the result of another privacy query, add a directed edge between the two privacy queries.

[0175] The query dependency graph is topologically sorted to obtain the execution order of privacy queries.

[0176] According to the execution order of privacy queries, the weight value of each privacy query is calculated. For any privacy query, its weight value is defined as:

[0177] ;

[0178] in, YW pj Indicates pj The weight value corresponding to the privacy query is deg in (pj) Indicates pjThe in-degree of a private query, that is, how many edges point to the pj A privacy query.

[0179] For example, the privacy computing platform dynamically adjusts the privacy budget of each privacy query based on the global sensitivity and query weight value, with the goal of minimizing the error of the query result and maximizing the utilization efficiency of the privacy budget. It can be expressed as a multi-objective optimization problem:

[0180] ;

[0181] in, ε pj Indicates pj The privacy budget corresponding to the privacy query, err() represents the error function of the privacy query result, and λ represents the balance factor, which is used to balance the importance of minimizing the error of the query result and maximizing the privacy budget.

[0182] Track the privacy budget consumed by each privacy query and dynamically update the remaining privacy budget.

[0183] By setting the initial privacy budget, this application can flexibly control the degree of privacy leakage allowed during the privacy query process to meet the privacy protection needs in different scenarios. By estimating the global sensitivity of the privacy query through data sampling, the maximum change in query results between adjacent data sets can be quantified, providing a basis for the allocation of the privacy budget. By constructing a query dependency graph and calculating the query weight value, the importance of different privacy queries can be reasonably evaluated, providing guidance for the allocation of the privacy budget.

[0184] By modeling the privacy budget allocation problem as a multi-objective optimization problem and solving it using the weighted sum method, a balance can be achieved between minimizing the error of query results and maximizing the efficiency of privacy budget utilization, thereby improving the overall performance of privacy queries. By tracking the privacy budget consumed by each privacy query and dynamically updating the remaining privacy budget, the privacy protection strength during the privacy query process can be ensured and excessive consumption of the privacy budget can be avoided.

[0185] The dynamic privacy budget allocation scheme can adapt to changes in query workloads, dynamically adjust the allocation of privacy budgets according to the importance and sensitivity of queries, and improve the utilization efficiency of privacy budgets. Compared with the fixed privacy budget allocation scheme, the dynamic privacy budget allocation scheme can significantly improve the accuracy of query results while ensuring the strength of privacy protection, and reduce the impact of privacy protection on data analysis.

[0186] S103. Receive the cost statistics results and total cost amounts for different cost types returned by the privacy computing platform, determine the cost amounts of each cost type that should be shared by each account based on the cost statistics results according to preset cost sharing rules, and generate cost sharing results.

[0187] In an optional embodiment,

[0188] The cost-sharing rules include:

[0189] The fund collection fee is allocated based on the proportion of the fund collection amount of each account to the total fund collection amount of all accounts;

[0190] For risk reserves, they are apportioned according to the proportion of the risk coefficient of each account to the total risk coefficient of all accounts. The risk coefficient is calculated based on the historical trading behavior and risk control data of the account;

[0191] Account maintenance fees are apportioned based on the proportion of each account’s opening time to the total opening time of all accounts;

[0192] Customer service fees are allocated based on the proportion of service requests from each account to the total number of service requests from all accounts.

[0193] For example, fund collection fees refer to the fees incurred by pooling funds from various accounts into a unified fund pool, such as transfer fees. In order to fairly and reasonably share fund collection fees, this solution uses the proportion of fund collection volume of each account to the total fund collection volume of all accounts as the basis for sharing. Through this sharing method, accounts with larger fund collection volumes will bear more fund collection fees, and vice versa, accounts with smaller fund collection volumes will bear less fees, which reflects the fairness of fee sharing.

[0194] Risk reserves are funds reserved to deal with potential risks of an account, such as account overdrafts, fraudulent transactions, etc. This plan allocates risk reserves based on the proportion of each account's risk factor to the total risk factor of all accounts. The risk factor of an account is calculated based on its historical trading behavior and risk control data, reflecting the risk level of the account. Through this allocation method, accounts with higher risk factors will bear more risk reserves, and vice versa, they will bear less reserves, reflecting the risk-oriented nature of cost allocation.

[0195] Account maintenance fees refer to the fees incurred to maintain the normal operation of an account, such as system maintenance, data backup, etc. This plan apportions account maintenance fees based on the proportion of each account's opening time to the total opening time of all accounts. Through this apportionment method, accounts that have been opened for a longer time will bear more account maintenance fees, and vice versa, they will bear less fees, which reflects the time fairness of fee sharing.

[0196] Customer service fees refer to the fees incurred for responding to and processing service requests from accounts, such as customer consultations, complaint handling, etc. This plan allocates customer service fees based on the proportion of service requests from each account to the total number of service requests from all accounts. Through this allocation method, accounts with more service requests will bear more customer service fees, and vice versa, they will bear less fees, which reflects the service-oriented nature of fee allocation.

[0197] Figure 2 FIG. 1 is a schematic diagram of the structure of the fee calculation management system based on account management according to an embodiment of the present invention. Figure 2 As shown, the system comprises:

[0198] The first unit is used to obtain account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes an account identifier, a fee type and a fee amount, wherein the fee type includes at least one of a fund collection fee, a risk reserve, an account maintenance fee and a customer service fee; encrypting the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combining partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result, wherein the threshold homomorphic encryption algorithm supports multi-party collaborative decryption and can directly calculate the encrypted data;

[0199] The second unit is used to send the complete plaintext intermediate result to the privacy computing platform. The privacy computing platform is based on a secure multi-party computing protocol. Under the premise of not revealing the account management fee data of each account, the fee statistics results of each account under different fee types and the total fee amount under each fee type are calculated;

[0200] The third unit is used to receive the fee statistics results and total fee amounts for different fee types returned by the privacy computing platform, determine the fee amounts of each fee type that should be shared by each account based on the fee statistics results according to the preset fee sharing rules, and generate the fee sharing results.

[0201] According to a third aspect of the embodiments of the present invention,

[0202] An electronic device is provided, comprising:

[0203] processor;

[0204] a memory for storing processor-executable instructions;

[0205] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0206] A fourth aspect of the embodiments of the present invention is:

[0207] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0208] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0209] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for cost calculation management based on account management, characterized in that: include: Acquire account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes account identification, fee type and fee amount, wherein the fee type includes at least one of fund collection fee, risk reserve, account maintenance fee and customer service fee; encrypt the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combine partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result, wherein the threshold homomorphic encryption algorithm supports multi-party collaborative decryption and can directly calculate the encrypted data; The complete plaintext intermediate result is sent to the privacy computing platform. The privacy computing platform is based on the secure multi-party computing protocol. Without revealing the account management fee data of each account, it calculates the fee statistics of each account under different fee types and the total fee amount under each fee type; Receive the fee statistics results and total fee amounts for different fee types returned by the privacy computing platform, determine the fee amounts for each fee type to be shared by each account based on the fee statistics results according to the preset fee sharing rules, and generate fee sharing results; The account management fee data is encrypted based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and a trusted third party uses an interpolation algorithm to combine partial decryption results corresponding to multiple accounts to obtain a complete plaintext intermediate result including: The key management center generates the public parameters required by the threshold homomorphic encryption algorithm, randomly selects the private key, and uses the Shamir secret sharing algorithm to split the private key into multiple shards, which are distributed to multiple accounts respectively. The multiple accounts are used as participants, the public key is the public parameter, and the private key shards are held by each participant; For each piece of account management fee data, extract the fee amount therein, encrypt the fee amount using the public key to obtain encrypted fee data, and the encrypted fee data together with the original account identifier and fee type constitute the encrypted account management fee data; Aggregating and statistically analyzing the encrypted account management fee data to obtain an encrypted intermediate result, and sending the encrypted intermediate result to a trusted third party; The trusted third party randomly selects at least a preset decryption threshold number of participants, sends a decryption request to the participants, and the selected participants use their own private key fragments to partially decrypt the encrypted intermediate results, generate partial decryption results and send them to the trusted third party; After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate result; Among them, the threshold homomorphic encryption algorithm introduces a threshold decryption mechanism based on the Paillier encryption algorithm, supports multi-party collaborative decryption, and retains homomorphic addition operations; After the trusted third party collects the partial decryption results sent by at least the preset decryption threshold number of participants, it uses the interpolation algorithm to combine the partial decryption results to obtain the complete plaintext intermediate results including: After receiving the decryption request message sent by the trusted third party, the selected participant uses the private key shards held by itself to partially decrypt the encrypted intermediate result and generate a partial decryption result; The participants send the partial decryption results to the trusted third party through a secure channel, and repeat the calculation and sending of the partial decryption results for all the encrypted intermediate results to be decrypted until all partial decryption operations are completed, where each participant only uses its own private key shard for calculation; After the trusted third party collects the partial decryption results sent by the participants that at least reach the preset decryption threshold number, the trusted third party combines the partial decryption results into a complete plaintext using an interpolation algorithm. For the encrypted intermediate results to be restored, the trusted third party selects the partial decryption results that at least reach the preset decryption threshold number; The interpolation coefficient is calculated using the interpolation algorithm, and then the restored plaintext intermediate result is calculated using the interpolation coefficient and the selected partial decryption result, and the steps of calculating the interpolation coefficient and restoring the plaintext result are repeated for all the encrypted intermediate results until all the plaintext intermediate results are restored; The trusted third party packages all the recovered plaintext intermediate results to obtain the complete plaintext intermediate results; The complete plaintext intermediate result is sent to the privacy computing platform. Based on the secure multi-party computing protocol, the privacy computing platform calculates the fee statistics of each account under different fee types without revealing the account management fee data of each account. The total fee amount under each fee type includes: The privacy computing platform divides the plaintext intermediate results according to the account and fee type to obtain the original fee data of each account under different fee types; applies the secret sharing algorithm to each original fee data, divides the original fee data into multiple sharing values, and synchronizes the multiple sharing values ​​to the computing node corresponding to the privacy computing platform; After receiving the shared value, the computing node performs secure calculations on the shared value according to the predefined calculation logic, and uses a secret reconstruction algorithm to combine the results of the secure calculations of the shared value to obtain the fee statistics results of each account under different fee types and the total fee amount under each fee type.

2. The method according to claim 1, characterized in that After calculating the fee statistics of each account under different fee types and the total fee amount under each fee type, the method further includes: Perform a privacy query on the fee statistics of each account under different fee types and the total fee amount under each fee type, and set an initial privacy budget corresponding to the privacy query, where the initial privacy budget is used to indicate the degree of privacy leakage allowed; The privacy computing platform determines the global sensitivity corresponding to the privacy query through data sampling, and determines the query weight value corresponding to the privacy query based on the graph model, wherein the global sensitivity is used to indicate the maximum change in query results between adjacent data sets; the query weight value is used to indicate the importance of the privacy query; Based on the global sensitivity and the query weight value, with the goal of minimizing the error of the query result and maximizing the utilization efficiency of the privacy budget, the initial privacy budget is dynamically adjusted through multi-objective optimization, and the privacy budget consumed by each privacy query is tracked, and the remaining privacy budget is dynamically updated.

3. The method according to claim 2, characterized in that Determining the query weight value corresponding to the privacy query based on the graph model includes: Constructing a query dependency directed weighted graph according to the dependency relationships between the privacy queries, wherein the nodes in the query dependency directed weighted graph represent the privacy queries, the directed edges represent the dependency relationships between the privacy queries, and the weights of the directed edges represent the influence of the dependency relationships; On the query dependency directed weighted graph, evaluating the importance of the privacy query by calculating the centrality metric of the node, wherein the centrality metric includes degree centrality, betweenness centrality and neighbor centrality; The calculated query centrality measure is normalized to obtain a normalized query weight value.

4. The method according to claim 1, characterized in that: The cost-sharing rules include: The fund collection fee is allocated based on the proportion of the fund collection amount of each account to the total fund collection amount of all accounts; For risk reserves, they are apportioned according to the proportion of the risk coefficient of each account to the total risk coefficient of all accounts. The risk coefficient is calculated based on the historical trading behavior and risk control data of the account; Account maintenance fees are apportioned based on the proportion of each account’s opening time to the total opening time of all accounts; Customer service fees are allocated based on the proportion of service requests from each account to the total number of service requests from all accounts.

5. A fee calculation management system based on account management, used to implement the method according to any one of claims 1 to 4, characterized in that: include: The first unit is used to obtain account management fee data of multiple accounts to be processed within a preset time period, wherein the account management fee data includes an account identifier, a fee type and a fee amount, wherein the fee type includes at least one of a fund collection fee, a risk reserve, an account maintenance fee and a customer service fee; encrypting the account management fee data based on a threshold homomorphic encryption algorithm to generate encrypted account management fee data, and combining partial decryption results corresponding to multiple accounts using an interpolation algorithm through a trusted third party to obtain a complete plaintext intermediate result, wherein the threshold homomorphic encryption algorithm supports multi-party collaborative decryption and can directly calculate the encrypted data; The second unit is used to send the complete plaintext intermediate result to the privacy computing platform. The privacy computing platform is based on a secure multi-party computing protocol. Under the premise of not revealing the account management fee data of each account, the fee statistics results of each account under different fee types and the total fee amount under each fee type are calculated; The third unit is used to receive the fee statistics results and total fee amounts for different fee types returned by the privacy computing platform, determine the fee amounts of each fee type that should be shared by each account based on the fee statistics results according to the preset fee sharing rules, and generate the fee sharing results.

6. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 4.

7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 4 is implemented.