CN111769945B - Auction processing method based on block chain and block chain link point - Google Patents

Auction processing method based on block chain and block chain link point Download PDF

Info

Publication number
CN111769945B
CN111769945B CN201910571838.9A CN201910571838A CN111769945B CN 111769945 B CN111769945 B CN 111769945B CN 201910571838 A CN201910571838 A CN 201910571838A CN 111769945 B CN111769945 B CN 111769945B
Authority
CN
China
Prior art keywords
auction
information
node
auctioneer
player
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.)
Active
Application number
CN201910571838.9A
Other languages
Chinese (zh)
Other versions
CN111769945A (en
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.)
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Wodong Tianjun Information Technology 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 Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Wodong Tianjun Information Technology Co Ltd
Priority to CN201910571838.9A priority Critical patent/CN111769945B/en
Publication of CN111769945A publication Critical patent/CN111769945A/en
Application granted granted Critical
Publication of CN111769945B publication Critical patent/CN111769945B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
    • H04L9/3252Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures using DSA or related signature schemes, e.g. elliptic based signatures, ElGamal or Schnorr schemes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • H04L63/0442Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • H04L2209/466Electronic auction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • H04L9/3239Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions involving non-keyed hash functions, e.g. modification detection codes [MDCs], MD5, SHA or RIPEMD
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The invention provides an auction processing method based on a blockchain and a blockchain node. The auction processing method based on the blockchain comprises the following steps: the auction node encrypts auction information of the auction player and identification information of the auction player to obtain encryption information of the auction player; before the auction information is uploaded to the deadline, storing the encryption information of the auction player into the blockchain so that the node of the auction player can acquire the encryption information of the auction player; after the auction information is uploaded for the expiration time and before the auction results publish the expiration time, the auction player's decryption parameters are stored into the blockchain. The auction processing method based on the blockchain improves the privacy, safety and anonymity of information released in the blockchain in the auction process and improves the credibility of an auction platform.

Description

Auction processing method based on block chain and block chain link point
Technical Field
The invention relates to the technical field of blockchains, in particular to an auction processing method based on blockchains and blockchain nodes.
Background
Blockchain technology is a brand new distributed infrastructure and computing method that uses a chained data structure that combines data blocks in a sequential manner in time order to verify and store data, uses a distributed node consensus algorithm to generate and update data, uses cryptography to secure data transfer and access, and uses intelligent contracts composed of automated script code to program and manipulate data.
The blockchain technology is applied to the auction, and the characteristics of decentralization, tamper resistance and the like can be utilized to improve the credibility and transparency of the auction platform. In a blockchain architecture, blockchain nodes may have the ability to sign public and private key pairs to complete ledger transactions.
Currently, in the auction process, the identity information of the auction player, the auction amount, and other related information are stored in the transaction content in a clear text form, which may result in a lack of privacy in the auction process. For example, an auctioneer may reveal to some auctioneers the identity information and auction amounts of other auctioneers before the auction begins. For another example, after the auction results are disclosed, the auctioneer declares a lower bidding auction winning, but other auctioneers cannot verify the auction results. This results in a lower confidence in the auction platform.
Disclosure of Invention
The invention provides an auction processing method based on a blockchain and a blockchain node, which improves the credibility of an auction platform.
In a first aspect, the present invention provides a blockchain-based auction processing method, including:
the auction method comprises the steps that a auction node obtains auction information of an auction player, wherein the auction information is generated according to auction information of the auction player;
The auction player node encrypts the auction information of the auction player and the identification information of the auction player to obtain the encryption information of the auction player;
before the auction information corresponding to the auction information is uploaded to the deadline, the node of the auction stores the encryption information of the auction to a blockchain so that the node of the auction obtains the encryption information of the auction;
after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time, the node of the auction player stores decryption parameters of the auction player into a blockchain; wherein the decryption parameters of the auctioneer are used for the auctioneer node to decrypt the encryption information of the auctioneer to obtain the auctioneer information of the auctioneer.
Optionally, in a possible implementation manner of the first aspect, the encrypting, by the auctioneer node, the auctioneer's auctioneer information and the auctioneer's identification information, to obtain the auctioneer's encrypted information includes:
the auction player node obtains encryption information of the auction player according to the temporary public key of the auction player node, the auction information of the auction player, the temporary public key of the auction player node and the identification information of the auction player;
Wherein the decryption parameters of the auctioneer include a temporary public key of the auctioneer node.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
the bidder node obtains a first random number; wherein the first random number is used as a temporary private key of the auction player node;
and the auction player node generates a temporary public key of the auction player node according to the preset parameter and the first random number.
Optionally, in a possible implementation manner of the first aspect, the obtaining, by the auctioneer node, encryption information of the auctioneer according to the temporary public key of the auctioneer node, the auctioneer's auction information, the temporary public key of the auctioneer node, and the identification information of the auctioneer includes:
the auction player node obtains first intermediate information according to the temporary private key of the auction player node and the temporary public key of the auction player node;
the auction player node generates second intermediate information according to the auction information of the auction player, the temporary public key of the auction player node, preset parameters and the long-term public key of the auction player node;
and the auction player node obtains encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player.
Optionally, in a possible implementation manner of the first aspect, the second intermediate information includes first sub intermediate information and second sub intermediate information;
the auction player node generates second intermediate information according to the auction information of the auction player, the temporary public key of the auction player node, preset parameters and the long-term public key of the auction player node, and the second intermediate information comprises:
the auction player node generates an intermediate parameter according to the auction information of the auction player and the temporary public key of the auction player node;
the auction player node obtains the first sub-intermediate information according to the intermediate parameter and the preset parameter;
the auction player node obtains the second sub-intermediate information according to the first sub-intermediate information, the intermediate parameter, the long-term public key of the auction player node, the auction information of the auction player and the temporary public key of the auction player node.
Optionally, in a possible implementation manner of the first aspect, the obtaining, by the auctioneer node, encrypted information of the auctioneer according to the first intermediate information, the second intermediate information, and the identification information of the auctioneer includes:
and after the auction player node connects binary numbers corresponding to the second intermediate information and the identification information of the auction player respectively, binary numbers corresponding to the first intermediate information are subjected to bitwise exclusive OR operation to obtain encryption information of the auction player.
Optionally, in a possible implementation manner of the first aspect, the binary length of the first intermediate information is equal to a sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
after the auction result publishes the expiration time, the auction node stores the temporary private key of the auction node into the blockchain to request arbitration from the arbiter node.
Optionally, in a possible implementation manner of the first aspect, the method further includes:
after the auction result publishes the expiration time, the auction player node stores the auction information of the auction player and the identification information of the auction player into a blockchain to request arbitration from the arbiter node.
In a second aspect, the present invention provides a blockchain-based auction processing method, including:
the auctioneer node acquires the encryption information of the auctioneer stored in the block chain before the auction information corresponding to the auction information of the auctioneer uploads the expiration time;
the auctioneer node acquires decryption parameters of the auctioneer stored in a blockchain after the auction information is uploaded and before the auction result corresponding to the auction information publishes the deadline by the auctioneer node;
The auctioneer node obtains the auction information of the auctioneer and the identification information of the auctioneer according to the decryption parameters of the auctioneer and the encryption information of the auctioneer.
Optionally, in a possible implementation manner of the second aspect, the decryption parameter of the auctioneer includes a temporary public key of the auctioneer node, and the auctioneer node obtains the auctioneer information of the auctioneer and the identification information of the auctioneer according to the decryption parameter of the auctioneer and the encryption information of the auctioneer, including:
the auctioneer node obtains the auction information of the auctioneer and the identification information of the auctioneer according to the temporary private key of the auctioneer node, the temporary public key of the auctioneer node and the encryption information of the auctioneer.
Optionally, in a possible implementation manner of the second aspect, the method further includes:
the auctioneer node obtains a second random number; wherein the second random number is used as a temporary private key of the auctioneer node;
the auctioneer node generates a temporary public key of the auctioneer node according to the preset parameters and the second random number;
the auctioneer node stores the temporary public key of the auctioneer node into the blockchain to enable the auctioneer node to obtain the temporary public key of the auctioneer node.
Optionally, in a possible implementation manner of the second aspect, the obtaining, by the auctioneer node, auction information of the auctioneer and identification information of the auctioneer according to the temporary private key of the auctioneer node, the temporary public key of the auctioneer node, and encryption information of the auctioneer includes:
the auctioneer node obtains first intermediate information according to the temporary public key of the auctioneer node and the temporary private key of the auctioneer node;
the auctioneer node obtains second intermediate information and the identification information of the auctioneer according to the first intermediate information and the encryption information of the auctioneer;
and the auctioneer node obtains the auction information of the auctioneer according to the second intermediate information, the preset parameters, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node.
Optionally, in a possible implementation manner of the second aspect, the second intermediate information includes first sub intermediate information and second sub intermediate information;
the auctioneer node obtains the auction information of the auctioneer according to the second intermediate information, the preset parameters, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node, and the method comprises the following steps:
The auctioneer node obtains intermediate parameters according to the first sub-intermediate information and the preset parameters;
the auctioneer node obtains the auction information of the auctioneer according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node.
Optionally, in a possible implementation manner of the second aspect, the obtaining, by the auctioneer node, auction information of the auctioneer according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, a long term public key of the auctioneer node, and a temporary public key of the auctioneer node includes:
the auctioneer node obtains first auction information according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node;
the auctioneer node obtains second auction information according to the intermediate parameters and the temporary public key of the auctioneer node;
when the first auction information and the second auction information are the same, the auctioneer node takes either one of the first auction information and the second auction information as auction information of the auctioneer.
Optionally, in a possible implementation manner of the second aspect, the auctioneer node obtains second intermediate information and identification information of the auctioneer according to the first intermediate information and encryption information of the auctioneer, including:
and the auctioneer node performs exclusive OR operation on the first intermediate information and the encryption information of the auctioneer to obtain the second intermediate information and the identification information of the auctioneer.
Optionally, in a possible implementation manner of the second aspect, the binary length of the first intermediate information is equal to a sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
Optionally, in a possible implementation manner of the second aspect, the method further includes:
the auctioneer node stores auctioning information of the auctioneer into a blockchain.
In a third aspect, the present invention provides a blockchain-based auction processing method, including:
after the auction result publishes the expiration time, the arbiter node acquires a temporary private key of the auction player node stored in the blockchain after the auction result publishes the expiration time and encryption information of the auction player stored in the blockchain before the auction information uploads the expiration time;
The arbiter node obtains first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and encryption information of the auction player;
the arbiter node determines whether the auction result is disclosed according to the first auction information of the auction bidder.
Optionally, in a possible implementation manner of the third aspect, the method further includes:
after the auction result publication deadline, the arbiter node obtains second auction information of the auction player and second identification information of the auction player stored by the auction player node to a blockchain after the auction result publication deadline;
the arbiter node determines whether the auction result is disclosed according to the first auction information of the auction master, including:
when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, the arbiter node determines whether the auction result is disclosed according to the first auction information of the auctioneer.
Optionally, in a possible implementation manner of the third aspect, the obtaining, by the arbiter node, the first auction information of the auction and the first identification information of the auction according to the temporary private key of the auction node, the temporary public key of the auction node, and the encryption information of the auction includes:
The arbiter node obtains first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node;
the arbiter node obtains second intermediate information and first identification information of the auction player according to the first intermediate information and encryption information of the auction player;
and the arbiter node obtains the first auction information of the auction according to the second intermediate information, the preset parameters, the long-term public key of the auction node and the temporary public key of the auction node.
In a fourth aspect, the present invention provides a blockchain node as an auction node comprising:
the first acquisition module is used for acquiring auction information of the auction participants, wherein the auction information is generated according to auction information of the auction participants;
the processing module is used for carrying out encryption processing on the auction information of the auction player and the identification information of the auction player to obtain encryption information of the auction player;
the first storage module is used for storing the encryption information of the auction player into the blockchain before the auction information corresponding to the auction information is uploaded to the expiration time so that the node of the auction player can acquire the encryption information of the auction player;
The second storage module is used for storing decryption parameters of the auction players into the blockchain after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time; wherein the decryption parameters of the auctioneer are used for the auctioneer node to decrypt the encryption information of the auctioneer to obtain the auctioneer information of the auctioneer.
Optionally, in a possible implementation manner of the fourth aspect, the processing module is specifically configured to:
obtaining encryption information of the auction player according to the temporary public key of the auction player node, the auction information of the auction player, the temporary public key of the auction player node and the identification information of the auction player;
wherein the decryption parameters of the auctioneer include a temporary public key of the auctioneer node.
Optionally, in a possible implementation manner of the fourth aspect, the method further includes a second obtaining module, where the second obtaining module is configured to:
acquiring a first random number; wherein the first random number is used as a temporary private key of the auction player node;
and generating a temporary public key of the auction node according to the preset parameter and the first random number.
Optionally, in a possible implementation manner of the fourth aspect, the processing module is specifically configured to:
obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node;
generating second intermediate information according to the auction information of the auction player, the temporary public key of the node of the auction player, preset parameters and the long-term public key of the node of the auction player;
and obtaining the encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player.
Optionally, in a possible implementation manner of the fourth aspect, the second intermediate information includes first sub intermediate information and second sub intermediate information;
the processing module is specifically configured to:
generating an intermediate parameter according to the auction information of the auction player and the temporary public key of the node of the auction player;
obtaining the first sub-intermediate information according to the intermediate parameter and the preset parameter;
and obtaining the second sub-intermediate information according to the first sub-intermediate information, the intermediate parameter, the long-term public key of the auction node, the auction information of the auction and the temporary public key of the auction node.
Optionally, in a possible implementation manner of the fourth aspect, the processing module is specifically configured to:
and after the binary numbers corresponding to the second intermediate information and the identification information of the auction player are respectively connected, carrying out bit exclusive OR operation on the binary numbers corresponding to the first intermediate information to obtain the encryption information of the auction player.
Optionally, in a possible implementation manner of the fourth aspect, the binary length of the first intermediate information is equal to a sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
Optionally, in a possible implementation manner of the fourth aspect, a third storage module is further included, where the third storage module is configured to:
after the auction result publishes the expiration time, the temporary private key of the auction node is stored into the blockchain to request arbitration from the arbiter node.
Optionally, in a possible implementation manner of the fourth aspect, the third storage module is further configured to:
after the auction result publishes the expiration time, the auction information of the auction player and the identification information of the auction player are stored into a blockchain to request arbitration from the arbiter node.
In a fifth aspect, the present invention provides a blockchain node as an auctioneer node comprising:
the first acquisition module is used for acquiring the encryption information of the auction player stored in the blockchain before the auction information uploading deadline corresponding to the auction information of the auction player by the node of the auction player;
the second acquisition module is used for acquiring decryption parameters of the auction participants stored in the blockchain by the nodes of the auction participants after the auction information is uploaded for the deadline and before the auction result corresponding to the auction information is published for the deadline;
and the processing module is used for obtaining the auction information of the auction player and the identification information of the auction player according to the decryption parameters of the auction player and the encryption information of the auction player.
Optionally, in a possible implementation manner of the fifth aspect, the decryption parameter of the auctioneer includes a temporary public key of the auctioneer node, and the processing module is specifically configured to:
and obtaining the auction information of the auction player and the identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and the encryption information of the auction player.
Optionally, in a possible implementation manner of the fifth aspect, the apparatus further includes a third obtaining module, where the third obtaining module is configured to:
Acquiring a second random number; wherein the second random number is used as a temporary private key of the auctioneer node;
generating a temporary public key of the auctioneer node according to a preset parameter and the second random number;
the temporary public key of the auctioneer node is stored into a blockchain.
Optionally, in a possible implementation manner of the fifth aspect, the processing module is specifically configured to:
obtaining first intermediate information according to the temporary public key of the auction node and the temporary private key of the auction node;
obtaining second intermediate information and identification information of the auction player according to the first intermediate information and encryption information of the auction player;
and obtaining the auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
Optionally, in a possible implementation manner of the fifth aspect, the second intermediate information includes first sub intermediate information and second sub intermediate information;
the processing module is specifically configured to:
obtaining intermediate parameters according to the first sub intermediate information and the preset parameters;
and obtaining the auction information of the auction player according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auction player node and the temporary public key of the auction player node.
Optionally, in a possible implementation manner of the fifth aspect, the processing module is specifically configured to:
obtaining first auction information according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auction node and the temporary public key of the auction node;
obtaining second auction information according to the intermediate parameters and the temporary public key of the auction node;
when the first auction information and the second auction information are the same, either one of the first auction information and the second auction information is taken as auction information of the auction player.
Optionally, in a possible implementation manner of the fifth aspect, the processing module is specifically configured to:
and performing exclusive OR operation on the first intermediate information and the encryption information of the auction player to obtain the second intermediate information and the identification information of the auction player.
Optionally, in a possible implementation manner of the fifth aspect, the binary length of the first intermediate information is equal to a sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
Optionally, in a possible implementation manner of the fifth aspect, the apparatus further includes a storage module, where the storage module is configured to:
Auction information for the auctioneer is stored into a blockchain.
In a sixth aspect, the present invention provides a blockchain node as an arbiter node comprising:
the system comprises an acquisition module, a block chain and a storage module, wherein the acquisition module is used for acquiring a temporary private key of an auction player node stored in the block chain after the auction result publishes the deadline and encryption information of the auction player stored in the block chain before the auction information uploads the deadline;
the processing module is used for obtaining first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and encryption information of the auction player;
and the arbitration module is used for determining whether the auction result is disclosed according to the first auction information of the auction player.
Optionally, in a possible implementation manner of the sixth aspect, the obtaining module is further configured to obtain, after the auction result publication deadline, second auction information of the auction player and second identification information of the auction player stored by the auction player node in a blockchain after the auction result publication deadline;
The arbitration module is specifically configured to:
when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, determining whether the auction result is disclosed according to the first auction information of the auction player.
Optionally, in a possible implementation manner of the sixth aspect, the processing module is specifically configured to:
obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node;
obtaining second intermediate information and first identification information of the auction player according to the first intermediate information and encryption information of the auction player;
and obtaining the first auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
In a seventh aspect, the present invention provides a blockchain node comprising: memory, processor, and transceiver;
the transceiver is used for receiving data or transmitting data;
the memory is used for storing program instructions;
the processor is configured to invoke the program instructions stored in the memory to implement the blockchain-based auction processing method provided in any of the embodiments of the first aspect, or implement the blockchain-based auction processing method provided in any of the embodiments of the second aspect, or implement the blockchain-based auction processing method provided in any of the embodiments of the third aspect.
In an eighth aspect, the present invention provides a storage medium comprising: a readable storage medium and a computer program for implementing the blockchain-based auction processing method provided by any of the embodiments of the first aspect, or implementing the blockchain-based auction processing method provided by any of the embodiments of the second aspect, or implementing the blockchain-based auction processing method provided by any of the embodiments of the third aspect.
The invention provides an auction processing method based on a blockchain and a blockchain node, wherein the auction processing method based on the blockchain comprises the following steps: the method comprises the steps that an auction node obtains auction information of an auction player, encrypts the auction information of the auction player and identification information of the auction player to obtain encryption information of the auction player, stores the encryption information of the auction player into a blockchain before auction information corresponding to auction information uploads deadline, and stores decryption parameters of the auction player into the blockchain after the auction information uploads the deadline and before auction results corresponding to auction information publish the deadline. According to the auction processing method based on the blockchain, auction information and identification information of the auctioneer cannot be obtained by the node of the auctioneer before the auction information is uploaded to the expiration time. Only after the auction information is uploaded for the expiration time, the node of the auctioneer can acquire the decryption parameters from the blockchain, so that the encryption information of the auctioneer is decrypted according to the decryption parameters, the auction information and the identification information of the auctioneer are acquired, the privacy, the safety and the anonymity of the information released in the blockchain in the auction process are improved, and the credibility of an auction platform is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the prior art, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it will be obvious that the drawings in the following description are some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a block chain system architecture diagram to which the present invention is applicable;
FIG. 2 is another architecture diagram of a blockchain system to which the present invention is applicable;
FIG. 3 is a flowchart of a blockchain-based auction processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a blockchain-based auction processing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart of a blockchain-based auction processing method provided by a third embodiment of the present invention;
FIG. 6 is a block chain node according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a blockchain node in accordance with a second embodiment of the present invention;
FIG. 8 is a schematic diagram of a blockchain node in accordance with a third embodiment of the present invention;
fig. 9 is a schematic structural diagram of a blockchain node according to a fourth embodiment of the present invention.
Detailed Description
The auction processing method based on the block chain can be applied to a block chain auction scene. Next, the architecture of a blockchain system to which the present invention is applied will be described.
Illustratively, FIG. 1 is an architecture diagram of a blockchain system to which the present invention is applicable. As shown in FIG. 1, the blockchain system may include a bidder node, an auctioneer node, an arbiter node, and a blockchain. Wherein the blockchain includes a plurality of sequentially connected blocks, e.g., an ith block, a jth block, a kth block, etc. In each tile, relevant data in the auction process is stored in the form of transactional content. The auction information of the auction player can be acquired by the auction player node, and encrypted by adopting an encryption algorithm. Also, the bidder node may publish the related information of the bidder to be uplink at different time periods. The auctioneer node may obtain auction information for the auctioneer and publish the auction information for the uplink. The auction node can also adopt an encryption algorithm to decrypt the information published by the auction node in the uplink after the auction information is uploaded for the deadline, obtain the auction information of the auction, finally determine the auction result and publish the auction result in the uplink. Optionally, if the auction result is not known to be disclosed by the auction player, the arbiter node may further arbitrate the auction result according to the relevant information of the link published by the auction player node after the auction result publication deadline, so as to determine whether the auction result is disclosed and fair. Alternatively, the bidder node, the auctioneer node, and the arbitrator node may each comprise a long-term key pair, specifically a long-term public key and a long-term private key.
Fig. 2 is a block chain system architecture diagram illustrating an exemplary embodiment of a block chain system to which the present invention is applicable. FIG. 2 is a block chain system shown in FIG. 2, as compared to FIG. 1, further including proxy nodes. The agent nodes are respectively connected with the auction node, the auctioneer node and the arbitrator node. The bidder node, the auctioneer node and the arbitrator node can send the relevant information needing to be issued to the proxy node, and the proxy node issues the uplink; alternatively, the relevant information is obtained from the blockchain by the proxy node. The blockchain system shown in fig. 2 may refer to the description of fig. 1 except for proxy nodes, and will not be described again here.
In various embodiments of the invention, it relates to encrypting or decrypting information using an encryption algorithm. It should be noted that, the implementation manner of the encryption algorithm is not limited in the present invention, and any encryption algorithm can be used. Next, the ED25519 signature algorithm will be described by taking an encryption algorithm as an example.
The ED25519 signature algorithm is a high-efficiency signature algorithm based on elliptic curves. In the ED25519 signature algorithm, E (F p ) Curve25519 Curve E= { (x, y) ∈F is represented p ×F p :-x 2 +x 2 =1+dx 2 y 2 In prime number domain F p The base point of the group is denoted as B, and the number of group elements is #E (F p )=l2 c . Wherein l=2 252 +2774231777737235353585193779088364849 is a large prime number, d= -121665/121666 ε F p ,p=2 255 -19, c=3. The ED25519 signature algorithm mainly comprises a key generation stage, a signature stage and a signature verification stage. The method comprises the following steps:
(1) Key generation phase: the signer generates a public-private key pair (k, a) using a key generation algorithm. Then calculate s=h 0,…,255 (k) A=sb is obtained as a public key, where H is SHA512 hash algorithm, and the total length of output is 512 bits. H 0,…,255 The first 256 bits of the H output are shown as output values.
(2) Signature stage: the signer takes as input the private key k and the message M to be signed, producing a signature result (R, S). Wherein r=rb, r=h (H 256,…,511 (k) ||m). Wherein H is 256,…,511 (k) Is the last 256 bits of the H output. S=r+h (r||a) ||m) smod l. Where the symbol "||" indicates that a binary number is connected.
(3) And (3) signature verification: the signer takes the signature result (R, S), the message M and the public key A of the signer as inputs to verify whether 2 is satisfied c SB=2 c R+2 c H (R A M) A to determine if the signature is valid.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 3 is a flowchart of a blockchain-based auction processing method according to an embodiment of the present invention. In the auction processing method based on the blockchain provided in this embodiment, the execution subject may be a bidder node. As shown in fig. 3, the auction processing method based on blockchain provided in this embodiment may include:
s301, acquiring the competition information of the competition person.
Wherein the auction information of the auction player is generated according to the auction information of the auction player.
The present embodiment is not limited to the specific content included in the auction information of the auctioneer.
S302, encryption processing is carried out on the auction information of the auctioneer and the identification information of the auctioneer, so that the encryption information of the auctioneer is obtained.
S303, before the auction information corresponding to the auction information is uploaded to the expiration time, storing the encryption information of the auction player into the blockchain so that the node of the auction player can acquire the encryption information of the auction player.
S304, after the auction information is uploaded to the expiration time and before the auction result corresponding to the auction information publishes the expiration time, the decryption parameters of the auction player are stored in the blockchain.
Wherein the decryption parameters of the auctioneer are used for decrypting the encryption information of the auctioneer by the auctioneer node to obtain the auctioneer's auction information.
It can be seen that, in the auction processing method based on the blockchain provided in this embodiment, before the auction information uploads the deadline, the bidder node only stores the encryption information of the bidder in the blockchain. The encryption information of the auction player is obtained by encrypting the auction information of the auction player and the identification information of the auction player, and is non-public information, so that the auction node cannot acquire the auction information and the identification information of the auction player before the auction information uploads the expiration time. After the auction information is uploaded for the expiration time and before the auction results publish the expiration time, the auctioneer node stores the auctioneer's decryption parameters into the blockchain. Accordingly, the auctioneer node can acquire the decryption parameters from the blockchain, so that the encryption information of the auctioneer is decrypted according to the decryption parameters, and the auctioneer's auction information and identification information are acquired. By the auction processing method based on the blockchain, privacy, safety and anonymity of information released in the blockchain in the auction process are improved, and credibility of an auction platform is improved.
In S302, the encryption processing may be performed on the auction information of the auctioneer and the identification information of the auctioneer, and any existing encryption algorithm may be used, for example, a symmetric encryption algorithm, an asymmetric encryption algorithm, an ED25519 signature algorithm, and the like, which is not limited in this embodiment.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
auction information for the auctioneer is stored into the blockchain.
Accordingly, the auctioneer node may obtain the auctioneer's auction information from the blockchain. The specific content included in the auction information of the auctioneer is not limited in this embodiment.
Optionally, in S302, encrypting the auction information of the auctioneer and the identification information of the auctioneer to obtain the encrypted information of the auctioneer may include:
and obtaining the encryption information of the auction player according to the temporary public key of the auction player node, the auction information of the auction player, the temporary public key of the auction player node and the identification information of the auction player.
Wherein the decryption parameters of the auctioneer include the temporary public key of the auctioneer node.
Specifically, when the auction information and the identification information of the auction are encrypted by the auction node, a temporary key pair may be employed, where the temporary key pair may include a temporary private key of the auction node and a temporary public key of the auction node. It will be appreciated that the temporary key pair employed may be different when the bidder node encrypts different information. Note that, the present embodiment does not limit the key generation algorithm. The auction node can encrypt the auction information and the identification information of the auction by adopting the temporary public key of the auction node and the temporary public key of the auction node to obtain the encryption information of the auction, thereby improving the privacy and the security of the encryption information. Accordingly, the auctioneer's decryption parameters include the temporary public key of the auctioneer's node. After the auction information is uploaded for the expiration time and before the auction result publishes the expiration time, the auctioneer node may decrypt the encryption information of the auctioneer by using the temporary public key of the auctioneer node and the temporary public key of the auctioneer node, thereby obtaining the auction information and the identification information of the auctioneer.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
auction information for the auctioneer and a temporary public key for the auctioneer node are obtained from the blockchain.
Specifically, at auction initiation, the auctioneer node may store auctioneer information and the auctioneer node's temporary public key into the blockchain. Accordingly, the auctioneer node may obtain auctioneer information for the auctioneer and the temporary public key of the auctioneer node from the blockchain.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
a first random number is obtained. Wherein the first random number is used as a temporary private key of the auction node.
And generating a temporary public key of the auction player node according to the preset parameters and the first random number.
Specifically, the auction player node generates a temporary key pair, uses the first random number as a temporary private key of the auction player node, and generates a temporary public key of the auction player node according to the first random number and a preset parameter. It should be noted that, in this embodiment, specific values of the first random number and the preset parameter are not limited.
Optionally, obtaining the encryption information of the auctioneer according to the temporary public key of the auctioneer node, the auctioneer's auction information, the temporary public key of the auctioneer node and the identification information of the auctioneer may include:
And obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node.
And generating second intermediate information according to the auction information of the auctioneer, the temporary public key of the auctioneer node, the preset parameters and the long-term public key of the auctioneer node.
And obtaining the encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player.
Specifically, first intermediate information is obtained according to a temporary private key of an auction node and a temporary public key of the auction node, and then auction information of the auction is encrypted by adopting the temporary public key of the auction node, a long-term public key of the auction node and preset parameters to generate second intermediate information. And finally, obtaining the encryption information of the auction player according to the first intermediate information, the second intermediate information generated after encrypting the auction information of the auction player and the identification information of the auction player.
By sequentially encrypting the auction information and the identification information of the auctioneer, the security of the encrypted information is increased.
Alternatively, the second intermediate information may include the first sub intermediate information and the second sub intermediate information.
Generating second intermediate information according to the auction information of the bidder, the temporary public key of the bidder node, the preset parameter, and the long-term public key of the bidder node may include:
And generating an intermediate parameter according to the auction information of the auction player and the temporary public key of the node of the auction player.
And obtaining first sub-intermediate information according to the intermediate parameter and the preset parameter.
And obtaining second sub-intermediate information according to the first sub-intermediate information, the intermediate parameters, the long-term public key of the auction node, the auction information of the auction and the temporary public key of the auction node.
Specifically, the second intermediate information may include first sub intermediate information and second sub intermediate information. The binary length of the second intermediate information is equal to the sum of the binary length of the first sub intermediate information and the binary length of the second sub intermediate information. After the first sub intermediate information and the second sub intermediate information are generated, the second intermediate information may be obtained.
Optionally, obtaining the encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player may include:
and after the binary numbers corresponding to the second intermediate information and the identification information of the auction player are respectively connected, carrying out bitwise exclusive OR operation on the binary numbers corresponding to the first intermediate information to obtain the encryption information of the auction player.
Specifically, the binary length of the second intermediate information is equal to the sum of the binary length of the first sub intermediate information and the binary length of the second sub intermediate information. And after the binary numbers corresponding to the second intermediate information are connected with the binary numbers corresponding to the identification information of the auction player, performing exclusive OR operation on the binary numbers corresponding to the first intermediate information according to the bits to generate encryption information of the auction player.
Optionally, the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the bidder.
Next, the auction processing method based on the blockchain according to the present embodiment will be described by taking the encryption algorithm adopted in the present embodiment as an example of the ED25519 signature algorithm.
Assume that the auction information of the auction player is denoted as M. The identification information of the bidder is represented as an ID. The encryption information of the auction player is denoted as C. The long-term key pair of the bidder is denoted (k, a), where k is the long-term private key of the bidder and a is the long-term public key of the bidder node. The temporary key pair of the auctioneer is denoted (X, X), where X is the first random number or temporary private key of the auctioneer node and X is the temporary public key of the auctioneer node. The temporary public key of the auctioneer node is denoted as Z. The first intermediate information is denoted sk. The second intermediate information is denoted as r||s, the first sub intermediate information is denoted as R, the second sub intermediate information is denoted as S, and the symbol||indicates that a binary number corresponding to the second sub intermediate information S is connected to the rear of the first sub intermediate information R. The intermediate parameter is denoted r. The preset parameter is denoted as B, see in particular the relevant description in the ED25519 signature algorithm described above.
The ED25519 signature algorithm is adopted to realize the auction processing method based on the blockchain, and the execution subject can be a bidder node. The blockchain-based auction processing method may include:
step 1, generating a long-term key pair (k, a=kb) of a bidder according to a key generation algorithm in the ED25519 signature algorithm. See for details the relevant description of the ED25519 signature algorithm, which is not described here. The auctioneer node can also obtain the temporary public key Z of the auctioneer node.
And 2, acquiring a first random number x according to a key generation algorithm in the ED25519 signature algorithm. The first random number X is used as a temporary private key of the auction player node, and a temporary public key X of the auction player node is generated according to x=xb. Wherein B is a preset parameter.
And 3, according to an ED25519 signature algorithm, generating first sub-intermediate information R and second sub-intermediate information S according to the auction information M of the auction player, the temporary public key X of the auction player node, the preset parameter B and the long-term public key A of the auction player node. Wherein (R, S) may also be referred to as signature result. Wherein r=rb, the intermediate parameter r=h (H 256,…,511 (k) M X), s=r+h (R a M X) S mod l. Wherein B, s, l and H 256,…,511 (k) See for details the relevant description of the ED25519 signature algorithm, which is not described here.
After the first sub-intermediate information R and the second sub-intermediate information S are obtained, binary numbers corresponding to the second sub-intermediate information S may be connected to the rear of binary numbers corresponding to the first sub-intermediate information R, so as to obtain second intermediate information r||s.
In this step, the auction information M of the auction player and the temporary public key X of the node of the auction player are taken together as the signed message, so that the security of the signature result is improved.
And 4, obtaining first intermediate information sk according to the temporary private key x of the auction node and the temporary public key Z of the auction node and sk=H' (xZ). Where H' is a hash function.
Wherein the binary length of the first intermediate information sk is equal to the sum of the binary length of the second intermediate information r||s and the binary length of the identification information ID of the bidder. That is, the binary length of the first intermediate information sk is equal to the sum of the binary lengths respectively corresponding to the first sub-intermediate information R, the second sub-intermediate information S, and the identification information ID of the auction subject.
And 5, after the binary numbers corresponding to the second intermediate information R S and the identification information ID of the auction player are respectively connected, carrying out exclusive OR operation on the binary numbers corresponding to the first intermediate information sk according to the bits to obtain encryption information C of the auction player. In particular, the method comprises the steps of, c= (R S i ID) sk. Where ∈ represents a bitwise exclusive or operation.
And step 6, storing the encryption information C of the auction player into the blockchain before the auction information is uploaded to the expiration time.
And 7, after the auction information is uploaded to the expiration time and before the auction result publishes the expiration time, storing decryption parameters of the auction player into the blockchain. Wherein the decryption parameters of the auctioneer may comprise the temporary public key X of the auctioneer node.
It can be seen that prior to the auction information upload deadline, the bidder node only stores the bidder's encrypted information into the blockchain, and does not store the temporary public key of the bidder node into the blockchain. The auction node stores the temporary public key of the auction node into the blockchain after the auction information uploads the deadline. In this way, the temporary public key of the auction node cannot be obtained by the auction node until the auction information upload deadline, and thus the encryption information of the auction cannot be decrypted. The privacy and the safety of information released in the blockchain in the auction process are improved, and the credibility of an auction platform is improved.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
after the auction result publishes the expiration time, the temporary private key of the auction node is stored into the blockchain to request arbitration from the arbiter node.
Specifically, after the auction results publish the expiration time, the auctioneer node may store the auction results into the blockchain. Accordingly, the auction results may be obtained by the bidder node from the blockchain. If the auction result is not disclosed or fair, the auction node may store the temporary private key of the auction node into the blockchain to request arbitration from the arbiter node, ultimately confirming whether the auction result is disclosed or fair. Thereby, the credibility of the auction platform is further improved.
The arbiter node determines whether the auction result is disclosed according to the temporary private key of the auction node, which can be referred to the blockchain-based auction processing method according to the third embodiment shown in fig. 6.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
after the auction result publishes the deadline, the auction information for the auctioneer and the identification information for the auctioneer are stored into the blockchain to request arbitration from the arbiter node.
Specifically, the auction node may also store the auction information and identification information of the auction in the blockchain to request arbitration from the arbiter node, and finally confirm whether the auction result is public or fair. Thereby, the credibility of the auction platform is further improved.
The arbiter node determines whether the auction result is disclosed according to the temporary private key of the auction node, the auction information of the auction and the identification information of the auction, which can be referred to the third embodiment of fig. 6.
The embodiment provides an auction processing method based on a blockchain, which comprises the following steps: the method comprises the steps of obtaining auction information of an auction player, conducting encryption processing on the auction information of the auction player and identification information of the auction player to obtain encryption information of the auction player, storing the encryption information of the auction player into a block chain before the auction information corresponding to the auction information uploads the expiration time, and storing decryption parameters of the auction player into the block chain after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time. According to the auction processing method based on the blockchain, auction information and identification information of the auctioneer cannot be obtained by the auctioneer node before the auction information is uploaded to the expiration time. Only after the auction information is uploaded for the expiration time, the node of the auctioneer can acquire the decryption parameters from the blockchain, so that the encryption information of the auctioneer is decrypted according to the decryption parameters, the auction information and the identification information of the auctioneer are acquired, the privacy, the safety and the anonymity of the information released in the blockchain in the auction process are improved, and the credibility of an auction platform is improved.
Fig. 4 is a flowchart of a blockchain-based auction processing method according to a second embodiment of the present invention. In the auction processing method based on the blockchain provided in this embodiment, the execution subject may be an auctioneer node. As shown in fig. 4, the auction processing method based on blockchain provided in this embodiment may include:
s401, acquiring encryption information of the auction participants in the blockchain before the auction information uploading deadline corresponding to the auction information of the auction participants by the auction participants.
S402, acquiring decryption parameters of the auction participants in the blockchain after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time by the auction nodes.
S403, obtaining the auction information of the auction player and the identification information of the auction player according to the decryption parameters of the auction player and the encryption information of the auction player.
In the auction processing method based on the blockchain, before the auction information is uploaded to the expiration time, the node of the auctioneer only stores the encryption information of the auctioneer in the blockchain. The auctioneer node can obtain the auctioneer's encrypted information from the blockchain. After the auction information is uploaded for the expiration time and before the auction results publish the expiration time, the auctioneer node stores the auctioneer's decryption parameters into the blockchain. The auctioneer node can acquire the decryption parameters of the auctioneer from the blockchain, so that the encryption information of the auctioneer is decrypted according to the decryption parameters, and the auctioneer information and the identification information of the auctioneer are acquired. Therefore, according to the auction processing method based on the blockchain, the auction nodes cannot acquire the auction information and the identification information of the auctioneer before the auction information is uploaded to the expiration time, so that the privacy and the safety of information released in the blockchain in the auction process are improved, and the credibility of an auction platform is improved.
In S403, the auction information of the auction player and the identification information of the auction player are obtained according to the decryption parameters of the auction player and the encryption information of the auction player, and the encryption algorithm used in the encryption in the first embodiment shown in fig. 3 may be used to perform the corresponding decryption operation. The present embodiment is not limited to the encryption algorithm and the corresponding decryption operation, and for example, a symmetric encryption algorithm, an asymmetric encryption algorithm, an ED25519 signature algorithm, and the like may be employed.
Optionally, the decryption parameter of the auctioneer may include a temporary public key of the auctioneer node, and in S403, obtaining the auctioneer information of the auctioneer and the identification information of the auctioneer according to the decryption parameter of the auctioneer and the encryption information of the auctioneer may include:
and obtaining the auction information of the auction player and the identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and the encryption information of the auction player.
Specifically, the decryption of the encryption information of the auction player according to the present embodiment corresponds to the encryption of the auction information of the auction player and the identification information of the auction player in the first embodiment shown in fig. 3. Because the auction node encrypts the auction information and the identification information of the auction by adopting the temporary public key of the auction node and the temporary public key of the auction node, the auction node can obtain the auction information of the auction and the identification information of the auction according to the temporary private key of the auction node, the temporary public key of the auction node and the encryption information of the auction.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
a second random number is obtained. Wherein the second random number serves as a temporary private key for the auctioneer node.
And generating a temporary public key of the auctioneer node according to the preset parameters and the second random number.
The temporary public key of the auctioneer node is stored into the blockchain.
Specifically, the auctioneer node generates a temporary key pair, uses the second random number as a temporary private key of the auctioneer node, and generates a temporary public key of the auctioneer node according to the second random number and a preset parameter. It should be noted that, in this embodiment, specific values of the second random number and the preset parameter are not limited.
Optionally, obtaining the auction information of the auctioneer and the identification information of the auctioneer according to the temporary private key of the auctioneer node, the temporary public key of the auctioneer node and the encryption information of the auctioneer may include:
and obtaining first intermediate information according to the temporary public key of the auction node and the temporary private key of the auction node.
And obtaining second intermediate information and identification information of the auction master according to the first intermediate information and encryption information of the auction master.
And obtaining the auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
Optionally, the second intermediate information includes first sub intermediate information and second sub intermediate information.
Obtaining the auction information of the auctioneer according to the second intermediate information, the preset parameters, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node may include:
and obtaining the intermediate parameters according to the first sub intermediate information and the preset parameters.
And obtaining the auction information of the auction player according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the node of the auction player and the temporary public key of the node of the auction player.
Optionally, obtaining the auction information of the auctioneer according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auctioneer node, and the temporary public key of the auctioneer node may include:
and obtaining the first auction information according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auction node and the temporary public key of the auction node.
And obtaining second auction information according to the intermediate parameters and the temporary public key of the auction node.
When the first and second pieces of auction information are identical, either one of the first and second pieces of auction information is taken as the piece of auction information of the bidder.
Optionally, obtaining the second intermediate information and the identification information of the auctioneer according to the first intermediate information and the encryption information of the auctioneer may include:
and performing exclusive OR operation on the first intermediate information and the encryption information of the auction master to obtain the second intermediate information and the identification information of the auction master.
Optionally, the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the bidder.
It should be noted that "the temporary public key of the auction node, the long-term public key of the auction node, the preset parameter, the first intermediate information, the second intermediate information, the first sub-intermediate information, the second sub-intermediate information, the intermediate parameter, the encryption information of the auction, the auction information of the auction, and the identification information of the auction" related to this embodiment is similar to the concept of the related concept in the first embodiment shown in fig. 3, and may be referred to the related description in the first embodiment, which is not repeated here.
Next, the auction processing method based on the blockchain according to the present embodiment will be described by taking the encryption algorithm adopted in the present embodiment as an example of the ED25519 signature algorithm.
Assume that encryption information of an auction player is denoted as C. The decryption parameters of the auctioneer include the temporary public key X of the auctioneer's node. The long term public key of the bidder node is denoted as a. The auctioneer's temporary key pair is denoted as (Z, Z), where Z is the second random number or the auctioneer's node's temporary private key and Z is the auctioneer's node's temporary public key. The first intermediate information is denoted sk. The second intermediate information is denoted as r||s, the first sub intermediate information is denoted as R, the second sub intermediate information is denoted as S, and the symbol||indicates that a binary number corresponding to the second sub intermediate information S is connected to the rear of the first sub intermediate information R. The intermediate parameter is denoted r. The preset parameter is denoted as B, see in particular the relevant description in the ED25519 signature algorithm described above. The auction information for the auction player is denoted M. The identification information of the bidder is represented as an ID.
The ED25519 signature algorithm is adopted to realize the auction processing method based on the blockchain, and the execution subject can be an auctioneer node. The blockchain-based auction processing method may include:
and step 1, acquiring a second random number z according to a key generation algorithm in the ED25519 signature algorithm. The second random number Z is used as a temporary private key of the auctioneer node, and a temporary public key Z of the auctioneer node is generated according to z=zb. Wherein B is a preset parameter. The auctioneer node may store the temporary public key Z of the auctioneer node into the blockchain. Accordingly, the auctioneer node may obtain the temporary public key Z of the auctioneer node from the blockchain.
And 2, before the auction information corresponding to the auction information of the auctioneer uploads the deadline, acquiring the encryption information C of the auctioneer, which is stored in the blockchain by the node of the auctioneer before the auction information uploads the deadline.
And step 3, after the auction information is uploaded for the deadline, acquiring decryption parameters of the auction nodes stored in the blockchain after the auction information is uploaded for the deadline and before the auction result corresponding to the auction information publishes the deadline. Wherein the decryption parameters include a temporary public key X of the bidder node.
And 4, obtaining first intermediate information sk through a formula sk=h' (zX) according to the temporary public key X of the auction node and the temporary private key z of the auction node. Where H' is a hash function.
Step 5, performing exclusive OR operation on the first intermediate information sk and the encryption information C of the auction player byThe second intermediate information R S and the identification information ID of the auction master can be obtained. Based on the identification information ID of the auctioneer, the auctioneer node can obtain the temporary public key X of the auctioneer node and the long-term public key a of the auctioneer node from the blockchain. Wherein (1)>Representing a bitwise exclusive or operation.
The second intermediate information r||s may include first sub intermediate information R and second sub intermediate information S. Wherein (R, S) may also be referred to as signature result.
Wherein the binary length of the first intermediate information sk is equal to the sum of the binary length of the second intermediate information r||s and the binary length of the identification information ID of the bidder. That is, the binary length of the first intermediate information sk is equal to the sum of the binary lengths respectively corresponding to the first sub-intermediate information R, the second sub-intermediate information S, and the identification information ID of the auction subject.
And 6, according to an ED25519 signature algorithm, obtaining the auction information of the auction player according to the second intermediate information R S, the preset parameter B, the long-term public key A of the auction player node and the temporary public key X of the auction player node.
Specifically, according to the first sub-intermediate information R and the preset parameter B, the intermediate parameter R is obtained by r=rb.
And obtaining first auction information M through S=r+H (R|A|M|X) S mod l according to the intermediate parameter R, the first sub-intermediate information R, the second sub-intermediate information S, the long-term public key A of the auction node and the temporary public key X of the auction node. The s and l may be specifically described in the above ED25519 signature algorithm, and will not be described herein.
By r=h (H 256,…,511 (k) And (3) obtaining second auction information M. Wherein H is 256,…,511 (k) See for details the relevant description of the ED25519 signature algorithm, which is not described here.
When the first auction information M and the second auction information M are identical, either one of the first auction information M and the second auction information M is taken as the auction information of the bidder.
Therefore, the anonymity of the anonymous signature is realized by generating a symmetric key through key negotiation between the auctioneer node and the auctioneer node. The bidder node encrypts the bidder's bid information and identification information with a symmetric key. Correspondingly, only if the node of the auctioneer can calculate the symmetric key, the node of the auctioneer can decrypt the encryption information of the auctioneer and verify the correctness of the information, thereby improving the safety and anonymity of the data.
Subsequently, after the auctioneer node obtains the auction information and the identification information of the plurality of auctioneers, the final auction result can be determined. Also, the results of the auction may be stored in the blockchain.
The embodiment provides an auction processing method based on a blockchain, which comprises the following steps: the method comprises the steps of acquiring encryption information of an auction player, which is stored in a blockchain by a node of the auction player before auction information corresponding to auction information of the auction player uploads deadline, acquiring decryption parameters of the auction player, which are stored in the blockchain by the node of the auction player after auction information uploads deadline and before auction results corresponding to auction information publish deadline, and acquiring the auction information of the auction player and identification information of the auction player according to the decryption parameters of the auction player and the encryption information of the auction player. According to the auction processing method based on the blockchain, after the auction information is uploaded for the expiration time, the node of the auctioneer can acquire the decryption parameters of the auctioneer, so that the encryption information of the auctioneer is decrypted according to the decryption parameters, the auction information and the identification information of the auctioneer are acquired, the privacy and the safety of information released in the blockchain in the auction process are improved, and the credibility of an auction platform is improved.
Fig. 5 is a flowchart of a blockchain-based auction processing method according to a third embodiment of the present invention. In the auction processing method based on the blockchain provided in this embodiment, the execution subject may be an arbiter node. As shown in fig. 5, the auction processing method based on blockchain provided in this embodiment may include:
s501, after the auction result publishes the expiration time, acquiring a temporary private key of the auction node stored to the auction node in the blockchain after the auction result publishes the expiration time and encryption information of the auction node stored to the auction in the blockchain before the auction information uploads the expiration time.
S502, obtaining first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and encryption information of the auction player.
S503, determining whether the auction result is disclosed according to the first auction information of the auction player.
Specifically, after the auction results publish the expiration time, the auctioneer node may store the auction results into the blockchain. Accordingly, the auction results may be obtained by the bidder node from the blockchain. If the auction results are not known to be public or fair by the auction, the auction node may store the temporary private key of the auction node into the blockchain. The arbiter node can acquire the temporary private key of the auction node, the temporary public key of the auction node and the encryption information of the auction from the blockchain, and acquire the first auction information of the auction and the first identification information of the auction according to the temporary private key of the auction node, the temporary public key of the auction node and the encryption information of the auction, thereby confirming whether the auction result is public or fair, and further improving the credibility and the publicity of the auction platform.
Optionally, the auction processing method based on blockchain provided in this embodiment may further include:
after the auction result publication deadline, the second auction information and the second identification information of the auction player stored by the auction player node to the auction player in the blockchain after the auction result publication deadline are obtained.
Accordingly, in S503, determining whether the auction result is disclosed according to the first auction information of the auction player may include:
when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, determining whether the auction result is disclosed according to the first auction information of the auction player.
Specifically, after the auction result publishes the deadline, the bidder node may also store the bidder's auction information and identification information into the blockchain. For differentiation, the auction information stored by the auction node to the auction in the blockchain may be referred to as second auction information for the auction, and the identification information stored by the auction node to the auction in the blockchain may be referred to as second identification information for the auction. And the arbiter node obtains the auction information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and the encryption information of the auction player, which may be referred to as first auction information of the auction player, and the obtained identification information of the auction player may be referred to as first identification information of the auction player. The arbiter node may compare whether the first and second auction information are the same and whether the first and second identification information are the same. And when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, determining whether the auction result is open according to the first auction information of the auction player. Further improving the credibility and publicity of the auction platform.
Optionally, in S502, obtaining the first auction information of the auctioneer and the first identification information of the auctioneer according to the temporary private key of the auctioneer node, the temporary public key of the auctioneer node and the encryption information of the auctioneer may include:
and obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node.
And obtaining second intermediate information and the first identification information of the auction master according to the first intermediate information and the encryption information of the auction master.
And obtaining the first auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
The decryption of the encryption information of the auctioneer according to the present embodiment to obtain the first auctioneer information of the auctioneer and the first identification information of the auctioneer corresponds to the encryption of the auctioneer's auctioneer information and the identification information of the auctioneer in the first embodiment shown in fig. 3. The specific principle can be seen in the embodiments shown in fig. 3 or fig. 4, and will not be described here again.
Next, taking the encryption algorithm adopted in the present embodiment as an ED25519 signature algorithm as an example, in S502, the first auction information of the auction player and the first identification information of the auction player are obtained according to the temporary private key of the auction player node, the temporary public key of the auction player node, and the encryption information of the auction player.
Assume that encryption information of an auction player is denoted as C. The temporary private key of the auction node is denoted x. The temporary public key of the bidder node is denoted as X-bidder first-time information denoted as M1. The first identification information of the bidder is denoted as ID1. The second auction information for the bidder is denoted as M2. The second identification information of the bidder is denoted as ID2. The temporary public key of the auctioneer node is denoted as Z. The first intermediate information is denoted sk. The second intermediate information is denoted as r||s, the first sub intermediate information is denoted as R, the second sub intermediate information is denoted as S, and the symbol||indicates that a binary number corresponding to the second sub intermediate information S is connected to the rear of the first sub intermediate information R. The intermediate parameter is denoted r. The preset parameter is denoted as B, see in particular the relevant description in the ED25519 signature algorithm described above.
The long term public key of the bidder node is denoted as a. The auctioneer's temporary key pair is denoted as (Z, Z), where Z is the second random number or the auctioneer's node's temporary private key, which is the auctioneer's node's temporary public key.
Adopting an ED25519 signature algorithm, in S502, obtaining first auction information of the auction player and first identification information of the auction player according to a temporary private key of the auction player node, a temporary public key of the auction player node and encryption information of the auction player may include:
And step 1, after the auction result publishes the expiration time, acquiring a temporary private key x of the node of the auction player and encryption information C of the auction player.
Step 2, obtaining first intermediate information sk through sk=h' (xZ) according to the temporary private key x of the auction node and the temporary public key Z of the auction node.
Step 3, according to the first intermediate information sk and the encryption information C of the auction player, passing The second intermediate information R S and the first identification information ID1 of the bidder are obtained.
Step 4, according to the second intermediate information r||s, the preset parameter B, the long-term public key a of the bidder node and the temporary public key X of the bidder node, the second intermediate information r|s is calculated by r=rb, r=h (H 256,…,511 (k) First auction information M1 of the bidder is obtained by |m1||x) and s=r+h (r|a|m1|x) S mod l. Wherein B, s, l and H 256,…,511 (k) See for details the relevant description of the ED25519 signature algorithm, which is not described here.
The embodiment provides an auction processing method based on a blockchain, which comprises the following steps: after the auction result publishes the expiration time, acquiring a temporary private key of the auction player node stored to the auction player node in the blockchain after the auction result publishes the expiration time and encryption information of the auction player stored to the blockchain by the auction player node before the auction information uploads the expiration time, acquiring first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and the encryption information of the auction player, and determining whether the auction result is public or not according to the first auction information of the auction player. According to the auction processing method based on the blockchain, the arbiter node can confirm whether the auction result is public or fair, and the credibility and the publicity of the auction platform are further improved.
FIG. 6 is a block chain node according to an embodiment of the present invention. The blockchain node provided in this embodiment is used as a bidder node to execute the blockchain-based auction processing method provided in the embodiment shown in fig. 3. As shown in fig. 6, the blockchain node provided in this embodiment may include:
the first obtaining module 11 is configured to obtain auction information of an auction player, where the auction information is generated according to auction information of the auction player.
The processing module 12 is configured to perform encryption processing on the auction information of the auctioneer and the identification information of the auctioneer, and obtain encrypted information of the auctioneer.
The first storage module 13 is configured to store the encrypted information of the auctioneer in the blockchain before the expiration time of the auction information uploading corresponding to the auction information, so that the auctioneer node obtains the encrypted information of the auctioneer.
The second storage module 14 is configured to store decryption parameters of the auction player into the blockchain after the auction information uploads the deadline and before the auction result corresponding to the auction information publishes the deadline. Wherein the decryption parameters of the auctioneer are used for the auctioneer node to decrypt the encryption information of the auctioneer to obtain the auctioneer's auction information.
Optionally, the processing module 12 is specifically configured to:
and obtaining the encryption information of the auction player according to the temporary public key of the auction player node, the auction information of the auction player, the temporary public key of the auction player node and the identification information of the auction player.
Wherein the decryption parameters of the auctioneer include the temporary public key of the auctioneer node.
Optionally, the apparatus further comprises a second acquiring module 15, where the second acquiring module 15 is configured to:
a first random number is obtained. Wherein the first random number is used as a temporary private key of the auction node.
And generating a temporary public key of the auction player node according to the preset parameters and the first random number.
Optionally, the processing module 12 is specifically configured to:
and obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node.
And generating second intermediate information according to the auction information of the auctioneer, the temporary public key of the auctioneer node, the preset parameters and the long-term public key of the auctioneer node.
And obtaining the encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player.
Optionally, the second intermediate information includes first sub intermediate information and second sub intermediate information.
The processing module 12 is specifically configured to:
and generating an intermediate parameter according to the auction information of the auction player and the temporary public key of the node of the auction player.
And obtaining first sub-intermediate information according to the intermediate parameter and the preset parameter.
And obtaining second sub-intermediate information according to the first sub-intermediate information, the intermediate parameters, the long-term public key of the auction node, the auction information of the auction and the temporary public key of the auction node.
Optionally, the processing module 12 is specifically configured to:
and after the binary numbers corresponding to the second intermediate information and the identification information of the auction player are respectively connected, carrying out bitwise exclusive OR operation on the binary numbers corresponding to the first intermediate information to obtain the encryption information of the auction player.
Optionally, the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the bidder.
Optionally, a third storage module 16 is further included, and the third storage module 16 is configured to:
after the auction result publishes the expiration time, the temporary private key of the auction node is stored into the blockchain to request arbitration from the arbiter node.
Optionally, the third storage module 16 is further configured to:
after the auction result publishes the deadline, the auction information for the auctioneer and the identification information for the auctioneer are stored into the blockchain to request arbitration from the arbiter node.
The blockchain node provided in this embodiment is used as a bidder node to execute the blockchain-based auction processing method provided in the embodiment shown in fig. 3. The technical principle and the technical effect are similar, and are not repeated here.
Fig. 7 is a schematic diagram of a blockchain node according to a second embodiment of the present invention. The blockchain node provided in this embodiment is used as an auctioneer node for executing the blockchain-based auction processing method provided in the embodiment shown in fig. 4. As shown in fig. 7, the blockchain node provided in this embodiment may include:
the first obtaining module 21 is configured to obtain encrypted information of an auctioneer stored in the blockchain by the auctioneer node before an auction information uploading deadline corresponding to auction information of the auctioneer.
The second obtaining module 22 is configured to obtain decryption parameters of the auctioneer node stored in the blockchain after the auction information uploads the deadline and before the auction result corresponding to the auction information publishes the deadline.
The processing module 23 is configured to obtain the auction information of the auction player and the identification information of the auction player according to the decryption parameters of the auction player and the encryption information of the auction player.
Optionally, the decryption parameters of the auction player include a temporary public key of the node of the auction player, and the processing module 23 is specifically configured to:
and obtaining the auction information of the auction player and the identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and the encryption information of the auction player.
Optionally, a third acquiring module 24 is further included, where the third acquiring module 24 is configured to:
a second random number is obtained. Wherein the second random number serves as a temporary private key for the auctioneer node.
And generating a temporary public key of the auctioneer node according to the preset parameters and the second random number.
The temporary public key of the auctioneer node is stored into the blockchain.
Optionally, the processing module 23 is specifically configured to:
and obtaining first intermediate information according to the temporary public key of the auction node and the temporary private key of the auction node.
And obtaining second intermediate information and identification information of the auction master according to the first intermediate information and encryption information of the auction master.
And obtaining the auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
Optionally, the second intermediate information includes first sub intermediate information and second sub intermediate information.
The processing module 23 is specifically configured to:
and obtaining the intermediate parameters according to the first sub intermediate information and the preset parameters.
And obtaining the auction information of the auction player according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the node of the auction player and the temporary public key of the node of the auction player.
Optionally, the processing module 23 is specifically configured to:
and obtaining the first auction information according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auction node and the temporary public key of the auction node.
And obtaining second auction information according to the intermediate parameters and the temporary public key of the auction node.
When the first and second pieces of auction information are identical, either one of the first and second pieces of auction information is taken as the piece of auction information of the bidder.
Optionally, the processing module 23 is specifically configured to:
and performing exclusive OR operation on the first intermediate information and the encryption information of the auction master to obtain the second intermediate information and the identification information of the auction master.
Optionally, the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the bidder.
Optionally, the device further comprises a storage module 25, where the storage module 25 is configured to:
auction information for the auctioneer is stored into the blockchain.
The blockchain node provided in this embodiment is used as an auctioneer node for executing the blockchain-based auction processing method provided in the embodiment shown in fig. 4. The technical principle and the technical effect are similar, and are not repeated here.
Fig. 8 is a schematic structural diagram of a blockchain node according to a third embodiment of the present invention. The blockchain node provided in this embodiment is used as an arbiter node for executing the blockchain-based auction processing method provided in the embodiment shown in fig. 8. As shown in fig. 8, the blockchain node provided in this embodiment may include:
the obtaining module 31 is configured to obtain, after the auction result publishes the deadline, the temporary private key of the auction node stored in the blockchain after the auction result publishes the deadline and the encrypted information of the auction node stored in the blockchain before the auction information uploads the deadline.
The processing module 32 is configured to obtain first auction information of the auctioneer and first identification information of the auctioneer according to the temporary private key of the auctioneer node, the temporary public key of the auctioneer node, and the encryption information of the auctioneer.
And an arbitration module 33, configured to determine whether the auction result is open according to the first auction information of the auctioneer.
Optionally, the obtaining module 31 is further configured to obtain, after the auction result publishes the deadline, second auction information of the auctioneer and second identification information of the auctioneer stored by the auctioneer node to the auctioneer in the blockchain after the auction result publishes the deadline.
The arbitration module 33 is specifically configured to:
when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, determining whether the auction result is disclosed according to the first auction information of the auction player.
Optionally, the processing module 32 is specifically configured to:
and obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node.
And obtaining second intermediate information and the first identification information of the auction master according to the first intermediate information and the encryption information of the auction master.
And obtaining the first auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
The blockchain node provided in this embodiment is used as an arbiter node for executing the blockchain-based auction processing method provided in the embodiment shown in fig. 5. The technical principle and the technical effect are similar, and are not repeated here.
Fig. 9 is a schematic structural diagram of a blockchain node according to a fourth embodiment of the present invention. The blockchain node provided in this embodiment is configured to execute the blockchain-based auction processing method provided in any one of the implementations shown in fig. 3 to 5. As shown in fig. 9, the blockchain node provided in this embodiment may include: a memory 42, a processor 41 and a transceiver 43. A transceiver 43 for transmitting data or receiving data. Memory 42 for storing program instructions. A processor 41 for invoking program instructions stored in memory 42 to implement the blockchain-based auction processing method provided in any of the implementations shown in fig. 3-5.
The blockchain node provided in this embodiment is configured to execute the blockchain-based auction processing method provided in any one of the implementations shown in fig. 3 to 5. The technical principle and the technical effect are similar, and are not repeated here.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the technical solutions according to the embodiments of the present invention.

Claims (22)

1. A blockchain-based auction processing method, comprising:
the auction method comprises the steps that a auction node obtains auction information of an auction player, wherein the auction information is generated according to auction information of the auction player;
the auction player node obtains first intermediate information according to the temporary private key of the auction player node and the temporary public key of the auction player node;
the auction player node generates second intermediate information according to the auction information of the auction player, the temporary public key of the auction player node, preset parameters and the long-term public key of the auction player node;
the auction player node obtains encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player;
wherein the decryption parameters of the auction player comprise a temporary public key of the auction player node;
before the auction information corresponding to the auction information is uploaded to the deadline, the node of the auction stores the encryption information of the auction to a blockchain so that the node of the auction obtains the encryption information of the auction;
after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time, the node of the auction player stores decryption parameters of the auction player into a blockchain; wherein the decryption parameters of the auctioneer are used for the auctioneer node to decrypt the encryption information of the auctioneer to obtain the auctioneer information of the auctioneer.
2. The method as recited in claim 1, further comprising:
the bidder node obtains a first random number; wherein the first random number is used as a temporary private key of the auction player node;
and the auction player node generates a temporary public key of the auction player node according to the preset parameter and the first random number.
3. The method of claim 1, wherein the second intermediate information comprises first sub-intermediate information and second sub-intermediate information;
the auction player node generates second intermediate information according to the auction information of the auction player, the temporary public key of the auction player node, preset parameters and the long-term public key of the auction player node, and the second intermediate information comprises:
the auction player node generates an intermediate parameter according to the auction information of the auction player and the temporary public key of the auction player node;
the auction player node obtains the first sub-intermediate information according to the intermediate parameter and the preset parameter;
the auction player node obtains the second sub-intermediate information according to the first sub-intermediate information, the intermediate parameter, the long-term public key of the auction player node, the auction information of the auction player and the temporary public key of the auction player node.
4. A method according to claim 1 or 3, wherein the auctioneer node obtaining the encrypted information of the auctioneer based on the first intermediate information, the second intermediate information and the identity information of the auctioneer, comprises:
and after the auction player node connects binary numbers corresponding to the second intermediate information and the identification information of the auction player respectively, binary numbers corresponding to the first intermediate information are subjected to bitwise exclusive OR operation to obtain encryption information of the auction player.
5. The method of claim 4, wherein the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
6. The method as recited in claim 1, further comprising:
after the auction result publishes the expiration time, the auction node stores the temporary private key of the auction node into the blockchain to request arbitration from the arbiter node.
7. The method as recited in claim 6, further comprising:
after the auction result publishes the expiration time, the auction player node stores the auction information of the auction player and the identification information of the auction player into a blockchain to request arbitration from the arbiter node.
8. A blockchain-based auction processing method, comprising:
the auctioneer node acquires the encryption information of the auctioneer stored in the block chain before the auction information corresponding to the auction information of the auctioneer uploads the expiration time;
the auctioneer node acquires decryption parameters of the auctioneer, which are stored in a blockchain after the auction information is uploaded and before the auction result corresponding to the auction information is published for the deadline, wherein the decryption parameters of the auctioneer comprise temporary public keys of the auctioneer node;
the auctioneer node obtains first intermediate information according to the temporary public key of the auctioneer node and the temporary private key of the auctioneer node;
the auctioneer node obtains second intermediate information and the identification information of the auctioneer according to the first intermediate information and the encryption information of the auctioneer;
and the auctioneer node obtains the auction information of the auctioneer according to the second intermediate information, the preset parameters, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node.
9. The method as recited in claim 8, further comprising:
The auctioneer node obtains a second random number; wherein the second random number is used as a temporary private key of the auctioneer node;
the auctioneer node generates a temporary public key of the auctioneer node according to the preset parameters and the second random number;
the auctioneer node stores the temporary public key of the auctioneer node into the blockchain to enable the auctioneer node to obtain the temporary public key of the auctioneer node.
10. The method of claim 8, wherein the second intermediate information comprises first sub-intermediate information and second sub-intermediate information;
the auctioneer node obtains the auction information of the auctioneer according to the second intermediate information, the preset parameters, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node, and the method comprises the following steps:
the auctioneer node obtains intermediate parameters according to the first sub-intermediate information and the preset parameters;
the auctioneer node obtains the auction information of the auctioneer according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node.
11. The method of claim 10, wherein the auctioneer node obtaining the auctioneer's auction information from the intermediary parameter, the first sub-intermediary information, the second sub-intermediary information, the long-term public key of the auctioneer node, and the temporary public key of the auctioneer node comprises:
the auctioneer node obtains first auction information according to the intermediate parameter, the first sub-intermediate information, the second sub-intermediate information, the long-term public key of the auctioneer node and the temporary public key of the auctioneer node;
the auctioneer node obtains second auction information according to the intermediate parameters and the temporary public key of the auctioneer node;
when the first auction information and the second auction information are the same, the auctioneer node takes either one of the first auction information and the second auction information as auction information of the auctioneer.
12. The method of claim 8, wherein the auctioneer node obtaining second intermediate information and identification information of the auctioneer based on the first intermediate information and the encryption information of the auctioneer, comprises:
And the auctioneer node performs exclusive OR operation on the first intermediate information and the encryption information of the auctioneer to obtain the second intermediate information and the identification information of the auctioneer.
13. The method of claim 12, wherein the binary length of the first intermediate information is equal to the sum of the binary length of the second intermediate information and the binary length of the identification information of the auction player.
14. The method according to any one of claims 8-13, further comprising:
the auctioneer node stores auctioning information of the auctioneer into a blockchain.
15. A blockchain-based auction processing method, comprising:
after the auction result publishes the expiration time, the arbiter node acquires a temporary private key of the auction player node stored in the blockchain after the auction result publishes the expiration time and encryption information of the auction player stored in the blockchain before the auction information uploads the expiration time;
the arbiter node obtains first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and encryption information of the auction player;
The arbiter node determines whether the auction result is disclosed according to the first auction information of the auction bidder.
16. The method as recited in claim 15, further comprising:
after the auction result publication deadline, the arbiter node obtains second auction information of the auction player and second identification information of the auction player stored by the auction player node to a blockchain after the auction result publication deadline;
the arbiter node determines whether the auction result is disclosed according to the first auction information of the auction master, including:
when the first auction information is the same as the second auction information and the first identification information is the same as the second identification information, the arbiter node determines whether the auction result is disclosed according to the first auction information of the auctioneer.
17. The method of claim 15 or 16, wherein the arbiter node obtaining the first auction information of the auction and the first identification information of the auction based on the temporary private key of the auction node, the temporary public key of the auction node, and the encryption information of the auction, comprises:
The arbiter node obtains first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node;
the arbiter node obtains second intermediate information and first identification information of the auction player according to the first intermediate information and encryption information of the auction player;
and the arbiter node obtains the first auction information of the auction according to the second intermediate information, the preset parameters, the long-term public key of the auction node and the temporary public key of the auction node.
18. A blockchain node as a bidder node, comprising:
the first acquisition module is used for acquiring auction information of the auction participants, wherein the auction information is generated according to auction information of the auction participants;
a processing module for
Obtaining first intermediate information according to the temporary private key of the auction node and the temporary public key of the auction node;
generating second intermediate information according to the auction information of the auction player, the temporary public key of the node of the auction player, preset parameters and the long-term public key of the node of the auction player;
obtaining encryption information of the auction player according to the first intermediate information, the second intermediate information and the identification information of the auction player;
Wherein the decryption parameters of the auction player comprise a temporary public key of the auction player node;
the first storage module is used for storing the encryption information of the auction player into a blockchain before the auction information corresponding to the auction information is uploaded to a deadline, so that the node of the auction player obtains the encryption information of the auction player;
the second storage module is used for storing decryption parameters of the auction players into the blockchain after the auction information uploads the expiration time and before the auction result corresponding to the auction information publishes the expiration time; wherein the decryption parameters of the auctioneer are used for the auctioneer node to decrypt the encryption information of the auctioneer to obtain the auctioneer information of the auctioneer.
19. A blockchain node as an auctioneer node, comprising:
the first acquisition module is used for acquiring the encryption information of the auction player stored in the blockchain before the auction information uploading deadline corresponding to the auction information of the auction player by the node of the auction player;
the second obtaining module is used for obtaining the decryption parameters of the auction player, which are stored in the blockchain after the auction information is uploaded for the deadline and before the auction result corresponding to the auction information is published for the deadline, wherein the decryption parameters of the auction player comprise temporary public keys of the auction player node;
A processing module for
Obtaining first intermediate information according to the temporary public key of the auction node and the temporary private key of the auction node;
obtaining second intermediate information and identification information of the auction player according to the first intermediate information and encryption information of the auction player;
and obtaining the auction information of the auction player according to the second intermediate information, the preset parameters, the long-term public key of the auction player node and the temporary public key of the auction player node.
20. A blockchain node as an arbiter node, comprising:
the system comprises an acquisition module, a block chain and a storage module, wherein the acquisition module is used for acquiring a temporary private key of an auction player node stored in the block chain after the auction result publishes the deadline and encryption information of the auction player stored in the block chain before the auction information uploads the deadline;
the processing module is used for obtaining first auction information of the auction player and first identification information of the auction player according to the temporary private key of the auction player node, the temporary public key of the auction player node and encryption information of the auction player;
And the arbitration module is used for determining whether the auction result is disclosed according to the first auction information of the auction player.
21. A blockchain node, comprising: memory, processor, and transceiver;
the transceiver is used for receiving data or transmitting data;
the memory is used for storing program instructions;
the processor for invoking the program instructions stored in the memory to implement the blockchain-based auction processing method of any of claims 1-7, or to implement the blockchain-based auction processing method of any of claims 8-14, or to implement the blockchain-based auction processing method of any of claims 15-17.
22. A storage medium, comprising: a readable storage medium and a computer program for implementing the blockchain-based auction processing method of any of claims 1-7, or the blockchain-based auction processing method of any of claims 8-14, or the blockchain-based auction processing method of any of claims 15-17.
CN201910571838.9A 2019-06-28 2019-06-28 Auction processing method based on block chain and block chain link point Active CN111769945B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910571838.9A CN111769945B (en) 2019-06-28 2019-06-28 Auction processing method based on block chain and block chain link point

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910571838.9A CN111769945B (en) 2019-06-28 2019-06-28 Auction processing method based on block chain and block chain link point

Publications (2)

Publication Number Publication Date
CN111769945A CN111769945A (en) 2020-10-13
CN111769945B true CN111769945B (en) 2023-09-26

Family

ID=72718297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910571838.9A Active CN111769945B (en) 2019-06-28 2019-06-28 Auction processing method based on block chain and block chain link point

Country Status (1)

Country Link
CN (1) CN111769945B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112950338A (en) * 2021-02-26 2021-06-11 浙江工商大学 Block chain-based sealed bidding domain name auction method
CN114826684B (en) * 2022-03-31 2023-06-16 西安电子科技大学 Decentralized crowdsourcing method, system and terminal supporting efficient privacy protection

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454114A (en) * 2017-09-29 2017-12-08 深圳市轱辘车联数据技术有限公司 A kind of auction bidding method, server and readable storage medium storing program for executing
CN108335202A (en) * 2018-01-29 2018-07-27 陆茹 A kind of distributed energy transaction system based on block chain
CN109039639A (en) * 2018-08-01 2018-12-18 国网江苏招标有限公司 Bidding system based on layering certainty cryptological technique
CN109934691A (en) * 2019-02-28 2019-06-25 矩阵元技术(深圳)有限公司 A kind of data processing method of auction, auction client and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8024274B2 (en) * 2006-05-05 2011-09-20 President And Fellows Of Harvard College Practical secrecy-preserving, verifiably correct and trustworthy auctions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107454114A (en) * 2017-09-29 2017-12-08 深圳市轱辘车联数据技术有限公司 A kind of auction bidding method, server and readable storage medium storing program for executing
CN108335202A (en) * 2018-01-29 2018-07-27 陆茹 A kind of distributed energy transaction system based on block chain
CN109039639A (en) * 2018-08-01 2018-12-18 国网江苏招标有限公司 Bidding system based on layering certainty cryptological technique
CN109934691A (en) * 2019-02-28 2019-06-25 矩阵元技术(深圳)有限公司 A kind of data processing method of auction, auction client and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
非可信环境下基于区块链的多级DR投标安全管理及技术支撑;李彬等;《中国电机工程学报》;20171221(第08期);全文 *

Also Published As

Publication number Publication date
CN111769945A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
US11601407B2 (en) Fast oblivious transfers
CN111066285B (en) SM2 signature based public key recovery method
CN107113179B (en) Method, system, and non-transitory computer-readable storage medium for communication authentication
EP3664005B1 (en) Credential generation and distribution method and system for a blockchain network
CN111242617B (en) Method and apparatus for performing transaction correctness verification
CN114730420A (en) System and method for generating signatures
JP6756041B2 (en) Information protection systems and methods
EP4068183A1 (en) Computer-implemented system and method enabling secure storage of a large blockchain over a plurality of storage nodes
EP3399484B1 (en) Method and server for authenticating and verifying file
CN116561789B (en) Processing method and device of privacy data, electronic equipment and readable storage medium
CN116204912B (en) Data processing method and device based on isomorphic encryption
CN109861956B (en) Data verification system, method, device and equipment based on state channel
CN111008863A (en) Lottery drawing method and system based on block chain
EP3496331A1 (en) Two-party signature device and method
WO2022088969A1 (en) Numerical value ranking method and apparatus based on blockchain
EP3399485B1 (en) Method and server for authenticating and verifying file
CN111769945B (en) Auction processing method based on block chain and block chain link point
CN111080296B (en) Verification method and device based on blockchain system
WO2014030706A1 (en) Encrypted database system, client device and server, method and program for adding encrypted data
CN109565440B (en) Key exchange method and key exchange system
US20240121109A1 (en) Digital signatures
JP2024510658A (en) Data processing methods, devices, electronic devices, and storage media for multi-source data
CN111784338A (en) Information processing method, device, system and storage medium
CN114666042B (en) White spirit traceability system information authentication method and related equipment based on position and SM2
WO2023055582A1 (en) Round optimal oblivious transfers from isogenies

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