Peer merchant goodwill evaluation method and system for MPC operations based on smart contracts
Through smart contracts and MPC operations, a goodwill evaluation mechanism for peer merchants is established, which solves the problem of missing merchant data quality evaluation in multi-party security calculations, and effectively evaluates and eliminates merchant data quality, improving the accuracy of calculation results and the healthy development of the platform.
Patent Information
- Application Number
- CN202210254493.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2042-03-15
AI Technical Summary
The existing technology lacks an effective evaluation mechanism for merchant data quality in multi-party security calculations, which makes it difficult for malicious merchants to be eliminated, affecting the accuracy of subsequent merchants' calculation results.
Through MPC operations based on smart contracts, user nodes obtain points based on the effective calculation time, perform privacy data interactive calculations, use points to evaluate other user nodes for goodwill, store them in goodwill management contracts, and realize user node ranking and priority search.
It has achieved effective evaluation and ranking of merchant data quality, eliminated merchants with poor data quality, improved the accuracy of calculation results, and promoted the healthy development of the platform.
Smart Images

Figure CN114612152B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology. Specifically, it relates to a method and system for evaluating the goodwill of peer merchants based on MPC operations of smart contracts. More specifically, it relates to a goodwill evaluation mechanism for peer merchants based on MPC operations of smart contracts. Background Art
[0002] After the two-party or multi-party secure multi-party computation is completed by each party, because the principle of data not leaving the local is followed during the calculation process, except for each computing party inferring the quality of the data provided by the other party based on the calculation results, other parties cannot perceive the quality of the data provided by the data computing party. At present, there is no evaluation mechanism that can allow other merchants to be calculated to view the data quality problem, and malicious merchants cannot be eliminated from the system, causing unnecessary losses to subsequent merchants.
[0003] Patent document CN110414272A (application number: 201910728471.7) discloses a blockchain privacy protection method based on multi-party secure computation. The method includes the following steps: when an MPC computing task is initiated, the hub node transmits the network and signaling control; each data holder can initiate a collaborative computing task; through the hub node for routing and addressing, select the remaining data holders with similar data types for secure collaborative computing; the MPC nodes of multiple data holders participating in the collaborative computing query the required data from the local database according to the computing logic, and jointly perform collaborative computing on the MPC computing task among the data streams; on the premise of ensuring the privacy of the input, each party obtains the correct data feedback. Summary of the Invention
[0004] Aiming at the defects in the prior art, the purpose of the present invention is to provide a method and system for evaluating the goodwill of peer merchants based on MPC operations of smart contracts.
[0005] According to a method for evaluating the goodwill of peer merchants based on MPC operations of smart contracts provided by the present invention, it includes:
[0006] Step S1: The user node obtains the integral PEWS according to the effective calculation time of the MPC operation between user nodes;
[0007] Step S2: The user nodes perform privacy data interaction calculation in a secure and trusted environment to obtain a calculation result;
[0008] Step S3: The user node, according to its own data and the calculation result, uses the integral PEWS owned by the user node to evaluate the goodwill of other user nodes participating in the privacy data interaction calculation to obtain the goodwill integral PGWS, and stores the goodwill integral PGWS in the goodwill management contract;
[0009] Step S4: Evaluate the data quality provided by other user nodes using the goodwill score PGWS, rank the user nodes based on the goodwill score PGWS, and implement priority search according to the user node ranking.
[0010] Preferably, the step S1 adopts:
[0011] Step S1.1: Obtain the data and data structure that meet the preset requirements of user node A;
[0012] Step S1.2: Obtain user node B corresponding to the data and data structure that meet the preset requirements of user node A;
[0013] Step S1.3: Perform multi-party secure privacy calculation of MPC on user node A and user node B, and obtain the corresponding score PEWS according to the calculation time of both parties.
[0014] Preferably, the goodwill management contract sets a revocation period, and within the set revocation period, the generated goodwill score PGWS can be revoked.
[0015] Preferably, store the score PEWS in the smart contract.
[0016] Preferably, a new user node is added, and the newly added user node automatically obtains the score PNUS. At the same time, the score PNUS is automatically destroyed after a preset time;
[0017] The score PNUS is for ranking and priority search of the newly added user node within a preset time;
[0018]
[0019] Among them, MPC Users represents the number of users participating in the MPC operation.
[0020] According to a peer merchant goodwill evaluation system based on MPC operation using smart contracts provided by the present invention, it includes:
[0021] Module M1: The user node obtains the score PEWS according to the effective calculation time of the MPC operation between user nodes;
[0022] Module M2: Privacy data interaction calculation is performed between user nodes in a secure and trusted environment to obtain a calculation result;
[0023] Module M3: The user node, according to its own data and the calculation result, uses the score PEWS owned by the user node to evaluate the goodwill of other user nodes participating in the privacy data interaction calculation to obtain the goodwill score PGWS, and stores the goodwill score PGWS in the goodwill management contract;
[0024] Module M4: Evaluate the data quality provided by other user nodes using the goodwill score PGWS, implement user node ranking based on the goodwill score PGWS, and achieve priority search according to the user node ranking.
[0025] Preferably, the module M1 adopts:
[0026] Module M1.1: Obtain data and data structures that meet the preset requirements of user node A.
[0027] Module M1.2: Obtain user node B corresponding to the data and data structures that meet the preset requirements of user node A.
[0028] Module M1.3: Perform multi-party secure privacy calculation of MPC on user node A and user node B, and obtain the corresponding PEWS score according to the calculation time of both parties.
[0029] Preferably, the goodwill management contract sets a revocable period, and within the set revocable period, the generated goodwill score PGWS can be revoked.
[0030] Preferably, store the score PEWS in the smart contract.
[0031] Preferably, a new user node is added. The newly added user node automatically obtains the score PNUS, and at the same time, the score PNUS is automatically destroyed after a preset time.
[0032] The score PNUS is used to rank and prioritize search for new user nodes within a preset time.
[0033]
[0034] Among them, MPC Users represents the number of users participating in the MPC operation.
[0035] Compared with the prior art, the present invention has the following beneficial effects:
[0036] 1. The integral management contract records the integral situations obtained by all merchants, and the goodwill management contract records the integral situations of the goodwill obtained by all merchants. All data is public and transparent on the blockchain, and the sources of all goodwill values can be replayed and tracked, laying a good digital foundation for each merchant to select data calculation partners.
[0037] 2. The present invention solves the problem of goodwill evaluation of merchants. If the data provided by merchants is inaccurate or false, they will not receive the corresponding PGWS score. As the total number of PGWS on the platform increases, merchants with poor goodwill will be eliminated, leaving merchants with higher goodwill values, enabling the platform to develop in a healthy manner.
[0038] 3. After MPC calculation, each merchant can evaluate the data quality of the relevant calculation parties. Other merchants with relevant data calculation requirements can select merchants with better data quality for calculation based on historical evaluations, improving the accuracy of the calculation results. To a certain extent, merchants with poor data quality will be phased out. Description of the Drawings
[0039] Other features, objectives, and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0040] Figure 1 Schematic diagram of the Pricoco platform in the embodiment.
[0041] Figure 2 Flowchart of the peer merchant goodwill evaluation method based on MPC operation of smart contracts. Detailed Embodiments
[0042] The present invention will be described in detail below with reference to specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those of ordinary skill in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the protection scope of the present invention.
[0043] Example 1
[0044] A peer merchant goodwill evaluation method based on MPC operation of smart contracts provided by the present invention includes:
[0045] Step S1: The user node obtains the integral PEWS according to the effective calculation time of the MPC operation between user nodes;
[0046] Step S2: The user nodes perform privacy data interaction calculations in a secure and trusted environment to obtain calculation results;
[0047] Step S3: The user node, based on its own data and the calculation results, uses the integral PEWS owned by the user node to evaluate the goodwill of other user nodes participating in the privacy data interaction calculation to obtain the goodwill integral PGWS, and stores the goodwill integral PGWS in the goodwill management contract;
[0048] Step S4: Use the goodwill integral PGWS to evaluate the data quality provided by other user nodes, and rank the user nodes based on the goodwill integral PGWS, and implement priority search according to the user node ranking.
[0049] Since it is impossible to see the other party's data during the MPC privacy calculation process, the machine cannot judge the quality of the data held by the other party after obtaining the result. Even when the computing party obtains the result, it cannot fully judge the quality of the data provided by the other party. This result is completely subject to the independent judgment of the person who obtains the calculation result.
[0050] Specifically, the step S1 adopts:
[0051] Step S1.1: Obtain the data and data structure that meet the preset requirements of the user node A;
[0052] Step S1.2: Obtain the user node B corresponding to the data and data structure that meet the preset requirements of the user node A;
[0053] Step S1.3: Perform multi-party secure privacy calculation of MPC on the user node A and the user node B, and obtain the corresponding PEWS points according to the calculation time of both parties.
[0054] Specifically, the goodwill management contract sets a revocable period, and within the set revocable period, the already generated goodwill points PGWS can be revoked.
[0055] Specifically, store the PEWS points in the smart contract.
[0056] Specifically, add a new user node. The newly added user node automatically obtains PNUS points, and at the same time, the PNUS points are automatically destroyed after a preset time;
[0057] The PNUS points are used to rank and prioritize the search for the newly added user node within a preset time;
[0058]
[0059] Among them, MPC Users represents the number of users participating in the MPC operation.
[0060] According to a peer merchant goodwill evaluation system for MPC operations based on a smart contract provided by the present invention, as Figure 2 shown, it includes:
[0061] Module M1: The user node obtains the points PEWS according to the effective calculation time of the MPC operation between user nodes;
[0062] Module M2: The user nodes perform privacy data interaction calculations in a secure and trusted environment to obtain a calculation result;
[0063] Module M3: Based on its own data and calculation results, the user node uses the integral PEWS it owns to evaluate the goodwill of other user nodes participating in the privacy data interaction calculation and obtains the goodwill integral PGWS, and stores the goodwill integral PGWS in the goodwill management contract;
[0064] Module M4: Use the goodwill integral PGWS to evaluate the data quality provided by other user nodes, and based on the goodwill integral PGWS, implement the ranking of user nodes, and achieve priority search according to the ranking of user nodes.
[0065] Since it is impossible to see the other party's data during the MPC privacy calculation process, the machine cannot judge the quality of the data held by the other party after obtaining the result. Even if the computing party obtains the result, it cannot fully judge the quality of the data provided by the other party. This result is completely judged by the person who obtains the calculation result.
[0066] Specifically, the module M1 adopts:
[0067] Module M1.1: Obtain data and data structures that meet the preset requirements of user node A;
[0068] Module M1.2: Obtain user node B corresponding to the data and data structures that meet the preset requirements of user node A;
[0069] Module M1.3: Perform multi-party secure privacy calculation of MPC on user node A and user node B, and obtain the corresponding PEWS integral according to the calculation time of both parties.
[0070] Specifically, the goodwill management contract sets a revocation period, and within the set revocation period, the generated goodwill integral PGWS can be revoked.
[0071] Specifically, store the PEWS integral in the smart contract.
[0072] Specifically, when a new user node is added, the newly added user node automatically obtains the PNUS integral, and the PNUS integral is automatically destroyed after a preset time;
[0073] The PNUS integral is used to rank and prioritize search for new user nodes within a preset time;
[0074]
[0075] Among them, MPC Users represents the number of users participating in the MPC operation.
[0076] Example 2
[0077] Embodiment 2 is a preferred example of Embodiment 1
[0078] Based on the multi-party secure computing platform, Pricoco is a subsystem belonging to the privacy computing platform Sacre, which provides a secure and trusted environment for two or more parties to perform privacy data interaction calculations without the need for each merchant's data to leave the local area.
[0079] PriCoCo solves the problem of how to securely calculate a predefined function and obtain a verifiable result without any party involved in the calculation revealing their own input and without a trusted third party. It solves the problems of data security and privacy protection in the process of data collaborative calculation based on a general multi-party secure computing protocol. It breaks data silos and maximizes the value and mining of data while protecting data privacy, enabling multi-party collaborative calculation.
[0080] As shown in the PriCoCo platform Figure 1 each merchant will provide their own data for multi-party secure calculation, so the status of merchants is equal, that is, peer merchants.
[0081] The present invention provides a method for evaluating the goodwill of peer merchants based on MPC operations of smart contracts, including an integral management contract and a goodwill management contract.
[0082] Among them, the integral description:
[0083] PEWS points (Pricoco Effective Work Score) refer to the issuance of PEWS points to users who meet the integral sending conditions for MPC operations on the Pricoco platform, which are used to prove the effective operations on the platform. The validity period of the issued points is 168 hours (604,800 seconds), that is, these points will be recovered and destroyed after 168 hours to improve the evaluation motivation of users.
[0084] As long as MPC operations are carried out normally on the Pricoco platform, corresponding points can be obtained, which are used to evaluate the quality of the data provided by the merchants with whom the calculations are made. After MPC calculation, both parties will obtain the desired data calculation results, and as for what the calculated data is, only the data holder can see it, and even the collaborative calculation party cannot know.
[0085] The issued points are not recorded on the platform side, but are directly issued in the on-chain integral management contract, that is, all values are recorded in the smart contract.
[0086] PGWS points (Pricoco Goodwill Score) refer to the goodwill evaluation of users who have obtained PEWS points for users with whom they have had calculation transactions (users who have had calculation transactions within the previous 720 hours). These points are directly related to the platform ranking and search priority of the evaluated merchants.
[0087] The PNUS points (Pricoco New User Score) refer to the new user reward points for users newly joining the Pricoco platform. These points are issued by the system and have the same value as PGWS points, but can only be used for 816 hours (2,937,600 seconds). After expiration, the system will recover and destroy these points.
[0088] The points management contract means that users who perform MPC operations on the platform are issued PEWS points according to rules, and the points are calculated based on the effective computing time on the platform. One point is issued every 10 seconds, and if it is less than 10 seconds, it is calculated as 10 seconds, that is, rounding up.
[0089] The goodwill management contract means that after users obtain PEWS points, they can conduct goodwill evaluations on merchants with whom they have a computing relationship within 168 hours. They can allocate the points to merchants with whom they have computing exchanges, and it is prohibited to allocate them to merchants without computing interactions and themselves. For the submitted PGWS points, a 48-hour (172,800 seconds) withdrawal period will be set, that is, within 48 hours, the merchant can withdraw the evaluated PEWS points, and it is prohibited to withdraw after the withdrawal period expires.
[0090] The following steps are specifically adopted:
[0091] Step 1: After the merchant conducts effective MPC operations on the platform, after the operation ends, the system will send PEWS points according to the operation time. Every 10 seconds of effective computing time can be exchanged for 1 PEWS point, rounding up (less than 10 seconds is calculated as 10 seconds).
[0092] After the merchant obtains PEWS points, they can conduct goodwill evaluations on merchants with whom they have a computing cooperation relationship (including merchants with a computing relationship within the previous 720 hours). These points will be retained on the platform for 168 hours, and after expiration, the points will be destroyed by the system. After the goodwill evaluation, the goodwill value of the evaluated merchant will increase, and it will get a more prominent ranking and be more easily searchable. The merchant can withdraw the existing evaluation within 48 hours after the evaluation and transfer it to other trustworthy merchants.
[0093] Specifically, after both parties perform MPC calculations, they can obtain PEWS points according to the effective computing time and store them in the smart contract. Both parties can use the PEWS points to evaluate the merchants with whom they calculate, that is, invest the PEWS points in this merchant, and this merchant will accumulate goodwill score PGWS points, and the goodwill points are stored in the goodwill management contract.
[0094] When a new user joins the platform, they will receive PNUS points at the average level of the platform (the average value of the PGWS points of the entire system). These points have the same utility as PGWS to support the search and ranking of new users. However, the PNUS points can only be held for 34 days (816 hours). After 816 hours, the PNUS points will be destroyed by the system in two installments, with half of the system-issued value recovered every 408 hours, that is, they will be completely recovered and destroyed by the system after 816 hours.
[0095] The average level of PGWS points will be calculated first. The average value is calculated by dividing the total PGWS points of all users in the system by the number of users, that is
[0096] The purpose of allocating the average level to new users is to strengthen the search support for new users and promote the registration of new users to a certain extent.
[0097] Those skilled in the art know that in addition to implementing the systems, devices, and their various modules provided by the present invention in the form of pure computer-readable program code, the method steps can be logically programmed to enable the systems, devices, and their various modules provided by the present invention to be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers to achieve the same program. Therefore, the systems, devices, and their various modules provided by the present invention can be considered as a kind of hardware component, and the modules included therein for implementing various programs can also be regarded as the structures within the hardware component; the modules for implementing various functions can also be regarded as either software programs for implementing the method or the structures within the hardware component.
[0098] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Without conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A method for evaluating the goodwill of peer merchants in MPC operations based on smart contracts, characterized in that, Including: Step S1: The user node obtains the integral PEWS according to the effective calculation time of the MPC operation among user nodes; Step S2: The user nodes perform privacy data interaction calculations in a secure and trusted environment to obtain calculation results; Step S3: The user node, based on its own data and the calculation results, uses the integral PEWS owned by the user node to conduct a goodwill evaluation of other user nodes participating in the privacy data interaction calculation to obtain the goodwill integral PGWS, and stores the goodwill integral PGWS in the goodwill management contract; Step S4: Use the goodwill integral PGWS to evaluate the data quality provided by other user nodes, and based on the goodwill integral PGWS, implement user node ranking, and achieve priority search according to the user node ranking; The said Step S1 adopts: Step S1.1: Obtain the data and data structure that meet the preset requirements of user node A; Step S1.2: Obtain the user node B corresponding to the data and data structure that meet the preset requirements of user node A; Step S1.3: Conduct multi-party secure privacy calculation of MPC between user node A and user node B, and obtain the corresponding integral PEWS according to the calculation time of both parties; The goodwill management contract sets a revocable period, and within the set revocable period, the already generated goodwill integral PGWS can be revoked; Store the integral PEWS in the smart contract; Add a new user node, and the newly added user node automatically obtains the integral PNUS, and at the same time, the integral PNUS is automatically destroyed after the preset time; The said integral PNUS is for ranking and priority search of the newly added user node within the preset time; Among them, MPC Users represents the number of users participating in the MPC operation.
2. A peer merchant goodwill evaluation system for MPC operations based on smart contracts, characterized in that, Including: Module M1: The user node obtains the integral PEWS according to the effective calculation time of the MPC operation among user nodes; Module M2: The user nodes perform privacy data interaction calculations in a secure and trusted environment to obtain calculation results; Module M3: The user node, based on its own data and the calculation results, uses the integral PEWS owned by the user node to conduct a goodwill evaluation of other user nodes participating in the privacy data interaction calculation to obtain the goodwill integral PGWS, and stores the goodwill integral PGWS in the goodwill management contract; Module M4: Use the goodwill integral PGWS to evaluate the data quality provided by other user nodes, and based on the goodwill integral PGWS, implement user node ranking, and achieve priority search according to the user node ranking; The said Module M1 adopts: Module M1.1: Obtain the data and data structure that meet the preset requirements of user node A; Module M1.2: Obtain the user node B corresponding to the data and data structure that meet the preset requirements of user node A; Module M1.3: Conduct multi-party secure privacy calculation of MPC between user node A and user node B, and obtain the corresponding PEWS integral according to the calculation time of both parties; The goodwill management contract sets a revocable period, and within the set revocable period, the already generated goodwill integral PGWS can be revoked; Store the integral PEWS in the smart contract; Add a new user node. The newly added user node automatically obtains the integral PNUS, and the integral PNUS is automatically destroyed after a preset time; The integral PNUS is used to rank and preferentially search for the newly added user node within a preset time; Among them, MPC Users represents the number of users participating in the MPC operation.
Citation Information
Patent Citations
Blockchain privacy protection method based on multi-party security computing
CN110414272A
Information pushing method, device, readable storage medium and electronic equipment
CN110990719A
Data sharing method based on blockchain
CN111585751A