CN115906182A - Data comparison processing method, device, equipment and storage medium - Google Patents

Data comparison processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN115906182A
CN115906182A CN202310010270.XA CN202310010270A CN115906182A CN 115906182 A CN115906182 A CN 115906182A CN 202310010270 A CN202310010270 A CN 202310010270A CN 115906182 A CN115906182 A CN 115906182A
Authority
CN
China
Prior art keywords
data
calculation result
compared
comparison
providing end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310010270.XA
Other languages
Chinese (zh)
Inventor
陈海锋
李朝霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
Unicom Cloud Data Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Unicom Digital Technology Co Ltd
Unicom Cloud Data Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd, Unicom Digital Technology Co Ltd, Unicom Cloud Data Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202310010270.XA priority Critical patent/CN115906182A/en
Publication of CN115906182A publication Critical patent/CN115906182A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Storage Device Security (AREA)

Abstract

The application provides a data comparison processing method, a device, equipment and a storage medium, which relate to the technical field of communication, and the method is applied to a data comparison opposite terminal and comprises the following steps: sending a random number to a first data providing end so that the first data providing end generates a first data calculation result according to the random number and first data to be compared of the first data providing end, and sending the first data calculation result to a second data providing end; receiving a second data calculation result sent by a second data providing end, wherein the second data calculation result is generated by the second data providing end according to second data to be compared of the second data providing end and the first data calculation result, and is sent to a data comparison opposite end; and determining the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number, so that the privacy and the safety of the data are improved, and further the user experience and the fairness of data comparison are improved.

Description

Data comparison processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data comparison processing method, apparatus, device, and storage medium.
Background
In daily life, there are many situations that require data comparison, for example, in the process of bidding, data comparison with that of an opposite end needs to obtain data of a bidder for comparison, or in the process of shopping, the price of a goods source from different sources needs to be compared to determine a buyer to be selected.
At present, during data comparison, generally, a device providing data directly sends data to be compared to a device performing data comparison, and during the data comparison, all devices can obtain detailed information of the data to be compared.
However, in the data comparison processing method in the prior art, any device can acquire the data to be compared, so that the data privacy is poor, the security is low, and the user experience and the fairness of data comparison are influenced.
Disclosure of Invention
The application provides a data comparison processing method, a data comparison processing device, equipment and a storage medium, and aims to solve the technical problems that any equipment can acquire data to be compared, the privacy of the data is poor, the safety is low, and the user experience and the fairness of data comparison are influenced in the data comparison processing method in the prior art.
In a first aspect, the present application provides a data comparison processing method, applied to a data comparison terminal, including:
sending a random number to a first data providing end, so that the first data providing end generates a first data calculation result according to the random number and first to-be-compared data of the first data providing end, and sends the first data calculation result to a second data providing end;
receiving a second data calculation result sent by the second data providing end, wherein the second data calculation result is generated by the second data providing end according to second data to be compared of the second data providing end and the first data calculation result, and is sent to the data comparison opposite end;
and determining a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Here, in the embodiment of the application, the data contrast end first sends a random number to the first data providing end, after receiving the random number, performs an operation with its own first data to be contrasted to obtain a first data calculation result and sends the first data calculation result to the second data providing end, the second data providing end combines the second data to be contrasted to obtain a second data calculation result on the basis of the second data providing end and sends the second data calculation result to the data contrast end, because the data contrast end stores the random number, the random number is subtracted from the second data calculation result to obtain a difference value between the first data to be contrasted and the second data to be contrasted, so that neither the second data providing end nor the first data providing end can know the price of the opposite side, and even the data contrast end cannot know the price of the data providing end, the data contrast end only subtracts the random number, the obtained result is a price difference value between the price of the first data providing end and the price of the second data providing end, but cannot know an actual value, and the data contrast end only sends the first data to the first data providing end, thereby further improving the security and the user experience of comparing and the random number.
Optionally, after determining the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the method further includes: sending a first data to be compared to a first data providing end to obtain a request; sending a second data to be compared to the second data providing terminal to obtain a request; receiving first data to be compared sent by the first data providing end and second data to be compared sent by the second data providing end; and comparing the validity of the result according to the first data to be compared, the second data to be compared and the random number.
After the data comparison opposite end realizes data comparison, the data comparison opposite end can send data acquisition requests to be compared to the first data providing end and the second data providing end, validity authentication is carried out on the comparison process through the acquired data, whether an error phenomenon occurs or not is determined, data safety is further guaranteed, and user experience and fairness of data comparison are improved.
Optionally, after determining the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the method further includes: sending a first data calculation result acquisition request to the second data providing terminal; receiving a first data calculation result sent by the second data providing terminal; and calculating the numerical values of the first data to be compared and the second data to be compared according to the calculation result of the first data and the random number.
The data comparison opposite terminal in the embodiment of the application can also send a first data calculation result acquisition request, so that the first data to be compared and the second data to be compared are obtained according to the result, the user experience is improved, and various data use requirements are met.
Optionally, after determining the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the method further includes:
and broadcasting the comparison result through a block chain network.
In a second aspect, an embodiment of the present application provides a data comparison processing method, applied to a first data providing end, including:
receiving a random number sent by a data comparison end;
generating a first data calculation result according to the random number and the first data to be compared of the first data providing end;
and sending the first data calculation result to a second data providing end so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sending the second data calculation result to a data comparison opposite end, wherein the second data calculation result is used for indicating the data comparison opposite end to determine a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after the sending the first data calculation result to the second data providing end, the method further includes: and responding to a first data to be compared acquisition request sent by the data comparison opposite terminal, and sending the first data to be compared through a block chain network in a private key signature mode.
Optionally, after the sending the first data calculation result to the second data providing end, the method further includes: and acquiring a comparison result sent by the data comparison opposite terminal through a block chain network.
In a third aspect, an embodiment of the present application provides a data comparison processing apparatus, applied to a data comparison peer, including:
the second sending module is used for sending a random number to a first data providing end so that the first data providing end generates a first data calculation result according to the random number and first to-be-compared data of the first data providing end, and sends the first data calculation result to a second data providing end;
a second receiving module, configured to receive a second data calculation result sent by the second data providing end, where the second data calculation result is generated by the second data providing end according to second data to be compared of the second data providing end and the first data calculation result, and is sent to the data comparison opposite end;
and the first determining module is used for determining a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the apparatus further includes:
a second determination module to: sending a first data to be compared to the first data providing terminal to obtain a request; sending a second data to be compared to a second data providing end to obtain a request; receiving first data to be compared sent by the first data providing end and second data to be compared sent by the second data providing end; and according to the first data to be compared, the second data to be compared and the random number, the validity of the result is authenticated through comparison.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the apparatus further includes:
a third determination module to: sending a first data calculation result acquisition request to the second data providing terminal; receiving a first data calculation result sent by the second data providing terminal; and calculating the numerical values of the first data to be compared and the second data to be compared according to the calculation result of the first data and the random number.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the apparatus further includes:
a broadcast module to: and broadcasting the comparison result through a block chain network.
In a fourth aspect, an embodiment of the present application provides a data comparison processing apparatus, applied to a first data providing end, including:
the first receiving module is used for receiving the random number sent by the data comparison end;
the first generation module is used for generating a first data calculation result according to the random number and the first to-be-compared data of the first data providing end;
the first sending module is configured to send the first data calculation result to a second data providing end, so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sends the second data calculation result to a data comparison opposite end, where the second data calculation result is used to instruct the data comparison opposite end to determine a comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after the first sending module sends the first data calculation result to the second data providing end, the apparatus further includes:
and the third sending module is used for responding to a first data to be compared acquisition request sent by the data comparison opposite terminal and sending the first data to be compared through a block chain network in a private key signature mode.
Optionally, after the first sending module sends the first data calculation result to the second data providing end, the apparatus further includes:
and the acquisition module is used for acquiring a comparison result sent by the data comparison opposite terminal through a block chain network.
In a fifth aspect, the present application provides a data comparison processing apparatus, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executes computer-executable instructions stored by the memory, causing the at least one processor to perform the data alignment processing method as described above in the first aspect and in various possible designs of the first aspect.
In a sixth aspect, the present application provides a data comparison processing device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the data alignment processing method as described above in the second aspect and in various possible designs of the second aspect.
In a seventh aspect, the present application provides a computer-readable storage medium, where computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the data alignment processing method according to the first aspect and various possible designs of the first aspect is implemented.
In an eighth aspect, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the data alignment processing method according to the second aspect and various possible designs of the second aspect is implemented.
In a ninth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the data alignment processing method as described above in the first aspect and in various possible designs of the first aspect.
In a tenth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the data alignment processing method according to the second aspect and various possible designs of the second aspect.
The data comparison processing method, the data comparison processing device, the data comparison processing equipment and the storage medium are characterized in that a data comparison opposite terminal firstly sends a random number to a first data providing terminal, the first data providing terminal calculates with own first to-be-compared data after receiving the random number, a first data calculation result can be obtained and sent to a second data providing terminal, the second data providing terminal combines second to-be-compared data on the basis of the second data providing terminal to obtain a second data calculation result and sends the second data calculation result to the data comparison opposite terminal, the data comparison opposite terminal stores the random number, the random number is deducted from the second data calculation result to obtain a difference value between the first to-be-compared data and the second to-be-compared data, so that neither the second data providing terminal nor the first data providing terminal can know the price of the opposite terminal, even the data comparison opposite terminal can not know the price of the data providing terminal, the data comparison opposite terminal can not know the actual price value, only the data comparison node can not know the privacy of the first data providing terminal and the random number, and the random number comparison node can not only improve the safety of the random number.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic diagram of a data comparison processing system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a data comparison processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another data comparison processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data comparison processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a data comparison processing device according to an embodiment of the present application.
Specific embodiments of the present disclosure have been shown by way of example in the drawings and will be described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the disclosure, as detailed in the appended claims.
The terms "first," "second," "third," and "fourth," etc., in the description and claims of this application and in the foregoing drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) referred to in the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the relevant laws and regulations and standards of the relevant country and region, and are provided with corresponding operation entrances for the user to choose authorization or denial.
In daily life, there are many situations that need data comparison, for example, data comparison needs to obtain data of a bidder at an opposite end in a bidding process for comparison, or in a goods shopping process, the price of a goods source from different sources needs to be compared to determine to select a buyer. At present, during data comparison, generally, a device providing data directly sends data to be compared to a device performing data comparison, and during the data comparison, all devices can obtain detailed information of the data to be compared. However, in the data comparison processing method in the prior art, any device can acquire the data to be compared, so that the data privacy is poor, the security is low, and the user experience and the fairness of data comparison are affected.
In order to solve the above technical problem, embodiments of the present application provide a data comparison processing method, an apparatus, a device, and a storage medium, where a random number is introduced into a data comparison process, a data comparison peer first sends a random number to a first data providing peer, the first data providing peer performs an operation with first data to be compared of its own after receiving the random number, so as to obtain a first data calculation result and send the first data calculation result to a second data providing peer, and the second data providing peer combines second data to be compared with the second data providing peer on the basis of the second data providing peer so as to obtain a second data calculation result and sends the second data calculation result to the data comparison peer.
Optionally, fig. 1 is a schematic diagram of a data comparison processing system according to an embodiment of the present disclosure. As shown in fig. 1, the architecture includes: a first data provider 101, a second data provider 102, and a data peer 103.
It can be understood that the number and the specific structure of the second data providing end, the first data providing end and the data comparing end may be determined according to actual situations, fig. 1 is only an illustration, and the number of the nodes is not particularly limited in the embodiment of the present application.
If the embodiment of the application is applied to a bidding scene, the first data providing end and the second data providing end are bidding ends, and the data opposite end is a bidding end.
If the embodiment of the application is applied to a scene of purchasing goods, the first data providing end and the second data providing end are goods selling ends, and the data opposite end is a goods purchasing end.
The embodiment of the present application does not specifically limit the application scenario.
The number of the data providing terminals may be determined according to an actual situation, and only two data providing terminals are illustrated in fig. 1, which may be more or less in an actual situation.
The nodes are all connected in a block chain, the nodes can be cloud servers, servers or terminal equipment and the like, and communication can be achieved between any two nodes through the block chain network.
The second data providing end, the first data providing end and the data comparing end may be arranged on the server or the terminal device, and the second data providing end, the first data providing end and the data comparing end may also be the server or the terminal device itself.
Optionally, each data provider (the first data provider and the second data provider) and the data peer access the blockchain network at the same time, and register their identities, that is, each data provider issues its own blockchain identifier, identity identifier, and public key in a manner of broadcast message requiring private key signature.
It is to be understood that the illustrated structure of the embodiments of the present application does not constitute a specific limitation to the architecture of the data alignment processing system. In other possible embodiments of the present application, the architecture may include more or fewer components than those shown in the drawings, or combine some components, or split some components, or arrange different components, which may be determined according to an actual application scenario and is not limited herein. The components shown in fig. 1 may be implemented in hardware, software, or a combination of software and hardware.
In addition, the network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided in the embodiment of the present application, and it can be known by a person skilled in the art that along with the evolution of the network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
The technical solutions of the present application are described below with several embodiments as examples, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 2 is a schematic flow chart of a data comparison processing method provided in the embodiment of the present application, where the embodiment of the present application may be applied to the data comparison peer 103 in fig. 1, the data comparison peer 103 may be a server or a terminal device, and a specific execution subject may be determined according to an actual application scenario. As shown in fig. 2, the method comprises the steps of:
s201: sending a random number to the first data providing end, so that the first data providing end generates a first data calculation result according to the random number and first to-be-compared data of the first data providing end, and sending the first data calculation result to the second data providing end.
The first data calculation result is used for indicating the second data providing end to generate a second data calculation result according to the second to-be-compared data of the second data providing end and the first data calculation result, and the second data calculation result is sent to the data comparison opposite end.
Optionally, the random number and the first to-be-compared data of the first data providing end generate a first data calculation result, and a sum of the random number and the first to-be-compared data of the first data providing end is the first data calculation result.
Optionally, the second data to be compared at the second data providing end and the first data calculation result generate a second data calculation result as follows: and the difference between the first data calculation result and the second data to be compared at the second data providing end is a second data calculation result.
Alternatively, the random number may be generated by a hash algorithm.
In a possible implementation manner, the data comparison end distributes own data demand information (bidding documents, goods purchasing demands and the like) to the block chain network in a broadcast message manner signed by own private key, and simultaneously sends a random number R to the first data providing end independently (note that the random number R is only sent to the first data providing end, but can not be known by anyone to know the specific numerical value, so that the random number can be encrypted by using the public key of the first data providing end to obtain an encryption result, and then the encryption result is sent to the first data providing end).
And after receiving the encryption result, the first data provider decrypts the encryption result by using the private key of the first data provider to obtain the random number R, and then the first data provider makes a price quotation according to the requirement of the first data provider. And the first data providing end carries out quotation according to the requirement of the first data providing end. Assuming that a first data provider offers a price a (first to-be-compared data), the first data provider calculates a + R to obtain a first data calculation result, and then the first data provider sends the first data calculation result after signing by a private key to a second data provider.
After receiving the information, the second data providing terminal verifies the private key signature of the first data providing terminal, if the verification is passed, the second data providing terminal offers price b (second data to be compared) according to the bidding requirement of the second data providing terminal, the second data providing terminal subtracts b from the received first data calculation result of the result a + R to obtain a + R-b, namely a second data calculation result, and then the second data providing terminal sends the second data calculation result to the data comparison opposite terminal after the private key signature.
S202: and receiving a second data calculation result sent by a second data providing terminal.
And the second data calculation result is generated by the second data providing end according to the second to-be-compared data of the second data providing end and the first data calculation result, and is sent to the data comparison opposite end.
S203: and determining a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
And after the data compare with the opposite terminal receives the information, verifying the private key signature of the second data providing terminal, if the verification is passed, receiving a + R-b, and then only subtracting the R value from the data compare with the opposite terminal to obtain a-b, so that the price quoting of the first data providing terminal and the price quoting of the second data providing terminal are compared, namely if the a-b is larger than 0, the price quoting of the second data providing terminal is low, and if the a-b is smaller than 0, the price quoting of the first data providing terminal is low.
Optionally, after determining the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the method further includes:
and broadcasting the comparison result through a block chain network.
Here, in the embodiment of the application, the data contrast end first sends a random number to the first data providing end, after receiving the random number, performs an operation with its own first data to be contrasted to obtain a first data calculation result and sends the first data calculation result to the second data providing end, the second data providing end combines the second data to be contrasted to obtain a second data calculation result on the basis of the second data providing end and sends the second data calculation result to the data contrast end, because the data contrast end stores the random number, the random number is subtracted from the second data calculation result to obtain a difference value between the first data to be contrasted and the second data to be contrasted, so that neither the second data providing end nor the first data providing end can know the price of the opposite side, and even the data contrast end cannot know the price of the data providing end, the data contrast end only subtracts the random number, the obtained result is a price difference value between the price of the first data providing end and the price of the second data providing end, but cannot know an actual value, and the data contrast end only sends the first data to the first data providing end, thereby further improving the security and the user experience of comparing and the random number.
Optionally, after determining the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the method further includes: sending a first data to be compared to a first data providing end to obtain a request; sending a second data acquisition request to be compared to a second data providing terminal; receiving first data to be compared sent by a first data providing end and second data to be compared sent by a second data providing end; and comparing the validity of the result according to the first data to be compared, the second data to be compared and the random number.
In a possible implementation manner, after the whole comparison process is finished and the data comparison end publishes the bid result in the form of a broadcast message signed by a private key of the data comparison end, the data comparison end requests the first data providing end and the second data providing end to obtain the values of the quotation a and the quotation b. And (4) calculating the value of a + R-b by the data comparison opposite terminal, and if the value is consistent with that sent by the second data providing terminal, the data passes the verification, and the data comparison is proved to be effective. The whole comparison process is simply added or subtracted without complex encryption and decryption calculation on the premise of achieving the target. Therefore, the data comparison greatly improves the efficiency and saves the calculation time and resources.
After the data comparison opposite end realizes data comparison, the data comparison opposite end can send data acquisition requests to be compared to the first data providing end and the second data providing end, validity authentication is carried out on the comparison process through the acquired data, whether an error phenomenon occurs or not is determined, data safety is further guaranteed, and user experience and fairness of data comparison are improved.
Optionally, after the comparing result of the first data to be compared and the second data to be compared is determined according to the second data calculation result and the random number, the method further includes: sending a first data calculation result acquisition request to a second data providing end; receiving a first data calculation result sent by a second data providing end; and calculating the numerical values of the first data to be compared and the second data to be compared according to the calculation result of the first data and the random number.
Alternatively, a request is made to obtain the value of a + R, so that the values of a and b can be obtained.
The data comparison opposite terminal in the embodiment of the application can also send a first data calculation result acquisition request, so that the first data to be compared and the second data to be compared are obtained according to the result, the user experience is improved, and various data use requirements are met.
Optionally, fig. 3 is another data comparison processing method provided in the embodiment of the present application, the embodiment of the present application may be applied to the first data provider 101 in fig. 1, where the first data provider 101 may be a server or a terminal device, and a specific execution subject may be determined according to an actual application scenario. As shown in fig. 3, the method comprises the steps of:
s301: and comparing the received data with the random number sent by the opposite terminal.
S302: and generating a first data calculation result according to the random number and the first data to be compared at the first data providing end.
S303: and sending the first data calculation result to a second data providing end so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sending the second data calculation result to a data comparison opposite end.
And the second data calculation result is used for indicating the data comparison opposite end to determine the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after sending the first data calculation result to the second data providing end, the method further includes: and responding to a first data to be compared acquisition request sent by the data comparison end, and sending the first data to be compared through the block chain network in a private key signature mode.
Optionally, after sending the first data calculation result to the second data providing end, the method further includes: and acquiring a comparison result sent by the opposite end of the data comparison through the block chain network.
Fig. 4 is a schematic structural diagram of a data comparison processing apparatus provided in an embodiment of the present application, and is applied to a data comparison terminal, as shown in fig. 4, the apparatus in the embodiment of the present application includes: a second sending module 401, a second receiving module 402 and a first determining module 403. The data comparison processing device may be a server or a terminal device, or a chip or an integrated circuit that implements the functions of the server or the terminal device. It should be noted that the division of the second sending module 401, the second receiving module 402 and the first determining module 403 is only a division of logical functions, and the two may be integrated or independent physically.
The second sending module is used for sending the random number to the first data providing end so that the first data providing end generates a first data calculation result according to the random number and first to-be-compared data of the first data providing end, and sends the first data calculation result to the second data providing end;
the second receiving module is used for receiving a second data calculation result sent by the second data providing end, wherein the second data calculation result is generated by the second data providing end according to second data to be compared of the second data providing end and the first data calculation result and is sent to the data comparison end;
and the first determining module is used for determining the comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the calculation result of the second data and the random number, the apparatus further includes:
a second determination module to: sending a first data to be compared to a first data providing end to obtain a request; sending a second data acquisition request to be compared to a second data providing terminal; receiving first data to be compared sent by a first data providing end and second data to be compared sent by a second data providing end; and according to the first data to be compared, the second data to be compared and the random number, the validity of the result is authenticated through comparison.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the apparatus further includes:
a third determination module to: sending a first data calculation result acquisition request to a second data providing end; receiving a first data calculation result sent by a second data providing end; and calculating the numerical values of the first data to be compared and the second data to be compared according to the calculation result of the first data and the random number.
Optionally, after the first determining module determines the comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number, the apparatus further includes:
a broadcast module to: and broadcasting the comparison result through a block chain network.
The embodiment of the present application further provides another data comparison processing apparatus, which is applied to a first data providing end, and the apparatus of the embodiment of the present application includes: the device comprises a first receiving module, a first generating module and a first sending module. The data comparison processing device may be a server or a terminal device, or a chip or an integrated circuit that implements the functions of the server or the terminal device. It should be noted here that the division of the first receiving module, the first generating module, and the first sending module is only a division of logical functions, and the two may be integrated or independent physically.
The first receiving module is used for receiving the random number sent by the data comparison terminal;
the first generation module is used for generating a first data calculation result according to the random number and first data to be compared of the first data providing end;
the first sending module is used for sending the first data calculation result to the second data providing end so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sends the second data calculation result to the data comparison opposite end, wherein the second data calculation result is used for indicating the data comparison opposite end to determine a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
Optionally, after the first sending module sends the first data calculation result to the second data providing end, the apparatus further includes:
and the third sending module is used for responding to a first data to be compared acquisition request sent by the data comparison end and sending the first data to be compared through the block chain network in a private key signature mode.
Optionally, after the first sending module sends the first data calculation result to the second data providing end, the apparatus further includes:
and the acquisition module is used for acquiring a comparison result sent by the opposite end of the data comparison through the block chain network.
Referring to fig. 5, a schematic structural diagram of a data comparison processing device 500 suitable for implementing an embodiment of the present disclosure is shown, where the data comparison processing device 500 may be a terminal device or a server. Among them, the terminal Device may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a Digital broadcast receiver, a Personal Digital Assistant (PDA), a tablet computer (PAD), a Portable Multimedia Player (PMP), a car terminal (e.g., car navigation terminal), etc., and a fixed terminal such as a Digital TV, a desktop computer, etc. The data comparison processing device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, the data alignment processing apparatus 500 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 501, which can perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 502 or a program loaded from a storage device 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the data matching processing device 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 507 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the data comparison processing device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates a data alignment processing apparatus 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may be alternatively implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the data comparison processing device; or the data comparison processing device can be independently arranged without being assembled into the data comparison processing device.
The computer readable medium carries one or more programs, and when the one or more programs are executed by the data comparison processing device, the data comparison processing device is caused to execute the method shown in the above embodiment.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice in the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (13)

1. A data comparison processing method is applied to a data comparison terminal, and comprises the following steps:
sending a random number to a first data providing end, so that the first data providing end generates a first data calculation result according to the random number and first to-be-compared data of the first data providing end, and sends the first data calculation result to a second data providing end;
receiving a second data calculation result sent by the second data providing terminal, wherein the second data calculation result is generated by the second data providing terminal according to second data to be compared of the second data providing terminal and the first data calculation result, and is sent to the data comparison terminal;
and determining a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
2. The method according to claim 1, further comprising, after determining the alignment result of the first data to be aligned and the second data to be aligned according to the calculation result of the second data and the random number, the following steps:
sending a first data to be compared to a first data providing end to obtain a request;
sending a second data to be compared to a second data providing end to obtain a request;
receiving first data to be compared sent by the first data providing end and second data to be compared sent by the second data providing end;
and comparing and authenticating the validity of the result according to the first data to be compared, the second data to be compared and the random number.
3. The method of claim 1, further comprising, after determining the alignment result of the first data to be aligned and the second data to be aligned according to the calculation result of the second data and the random number:
sending a first data calculation result acquisition request to the second data providing terminal;
receiving a first data calculation result sent by the second data providing terminal;
and calculating the numerical values of the first data to be compared and the second data to be compared according to the calculation result of the first data and the random number.
4. The method according to any one of claims 1 to 3, wherein after the calculating the result from the second data and the random number, and determining the alignment result of the first data to be aligned and the second data to be aligned, further comprises:
and broadcasting the comparison result through a block chain network.
5. A data comparison processing method is applied to a first data providing end and comprises the following steps:
receiving a random number sent by a data comparison end;
generating a first data calculation result according to the random number and the first data to be compared of the first data providing end;
and sending the first data calculation result to a second data providing end so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sending the second data calculation result to a data comparison opposite end, wherein the second data calculation result is used for indicating the data comparison opposite end to determine a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
6. The method of claim 5, further comprising, after said sending the first data computation result to a second data provider:
and responding to a first data to be compared acquisition request sent by the data comparison opposite terminal, and sending the first data to be compared through a block chain network in a private key signature mode.
7. The method of claim 5 or 6, further comprising, after said sending the first data computation result to a second data provider:
and acquiring a comparison result sent by the data comparison opposite terminal through a block chain network.
8. A data comparison processing device is applied to a data comparison terminal and comprises:
the second sending module is used for sending a random number to a first data providing end so that the first data providing end generates a first data calculation result according to the random number and first data to be compared of the first data providing end, and sends the first data calculation result to a second data providing end;
a second receiving module, configured to receive a second data calculation result sent by the second data providing end, where the second data calculation result is generated by the second data providing end according to second data to be compared of the second data providing end and the first data calculation result, and is sent to the data comparison opposite end;
and the first determining module is used for determining a comparison result of the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
9. A data comparison processing device is applied to a first data providing end and comprises:
the first receiving module is used for receiving the random number sent by the data comparison end;
the first generation module is used for generating a first data calculation result according to the random number and the first to-be-compared data of the first data providing end;
the first sending module is configured to send the first data calculation result to a second data providing end, so that the second data providing end generates a second data calculation result according to second data to be compared of the second data providing end and the first data calculation result, and sends the second data calculation result to a data comparison opposite end, where the second data calculation result is used to instruct the data comparison opposite end to determine a comparison result between the first data to be compared and the second data to be compared according to the second data calculation result and the random number.
10. A data alignment processing apparatus, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data alignment processing method of any one of claims 1 to 4.
11. A data alignment processing apparatus, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the data alignment processing method of any one of claims 5 to 7.
12. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are configured to implement the data comparison processing method according to any one of claims 1 to 4.
13. A computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions are configured to implement the data alignment processing method according to any one of claims 5 to 7.
CN202310010270.XA 2023-01-05 2023-01-05 Data comparison processing method, device, equipment and storage medium Pending CN115906182A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310010270.XA CN115906182A (en) 2023-01-05 2023-01-05 Data comparison processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310010270.XA CN115906182A (en) 2023-01-05 2023-01-05 Data comparison processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115906182A true CN115906182A (en) 2023-04-04

Family

ID=86474752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310010270.XA Pending CN115906182A (en) 2023-01-05 2023-01-05 Data comparison processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115906182A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190122296A1 (en) * 2017-10-23 2019-04-25 Alibaba Group Holding Limited Data auditing method and device
US20210051007A1 (en) * 2018-08-14 2021-02-18 Advanced New Technologies Co., Ltd. Secure multi-party computation method and apparatus, and electronic device
CN112434329A (en) * 2020-10-23 2021-03-02 上海点融信息科技有限责任公司 Private data intersection acquisition method, computing device and storage medium
CN113191863A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Bidding method, third party device, sponsor device and bidder device
WO2022068644A1 (en) * 2020-09-30 2022-04-07 深圳前海微众银行股份有限公司 Target user determination method and apparatus, and device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190122296A1 (en) * 2017-10-23 2019-04-25 Alibaba Group Holding Limited Data auditing method and device
US20210051007A1 (en) * 2018-08-14 2021-02-18 Advanced New Technologies Co., Ltd. Secure multi-party computation method and apparatus, and electronic device
WO2022068644A1 (en) * 2020-09-30 2022-04-07 深圳前海微众银行股份有限公司 Target user determination method and apparatus, and device and storage medium
CN112434329A (en) * 2020-10-23 2021-03-02 上海点融信息科技有限责任公司 Private data intersection acquisition method, computing device and storage medium
CN113191863A (en) * 2021-05-21 2021-07-30 中国联合网络通信集团有限公司 Bidding method, third party device, sponsor device and bidder device

Similar Documents

Publication Publication Date Title
WO2019200966A1 (en) Method and apparatus for sharing and acquiring information
CN111369236A (en) Data management method and device applied to block chain
CN110705985B (en) Method and apparatus for storing information
CN115311045A (en) Meta universe virtual image decoration method based on block chain and meta universe
CN115906140A (en) Bidding data processing method, device, equipment and storage medium
CN115766294B (en) Cloud server resource authentication processing method, device, equipment and storage medium
CN113259353A (en) Information processing method and device and electronic equipment
CN115987657B (en) Cloud storage security authentication method, device, equipment and storage medium
CN109325858B (en) Resource flow transaction method and device, computer equipment and computer readable medium
CN116975810A (en) Identity verification method, device, electronic equipment and computer readable storage medium
CN115150086A (en) Identity authentication method and equipment of public key based on biological characteristics of cloud service
CN115906182A (en) Data comparison processing method, device, equipment and storage medium
CN114186994A (en) Method, terminal and system for using digital currency wallet application
CN115879135B (en) Bid data processing method, device, equipment and storage medium
CN115967508A (en) Data access control method and device, equipment, storage medium and program product
CN111355584B (en) Method and apparatus for generating blockchain multi-signatures
CN116471327B (en) Cloud resource processing method, device, equipment and storage medium
CN113873004A (en) Task execution method and device and distributed computing system
CN113079085A (en) Business service interaction method, business service interaction device, business service interaction equipment and storage medium
CN115829729B (en) Three-chain architecture-based supply chain financial credit evaluation system and method
CN116095671B (en) Resource sharing method based on meta universe and related equipment thereof
CN114826616B (en) Data processing method, device, electronic equipment and medium
CN115766830B (en) Computing power network processing method, device, equipment and storage medium
CN114785560B (en) Information processing method, device, equipment and medium
CN115936706B (en) Data element auxiliary transaction method, device and system based on blockchain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230404

RJ01 Rejection of invention patent application after publication