A bidding and tendering processing method, system, device and medium based on blockchain
By executing smart contracts on the blockchain and using asymmetric encryption keys to encrypt and decrypt bid document data, the risk of bid document leakage in the existing bidding system is solved and the security and traceability of bid document data are achieved.
Patent Information
- Application Number
- CN202011141411.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-22
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-10-22
AI Technical Summary
In the existing bidding system, the contents of the bid documents are stored on the file storage server, which makes it difficult to avoid human violations, leading to the risk of leakage of the bid documents, and the security of the bid documents cannot be effectively guaranteed.
By executing smart contracts on the blockchain, asymmetric encrypted key pair allegaries are used for encryption and decryption, only decryption and chain storage only meet the preset decryption conditions to ensure the security of the bid data.
The bidding process has been standardized, the security of tender documents has been enhanced, human irregularities and leakage risks have been prevented, and traceable data storage evidence has been formed through the decentralization and non-tampering characteristics of the blockchain.
Smart Images

Figure CN112257085B
Abstract
Description
Technical Field
[0001] The present application relates to the field of blockchain technology, and in particular to a bidding and tendering processing method, system, device and medium based on blockchain. Background Art
[0002] At present, in the bidding management, usually after the tenderer releases the bid, the bidder prepares the bid and uploads the electronic document of the bid to the file storage server (or OSS cloud server) of the bidding system through the bidding system. When the tenderer evaluates the bid, the bid is downloaded through the bidding system and the bid is evaluated. In this way, the bid is stored in the file storage server (or OSS cloud server), and the content of the bid is in plain text. People with operation and maintenance or file server access rights can view the content of the bid. Alternatively, after the tenderer releases the bid, the bidder prepares the bid, encrypts the electronic document of the bid, and uploads the encrypted electronic document of the bid to the file storage server (or OSS cloud server) of the bidding system through the bidding system. Within a certain period of time before the tenderer evaluates the bid, the bidder decrypts the encrypted electronic document through the bidding system for the tenderer to complete the download and evaluation of the electronic bid. In this way, the bid is stored in the file storage server (or OSS cloud server). Although the content of the bid is ciphertext, it is impossible to prevent the encrypted file from being downloaded and cracked by operation and maintenance personnel or file storage service providers, and it is impossible to keep the record of the encrypted ciphertext being decrypted and viewed in advance. In summary, the existing technology at least has the problem of being difficult to avoid illegal operations on the bid and the bid is easy to leak. Summary of the invention
[0003] In view of this, the purpose of this application is to provide a blockchain-based bidding processing method, system, device and medium, which can standardize the bidding process and ensure the security of the bid. The specific plan is as follows:
[0004] In the first aspect, the present application discloses a bidding process based on blockchain, comprising:
[0005] The first smart contract is executed by the first endorsement node organized by the tenderer to determine whether the encrypted tender document data stored on the blockchain meets the first preset decryption condition. If so, the encrypted tender document data is decrypted using the first decryption key to obtain target decrypted data; wherein the encrypted tender document data is encrypted data obtained by encrypting the plain text of the tender document information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key;
[0006] The second smart contract is executed by the second endorsement node organized by the bidder to determine whether the target decrypted data meets the second preset decryption condition. If so, the target decrypted data is decrypted using the second decryption key to obtain the plain text of the tender information, and then the plain text of the tender information is stored on the chain;
[0007] The first endorsement node responds to the tender document information viewing request sent by the tenderer system, and returns the plain text of the tender document information to the tenderer system so that the tenderer can evaluate the bid according to the plain text information of the tender document.
[0008] Optionally, determining whether the encrypted bid data stored on the blockchain satisfies a first preset decryption condition includes:
[0009] Determine whether there is a decryption record for the encrypted bid data stored on the blockchain. If not, determine that the first preset decryption condition is met.
[0010] Optionally, the determining whether the target decrypted data satisfies a second preset decryption condition includes:
[0011] Determine whether there is a decryption record of the second decryption of the target decrypted data, and whether the current time is within the preset decryption time. If there is no decryption record of the second decryption and the current time is within the preset decryption time, it is determined that the second preset decryption condition is met; otherwise, it is determined that the second preset decryption condition is not met.
[0012] Optionally, the bidding processing method further includes:
[0013] The third smart contract is executed through the first endorsement node, the first encryption key sent by the tenderer system is received, the first encryption key is simulated and stored, a corresponding transaction endorsement is generated, and then the transaction endorsement is returned to the tenderer system, so that the tenderer system submits the transaction endorsement to the sorting node to store the first encryption key on the chain.
[0014] Optionally, the bidding processing method further includes: executing a fourth smart contract through the second endorsement node, and when the target bid document data is obtained, determining whether the target bid document data meets a preset change condition, and if so, encrypting the target bid document data using the first encryption key to obtain the encrypted bid document data;
[0015] The target bid document data is data obtained by encrypting the plain text of the bid document information by the bidder system using the second encryption key.
[0016] Optionally, the bidding processing method further includes:
[0017] The bidding document information inputted by the bidding document terminal is obtained through the bidding document system, and the bidding document information is converted into data in a preset format to obtain the plain text of the bidding document information.
[0018] Optionally, the first decryption key and the first encryption key as well as the second decryption key and the second encryption key are all keys generated based on an asymmetric encryption algorithm.
[0019] In the second aspect, the present application discloses a bidding processing system based on blockchain, comprising:
[0020] The first endorsement node is used to execute the first smart contract, determine whether the encrypted bid document data stored on the blockchain meets the first preset decryption condition, and if so, use the first decryption key to decrypt the encrypted bid document data to obtain target decrypted data; wherein the encrypted bid document data is encrypted data obtained by encrypting the plain text of the bid document information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; the first endorsement node is an endorsement node organized by the tenderer;
[0021] The second endorsement node is used to execute the second smart contract, determine whether the target decrypted data meets the second preset decryption condition, and if so, use the second decryption key to decrypt the target decrypted data to obtain the plain text of the tender information, and then store the plain text of the tender information on the chain; the second endorsement node is an endorsement node organized by the bidder;
[0022] Furthermore, the first endorsement node is also used to respond to a request for viewing the tender document information sent by the tenderer system, and return the plain text tender document information to the tenderer system so that the tenderer can evaluate the bid based on the plain text tender document information.
[0023] In a third aspect, the present application discloses an electronic device, comprising:
[0024] Memory, used to store computer programs;
[0025] The processor is used to execute the computer program to implement the bidding processing method mentioned above.
[0026] In a fourth aspect, the present application discloses a computer-readable storage medium, characterized in that it is used to store a computer program, and the computer program implements the aforementioned bidding processing method when executed by a processor.
[0027] It can be seen that this application executes the first smart contract through the first endorsement node organized by the tenderer, determines whether the encrypted tender data stored on the blockchain meets the first preset decryption condition, and if so, uses the first decryption key to decrypt the encrypted tender data to obtain the target decrypted data; wherein, the encrypted tender data is encrypted data obtained by encrypting the tender information plaintext using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; executes the second smart contract through the second endorsement node organized by the tenderer, determines whether the target decrypted data meets the second preset decryption condition, and if so, uses the second decryption key to decrypt the target decrypted data to obtain the tender information plaintext, and then stores the tender information plaintext on the chain; responds to the tender information viewing request sent by the tenderer system through the first endorsement node, and returns the tender information plaintext to the tenderer system, so that the tenderer can evaluate the bid according to the tender plaintext information. In this way, by executing the smart contract, the tender data can be decrypted only when the decryption condition is met, which can standardize the bidding process and ensure the security of the tender. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0029] Figure 1 A flowchart of a bidding and tendering processing method based on blockchain disclosed in this application;
[0030] Figure 2 This is a specific implementation architecture diagram of a blockchain-based bidding processing method disclosed in this application;
[0031] Figure 3 A specific bidding flow chart disclosed for this application;
[0032] Figure 4 A specific bidding flow chart disclosed for this application;
[0033] Figure 5 A specific first decryption flow chart disclosed in this application;
[0034] Figure 6 A specific second decryption flow chart disclosed in this application;
[0035] Figure 7 A specific flowchart for obtaining plain text of tender information disclosed in this application;
[0036] Figure 8 This is a schematic diagram of the structure of a bidding and tendering processing system based on blockchain disclosed in this application;
[0037] Fig. 9 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0039] At present, in the bidding management, usually after the tenderer releases the bid, the bidder prepares the bid and uploads the electronic document of the bid to the file storage server (or OSS cloud server) of the bidding system through the bidding system. When the tenderer evaluates the bid, the bid is downloaded through the bidding system and the bid is evaluated. In this way, the bid is stored in the file storage server (or OSS cloud server), and the content of the bid is in plain text. People with operation and maintenance or file server access rights can view the content of the bid. Alternatively, after the tenderer releases the bid, the bidder prepares the bid, encrypts the electronic document of the bid, and uploads the encrypted electronic document of the bid to the file storage server (or OSS cloud server) of the bidding system through the bidding system. Within a certain period of time before the tenderer evaluates the bid, the bidder decrypts the encrypted electronic document through the bidding system for the tenderer to complete the download and evaluation of the electronic bid. In this way, the bid is stored in the file storage server (or OSS cloud server). Although the content of the bid is ciphertext, it is impossible to prevent the encrypted file from being downloaded and violently cracked by the operation and maintenance personnel or the file storage service provider, and it is impossible to retain the record of the encrypted ciphertext being decrypted and viewed in advance. In summary, the prior art at least has the problem that it is difficult to avoid illegal operations on the bid and the bid is easy to leak. For this reason, this application provides a bidding processing solution based on blockchain, which can standardize the bidding process and ensure the security of the bid.
[0040] See also Figure 1 As shown, the embodiment of the present application discloses a bidding processing method based on blockchain, including:
[0041] Step S11: Execute the first smart contract through the first endorsement node organized by the tenderer to determine whether the encrypted bid data stored on the blockchain meets the first preset decryption condition. If so, use the first decryption key to decrypt the encrypted bid data to obtain the target decrypted data; wherein the encrypted bid data is encrypted data obtained by encrypting the plaintext bid information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key.
[0042] In a specific implementation, the determining whether the encrypted bid data stored on the blockchain satisfies a first preset decryption condition includes: determining whether there is a decryption record for the encrypted bid data stored on the blockchain; if not, determining that the first preset decryption condition is satisfied.
[0043] Furthermore, in a specific implementation, a first decryption key sent by the tenderer system is obtained through a first smart contract, and then it is determined whether the encrypted bid data stored on the blockchain meets a first preset decryption condition.
[0044] Furthermore, after obtaining the target decrypted data, the transaction endorsement corresponding to the target decrypted data is sent to the tenderer system, and the tenderer system submits the transaction endorsement corresponding to the target decrypted data to the sorting node, and the sorting node performs block packaging and distribution so as to store the target decrypted data on the chain.
[0045] Step S12: Execute the second smart contract through the second endorsement node organized by the bidder to determine whether the target decrypted data meets the second preset decryption condition. If so, use the second decryption key to decrypt the target decrypted data to obtain the plaintext of the tender information, and then store the plaintext of the tender information on the chain.
[0046] In a specific implementation, the determination of whether the target decrypted data satisfies a second preset decryption condition includes: determining whether there is a decryption record of a second decryption of the target decrypted data, and whether the current time is within a preset decryption time; if there is no decryption record of a second decryption and the current time is within the preset decryption time, it is determined that the second preset decryption condition is satisfied; otherwise, it is determined that the second preset decryption condition is not satisfied.
[0047] Furthermore, in a specific implementation, the second decryption key sent by the bidder system is obtained through the second smart contract, and then it is determined whether the target decrypted data stored on the blockchain meets the second preset decryption condition.
[0048] Furthermore, after obtaining the plaintext of the tender information, the transaction endorsement corresponding to the plaintext of the tender information is sent to the bidder system, and the tenderer system submits the transaction endorsement corresponding to the plaintext of the tender information to the sorting node, and the sorting node performs block packaging and distribution so as to store the plaintext of the tender information on the chain.
[0049] Step S13: Respond to the tender document information viewing request sent by the tenderer system through the first endorsement node, and return the tender document information in plain text to the tenderer system so that the tenderer can evaluate the bid based on the tender document plain text information.
[0050] Among them, the first decryption key and the first encryption key as well as the second decryption key and the second encryption key are all keys generated based on an asymmetric encryption algorithm. Specifically, after issuing a tender notice, the tenderer system generates an asymmetric encryption public key PK1 and a private key SK1, where the public key PK1 is the first encryption key and the private key SK1 is the first decryption key. After generating or modifying the content of the tender document, the bidder system generates an asymmetric encryption public key PK2 and a private key SK2, where the public key PK2 is the second encryption key and the private key SK2 is the second decryption key.
[0051] The process of storing the first encryption key on the chain is: executing the third smart contract through the first endorsement node, receiving the first encryption key sent by the tenderer system, simulating the storage of the first encryption key, generating a corresponding transaction endorsement, and then returning the transaction endorsement to the tenderer system, so that the tenderer system submits the transaction endorsement to the sorting node to store the first encryption key on the chain.
[0052] In addition, the generation process of the encrypted bid data is as follows: executing the fourth smart contract through the second endorsement node, and when the target bid data is obtained, determining whether the target bid data meets the preset change conditions, and if so, encrypting the target bid data using the first encryption key to obtain the encrypted bid data; wherein the target bid data is the data obtained by the bidder system encrypting the plain text of the bid information using the second encryption key.
[0053] That is, the bidder system first uses the second encryption key to encrypt the plain text of the bid information to obtain the target bid data, and then sends it to the second endorsement node. The second endorsement node obtains the target bid data through the smart contract and determines whether the target bid data meets the preset change conditions. If so, the target bid data is encrypted using the first encryption key to obtain the encrypted bid data.
[0054] Among them, the preset change condition can be a time limit condition, for example, no modification is allowed one hour before the bid opening, or no modification is allowed after the decryption is completed, etc. It can be set according to the business scenario and the smart contract can complete the condition judgment.
[0055] That is, this embodiment can use double-layer asymmetric encryption to ensure the security of the bid document data and increase the difficulty of being cracked. Of course, in other embodiments, symmetric encryption technology can be used.
[0056] Furthermore, after the encrypted bid data is generated, the encrypted bid data is stored on the chain.
[0057] In addition, in a specific implementation, the bidder system can obtain the bid information input by the bidder terminal, and convert the bid information into data in a preset format to obtain the plain text of the bid information. For example, the data is converted into data in a format such as JSON or XML to reduce the amount of data stored on the chain.
[0058] It should be noted that the size of the electronic documents of the tender documents is often relatively large. If the data on the file stream is larger than the transaction limit that the sorting node can accept, it will be rejected by the sorting node. This embodiment does not use the original electronic documents of the tender documents, but converts them into data in a preset format, reducing the amount of data.
[0059] In addition, this embodiment utilizes the decentralized and tamper-proof characteristics of blockchain technology (distributed ledger) to achieve the chain recording of key steps in the bidding process and form traceable data evidence.
[0060] It can be seen that the embodiment of the present application executes the first smart contract through the first endorsement node organized by the tenderer, determines whether the encrypted bid data stored on the blockchain meets the first preset decryption condition, and if so, uses the first decryption key to decrypt the encrypted bid data to obtain the target decrypted data; wherein the encrypted bid data is encrypted data obtained by encrypting the plaintext of the bid information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; executes the second smart contract through the second endorsement node organized by the tenderer, determines whether the target decrypted data meets the second preset decryption condition, and if so, uses the second decryption key to decrypt the target decrypted data to obtain the plaintext of the bid information, and then stores the plaintext of the bid information on the chain; responds to the bid information viewing request sent by the tenderer system through the first endorsement node, and returns the plaintext of the bid information to the tenderer system, so that the tenderer can evaluate the bid according to the plaintext information of the bid. In this way, by executing the smart contract, the bid data can be decrypted only when the decryption condition is met, which can standardize the bidding process and ensure the security of the bid.
[0061] See also Figure 2 As shown, Figure 2 A specific implementation architecture diagram of a bidding and tendering processing method based on blockchain disclosed in the embodiment of the present application. Among them, Fabric-CA service: MSP root certificate is the root CA certificate of the bidder organization, dynamically issues CA certificates to organizational members (bidders) accessing the Fabric blockchain network, and completes access license authentication. Bidder system: A business system that provides services to bidders, which is the application layer for bidder users to read and upload data to the blockchain network. Tenderer system: A business system that provides services to tenderers, which is the application layer for tenderer users to read and upload data to the blockchain network. Blockchain network: A data channel is preset in the blockchain network for bidder organizations and tenderer organizations to conduct data transactions (isolated from other channel data in the network). The bidder organization is composed of loose bidders and is a logical organization. Endorsement Peer Node: For the sake of high availability and internal differentiation of the organization, multiple endorsement Peer nodes will be deployed in the organization to meet the needs of endorsement of data on the chain of multiple organizational members. Consensus sorting service: In the blockchain network, the service of sorting, packaging, and distributing transaction data submitted by the client (application layer) and endorsed by the endorsement node is irrelevant to the business. Smart contract: Also known as chain code in Fabric, it is a code program that contains business logic. In Fabric, endorsement nodes need to install smart contracts. The transaction proposals submitted by blockchain access users are virtually executed through smart contracts, transaction endorsements are generated, and they are packaged into blocks through sorting services and distributed to other nodes to complete the transaction.
[0062] See also Figure 3 As shown, Figure 3 A specific bidding flow chart disclosed in the embodiment of this application. The tenderer publishes a bidding announcement through the tenderer system, and then generates a set of asymmetric private key SK1 and public key PK1 of the announcement through the tenderer system for subsequent encryption and decryption operations. After that, PK1 is stored on the blockchain through the tenderer system for subsequent encryption. SK1 is saved by the tenderer staff in the tenderer system or local storage medium.
[0063] See also Figure 4 As shown, Figure 4A specific bidding flow chart disclosed in the embodiment of the present application. The bidder fills in the bid information through the bidder system, converts the bid information into data in a preset format, so as to obtain the plain text of the bid information, i.e., the bid summary, rather than the original electronic document of the bid, and generates a set of asymmetric key private key SK2 and public key PK2 corresponding to the bid information through the bidder system for subsequent encryption and decryption operations. After that, the bidder uses PK2 to complete the encryption of the bid summary locally through the bidder system, and then submits the encrypted bid summary to the endorsement node organized by the bidder through the bidder system for transaction endorsement. The endorsement node executes the smart contract to simulate the transaction, and the code logic of the smart contract determines whether the current operation meets the conditions for adding / modifying the bid summary. The specific conditions can be time conditions, such as no modification is allowed 1 hour before the bid opening, no modification is allowed after the decryption is completed, etc., which are set according to the business scenario, and the smart contract completes the condition judgment. If the change conditions are met, PK1 is used for the second encryption to complete the transaction endorsement, and the endorsement node feeds back the transaction endorsement to the bidder system, and the bidder system submits the transaction endorsement to the sorting node for packaging and distribution to complete the transaction on the chain. If the change conditions are not met, the endorsement node will return the abnormal information to the bidder system.
[0064] See also Figure 5 As shown, Figure 5 A specific first decryption flow chart disclosed in the embodiment of the present application. In the pre-bid evaluation stage, the tenderer restricts the bidder's behavior of adding or modifying the bid summary according to the business settings, such as calling the smart contract through the tenderer system (actually a transaction occurs) 1 hour before the bid opening. The tenderer uploads the decryption key SK1 generated and saved locally before uploading it to the tenderer system, and performs the first decryption of the bids participating in this tender in batches. If the smart contract finds that the bid summary has been decrypted before decryption, it returns an abnormal prompt message, and the bid summary is at risk of leakage. After the tenderer completes the first decryption operation on all bids, it waits for the bidder to perform a second decryption on the bid.
[0065] See also Figure 6 As shown, Figure 6 A specific second decryption flow chart disclosed in the embodiment of this application. The bidder uploads the originally generated and saved SK2 through the bidder system, and determines through the smart contract whether the bid summary can be decrypted. Through the smart contract, it can be determined whether the current time is the decryption time allowed by the tenderer, whether the bid summary has a record of secondary decryption (the content of the bid has been leaked), etc. If it is judged that an abnormality occurs, the abnormal information will be returned to the bidder system. If it is judged that there is no abnormality, normal secondary decryption is performed, and the decrypted bid summary plaintext data is uploaded to the chain.
[0066] See also Figure 7 As shown, Figure 7The following is a specific flowchart for obtaining the plain text of the tender information disclosed in the embodiment of the present application. In the bid evaluation stage, the tenderer reads the plain text of the tender summary decrypted twice by the bidder through the tenderer system to carry out the work in the bid evaluation stage.
[0067] It should be pointed out that in some other implementations, the tenderer organization and the bidder organization can be merged into one organization in the blockchain network environment. In addition, a third-party arbitration organization can be added. When the data of the nodes in the tenderer organization and the bidder organization are inconsistent, the ledger data of its nodes provided by the third-party arbitration organization shall prevail.
[0068] It is understandable that this embodiment utilizes the decentralized characteristics of blockchain technology (distributed ledger) and the immutability of chain data to realize the recording of key steps in the bidding process and form traceable data evidence. However, the existing scheme often has the problem that the bidding system is maintained by one party, the data is opaque and easy to be tampered with, and it is difficult to use the system data as a chain of evidence to achieve true process traceability when disputes arise. In addition, the bid document is replaced by the bid document data in a preset format, and the security of the bid document data is ensured by double-layer asymmetric encryption, which increases the difficulty of being cracked. However, in the existing scheme, the bid document is generally an electronic document with a huge volume, and it is time-consuming to store and access it. The bidder needs to encrypt the entire electronic document, and the encryption process is relatively long. Moreover, because the electronic document itself occupies a large disk space, it is necessary to submit the bid document to the file storage server of the bidding system in advance before bidding, and decrypt it before bid evaluation. There is a certain risk in storing it in the file storage server. The staff with operation and maintenance authority can download the encrypted electronic bid document and try to crack it, and the whole process can be done without leaving any trace. In addition, this embodiment manages the bidding process steps through smart contracts, and standardizes the business process through the code of smart contracts and implements non-compliant operation alarms. In the existing scheme, human illegal operations, such as downloading encrypted electronic bid documents and cracking them, decrypting the bid document content in advance before bid evaluation, etc., may be bypassed and the records erased. Smart contracts can standardize process operations, form tamper-proof records at each step, and provide intelligent alarms for non-compliant operations.
[0069] See also Figure 8 As shown, the embodiment of the present application discloses a bidding processing system based on blockchain, including:
[0070] The first endorsement node 11 is used to execute the first smart contract, determine whether the encrypted bid document data stored on the blockchain meets the first preset decryption condition, and if so, use the first decryption key to decrypt the encrypted bid document data to obtain target decrypted data; wherein the encrypted bid document data is encrypted data obtained by encrypting the plain text of the bid document information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; the first endorsement node is an endorsement node organized by the tenderer;
[0071] The second endorsement node 12 is used to execute the second smart contract, determine whether the target decrypted data meets the second preset decryption condition, and if so, use the second decryption key to decrypt the target decrypted data to obtain the plain text of the tender information, and then store the plain text of the tender information on the chain; the second endorsement node is an endorsement node organized by the bidder;
[0072] Furthermore, the first endorsement node is also used to respond to a request for viewing the tender document information sent by the tenderer system, and return the plain text tender document information to the tenderer system so that the tenderer can evaluate the bid based on the plain text tender document information.
[0073] It can be seen that the embodiment of the present application executes the first smart contract through the first endorsement node organized by the tenderer, determines whether the encrypted bid data stored on the blockchain meets the first preset decryption condition, and if so, uses the first decryption key to decrypt the encrypted bid data to obtain the target decrypted data; wherein the encrypted bid data is encrypted data obtained by encrypting the plaintext of the bid information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; executes the second smart contract through the second endorsement node organized by the tenderer, determines whether the target decrypted data meets the second preset decryption condition, and if so, uses the second decryption key to decrypt the target decrypted data to obtain the plaintext of the bid information, and then stores the plaintext of the bid information on the chain; responds to the bid information viewing request sent by the tenderer system through the first endorsement node, and returns the plaintext of the bid information to the tenderer system, so that the tenderer can evaluate the bid according to the plaintext information of the bid. In this way, by executing the smart contract, the bid data can be decrypted only when the decryption condition is met, which can standardize the bidding process and ensure the security of the bid.
[0074] Among them, the first endorsement node is specifically used to determine whether there is a decryption record for the encrypted bid data stored on the blockchain. If not, it is determined that the first preset decryption condition is met.
[0075] The second endorsement node is specifically used to determine whether there is a decryption record of the second decryption of the target decrypted data, and whether the current time is within the preset decryption time. If there is no decryption record of the second decryption and the current time is within the preset decryption time, it is determined that the second preset decryption condition is met; otherwise, it is determined that the second preset decryption condition is not met.
[0076] In addition, the first endorsement node is also used to execute a third smart contract, receive the first encryption key sent by the tenderer system, simulate the storage of the first encryption key, generate a corresponding transaction endorsement, and then return the transaction endorsement to the tenderer system, so that the tenderer system submits the transaction endorsement to the sorting node to store the first encryption key on the chain.
[0077] Furthermore, the second endorsement node is further used to execute a fourth smart contract, and when obtaining the target bid document data, determines whether the target bid document data meets the preset change condition, and if so, encrypts the target bid document data using the first encryption key to obtain the encrypted bid document data;
[0078] The target bid document data is data obtained by encrypting the plain text of the bid document information by the bidder system using the second encryption key.
[0079] The bidding processing system also includes: a bidder system, which is used to obtain the bid document information input by the bidder terminal and convert the bid document information into data in a preset format to obtain the plain text of the bid document information.
[0080] The first decryption key and the first encryption key as well as the second decryption key and the second encryption key are all keys generated based on an asymmetric encryption algorithm.
[0081] See also Fig. 9 As shown, an embodiment of the present application discloses an electronic device, including a processor 21 and a memory 22; wherein the memory 22 is used to store a computer program; and the processor 21 is used to execute the computer program to implement the blockchain-based bidding processing method disclosed in the aforementioned embodiment.
[0082] For the specific process of the above-mentioned blockchain-based bidding processing method, please refer to the corresponding content disclosed in the aforementioned embodiments, which will not be repeated here.
[0083] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the blockchain-based bidding processing method disclosed in the aforementioned embodiment.
[0084] For the specific process of the above-mentioned blockchain-based bidding processing method, please refer to the corresponding content disclosed in the aforementioned embodiments, which will not be repeated here.
[0085] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0086] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0087] The above is a detailed introduction to the blockchain-based bidding processing method, system, device and medium provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A bidding process based on blockchain, characterized in that: include: The first smart contract is executed by the first endorsement node organized by the tenderer to determine whether the encrypted tender document data stored on the blockchain meets the first preset decryption condition. If so, the encrypted tender document data is decrypted using the first decryption key to obtain target decrypted data; wherein the encrypted tender document data is encrypted data obtained by encrypting the plain text of the tender document information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; The second smart contract is executed by the second endorsement node organized by the bidder to determine whether the target decrypted data meets the second preset decryption condition. If so, the target decrypted data is decrypted using the second decryption key to obtain the plain text of the tender information, and then the plain text of the tender information is stored on the chain; Responding to the request for viewing the tender document information sent by the tendering agent system through the first endorsement node, returning the tender document information in plain text to the tendering agent system, so that the tendering agent can evaluate the tender according to the plain text of the tender document information; Also includes: The third smart contract is executed through the first endorsement node, the first encryption key sent by the tenderer system is received, the first encryption key is simulated and stored, a corresponding transaction endorsement is generated, and then the transaction endorsement is returned to the tenderer system, so that the tenderer system submits the transaction endorsement to the sorting node to store the first encryption key on the chain.
2. The bidding processing method according to claim 1, characterized in that: The step of determining whether the encrypted bid data stored on the blockchain satisfies a first preset decryption condition includes: Determine whether there is a decryption record for the encrypted bid data stored on the blockchain. If not, determine that the first preset decryption condition is met.
3. The bidding processing method according to claim 1, characterized in that: The determining whether the target decrypted data satisfies a second preset decryption condition includes: Determine whether there is a decryption record of the second decryption of the target decrypted data, and whether the current time is within the preset decryption time. If there is no decryption record of the second decryption and the current time is within the preset decryption time, it is determined that the second preset decryption condition is met; otherwise, it is determined that the second preset decryption condition is not met.
4. The bidding processing method according to claim 1, characterized in that: Also includes: executing the fourth smart contract through the second endorsement node, and when obtaining the target bid document data, determining whether the target bid document data meets the preset change condition, and if so, encrypting the target bid document data using the first encryption key to obtain the encrypted bid document data; The target bid document data is data obtained by encrypting the plain text of the bid document information by the bidder system using the second encryption key.
5. The bidding processing method according to claim 1, characterized in that: Also includes: The bidding document information inputted by the bidding document terminal is obtained through the bidding document system, and the bidding document information is converted into data in a preset format to obtain the plain text of the bidding document information.
6. The bidding processing method according to claim 1, characterized in that: The first decryption key and the first encryption key as well as the second decryption key and the second encryption key are all keys generated based on an asymmetric encryption algorithm.
7. A bidding and tendering processing system based on blockchain, characterized in that: include: The first endorsement node is used to execute the first smart contract, determine whether the encrypted bid document data stored on the blockchain meets the first preset decryption condition, and if so, use the first decryption key to decrypt the encrypted bid document data to obtain target decrypted data; wherein the encrypted bid document data is encrypted data obtained by encrypting the plain text of the bid document information using the first encryption key corresponding to the first decryption key and the second encryption key corresponding to the second decryption key; the first endorsement node is an endorsement node organized by the tenderer; The second endorsement node is used to execute the second smart contract, determine whether the target decrypted data meets the second preset decryption condition, and if so, use the second decryption key to decrypt the target decrypted data to obtain the plain text of the tender information, and then store the plain text of the tender information on the chain; the second endorsement node is an endorsement node organized by the bidder; Furthermore, the first endorsement node is further used to respond to a request for viewing the tender document information sent by the tenderer system, and return the tender document information in plain text to the tenderer system, so that the tenderer can evaluate the tender according to the plain text of the tender document information; The first endorsement node is also used to execute a third smart contract, receive the first encryption key sent by the tenderer system, simulate the storage of the first encryption key, generate a corresponding transaction endorsement, and then return the transaction endorsement to the tenderer system, so that the tenderer system submits the transaction endorsement to the sorting node to store the first encryption key on the chain.
8. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor is used to execute the computer program to implement the bidding processing method as described in any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: Used to store a computer program, which, when executed by a processor, implements the bidding processing method as described in any one of claims 1 to 6.
