CN113191863A - Bidding method, third party device, sponsor device and bidder device - Google Patents
Bidding method, third party device, sponsor device and bidder device Download PDFInfo
- Publication number
- CN113191863A CN113191863A CN202110559635.5A CN202110559635A CN113191863A CN 113191863 A CN113191863 A CN 113191863A CN 202110559635 A CN202110559635 A CN 202110559635A CN 113191863 A CN113191863 A CN 113191863A
- Authority
- CN
- China
- Prior art keywords
- bidder
- block chain
- equipment
- bidding
- party
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/08—Auctions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Accounting & Taxation (AREA)
- Software Systems (AREA)
- General Health & Medical Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- Finance (AREA)
- Computer Security & Cryptography (AREA)
- Entrepreneurship & Innovation (AREA)
- Databases & Information Systems (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present disclosure provides a bidding method, a third party device, a sponsor device and a bidder device, the method comprising: in response to receiving the random numbers respectively corresponding to each bidder device and the first encryption results broadcasted by each bidder device, which are broadcasted by a sponsor device in the block chain, decrypting each first encryption result by using a block chain private key of the third-party device to obtain each second difference value; determining winning square equipment according to the random numbers and the second difference values; and broadcasting the determined information of the winning party equipment in the block chain. A decentralization bidding method is provided, and all participants can know the bidding result under the condition of ensuring the quotation to be confidential. By means of the block chain technology, a hacker is prevented from attacking one centralized node to randomly tamper or illegally obtain bidding data, and safety is greatly improved.
Description
Technical Field
The disclosure belongs to the technical field of communication, and particularly relates to a bidding method, a third party device, a sponsor device and a bidder device.
Background
The existing bidding system has the problems that the voting system files are stored in a centralized manner in an electronic bidding platform server, once the server is tampered by a hacker, huge loss is caused or the bidding result of a project is tampered, and the like, so that the bidding is unfair.
In the electronic bid/offer system, the offer is determined to be successful or unsuccessful, and even the historical offer becomes information analyzed and collected by the competitor. Therefore, how to construct a decentralized bidding method is to randomly select the bid in the selection link of the bid evaluation expert through a decentralized network, and realize the bid evaluation under the condition of ensuring that the bid price is always kept secret, even if the bid issuer only can perform fair evaluation but cannot know the real bid price of the bidder, which is a problem to be solved urgently at present.
Disclosure of Invention
In view of the above-mentioned shortcomings in the prior art, the present disclosure provides a bidding method, a third party device, a sponsor device and a bidder device.
As a first aspect of the present disclosure, there is provided a bidding method, including:
in response to receiving the random numbers respectively corresponding to each bidder device and the first encryption results broadcasted by each bidder device, which are broadcasted by a sponsor device in the block chain, decrypting each first encryption result by using a block chain private key of the third-party device to obtain each second difference value; the first encryption result is generated by the fact that the bidder equipment receives a third encryption result broadcasted by the tenderer equipment in the block chain, a block chain private key of the tenderer equipment is used for decrypting a first difference value between the quotation of other tenderers and random numbers corresponding to other tenderer equipment, a second difference value between the first difference value and the quotation of the tenderer equipment is calculated, and a block chain public key of the third party equipment is used for encrypting the second difference value;
determining winning square equipment according to the random numbers and the second difference values;
and broadcasting the determined information of the winning party equipment in the block chain.
Preferably, the determining a winning square device according to each random number and each second difference value includes:
respectively calculating the sum of the random number and each second difference value to obtain a third difference value of any two bidding parties;
and determining winning square equipment according to the third difference.
As a second aspect of the present disclosure, there is provided a bidding method, including:
generating random numbers and bidding documents respectively corresponding to each bidder device;
encrypting the corresponding random number by using the block chain public key of each bidder device to obtain a second encryption result of each bidder device;
and broadcasting the bidding document, each second encryption result and the random number corresponding to each bidder device in the block chain.
Preferably, the method further comprises:
in response to receiving the encrypted bid-winning offer broadcast by the device of the bid-winning party in the block chain, decrypting by using a private key of the block chain of the device of the local bid-winning party to obtain the bid-winning offer;
encrypting the bid-winning quotation in a homomorphic way to obtain a first ciphertext;
respectively sending the first ciphertext to other bidder devices;
responding to the received ciphertext combinations returned by each bidder device, and carrying out homomorphic decryption on each ciphertext combination to obtain each decryption result;
and determining whether the winning party equipment is correct or not according to each decryption result.
As a third aspect of the present disclosure, there is provided a bidding method, including:
in response to receiving a third encryption result broadcasted by other bidder devices in a block chain, decrypting the third encryption result by using a block chain private key of the bidder device to obtain a first difference value between the quotation of the other bidder devices and the random number corresponding to the other bidder devices; the third encryption result is generated after the other bidder equipment receives a second encryption result broadcasted by the bidder equipment in the block chain, decrypts the random numbers corresponding to the other bidder equipment by using the block chain private key of the other bidder equipment, calculates a first difference value between the other bidder quotation and the random numbers corresponding to the other bidder equipment, and encrypts the first difference value by using the block chain public key of the bidder equipment;
calculating a second difference value between the first difference value and the quoted price of the device of the bidding party;
encrypting the second difference value by using a block chain public key of third-party equipment to obtain a first encryption result;
broadcasting the first encryption result in the blockchain.
Preferably, the method further comprises:
in response to the receipt of the bidding document and the second encryption result broadcasted by the tenderer device in the block chain, decrypting the second encryption result by using the block chain private key of the tenderer device to obtain a random number corresponding to the tenderer device;
calculating a first difference value between the quoted price of the bidding party device and the random number corresponding to the bidding party device;
encrypting the first difference values by using the block chain public keys of other bidder devices respectively to obtain third encryption results;
each third encryption result is broadcast in the blockchain.
Preferably, the method further comprises:
receiving a first ciphertext broadcasted by a target sending device in the block chain;
the bidding party performs homomorphic encryption to obtain a second ciphertext, and performs homomorphic encryption to obtain a third ciphertext according to the random number corresponding to the bidding party equipment;
generating a ciphertext combination according to the first ciphertext, the second ciphertext and the third ciphertext;
broadcasting the ciphertext combination in the blockchain.
Preferably, the method further comprises:
and in response to the fact that the information of the successful bid party equipment broadcasted by the third party equipment in the block chain is received and the information of the successful bid party equipment is consistent with the information of the local bidder equipment, encrypting the successful bid quotation of the local bidder equipment by using the block chain public key of the tenderer equipment, and broadcasting the encrypted successful bid quotation in the block chain.
As a fourth aspect of the present disclosure, there is provided a third party device comprising:
the decryption module is used for responding to the random numbers respectively corresponding to the bidding party devices and the first encryption results broadcasted by the bidding party devices, and decrypting the first encryption results by using the block chain private key of the third party device to obtain second difference values; the first encryption result is generated by the fact that the bidder equipment receives a third encryption result broadcasted by the tenderer equipment in the block chain, a block chain private key of the tenderer equipment is used for decrypting a first difference value between the quotation of other tenderers and random numbers corresponding to other tenderer equipment, a second difference value between the first difference value and the quotation of the tenderer equipment is calculated, and a block chain public key of the third party equipment is used for encrypting the second difference value;
the determining module is used for determining winning square equipment according to the random numbers and the second difference values;
and the broadcasting module is used for broadcasting the determined information of the winning party equipment in the block chain.
As a fifth aspect of the present disclosure, there is provided a maker apparatus comprising:
the generation module is used for generating random numbers and bidding documents respectively corresponding to each bidder device;
the encryption module is used for encrypting the corresponding random number by using the locally stored block chain public key of each bidder device to obtain a second encryption result of each bidder device;
and the broadcasting module is used for broadcasting the second encryption results and the random numbers respectively corresponding to the bidder devices in the block chain.
As a sixth aspect of the present disclosure, there is provided a bidder device comprising:
the decryption module is used for responding to a third encryption result broadcasted by other bidding party equipment in the received block chain, decrypting the third encryption result by using a block chain private key of the bidding party equipment to obtain a first difference value between the quotation of the other bidding party equipment and the random number corresponding to the other bidding party equipment; the third encryption result is generated after the other bidder equipment receives a second encryption result broadcasted by the bidder equipment in the block chain, decrypts the random numbers corresponding to the other bidder equipment by using the block chain private key of the other bidder equipment, calculates a first difference value between the other bidder quotation and the random numbers corresponding to the other bidder equipment, and encrypts the first difference value by using the block chain public key of the bidder equipment;
the calculating module is used for calculating a second difference value between the first difference value and the quoted price of the bidding party equipment;
the encryption module is used for encrypting the second difference value by using a block chain public key of the third-party equipment to obtain a first encryption result;
a broadcasting module for broadcasting the first encryption result in the block chain.
According to the bidding method provided by the embodiment of the disclosure, if a third-party device receives the random numbers corresponding to each bidding party device broadcasted by a bidding party device in a block chain and the first encryption result broadcasted by each bidding party device, the block chain private key of the third-party device is used for decryption to obtain each second difference value, the quoted price of each bidding party device is determined according to each random number and each second difference value, the bidding party device with the highest quoted price is determined according to the quoted price of each bidding party device to be used as a bidding party device, and the third-party device broadcasts the determined information of the winning bidding party device in the block chain. The embodiment of the disclosure provides a decentralization bidding method, and the selection link of the bid evaluation expert is also randomly selected by a decentralization network, so that the bid evaluation is realized under the condition of ensuring that the quotation is kept secret forever, all participants know the final bidding result, but cannot know the quotation of other parties. In addition, the bidding process can be traced and the block chain accounts are stored by the nodes of the block chain in a dispersed manner, so that a hacker can be prevented from attacking a centralized node to randomly tamper or illegally obtain bidding data, and the safety is greatly improved. Meanwhile, random numbers are added in the encryption process as interference factors, so that the effective information of other participants is prevented from being reversely deduced, the safety of the bidders is protected, and the fairness and the reliability of bidding are improved.
Drawings
FIG. 1 is a flow chart of a bidding method at the third-party device side according to an embodiment of the present disclosure;
fig. 2 is a flowchart of a bidding method at the side of a tenderer device according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a bidding method at the bidder device side according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a third-party device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a label issuing device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a bidder device according to an embodiment of the present disclosure.
Detailed Description
For a better understanding of the technical aspects of the present disclosure, reference is made to the following detailed description taken in conjunction with the accompanying drawings.
In order to construct a decentralized bidding method, random selection is carried out by a decentralized network in the selection link of a bid evaluation expert, and the bidding comparison is realized under the condition of ensuring that the quotation is kept secret forever, even a bid sender can only carry out fair comparison but cannot know the real quotation of the bidder. The present disclosure provides a bidding method, a third party device, a sponsor device and a bidder device. The following detailed description is made with reference to the accompanying drawings which respectively illustrate embodiments provided by the present disclosure.
In the initial stage, a block chain is constructed, and nodes in the block chain comprise a third-party device, a sponsor device and a plurality of bidder devices. And the node of each block chain corresponds to a block chain public key and a block chain private key, the block chain private key is stored in the node of the block chain, and the block chain public key is stored in the node of the block chain and is broadcasted to the block chain.
The following discussion is made in the disclosed embodiment taking as an example a total of three bidder devices (bidder device a, bidder device b, and bidder device c).
Fig. 1 is a flowchart illustrating a bidding method on the third-party device side according to an embodiment of the present disclosure. As shown in fig. 1, the bidding method provided by the present embodiment includes the following steps.
Step S101, in response to receiving the random numbers respectively corresponding to each bidder device and the first encryption results broadcasted by each bidder device broadcasted by the sponsor device in the block chain, respectively decrypting each first encryption result by using the block chain private key of the third party device to obtain each second difference value.
And S102, determining winning square equipment according to the random numbers and the second difference values.
Step S103, broadcasting the determined information of the winning party equipment in the block chain.
The first encryption result is generated by the fact that the bidder device receives a third encryption result broadcasted by the tenderer device in the block chain, a block chain private key of the tenderer device is used for decrypting a first difference value between the quotation of other tenderers and the random numbers corresponding to other tenderer devices, a second difference value between the first difference value and the quotation of the tenderer device is calculated, and a block chain public key of the third party device is used for encrypting the second difference value.
According to the bidding method provided by the embodiment of the disclosure, if a third-party device receives the random numbers corresponding to each bidding party device broadcasted by a bidding party device in a block chain and the first encryption result broadcasted by each bidding party device, the block chain private key of the third-party device is used for decryption to obtain each second difference value, the quoted price of each bidding party device is determined according to each random number and each second difference value, the bidding party device with the highest quoted price is determined according to the quoted price of each bidding party device to be used as a bidding party device, and the third-party device broadcasts the determined information of the winning bidding party device in the block chain. The embodiment of the disclosure provides a decentralization bidding method, and the selection link of the bid evaluation expert is also randomly selected by a decentralization network, so that the bid evaluation is realized under the condition of ensuring that the quotation is kept secret forever, all participants know the final bidding result, but cannot know the quotation of other parties. In addition, the bidding process can be traced and the block chain accounts are stored by the nodes of the block chain in a dispersed manner, so that a hacker can be prevented from attacking a centralized node to randomly tamper or illegally obtain bidding data, and the safety is greatly improved. Meanwhile, random numbers are added in the encryption process as interference factors, so that the effective information of other participants is prevented from being reversely deduced, the safety of the bidders is protected, and the fairness and the reliability of bidding are improved.
It should be noted that, the third-party device performs private key signature verification on the message, which is broadcast by the tenderer device and carries the random numbers corresponding to the respective bidder devices, by using the block chain public key of the tenderer device, and acquires the random numbers corresponding to the respective bidder devices after the verification is passed. And the third-party equipment performs private key signature verification on the message carrying the first encryption result broadcast by the bidder equipment by using the block chain public key of the bidder equipment, and acquires the first encryption result after the verification is passed.
In some embodiments, the determining a winning bid square device according to the random numbers and the second difference values (i.e., step S102) includes: respectively calculating the sum of the random number and each second difference value to obtain a third difference value of any two bidding parties; and determining winning square equipment according to the third difference.
In the disclosed embodiment, the third party device decrypts to obtain the second difference value in the form of B-Rb-A, C-Rc-A, A-Ra-C, B-Rb-C, C-Rc-B, A-Ra-B, and then adds Rb, Rc, Ra to the numbers to obtain the value of the third difference value, namely A-B, B-A, C-A, A-C, B-C, C-B, and the size of the quote (A, B, C) of each bidder device can be sorted according to whether the third difference value is greater than 0 or less than 0, but the specific value of ABC is unknown. According to the sorting result of A, B, C, the price listed at the top is selected as the bidding price, and the bidding party device corresponding to the bidding price is the bidding party device.
Note that a is a bid of the bidder device a, B is a bid of the bidder device B, C is a bid of the bidder device C, Ra is a random number corresponding to the bidder device a, Rb is a random number corresponding to the bidder device B, and Rc is a random number corresponding to the bidder device C.
Fig. 2 is a flowchart illustrating a bidding method at the side of a sponsor device according to an embodiment of the present disclosure. As shown in fig. 2, the bidding method provided in the present embodiment includes the following steps.
In step S201, a random number and a bid amount corresponding to each of the bidder devices are generated.
Step S202, the block chain public key of each bidder device is used for encrypting the corresponding random number to obtain a second encryption result of each bidder device.
Step S203 broadcasts the bidding document, each second encryption result, and the random number corresponding to each bidder device in the blockchain.
In the bidding method provided by the embodiment of the disclosure, the tenderer device generates random numbers and bidding documents corresponding to each bidder, encrypts the corresponding random numbers by using the public key of the block chain of the bidder device to obtain second encryption results ea (Ra), eb (Rb), ec (Rc) of each bidder device, and broadcasts the bidding documents ea (Ra), eb (Rb), ec (Rc), Ra, Rb and Rc in the block chain. The embodiment of the disclosure provides a decentralization bidding method, and the selection link of the bid evaluation expert is also randomly selected by a decentralization network, so that the bid evaluation is realized under the condition of ensuring that the quotation is kept secret forever, all participants know the final bidding result, but cannot know the quotation of other parties. In addition, the bidding process can be traced and the block chain accounts are stored by the nodes of the block chain in a dispersed manner, so that a hacker can be prevented from attacking a centralized node to randomly tamper or illegally obtain bidding data, and the safety is greatly improved. Meanwhile, random numbers are added in the encryption process as interference factors, so that the effective information of other participants is prevented from being reversely deduced, the safety of the bidders is protected, and the fairness and the reliability of bidding are improved.
In some embodiments, the method further comprises:
in response to receiving the encrypted bid-winning offer broadcast by the device of the bid-winning party in the block chain, decrypting by using a private key of the block chain of the device of the local bid-winning party to obtain the bid-winning offer; carrying out homomorphic encryption on bid-winning quotation to obtain a first ciphertext; respectively sending the first ciphertext to other bidder devices; responding to the received ciphertext combinations returned by each bidder device, and carrying out homomorphic decryption on each ciphertext combination to obtain each decryption result; and determining whether the winning party equipment is correct or not according to each decryption result.
In the embodiment of the disclosure, if the equipment of the bid-winning party receives the encrypted bid-winning offer broadcast by the equipment of the bid-winning party, the block chain private key of the equipment of the bid-winning party is used for decryption to obtain the bid-winning offer. The bidder device may only know bid-winning offers but may not know offers of bidder devices other than the bidding device. The bidding party device encrypts the bid-winning offer to obtain the first ciphertext, and calculates hen (a) (assuming that the bidding party device is the bidding party device a). The issuer device transmits hen (a) to the bidder device b and the bidder device c, respectively. If the sending-target device receives the ciphertext combination [ hen (A) -hen (B)) ] hen (Rb) returned by the bidding device B and receives the ciphertext combination [ hen (A) -hen (C)) ] hen (Rc) returned by the bidding device C, the sending-target device respectively performs homomorphic decryption on the [ hen (A) - (B)) ] hen (Rb) and the [ hen (A) - (C)) ] hen (Rc) to respectively obtain decryption results (A-B) × Rb and (A-C) × Rc. The quotes A, B, C may be sorted according to the sign of (a-B) × Rb and (a-C) × Rc. And if the A is determined to be the maximum value according to the sorting, the fact that the winning party equipment determined by the third party equipment is correct is shown.
If the winning-bid device is bidder device b or bidder device c, it is verified whether the winning-bid device is correct by the same procedure as described above.
It should be noted that, the above procedure for the apparatus as the target of bid to verify whether the apparatus as the target of bid is correct does not need to send messages between apparatuses, and may be implemented by broadcasting messages in the block chain by apparatuses.
It should be noted that the equipment of the bid-winning party needs to use the block chain public key of the equipment of the bid-winning party to perform private key signature verification on the message carrying the encrypted bid-winning offer broadcast by the equipment of the bid-winning party, and after the private key verification passes, the encrypted bid-winning offer is obtained.
FIG. 3 is a flow chart illustrating a bidding method at the bidder device side provided by an embodiment of the present disclosure. As shown in fig. 3, the bidding method provided in the present embodiment includes the following steps.
Step S301, in response to receiving the third encrypted result broadcasted by other bidding party devices in the block chain, decrypting the third encrypted result by using the block chain private key of the bidding party device to obtain a first difference value between the quotation of the other bidding party device and the random number corresponding to the other bidding party device.
Step S302, a second difference between the first difference and the bid of the local bidder device is calculated.
Step S303, encrypt the second difference value by using the public key of the block chain of the third-party device, so as to obtain a first encryption result.
Step S304, a first encryption result is broadcasted in the blockchain.
The third encryption result is generated after the other bidder devices receive the second encryption result broadcasted by the tenderer device in the block chain, the block chain private keys of the other bidder devices are used for decrypting the random numbers corresponding to the other bidder devices, the first difference between the other bidder offers and the random numbers corresponding to the other bidder devices is calculated, and the block chain public key of the bidder device is used for encrypting the first difference.
In the bidding method provided by the embodiment of the present disclosure, if the bidder device receives the third encrypted result broadcasted by another bidder device in the blockchain, the first difference "B-Rb" and "C-Rc" are obtained by decrypting with the blockchain private key of the bidder device (assuming that the bidder device is a), the second difference "B-Rb-a" and "C-Rc-a" between the first difference and the bid price of the bidder device are calculated, the first encrypted result is obtained by encrypting with the prestored blockchain public key of the third device, and the first encrypted result is broadcasted in the blockchain. The embodiment of the disclosure provides a decentralization bidding method, and the selection link of the bid evaluation expert is also randomly selected by a decentralization network, so that the bid evaluation is realized under the condition of ensuring that the quotation is kept secret forever, all participants know the final bidding result, but cannot know the quotation of other parties. In addition, the bidding process can be traced and the block chain accounts are stored by the nodes of the block chain in a dispersed manner, so that a hacker can be prevented from attacking a centralized node to randomly tamper or illegally obtain bidding data, and the safety is greatly improved. Meanwhile, random numbers are added in the encryption process as interference factors, so that the effective information of other participants is prevented from being reversely deduced, the safety of the bidders is protected, and the fairness and the reliability of bidding are improved.
The same procedure as described above is also executed for the bidder device b and the bidder device c.
It should be noted that, the local bidder device needs to perform private key signature verification on a message carrying a third encryption result and broadcast by other bidder devices by using the blockchain public key of the other bidder devices, and after the verification passes, obtain the third encryption result.
In some embodiments, the method further comprises:
in response to the receipt of the bidding document and the second encryption result broadcasted by the tenderer device in the block chain, decrypting the second encryption result by using the block chain private key of the tenderer device to obtain a random number corresponding to the tenderer device; calculating a first difference value between the quoted price of the bidding party device and the random number corresponding to the bidding party device; respectively encrypting the first difference value by using the block chain public keys of other bidder devices to obtain each third encryption result; each third encryption result is broadcast in the blockchain.
In the embodiment of the present disclosure, if the local bidder device receives the bid document and the second encryption result sent by the sending bidder device, the bid price of the local bidder device is determined according to the bid document, and the bid document is decrypted by using the block chain private key of the local bidder device to obtain Ra (assuming that the local bidder device is a), a first difference value a-Ra is calculated, and the a-Ra is encrypted by using the block chain public key of the bidder device b/c according to a predetermined algorithm to obtain a third encryption result Eb/c (a-Ra), and Eb/c (a-Ra) is broadcast in the block chain.
The same procedure as described above is also executed for the bidder device b and the bidder device c.
It should be noted that, the bidding party device needs to perform private key signature verification on the message carrying the bidding document and the second encryption result broadcast by the bidding party device by using the blockchain public key of the bidding party device, and after the verification is passed, the bidding document and the second encryption result in the message are obtained.
In some embodiments, the method further comprises:
receiving a first ciphertext broadcasted by a target sending device in the block chain; the bidding party performs homomorphic encryption to obtain a second ciphertext, and performs homomorphic encryption to obtain a third ciphertext according to the random number corresponding to the bidding party equipment; generating a ciphertext combination according to the first ciphertext, the second ciphertext and the third ciphertext; broadcasting the ciphertext combination in the blockchain.
In the embodiment of the disclosure, the bidder device B receives hen (a) broadcasted by the bidder device, encrypts the offer B of the bidder device B in a homomorphic manner to obtain a second ciphertext hen (B), encrypts the random number Rb corresponding to the bidder device B in a homomorphic manner to obtain a third ciphertext hen (Rb), generates a ciphertext combination [ hen (a) -hen (B) ]) hen (Rb) according to a preset algorithm, and returns [ hen (a) -hen (B) ]) hen (Rb) to the bidder device. Meanwhile, the bidder device C receives the hen (A) sent by the sending target device, the quotation C of the bidder device C is encrypted in a homomorphic manner to obtain a second ciphertext hen (C), the random number Rc corresponding to the bidder device C is encrypted in a homomorphic manner to obtain a third ciphertext hen (Rc), a ciphertext combination [ hen (A) -hen (C) ] _ hen (Rc) is generated according to a preset algorithm, and the [ hen (A) -hen (C) ] _ hen (Rc) is returned to the sending target device. And verifying whether the winning party equipment determined by the third party equipment is correct or not by the issuing party equipment.
It should be noted that, the above procedure for the apparatus as the target of bid to verify whether the apparatus as the target of bid is correct does not need to send messages between apparatuses, and may be implemented by broadcasting messages in the block chain by apparatuses.
It should be noted that, the bidder device needs to perform private key signature verification on a message carrying a first ciphertext and broadcast by the tenderer device by using the block chain public key of the tenderer device, and after the verification passes, obtain the first ciphertext.
In some embodiments, the method further comprises:
and in response to the fact that the information of the successful bid party equipment broadcasted by the third party equipment in the block chain is received and the information of the successful bid party equipment is consistent with the information of the local bidder equipment, encrypting the successful bid quotation of the local bidder equipment by using the block chain public key of the tenderer equipment, and broadcasting the encrypted successful bid quotation in the block chain. The equipment of the sending party can decrypt the encrypted bid-winning quotation by using the private key of the block chain of the equipment of the sending party to obtain the bid-winning quotation. The bidder device may only know bid-winning offers but may not know offers of bidder devices other than the bidding device.
In a preferred embodiment, each bidder device may also actively acquire information of the winning bidder device from the third party device to determine whether it is the winning bidder device.
It should be noted that, the bidder device needs to perform private key signature verification on a message, which is broadcast by the third party device and carries information of the successful bidding party device, by using the block chain public key of the third party device, and after the verification is passed, information of the successful bidding party device in the message is acquired.
Fig. 4 shows a schematic structural diagram of a third-party device provided in an embodiment of the present disclosure. Based on the same technical concept as the embodiment corresponding to fig. 1, as shown in fig. 4, the third-party device provided by the embodiment of the present disclosure includes the following modules.
The decryption module 11 is configured to, in response to receiving the random number respectively corresponding to each bidder device that is broadcast by the sponsor device in the block chain and the first encryption result broadcast by each bidder device, decrypt each first encryption result by using a block chain private key of the third party device, to obtain each second difference value; the first encryption result is generated by the fact that the bidder equipment receives a third encryption result broadcasted by the tenderer equipment in the block chain, a block chain private key of the tenderer equipment is used for decrypting a first difference value between the quotation of other tenderers and random numbers corresponding to other tenderer equipment, a second difference value between the first difference value and the quotation of the tenderer equipment is calculated, and a block chain public key of the third party equipment is used for encrypting the second difference value;
a determining module 12, configured to determine winning square equipment according to each of the random numbers and each of the second difference values;
and a broadcasting module 13, configured to broadcast the determined information of the winning bidder device in the block chain.
In some embodiments, the determining module 12 is specifically configured to:
respectively calculating the sum of the random number and each second difference value to obtain a third difference value of any two bidding parties;
and determining winning square equipment according to the third difference.
Fig. 5 shows a schematic structural diagram of a beacon device provided in an embodiment of the present disclosure. Based on the same technical concept as the embodiment corresponding to fig. 2, as shown in fig. 5, the apparatus for serving a target provided by the embodiment of the present disclosure includes the following modules.
A generating module 21, configured to generate random numbers and bidding documents corresponding to the respective bidder devices;
the first encryption module 22 is configured to encrypt the corresponding random number by using the locally stored block chain public key of each bidder device to obtain a second encryption result of each bidder device;
and a broadcasting module 23, configured to broadcast the bidding document, each second encryption result, and the random number corresponding to each bidder device in the blockchain.
In some embodiments, further comprising:
the first decryption module is used for responding to the encrypted bid-winning offer broadcast by the device of the bid-winning party in the block chain and decrypting the bid-winning offer by using a private key of the block chain of the device of the local bid-winning party to obtain the bid-winning offer;
the second encryption module is used for homomorphically encrypting the bid-winning quotation to obtain a first ciphertext;
the sending module 23 is further configured to send the first ciphertext to other bidder devices respectively;
the second decryption module is used for responding to the received ciphertext combinations returned by each bidder device and carrying out homomorphic decryption on each ciphertext combination to obtain each decryption result;
and the determining module is used for determining whether the winning party equipment is correct or not according to each decryption result.
FIG. 6 is a schematic structural diagram of a bidder device provided by an embodiment of the disclosure. Based on the same technical concept as the embodiment corresponding to fig. 3, as shown in fig. 6, the bidder device provided by the embodiment of the present disclosure includes the following modules.
The first decryption module 31 is configured to, in response to receiving a third encryption result broadcasted by another bidder device in the block chain, decrypt the third encryption result by using a block chain private key of the local bidder device to obtain a first difference between the quotation of the other bidder device and the random number corresponding to the other bidder device; the third encryption result is generated after the other bidder equipment receives a second encryption result broadcasted by the bidder equipment in the block chain, decrypts the random numbers corresponding to the other bidder equipment by using the block chain private key of the other bidder equipment, calculates a first difference value between the other bidder quotation and the random numbers corresponding to the other bidder equipment, and encrypts the first difference value by using the block chain public key of the bidder equipment;
a first calculating module 32, configured to calculate a second difference between the first difference and the offer of the present bidder device;
the first encryption module 33 is configured to encrypt the second difference value by using a public key of a block chain of the third-party device to obtain a first encryption result;
a first broadcasting module 34, configured to broadcast the first encryption result in the blockchain.
In some embodiments, further comprising:
the second decryption module is used for responding to the received bidding document and the second encryption result broadcasted by the sending party equipment in the block chain, and decrypting the second encryption result by using the block chain private key of the local bidding party equipment to obtain the random number corresponding to the local bidding party equipment;
the second calculation module is used for calculating a first difference value between the quoted price of the bidding party device and the random number corresponding to the bidding party device;
the second encryption module is used for encrypting the first difference values by using the block chain public keys of other bidder devices respectively to obtain third encryption results;
and the second broadcasting module is used for broadcasting each third encryption result in the block chain.
In some embodiments, further comprising:
the receiving module is used for receiving a first ciphertext broadcasted by the mark sending device in the block chain;
the third encryption module is used for homomorphically encrypting the bidding party to obtain a second ciphertext and homomorphically encrypting the random number corresponding to the bidding party device to obtain a third ciphertext;
a generating module, configured to generate a ciphertext combination according to the first ciphertext, the second ciphertext, and the third ciphertext;
and the third broadcasting module is used for broadcasting the ciphertext combination in the block chain.
In some embodiments, further comprising:
the fourth encryption module is used for responding to the information of the successful bid party equipment broadcast by the third party equipment in the received block chain, and the information of the successful bid party equipment is consistent with the information of the local bidder equipment, and encrypting the successful bid quotation of the local bidder equipment by using the block chain public key of the local bidder equipment;
and the fourth broadcasting module is used for broadcasting the encrypted bid-winning quotation in the block chain.
It is to be understood that the above embodiments are merely exemplary embodiments that are employed to illustrate the principles of the present disclosure, and that the present disclosure is not limited thereto. It will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the disclosure, and these are to be considered as the scope of the disclosure.
Claims (11)
1. A bidding method, comprising:
in response to receiving the random numbers respectively corresponding to each bidder device and the first encryption results broadcasted by each bidder device, which are broadcasted by a sponsor device in the block chain, decrypting each first encryption result by using a block chain private key of the third-party device to obtain each second difference value; the first encryption result is generated by the fact that the bidder equipment receives a third encryption result broadcasted by the tenderer equipment in the block chain, a block chain private key of the tenderer equipment is used for decrypting a first difference value between the quotation of other tenderers and random numbers corresponding to other tenderer equipment, a second difference value between the first difference value and the quotation of the tenderer equipment is calculated, and a block chain public key of the third party equipment is used for encrypting the second difference value;
determining winning square equipment according to the random numbers and the second difference values;
and broadcasting the determined information of the winning party equipment in the block chain.
2. The bidding method according to claim 1, wherein said determining a winning bid party device according to each of said random numbers and each of said second difference values comprises:
respectively calculating the sum of the random number and each second difference value to obtain a third difference value of any two bidding parties;
and determining winning square equipment according to the third difference.
3. A bidding method, comprising:
generating random numbers and bidding documents respectively corresponding to each bidder device;
encrypting the corresponding random number by using the block chain public key of each bidder device to obtain a second encryption result of each bidder device;
and broadcasting the bidding document, each second encryption result and the random number corresponding to each bidder device in the block chain.
4. The bidding method of claim 3, wherein said method further comprises:
in response to receiving the encrypted bid-winning offer broadcast by the device of the bid-winning party in the block chain, decrypting by using a private key of the block chain of the device of the local bid-winning party to obtain the bid-winning offer;
encrypting the bid-winning quotation in a homomorphic way to obtain a first ciphertext;
respectively sending the first ciphertext to other bidder devices;
responding to the received ciphertext combinations returned by each bidder device, and carrying out homomorphic decryption on each ciphertext combination to obtain each decryption result;
and determining whether the winning party equipment is correct or not according to each decryption result.
5. A bidding method, comprising:
in response to receiving a third encryption result broadcasted by other bidder devices in a block chain, decrypting the third encryption result by using a block chain private key of the bidder device to obtain a first difference value between the quotation of the other bidder devices and the random number corresponding to the other bidder devices; the third encryption result is generated after the other bidder equipment receives a second encryption result broadcasted by the bidder equipment in the block chain, decrypts the random numbers corresponding to the other bidder equipment by using the block chain private key of the other bidder equipment, calculates a first difference value between the other bidder quotation and the random numbers corresponding to the other bidder equipment, and encrypts the first difference value by using the block chain public key of the bidder equipment;
calculating a second difference value between the first difference value and the quoted price of the device of the bidding party;
encrypting the second difference value by using a block chain public key of third-party equipment to obtain a first encryption result;
broadcasting the first encryption result in the blockchain.
6. The bidding method of claim 5, wherein the method further comprises:
in response to the receipt of the bidding document and the second encryption result broadcasted by the tenderer device in the block chain, decrypting the second encryption result by using the block chain private key of the tenderer device to obtain a random number corresponding to the tenderer device;
calculating a first difference value between the quoted price of the bidding party device and the random number corresponding to the bidding party device;
encrypting the first difference values by using the block chain public keys of other bidder devices respectively to obtain third encryption results;
each third encryption result is broadcast in the blockchain.
7. The bidding method of claim 5, wherein the method further comprises:
receiving a first ciphertext broadcasted by a target sending device in the block chain;
the bidding party performs homomorphic encryption to obtain a second ciphertext, and performs homomorphic encryption to obtain a third ciphertext according to the random number corresponding to the bidding party equipment;
generating a ciphertext combination according to the first ciphertext, the second ciphertext and the third ciphertext;
broadcasting the ciphertext combination in the blockchain.
8. The bidding method of claim 7, wherein the method further comprises:
and in response to the fact that the information of the successful bid party equipment broadcasted by the third party equipment in the block chain is received and the information of the successful bid party equipment is consistent with the information of the local bidder equipment, encrypting the successful bid quotation of the local bidder equipment by using the block chain public key of the tenderer equipment, and broadcasting the encrypted successful bid quotation in the block chain.
9. A third party device, comprising:
the decryption module is used for responding to the random numbers respectively corresponding to the bidding party devices and the first encryption results broadcasted by the bidding party devices, and decrypting the first encryption results by using the block chain private key of the third party device to obtain second difference values; the first encryption result is generated by the fact that the bidder equipment receives a third encryption result broadcasted by the tenderer equipment in the block chain, a block chain private key of the tenderer equipment is used for decrypting a first difference value between the quotation of other tenderers and random numbers corresponding to other tenderer equipment, a second difference value between the first difference value and the quotation of the tenderer equipment is calculated, and a block chain public key of the third party equipment is used for encrypting the second difference value;
the determining module is used for determining winning square equipment according to the random numbers and the second difference values;
and the broadcasting module is used for broadcasting the determined information of the winning party equipment in the block chain.
10. A caller device, comprising:
the generation module is used for generating random numbers and bidding documents respectively corresponding to each bidder device;
the encryption module is used for encrypting the corresponding random number by using the locally stored block chain public key of each bidder device to obtain a second encryption result of each bidder device;
and the broadcasting module is used for broadcasting the second encryption results and the random numbers respectively corresponding to the bidder devices in the block chain.
11. A bidder device, comprising:
the decryption module is used for responding to a third encryption result broadcasted by other bidding party equipment in the received block chain, decrypting the third encryption result by using a block chain private key of the bidding party equipment to obtain a first difference value between the quotation of the other bidding party equipment and the random number corresponding to the other bidding party equipment; the third encryption result is generated after the other bidder equipment receives a second encryption result broadcasted by the bidder equipment in the block chain, decrypts the random numbers corresponding to the other bidder equipment by using the block chain private key of the other bidder equipment, calculates a first difference value between the other bidder quotation and the random numbers corresponding to the other bidder equipment, and encrypts the first difference value by using the block chain public key of the bidder equipment;
the calculating module is used for calculating a second difference value between the first difference value and the quoted price of the bidding party equipment;
the encryption module is used for encrypting the second difference value by using a block chain public key of the third-party equipment to obtain a first encryption result;
a broadcasting module for broadcasting the first encryption result in the block chain.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110559635.5A CN113191863B (en) | 2021-05-21 | 2021-05-21 | Bid method, third party device, bid issuing party device and bid issuing party device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110559635.5A CN113191863B (en) | 2021-05-21 | 2021-05-21 | Bid method, third party device, bid issuing party device and bid issuing party device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113191863A true CN113191863A (en) | 2021-07-30 |
CN113191863B CN113191863B (en) | 2023-06-23 |
Family
ID=76984639
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110559635.5A Active CN113191863B (en) | 2021-05-21 | 2021-05-21 | Bid method, third party device, bid issuing party device and bid issuing party device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113191863B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113837558A (en) * | 2021-08-31 | 2021-12-24 | 远光软件股份有限公司 | Bidding evaluation method and related device |
CN115879135A (en) * | 2023-01-05 | 2023-03-31 | 中国联合网络通信集团有限公司 | Bidding data processing method, apparatus, device and storage medium |
CN115906182A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Data comparison processing method, device, equipment and storage medium |
CN115906140A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Bidding data processing method, device, equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108305156A (en) * | 2017-12-29 | 2018-07-20 | 重庆金融资产交易所有限责任公司 | Real time bid method, apparatus, equipment and storage medium based on block chain |
CN108650073A (en) * | 2018-05-07 | 2018-10-12 | 浙江工商大学 | A kind of secret protection price competing method based on block chain |
CN109858893A (en) * | 2019-03-12 | 2019-06-07 | 黑龙江世纪精彩科技有限公司 | A kind of bidding contract administration method based on block chain |
CN110020928A (en) * | 2019-03-26 | 2019-07-16 | 武汉大学 | Anti- conspiracy attack network auction method based on block chain intelligence contract |
CN110572819A (en) * | 2019-07-27 | 2019-12-13 | 中国人民解放军战略支援部队信息工程大学 | Block chain-based multi-domain wireless Mesh network cross-domain authentication method and system |
CN110648191A (en) * | 2019-08-16 | 2020-01-03 | 国家电网有限公司 | Joint quotation method and system for power generator electric energy and standby market |
CN110827121A (en) * | 2019-10-22 | 2020-02-21 | 全链通有限公司 | Block chain-based electronic bidding method, device and storage medium |
CN111538479A (en) * | 2020-04-27 | 2020-08-14 | 国泰新点软件股份有限公司 | Random parameter generation method and device in label opening process |
CN112288523A (en) * | 2020-10-29 | 2021-01-29 | 中国银联股份有限公司 | Block chain based numerical ranking method and device |
CN112348596A (en) * | 2020-11-26 | 2021-02-09 | 中国联合网络通信集团有限公司 | Bidding and quotation method, system, equipment and storage medium based on block chain |
-
2021
- 2021-05-21 CN CN202110559635.5A patent/CN113191863B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108305156A (en) * | 2017-12-29 | 2018-07-20 | 重庆金融资产交易所有限责任公司 | Real time bid method, apparatus, equipment and storage medium based on block chain |
CN108650073A (en) * | 2018-05-07 | 2018-10-12 | 浙江工商大学 | A kind of secret protection price competing method based on block chain |
CN109858893A (en) * | 2019-03-12 | 2019-06-07 | 黑龙江世纪精彩科技有限公司 | A kind of bidding contract administration method based on block chain |
CN110020928A (en) * | 2019-03-26 | 2019-07-16 | 武汉大学 | Anti- conspiracy attack network auction method based on block chain intelligence contract |
CN110572819A (en) * | 2019-07-27 | 2019-12-13 | 中国人民解放军战略支援部队信息工程大学 | Block chain-based multi-domain wireless Mesh network cross-domain authentication method and system |
CN110648191A (en) * | 2019-08-16 | 2020-01-03 | 国家电网有限公司 | Joint quotation method and system for power generator electric energy and standby market |
CN110827121A (en) * | 2019-10-22 | 2020-02-21 | 全链通有限公司 | Block chain-based electronic bidding method, device and storage medium |
CN111538479A (en) * | 2020-04-27 | 2020-08-14 | 国泰新点软件股份有限公司 | Random parameter generation method and device in label opening process |
CN112288523A (en) * | 2020-10-29 | 2021-01-29 | 中国银联股份有限公司 | Block chain based numerical ranking method and device |
CN112348596A (en) * | 2020-11-26 | 2021-02-09 | 中国联合网络通信集团有限公司 | Bidding and quotation method, system, equipment and storage medium based on block chain |
Non-Patent Citations (1)
Title |
---|
李蓓 等: "基于区块链的密封式投标拍卖方案", 《计算机应用》, vol. 41, no. 4, pages 999 - 1004 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113837558A (en) * | 2021-08-31 | 2021-12-24 | 远光软件股份有限公司 | Bidding evaluation method and related device |
CN115879135A (en) * | 2023-01-05 | 2023-03-31 | 中国联合网络通信集团有限公司 | Bidding data processing method, apparatus, device and storage medium |
CN115906182A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Data comparison processing method, device, equipment and storage medium |
CN115906140A (en) * | 2023-01-05 | 2023-04-04 | 中国联合网络通信集团有限公司 | Bidding data processing method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113191863B (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106603233B (en) | Encryption and decryption method for remote bid opening type bidding system | |
CN113191863B (en) | Bid method, third party device, bid issuing party device and bid issuing party device | |
KR0148300B1 (en) | Method for sharing secret information, generating a digital signature, and performing certification in a communication system that has a plurality of information processing apparatus and a communication system that employs such a method | |
CN110751544A (en) | Bidding information, supervision information and bid evaluation information processing method, terminal and system | |
US6298153B1 (en) | Digital signature method and information communication system and apparatus using such method | |
US6512829B1 (en) | Key distribution method and system in secure broadcast communication | |
CN102802036B (en) | System and method for identifying digital television | |
US20110194698A1 (en) | Key Sharing System | |
EP2182672A1 (en) | Method, system and equipment for key distribution | |
KR100971992B1 (en) | Method and apparatus for group key generation | |
CN108599925A (en) | A kind of modified AKA identity authorization systems and method based on quantum communication network | |
CN110365662B (en) | Business approval method and device | |
CN112733163B (en) | Monitorable zero-knowledge proof method and device based on discrete logarithm equality proof | |
JP2022521525A (en) | Cryptographic method for validating data | |
JP5093513B2 (en) | Unauthorized person revocation system, encryption device, encryption method and program | |
CN114491578A (en) | Security data aggregation method for privacy calculation | |
CN103493428A (en) | Data encryption | |
US11729231B2 (en) | Secure multi-party random bit generation | |
CN110796448A (en) | Intelligent contract verification method based on block chain, participating node and medium | |
CN113191862B (en) | Electronic bidding method, third party device, bidding party device and bidding party device | |
CN111314059B (en) | Processing method, device and equipment for account authority proxy and readable storage medium | |
CN115941773A (en) | Project transaction method, system, terminal device and medium based on cloud service sharing | |
CN111526131B (en) | Anti-quantum-computation electronic official document transmission method and system based on secret sharing and quantum communication service station | |
CN116703495A (en) | Auction method, network device, server, and storage medium | |
CN109104393B (en) | Identity authentication method, device and system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |