A multi-direction privacy calculation method based on a smart contract

By establishing synchronous and asynchronous multi-directional privacy computation among participants through obfuscated circuits and smart contract modules, the problem of online data in existing technologies is solved, enabling privacy computation and data security under different online conditions, and adapting to the data value mining under different online conditions.

CN115828296BActive Publication Date: 2025-11-28FUZHOU QIYUAN INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211426463.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-14
Publication Date
2025-11-28
Estimated Expiration
2042-11-14

AI Technical Summary

Technical Problem

Existing technologies make it difficult to establish synchronous and asynchronous multidirectional privacy computations among participants, and also make it difficult to perform privacy computations based on the online status of participants, leading to frequent data privacy leaks.

Method used

By employing obfuscated circuits, synchronous and asynchronous multidirectional privacy computations are established among participants. Through the cooperation of obfuscated function modules and smart contract modules, trusted transactions between synchronous and asynchronous computations are achieved without the need for third parties. Furthermore, big data filtering and encryption protection are performed through the cooperation of cloud data processing terminals, data source gateway modules, and data encryption modules.

Benefits of technology

It enables traceable and irreversible transactions without the need for a third party, synchronous data computation to ensure data security, real-time data value discovery, and privacy-preserving computation adaptable to different online scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115828296B_ABST
    Figure CN115828296B_ABST
Patent Text Reader

Abstract

The application discloses a multi-direction privacy calculation method based on a smart contract, comprising a login platform and a cloud data processing terminal, through cooperation between a confusion function module and a smart contract module, a synchronous and asynchronous multi-direction privacy calculation is established between participants in a confusion circuit mode, synchronous calculation and asynchronous calculation are used for trusted transactions without a third party, the transactions are traceable and irreversible, data security is facilitated when participants formulate a contract, data value can be explored at any time, through cooperation between the cloud data processing terminal, a data source gateway module and a data encryption module, participant privacy can be encrypted and protected and participant information can be stored through big data screening, synchronous and asynchronous multi-direction privacy calculation between participants is facilitated, and privacy calculation is facilitated according to online conditions of the participants.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of computers, and particularly relates to a multi-direction privacy calculation method based on a smart contract. BACKGROUND

[0002] With the rapid development of the Internet of Things, mobile computing, big data and cloud computing, people's lifestyle is undergoing tremendous changes. These technologies provide a new mode for the collection, storage, dissemination and processing of information, and provide great convenience for the whole society. In order to share the resources provided by different technologies, collaborative computing between different organizations or individuals becomes more and more frequent; for example, data collected by different sensors in an Internet of Things system can be aggregated to produce a target result; the cloud and the client can cooperate to provide appropriate services; however, at the same time, the leakage of private information and confidential data occurs frequently, and these security threats seriously restrict the application and promotion of these data processing technologies.

[0003] A smart contract, also known as an automatic execution contract, is a set of instructions in which both parties to the contract are committed to automatically executing the obligations of the contract. The smart contract has the characteristics of immutability and cryptographic security, providing stronger security for transactions, i.e. providing distributed reliable computing, and in terms of data privacy, the smart contract lacks a cryptographic mechanism to handle encrypted sensitive data, and in terms of execution security, a security mechanism is needed to ensure the correctness of the execution of the smart contract. A smart contract is a computer protocol designed to disseminate, verify or execute contracts in an information-based manner. In addition, in these contracts, there is no necessary security measure to protect the privacy of the participants, and it is not convenient for participants to establish synchronous and asynchronous multi-direction privacy calculation, and it is not convenient for privacy calculation according to the online situation of the participants, and the demand for the use environment is high.

[0004] Therefore, we propose a multi-direction privacy calculation method based on a smart contract to solve the problems existing in the prior art. By using the method of confusion circuit, synchronous and asynchronous multi-direction privacy calculation is established between participants, synchronous calculation is for the calculation of participants online at the same time, and asynchronous calculation is for the calculation of participants online at different times, so that participants can perform privacy calculation in a data transparent manner and explore data value at any time. SUMMARY

[0005] The purpose of the present application is to provide a multi-direction privacy calculation method based on a smart contract to solve the problems of not being convenient for participants to establish synchronous and asynchronous multi-direction privacy calculation and not being convenient for privacy calculation according to the online situation of the participants in the background art.

[0006] To achieve the above purpose, the present application adopts the following technical solutions:

[0007] 1.A multi-directional privacy calculation method based on a smart contract, comprising the following steps:

[0008] S1. A user logs in a platform through an account to enter a cloud data processing terminal, fills in basic information in the login, and the user's account is queried by a participant credit inquiry unit. The basic information of the user's account is displayed through a display window of a participant information display unit, and the user's account with low credit is prohibited from logging in.

[0009] S2. When the user's account is logged in, the participants of the cloud data processing terminal arrange the privacy calculation window of the participants when multiple people log in, and perform privacy calculation through a confusion function module and a smart contract module when multiple users are online at the same time. A query request message is sent by a query direction model holder, the query request message includes information of a query object, then the query request message is forwarded to multiple data holders by the model holder, then a first holder in the multiple data holders acquires privacy detail data of the query object from local data according to the information of the query object, then the model holder performs multi-party secure calculation with the privacy detail data of the first holder by using a local prediction model to obtain a prediction result of the query object, then the model holder sends the prediction result of the query object to the query party, finally, the query party provides a target service for the query object according to the prediction result of the query object. The participant selects N variables for privacy, writes a public key into a public key filling column of the variable column, and the smart contract module checks the repeated variables and encrypts the variable values using the public key.

[0010] S3. The repeated variables are screened through a big data of a data source gateway module, a polynomial expression is obtained through a polynomial function, and a task number, a term number and a product number are substituted into the polynomial expression.

[0011] S4. A data encryption module encrypts the change value with the change of the confusion function module, and the privacy result calculated by the polynomial expression is imported into a result column through a sending unit, a receiving unit, a decryption unit and a business processing unit.

[0012] Preferably, the login platform in step S1 includes a participant credit inquiry unit and a participant information display unit, the login platform is electrically connected with multiple user accounts, the participant credit inquiry unit includes basic information and compliance record information, and the participant information display unit includes a display window and a login window.

[0013] Preferably, the basic information includes the user's name, ID number, home address, marriage status and education level, the compliance record information includes the user's borrowing and lending compliance record, the display window includes an information filling table and an information checking table, and the login window includes confirmation, cancellation and exit.

[0014] Preferably, the cloud data processing terminal comprises a synchronous processing unit and an asynchronous processing unit, the synchronous processing unit and the asynchronous processing unit are arranged in parallel, and the cloud data processing terminal further comprises a confusion function module, a data source gateway module and a proposed smart contract module.

[0015] Preferably, the cloud data processing terminal is electrically connected with the confusion function module, the data source gateway module and the proposed smart contract module respectively, and the cloud data processing terminal is electrically connected with the login platform.

[0016] Preferably, the confusion function module in step S2 comprises a proposed polynomial function, the proposed polynomial function mainly comprises a subtask unit, the subtask unit comprises a privacy task number, a term coefficient and a product number, the term coefficient comprises an independent variable factor and a public variable factor, and the independent variable factor and the public variable factor are arranged in the product number.

[0017] Preferably, the proposed smart contract module in step S2 comprises a plurality of variable columns, a filling column and a result column, the variable column is electrically connected with the subtask unit, and the filling column is provided with a filling box.

[0018] Preferably, the data source gateway module in step S3 comprises a sending unit, a receiving unit, a decryption unit and a business processing unit, and the sending unit, the receiving unit, the decryption unit and the business processing unit are electrically connected with a data encryption module.

[0019] Preferably, the sending unit, the receiving unit, the decryption unit and the business processing unit are arranged in series, and the sending unit is used for forwarding the query request message received by the receiving unit to each user account.

[0020] Preferably, the data encryption module in step S4 encrypts the data of the receiving unit, the sending unit, the decryption unit and the business processing unit respectively, and the data encryption module encrypts the confusion function module and the proposed smart contract module through the data transmission of the receiving unit, the sending unit, the decryption unit and the business processing unit.

[0021] The multi-directional privacy calculation method based on the smart contract has the following advantages compared with the prior art:

[0022] 1、The multi-directional privacy calculation method based on the smart contract has the following advantages compared with the prior art:

[0023] 2、The present application can encrypt and protect the privacy of participants and store the information of participants through the screening of big data, by the cooperation between the cloud data processing terminal, the data source gateway module and the data encryption module, so as to facilitate the establishment of synchronous and asynchronous multidirectional privacy calculation between participants, and facilitate privacy calculation according to the online situation of participants. BRIEF DESCRIPTION OF DRAWINGS

[0024] Figure 1 It is a system block diagram of the present application;

[0025] Figure 2 It is a confusion function module block diagram of the present application;

[0026] Figure 3 It is a data source gateway module block diagram of the present application;

[0027] Figure 4 It is a proposed smart contract module block diagram of the present application; DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. The specific embodiments described herein are only used to explain the present application, and are not used to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor are within the scope of protection of the present application.

[0029] The present application provides a multidirectional privacy calculation method based on smart contract as shown in Figures 1-4 The method comprises the following steps:

[0030] S1, the user logs in the platform through the account to enter the cloud data processing terminal, fills in the basic information in the login, and the user account credit inquiry is inquired by the participant credit single, the basic information of the user account is displayed through the display window of the participant information display unit, and the user account with low credit is prohibited to log in;

[0031] In step S1, the login platform includes a participant credit unit and a participant information display unit, and the login platform is electrically connected with multiple user accounts, the participant credit unit includes basic information and compliance record information, the participant information display unit includes a display window and a login window, the user generates his own public key and private key, and the user's identity ID and public key are protected by the data encryption module of the cloud data processing terminal, and each user knows the public key of other users.

[0032] The basic information includes the name, ID number, home address, marriage status and educational level of the user, the compliance record information includes the borrowing and lending compliance record of the user, the display window includes an information filling form and an information checking form, the login window includes confirmation, cancellation and exit, the data encryption module is internally provided with a secure calculation unit, which is used for at least using a local prediction model to perform multi-party secure calculation with the privacy detail data of the first holder based on homomorphic encryption to obtain the ciphertext prediction result of the query object.

[0033] S2, when the user account is logged in, the participants of the cloud data processing terminal arrange the privacy calculation window for the participants when multiple people log in, and the privacy calculation is performed through the confusion function module and the proposed smart contract module when multiple groups of users are online at the same time, the query direction model holder sends a query request message, the query request message includes the information of the query object, then the model holder forwards the query request message to multiple data holders, then the first holder in the multiple data holders acquires the privacy detail data of the query object from its local data according to the information of the query object, then the model holder at least uses a local prediction model to perform multi-party secure calculation with the privacy detail data of the first holder to obtain the prediction result of the query object, then the model holder sends the prediction result of the query object to the query party, finally the query party provides the target service for the query object according to the prediction result of the query object, the participant selects N variables for the privacy number, writes the public key into the public key filling column of the variable column, and the proposed smart contract module checks the repeated amount of the privacy variable and encrypts the variable value using the public key;

[0034] The cloud data processing terminal includes a synchronous processing unit and an asynchronous processing unit, the synchronous processing unit and the asynchronous processing unit are arranged in parallel, the cloud data processing terminal further includes a confusion function module, a data source gateway module and a proposed smart contract module, if there is a null value in the sequence, a random number is generated, and the random number is filled in after being encrypted using the public key of the participant corresponding to the row; the participant calculates the value of each subtask using the multiplier of all variable names in the column corresponding to the participant, that is, the intermediate value, and submits the intermediate value to the smart contract storage; after all participants submit the intermediate value, the smart contract multiplies the subtask intermediate value with the term coefficient corresponding to the subtask number and sums them up to obtain the privacy calculation result.

[0035] The cloud data processing terminal is electrically connected with the confusion function module, the data source gateway module and the proposed smart contract module, the cloud data processing terminal is electrically connected with the login platform, and the data source gateway module can improve the comparison between the user account and the big data, thereby preventing the repetition of calculation data and excavating the data.

[0036] The cloud data processing terminal comprises a synchronous processing unit and an asynchronous processing unit, the synchronous processing unit and the asynchronous processing unit are arranged in parallel, the cloud data processing terminal further comprises a confusion function module, a data source gateway module and a proposed smart contract module, if there is a null in the sequence, a random number is generated, and the random number is filled in after being encrypted by the public key of the participant corresponding to the row; the participant calculates the value of each subtask by using the multiplier of all variable names in the corresponding column, that is, the intermediate value, and submits the intermediate value to the smart contract for storage; after all participants submit the intermediate value, the smart contract multiplies the subtask intermediate value with the term coefficient corresponding to the subtask number and sums them up, which is the privacy calculation result.

[0037] The cloud data processing terminal is electrically connected with the confusion function module, the data source gateway module and the proposed smart contract module, and is electrically connected with the login platform. Through the data source gateway module, the comparison between the user account and the big data can be improved, so as to prevent the repetition of calculation data and the excavation of data.

[0038] The confusion function module in step S2 comprises a proposed polynomial function, the proposed polynomial function mainly comprises a subtask unit, the subtask unit comprises a privacy task number, a term coefficient and a product number, the term coefficient comprises an independent variable factor and a public variable factor, and the independent variable factor and the public variable factor are arranged in the product number, so as to facilitate the filling of variables in the filling column according to user requirements, and the calculation of function values according to different filling columns and task numbers.

[0039] The proposed smart contract module in step S2 comprises a plurality of variable columns, a filling column and a result column, the variable column is electrically connected with the subtask unit, and the filling column is provided with a filling box, so as to guide the direction of the participants online synchronously and the participants online asynchronously. For synchronous calling, the application layer needs to inquire the system kernel itself, if the data has not been read, the task of reading the file has not been completed, and for asynchronous calling, the application layer does not need to actively inquire the system kernel, after the system kernel reads the file data, it will actively notify the application layer that the data has been read, at this time, the application layer can receive the data returned by the system kernel and do other things. That is, whether it is synchronous or asynchronous, the focus is on the way of message notification when the task is completed. The blind active inquiry by the calling party is synchronous calling, and the active notification of the calling party by the called party is asynchronous calling, so as to facilitate the excavation of data by the participants in different environments.

[0040] S3, screening the privacy variable repeated quantity through the big data of the data source gateway module, and obtaining a polynomial expression through the proposed polynomial function, and substituting the task number, the term number and the product number into the polynomial expression;

[0041] The data source gateway module in step S3 includes a sending unit, a receiving unit, a decryption unit and a service processing unit, and the sending unit, the receiving unit, the decryption unit and the service processing unit are electrically connected with a data encryption module; the sending unit is used to forward the query request message received by the receiving unit to each user account; so that the first holder in the multiple participants obtains the privacy detail data of the query object from its local data according to the information of the query object.

[0042] The sending unit, the receiving unit, the decryption unit and the service processing unit are arranged in series, the sending unit is used to forward the query request message received by the receiving unit to each user account, so as to facilitate the establishment of synchronous and asynchronous multi-directional privacy calculation between participants, and facilitate privacy calculation according to the online situation of the participants.

[0043] The data encryption module encrypts the change value with the change of the confusion function module, and imports the privacy result calculated by the polynomial expression into the result column through the sending unit, the receiving unit, the decryption unit and the service processing unit.

[0044] In step S4, the data encryption module encrypts the data of the receiving unit, the sending unit, the decryption unit and the service processing unit respectively, and encrypts the confusion function module and the proposed smart contract module through the data transmission of the receiving unit, the sending unit, the decryption unit and the service processing unit; the privacy detail data is ciphertext data after homomorphic encryption; and the data encryption module is also used to send the ciphertext prediction result of the query object obtained by the security calculation unit to the query party; the receiving unit is used to receive the query request message from the query party, and the query request message includes the information of the query object.

[0045] In summary: the user logs in the platform through the account to enter the cloud data processing terminal, fills in the basic information, and queries the user account credit through the participant credit card, displays the basic information of the user account through the display window of the participant information display unit, and prohibits the user account with low credit from logging in. When the user account is logged in, the participant arrangement unit of the cloud data processing terminal arranges the privacy calculation window of the participant, so that the synchronous login user and the asynchronous login user enter different privacy calculation windows, and the privacy calculation of multiple groups of users online at the same time is carried out through the confusion function module and the proposed smart contract module. The participant selects N variables for the privacy number, writes the public key into the public key filling column of the variable column, checks the repeated amount of the privacy variable, and uses the public key to encrypt the variable value. Through the data source gateway module, the privacy variable repeated amount is screened, a polynomial expression is obtained through the proposed polynomial function, and the task number, coefficient number and product number are substituted into the polynomial expression. The data encryption module encrypts the change value with the change of the confusion function module, and through the sending unit, receiving unit, decryption unit and business processing unit, the privacy result calculated by the polynomial expression is imported into the result column, so that the multi-direction privacy calculation is completed, and is not affected by the environment.

[0046] Finally, it should be noted that: the above only for the preferred embodiments of the present application, and not for limiting the present application, although the foregoing detailed description of the present application is made with reference to the foregoing embodiments, for those skilled in the art, it still can be modified, or part of the technical features of the equivalent replacement, within the spirit and principles of the present application, any modification, equivalent replacement, improvement, etc., should be included in the protection scope of the present application.

Claims

1. A multi-direction privacy computing method based on a smart contract, characterized in that: It comprises the following steps: S1, the user logs in the platform through the account to enter the cloud data processing terminal, fills in the basic information, and queries the user account credit by the participant credit single, displays the basic information of the user account through the display window of the participant information display unit, and prohibits the user account with low credit from logging in; S2, when the user account is logged in, when multiple people log in, the participant arrangement unit of the cloud data processing terminal arranges the privacy calculation window of the participant, and performs privacy calculation through the confusion function module and the proposed smart contract module when multiple groups of users are online at the same time, the query request message is sent to the model holder, the query request message includes the information of the query object, then the model holder forwards the query request message to multiple data holders, then the first holder in the multiple data holders acquires the privacy details data of the query object from its local data according to the information of the query object, then the model holder at least uses the local prediction model to perform multi-party secure calculation with the privacy details data of the first holder to obtain the prediction result of the query object, then the model holder sends the prediction result of the query object to the query party, finally the query party provides target business for the query object according to the prediction result of the query object, the participant selects N variables for the privacy number, writes the public key into the public key filling column of the variable column, and the smart contract module checks the repeated amount of the privacy variable and encrypts the variable value using the public key; S3, the data source gateway module screens the repeated amount of the privacy variable through big data, obtains a polynomial expression through a proposed polynomial function, and substitutes the task number, term number and product number into the polynomial expression; S4, the data encryption module encrypts the change value with the change of the confusion function module, and imports the privacy result calculated by the polynomial expression into the result column through the sending unit, receiving unit, decryption unit and business processing unit.

2. The multi-directional privacy computing method based on a smart contract according to claim 1, characterized in that: The login platform in step S1 includes a participant credit unit and a participant information display unit, a plurality of user accounts are electrically connected to the login platform, the participant credit unit includes basic information and compliance record information, and the participant information display unit includes a display window and a login window.

3. The multi-directional privacy computing method based on a smart contract according to claim 2, characterized in that: The basic information includes the user's name, ID number, home address, marriage status and education level, the compliance record information includes the user's borrowing and lending compliance record, the display window includes an information filling form and an information checking form, and the login window includes confirm, cancel and exit.

4. The multi-directional privacy computing method based on a smart contract according to claim 1, characterized in that: The cloud data processing terminal includes a synchronous processing unit and an asynchronous processing unit, the synchronous processing unit and the asynchronous processing unit are arranged in parallel, and the cloud data processing terminal further includes a confusion function module, a data source gateway module and a proposed smart contract module.

5. The multi-directional privacy computing method based on a smart contract according to claim 4, characterized in that: The cloud data processing terminal is electrically connected with the confusion function module, the data source gateway module and the proposed smart contract module, and the cloud data processing terminal is electrically connected with the login platform.

6. The multi-directional privacy computing method based on a smart contract according to claim 1, characterized in that: The obfuscation function module in step S2 includes a polynomial function mainly composed of a subtask unit including a privacy task number, a term coefficient and a product number, wherein the term coefficient includes an independent variable and a public variable, and the independent variable and the public variable are arranged in the product number.

7. The multi-directional privacy computation method based on a smart contract according to claim 1, characterized in that: The smart contract module in step S2 includes a plurality of variable columns, a filling column and a result column, the variable column is electrically connected with the subtask unit, and the filling column is provided with a filling box.

8. The multi-directional privacy computation method based on a smart contract according to claim 1, characterized in that: The data source gateway module in step S3 includes a sending unit, a receiving unit, a decryption unit and a business processing unit, and the sending unit, the receiving unit, the decryption unit and the business processing unit are electrically connected with a data encryption module.

9. The multi-directional privacy computation method based on a smart contract according to claim 8, characterized in that: The sending unit, the receiving unit, the decryption unit and the business processing unit are arranged in series, and the sending unit is used for forwarding the query request message received by the receiving unit to each user account.

10. The multi-directional privacy computation method based on a smart contract according to claim 1, characterized in that: The data encryption module in step S4 encrypts the data of the receiving unit, the sending unit, the decryption unit and the business processing unit respectively, and encrypts the obfuscation function module and the smart contract module through the data transmission of the receiving unit, the sending unit, the decryption unit and the business processing unit.

Citation Information

Patent Citations

  • Multi-party security computing method based on block chain

    CN112765631A

  • Asynchronous privacy calculation method based on smart contract

    CN114036583A