CN110189190B - Bitspecan-based bidding method, apparatus, computer device and storage medium - Google Patents

Bitspecan-based bidding method, apparatus, computer device and storage medium Download PDF

Info

Publication number
CN110189190B
CN110189190B CN201910341156.9A CN201910341156A CN110189190B CN 110189190 B CN110189190 B CN 110189190B CN 201910341156 A CN201910341156 A CN 201910341156A CN 110189190 B CN110189190 B CN 110189190B
Authority
CN
China
Prior art keywords
bid
bidding
blockchain
terminal
receiving
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
CN201910341156.9A
Other languages
Chinese (zh)
Other versions
CN110189190A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910341156.9A priority Critical patent/CN110189190B/en
Publication of CN110189190A publication Critical patent/CN110189190A/en
Application granted granted Critical
Publication of CN110189190B publication Critical patent/CN110189190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0611Request for offers or quotes

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Disclosed herein are a blockchain-based bidding method, apparatus, computer device and storage medium, the method comprising: receiving a request for joining the block chain sent by a second terminal; allowing the second terminal to join the blockchain and marking the second terminal as a designated blockchain node; receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and installed with the intelligent contract; the standard book is sent to the appointed block chain node, and a standard marking result and a standard marking notice which are made by the appointed block chain link point according to the standard book are received; and sending the bid evaluation result and the bid-winning notice to all the blockchain nodes, thereby completing the bid-winning process, avoiding the repeated process of establishing a bid-winning platform and saving redundant cost and time.

Description

Bitspecan-based bidding method, apparatus, computer device and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a blockchain-based bidding method, apparatus, computer device, and storage medium.
Background
Purchasing is generally classified into public bidding, inviting bidding, price inquiring purchasing, single source purchasing, and the like, all involving multiple participants: demand departments, financial departments, purchasing departments, multiple suppliers, wind control and auditing departments, and purchasing flows and links are complex. In order to meet the requirement of bidding in the prior art, a first party enterprise is generally required to provide a purchasing platform, a provider participating in bidding completes information input and data viewing in the platform, and then the first party enterprise is utilized to provide the purchasing platform to complete the whole bidding process. However, in a real scenario, each enterprise may provide services or need to purchase, and the identity of each subject is not absolute, that is, the first enterprise in the last bidding process becomes a provider participating in bidding in the next bidding process, so that a purchasing system needs to be built in the next bidding process, which results in a large amount of repeated cost and extra cost and time.
Disclosure of Invention
The main purpose of the application is to provide a bidding method, a device, a computer device and a storage medium based on a blockchain, which aim to finish the bidding process by utilizing the blockchain constructed in advance, so that the process of repeatedly establishing a bidding platform is omitted, and the redundant cost and time are saved.
In order to achieve the above object, the present application proposes a block chain-based bidding method, applied to a first terminal, including:
receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance;
allowing the second terminal to join the blockchain and marking the second terminal as a designated blockchain node;
receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and installed with the intelligent contract;
the standard book is sent to the appointed block chain node, and a standard marking result and a standard marking notice which are made by the appointed block chain link point according to the standard book are received;
and sending the bid evaluation result and the bid-winning notice to all the blockchain nodes, thereby completing a bid-winning flow.
Further, the step of allowing the second terminal to join the blockchain and recording the second terminal as a designated blockchain node includes:
Judging whether the second terminal exists in a preset authorized list or not;
if the second terminal exists in a preset authorized list, the second terminal is marked as a designated blockchain node, an identity certificate of the second terminal is issued to the second terminal according to the authorized list, and the second terminal is marked as the designated blockchain node.
Further, the step of receiving the bidding project information sent by the designated blockchain node, receiving and installing the intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving the bidding document sent by the blockchain node as a bidder installed with the intelligent contract includes:
receiving bidding project information sent by the designated blockchain node, and receiving and installing intelligent contracts corresponding to the bidding project information sent by the designated blockchain node;
receiving a bid submission application sent by a blockchain node provided with the intelligent contract;
judging whether a blockchain node sending the bid submitting application invokes a bidding participation method in the intelligent contract or not;
if the block chain node for sending the bid calls the method for participating in bidding in the intelligent contract, the block chain node for sending the bid is used as a bidder, and the bid sent by the bidder is received according to the bid submitting application.
Further, the step of sending the bid to the designated blockchain node and receiving the bid evaluation result and the bid winning notice of the designated blockchain node according to the bid includes:
comparing the bidding amount in the bidding with a preset amount, and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount;
and sending the bidding documents with the bidding amount-preset amount being smaller than the preset error amount to the designated blockchain node, and receiving bid evaluation results and bid winning notices which are made by the designated blockchain node according to the bidding documents with the bidding amount-preset amount being smaller than the preset error amount.
Further, the step of sending the bid evaluation result and the bid-winning notice to all blockchain nodes so as to complete the bid-winning process includes:
sending the bid evaluation result and the bid-winning notice to all the blockchain nodes;
judging whether an objection request sent by a blockchain node installed with the intelligent contract is received within the public time specified by the intelligent contract;
and if the objection request sent by the blockchain node provided with the intelligent contract is not received, invoking a closing project method in the intelligent contract, thereby closing the bidding project to complete the bidding process.
Further, after the step of sending the bid evaluation result and the bid winning notice to all blockchain nodes, the method includes:
receiving another bidding project information sent by another blockchain node, receiving and installing an intelligent contract corresponding to the other bidding project information sent by the other blockchain node, and receiving a bidding document sent by a blockchain node serving as a bidder and provided with the intelligent contract corresponding to the other bidding project information;
sending a bid to the other block chain link point, and receiving a bid evaluation result and a bid-winning notice which are made by the other block chain link point according to the bid;
and sending the bid evaluation result and the bid winning notice to all the blockchain nodes, thereby completing the process of the other bid.
Further, the step of receiving, by the second terminal, information of agreeing to a preset consensus mechanism of the blockchain and a request for joining the blockchain, where the first terminal is a certificate authority node of a blockchain constructed in advance includes:
creating a blockchain class in the first terminal by adopting a Go language;
the method comprises the steps of obtaining an created block after instantiating the block chain class, setting the hash value of a previous block to 0 in the created block, and generating other blocks based on the created block, wherein the other blocks record the hash values of the previous blocks of the other blocks;
The consensus mechanism of the blockchain is set to be a Bayesian fault tolerance mechanism.
The application provides a bidding device based on blockchain is applied to first terminal, includes:
the joining request receiving unit is used for receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance;
an allowable joining unit configured to allow the second terminal to join the blockchain and record the second terminal as a specified blockchain node;
the bidding document receiving unit is used for receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and provided with the intelligent contract;
the bid sending unit is used for sending the bid to the appointed block chain node and receiving a bid evaluation result and a bid winning notice which are made by the appointed block chain node according to the bid;
and the bid evaluation result sending unit is used for sending the bid evaluation result and the bid-winning notice to all the blockchain nodes so as to finish the bid-winning flow.
The present application provides a computer device comprising a memory storing a computer program and a processor implementing the steps of any of the methods described above when the computer program is executed by the processor.
The present application provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the method of any of the above.
According to the bidding method, device, computer equipment and storage medium based on the blockchain, the second terminal is allowed to join the blockchain, the second terminal is marked as the appointed blockchain node, the bidding document sent by the blockchain node as a bidder and provided with the intelligent contract is received, the bid evaluation result and the bid winning notice made by the appointed blockchain node according to the bidding document are received, and the bid evaluation result and the bid winning notice are sent to all the blockchain nodes, so that the bidding process is completed by utilizing the pre-built blockchain, and the repeated process of establishing a bidding platform is avoided.
Drawings
FIG. 1 is a flow chart of a blockchain-based bidding method of an embodiment of the present application;
FIG. 2 is a block diagram of a block chain based bidding appliance of an embodiment of the present application;
fig. 3 is a block diagram schematically illustrating a structure of a computer device according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Referring to fig. 1, an embodiment of the present application provides a bidding method based on blockchain, which is applied to a first terminal, and includes:
s1, receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance;
s2, allowing the second terminal to join the blockchain, and recording the second terminal as a designated blockchain node;
s3, receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and provided with the intelligent contract;
S4, sending the bidding document to the designated block chain node, and receiving a bid evaluation result and a bid winning notice which are made by the designated block chain node according to the bidding document;
and S5, sending the bid evaluation result and the bid-winning notice to all the blockchain nodes, thereby completing a bid-winning process.
And step S1, receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance. Blockchains are a kind of decentralized network, and can be classified into public chains, alliance chains and private chains according to the different degree of decentralized. The present application prefers a federation chain, such as a super ledger federation chain (hyperledger fabric federation chain). Wherein certificate authority nodes (CA nodes, certificate Authority) refer to nodes in the blockchain (alliance chain) that manage the identities of the nodes, including proving the identities of the nodes in the blockchain by issuing identity certificates representing the identities of the nodes to the corresponding nodes. The second terminal needs to be informed of the consent of the first terminal as a certificate authority node to join the blockchain. Since the present application prefers the federation chain and already adopts the first terminal as the certificate authority node, the preset consensus mechanism is preferably a bayer fault-tolerant mechanism. The Bayesian fault-tolerant mechanism is also called an authorized Bayesian fault-tolerant algorithm, which selects special billing people (billing nodes) based on the proportion of the ownership, and then the billing people agree among themselves through the Bayesian fault-tolerant algorithm (i.e. a voting mechanism of minority compliance and majority compliance) to decide on dynamic participation nodes.
The second terminal is allowed to join the blockchain and is noted as a designated blockchain node as described in step S2 above. And if the first terminal serving as the certificate authority node allows the second terminal to join the blockchain, the second terminal is recorded as a designated blockchain node. Further, the process of allowing the second terminal to join the blockchain includes: judging whether the second terminal exists in a preset authorized list or not; and if the second terminal exists in a preset authorized list, taking the second terminal as a blockchain node, and issuing an identity certificate of the second terminal to the second terminal according to the authorized list.
And step S3, receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and provided with the intelligent contract. The specific process comprises the following steps: the bidding party generates an intelligent contract corresponding to the bidding project information through one node (designated blockchain node) in the blockchain, then sends the intelligent contract to other nodes including the first terminal of the blockchain, the blockchain node which intentionally participates in the bidding project installs the intelligent contract and invokes a participation bidding method in the intelligent contract to become a bidding competitor, and the bidding competitor sends the prepared bidding to other nodes including the first terminal in the blockchain, so that the bidding partner can obtain the bidding. Further, the smart contract also defines that only the bidding party and the bidder are able to view the contents of the bidding document.
And (4) sending the bid to the designated block chain node and receiving a bid evaluation result and a bid winning notice which are made by the designated block chain node according to the bid, as described in the step (S4). Because the blockchain is a distributed store, the tagbook may be sent to a designated blockchain node (and of course to other nodes as well). After obtaining the bidding documents sent by all bidders, the designated blockchain node sends the bidding evaluation results and the bidding notice made by the bidding documents to the first terminal (of course, the bidding evaluation results and the bidding notice can also be sent to other nodes) according to the bidding evaluation results and the bidding notice made by the bidding documents.
And as described in the step S5, sending the evaluation result and the bid-winning notice to all the blockchain nodes, thereby completing the bid-winning flow. And sending the bid evaluation result and the bid-winning notice to all the blockchain nodes, and storing the bid-winning result in a distributed mode, thereby completing the bid-winning flow.
Further, the construction process of the blockchain includes: a first terminal serving as a certificate authority node of the blockchain adopts a designated language to create a blockchain class in the first terminal, the blockchain class is instantiated to obtain an created block, and the hash value of the previous block is set to be 0 in the created block; generating other blocks based on the created blocks, wherein the other blocks record hash values of a block before the other blocks; and establishing the blockchain by agreeing to a preset consensus mechanism of the blockchain and obtaining a terminal authorized by the certificate authority node as a blockchain node. Wherein the specified language includes a Go language. In addition, the common knowledge mechanism of the blockchain can be set as a Bayesian fault tolerance mechanism.
In one embodiment, the step S2 of allowing the second terminal to join the blockchain and recording the second terminal as a designated blockchain node includes:
s201, judging whether the second terminal exists in a preset authorized list or not;
s202, if the second terminal exists in a preset authorized list, the second terminal is marked as a designated blockchain node, an identity certificate of the second terminal is issued to the second terminal according to the authorized list, and the second terminal is marked as the designated blockchain node.
As described above, a newly added blockchain node is implemented. Because the application adopts the alliance chain, a new terminal wants to join the blockchain to become a new node, and an identity certificate issued by the certificate authority node should be obtained. And if the second terminal exists in the preset authorized list, the second terminal is used as a designated blockchain node, and an identity certificate of the second terminal is issued to the second terminal according to the authorized list, so that the blockchain is established. Wherein the identity certificate comprises an orderer node (commander node for being responsible for ensuring the consistency of this blockchain and communicating to the partner node in the endorsed transaction), a peer node (partner node for executing contracts, accessing ledger data, endorsing transactions) or a certificate authority node identity certificate.
In one embodiment, the step S3 of receiving the bid item information sent by the designated blockchain node, receiving and installing the smart contract corresponding to the bid item information sent by the designated blockchain node, and receiving the bidding document sent by the blockchain node as the bidder installed with the smart contract includes:
s301, receiving bidding project information sent by the designated blockchain node, and receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node;
s302, receiving a bid submission application sent by a blockchain node provided with the intelligent contract;
s303, judging whether a blockchain node sending the bid submitting application invokes a bidding participation method in the intelligent contract;
and S304, if the blockchain node for sending the bidding documents invokes the bidding participation method in the intelligent contract, taking the blockchain node for sending the bidding documents as a bidder, and receiving the bidding documents sent by the bidder according to the bid submitting application.
As described above, receiving a bid sent by a blockchain node installed with the smart contract as a bidder is accomplished. Wherein, the intelligent contract is used for the bidding project, includes: inquiring information of a bid-inviting item (including information of an initiator, item basic information, item requirements and the like of the item), participating in bidding (a bidding competitor can participate in the bid-inviting item through the function, calling the method to be a participant, and identifying the participant on a blockchain network through an identity certificate of the participant), determining a candidate, delivering a target, inquiring the target (identifying by using the identity information as permission and only allowing a company node and a delivery person where the initiator is located to review the target), performing item bid evaluation by combining information on a chain by the item-initiating company, issuing bid evaluation results and bid-winning notices (all nodes on the chain can be inquired), closing the item (changing the state of the item to be closed after the public time is finished), and the like. The method is also called a function (computer function) and refers to a section of a program which can be used as a matter of fact. According to the contract of the intelligent contract, only the block chain nodes which call the bidding participation method can participate in bidding as the bidders. Further, only the corresponding method in the intelligent contract is authorized to realize the corresponding function, for example, only the query bidding method is called, and the query bidding is only possible (according to the specific setting of the query bidding method in the intelligent contract, the identity of the query bidding can be set, for example, only the bidding party can query, or the designated certificate authority node can query).
In one embodiment, the step S4 of sending the bid to the specified blockchain node and receiving the bid evaluation result and the bid-winning notice of the specified blockchain node according to the bid includes:
s401, comparing the bidding amount in the bidding with a preset amount, and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount;
s402, sending the bidding document with the |bidding amount-preset amount being smaller than the preset error amount to the appointed blockchain node, and receiving bid evaluation results and bid-winning notices which are made by the link points of the designated block according to the bid with the |bid amount-preset amount|smaller than the preset error amount.
As described above, the receipt of bid evaluation results and bid notification is achieved. In this embodiment, the first terminal as a certificate authority node also has a primary screening function. Comparing the bidding amount in the bidding with the preset amount, and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount, so that preliminary screening of the bidding according to the bidding amount is realized, namely, the bidding with the off-odd bidding amount is eliminated (the bidding amount is too high or too low, which indicates that the bidding is abnormal and possibly leads to bidding failure). The first terminal serving as the certificate authority node is used for carrying out primary screening on the bidding documents, and the method has the advantages of being obvious in benefit: the process of rescreening the bidding-involved blockchain nodes is omitted, so that the speed of bidding auditing is increased; and the code for realizing the same screening function is not set at the same time at a plurality of block chain link points, so that the intelligent contracts related to arbitrary bidding can be primarily screened in the first terminal serving as the certificate authority node, and only the code is set in the first terminal, thereby reducing the total code quantity.
In one embodiment, the step S5 of sending the bid evaluation result and the bid-winning notice to all blockchain nodes, thereby completing the bid-winning process includes:
s501, sending the evaluation result and the bid-winning notice to all blockchain nodes;
s502, judging whether an objection request sent by a blockchain node provided with the intelligent contract is received within the public time specified by the intelligent contract;
s503, if an objection request sent by the blockchain node installed with the intelligent contract is not received, invoking a closing item method in the intelligent contract, and closing the bidding item to finish a bidding process.
As described above, the bid evaluation result and the bid-winning notice are sent to all the blockchain nodes, so that the bid-winning flow is completed. In this embodiment, the bidding procedure and engineering are transparent and easy to monitor by the characteristics of the blockchain, and the disclosure time is contracted in the intelligent contract, so that the nodes with the blockchain in objection can send objection requests. If the objection request sent by the blockchain node installed with the intelligent contract is not received within the public time specified by the intelligent contract, the objection is not indicated, and a closing project method in the intelligent contract is called, so that the bidding project is closed, and the bidding process is completed.
In one embodiment, after the step S5 of the bidding process is completed by sending the bid evaluation result and the bid winning notice to all blockchain nodes, the method includes:
s51, receiving another bidding project information sent by another blockchain node, receiving and installing an intelligent contract corresponding to the other bidding project information sent by the other blockchain node, and receiving a bidding document sent by a blockchain node serving as a bidder, wherein the bidding document is provided with the intelligent contract corresponding to the other bidding project information;
s52, sending a label to the other block chain link point, and receiving a label evaluation result and a label notice which are made by the other block chain link point according to the label;
and S53, sending bid evaluation results and bid-winning notices to all the blockchain nodes, thereby completing the process of the other bid-winning.
As described above, a flow is implemented to implement another bid in the blockchain. In the blockchain of the application, the roles of the bidding party and the bidding party can be exchanged, namely, the bidding party A in one bidding project is the bidding party, and the bidding party A in the next bidding project is the bidding party, wherein only the corresponding intelligent contract is required to be replaced, so that a large amount of repeated cost generated by repeatedly building a purchasing system in the prior art is avoided.
In one embodiment, the step S1 of receiving, by the second terminal, information of agreeing to a preset consensus mechanism of the blockchain and a request for joining the blockchain, where the first terminal is a certificate authority node of a pre-built blockchain includes:
s001, creating a blockchain class in the first terminal by adopting a Go language;
s002, the block chain is instantiated to obtain an created block, the hash value of the previous block is set to be 0 in the created block, and other blocks are generated based on the created block, wherein the other blocks record the hash values of the previous blocks of the other blocks;
s003, setting the consensus mechanism of the block chain as a Bayesian fault-tolerant mechanism.
As described above, setting the blockchain is implemented. The language in which the blockchain class is created may be any feasible language, and the present embodiment prefers the Go language to optimize the blockchain class. The block chain class (class) is a definition of a block chain, and the block chain class is instantiated to determine specific parameters of the block chain, so that a first block (an created block) is obtained and is used as a generation basis of other blocks. Since the created block is the first block, there is virtually no previous block, and thus the hash value of the previous block is set to 0 in the created block. In addition, the common knowledge mechanism of the blockchain can be set as a Bayesian fault tolerance mechanism. Because the alliance chain is more important for privacy, security and supervision than the public chain, the alliance chain is more prone to be similar to the conventional consensus mechanisms such as the Bayesian family. Thus the present embodiment prefers a bayer fault tolerance mechanism.
According to the bidding method based on the blockchain, the second terminal is allowed to join the blockchain, the second terminal is marked as the appointed blockchain node, the bidding document sent by the blockchain node as a bidder and provided with the intelligent contract is received, the bidding evaluation result and the bidding notice made by the appointed blockchain node according to the bidding document are received, and the bidding evaluation result and the bidding notice are sent to all the blockchain nodes, so that the bidding process is completed by utilizing the pre-built blockchain, and the repeated establishment of a bidding platform is avoided.
Referring to fig. 2, an embodiment of the present application provides a bidding device based on blockchain, which is applied to a first terminal, and includes:
a joining request receiving unit 10, configured to receive information of agreeing to a preset consensus mechanism of the blockchain and a request for joining the blockchain, where the information is sent by a second terminal, and the first terminal is a certificate authority node of a blockchain that is built in advance;
an allowable joining unit 20 for allowing the second terminal to join the blockchain and recording the second terminal as a designated blockchain node;
a bidding document receiving unit 30, configured to receive bidding project information sent by the specified blockchain node, receive and install an intelligent contract corresponding to the bidding project information sent by the specified blockchain node, and receive a bidding document sent by a blockchain node as a bidder to which the intelligent contract is installed;
A bid sending unit 40, configured to send the bid to the specified blockchain node, and receive a bid evaluation result and a bid notification made by the specified blockchain node according to the bid;
and the bid evaluation result sending unit 50 is used for sending the bid evaluation result and the bid winning notice to all the blockchain nodes, so as to complete a bid inviting process.
The operations performed by the units 10-50 are respectively corresponding to the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the admission unit 20 includes:
an authorized list judging subunit, configured to judge whether the second terminal exists in a preset authorized list;
and the identity certificate issuing subunit is used for marking the second terminal as a designated blockchain node if the second terminal exists in a preset authorized list, issuing the identity certificate of the second terminal to the second terminal according to the authorized list, and marking the second terminal as the designated blockchain node.
The operations performed by the sub-units are in one-to-one correspondence with the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the tagbook receiving unit 30 includes:
the intelligent contract receiving subunit is used for receiving the bidding project information sent by the designated blockchain node and receiving and installing the intelligent contract corresponding to the bidding project information sent by the designated blockchain node;
the bid submitting application receiving subunit is used for receiving a bid submitting application sent by a blockchain node provided with the intelligent contract;
the bidding person judging subunit is used for judging whether the blockchain node which sends the bidding document submitting application invokes a bidding participation method in the intelligent contract or not;
and the bidding receiving subunit is used for taking the blockchain node for sending the bidding as a bidder if the blockchain node for sending the bidding invokes a bidding participation method in the intelligent contract, and receiving the bidding sent by the bidder according to the bidding submitting application.
The operations performed by the sub-units are in one-to-one correspondence with the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the tagbook sending unit 40 includes:
the amount comparison subunit is used for comparing the bidding amount in the bidding with the preset amount and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount;
And the bidding sending subunit is used for sending the bidding with the bidding amount-preset amount being smaller than the preset error amount to the designated blockchain node, and receiving bid evaluation results and bid-winning notices which are made by the designated blockchain node according to the bidding with the bidding amount-preset amount being smaller than the preset error amount.
The operations performed by the sub-units are in one-to-one correspondence with the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the evaluation result transmitting unit 50 includes:
the bid evaluation result sending subunit is used for sending the bid evaluation result and the bid winning notice to all the blockchain nodes;
an objection request judging subunit, configured to judge whether an objection request sent by a blockchain node installed with the intelligent contract is received within a public time specified by the intelligent contract;
and the closing bidding project subunit is used for calling a closing project method in the intelligent contract if the objection request sent by the blockchain node provided with the intelligent contract is not received, so that the bidding project is closed to complete the bidding process.
The operations performed by the sub-units are in one-to-one correspondence with the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the apparatus comprises:
another intelligent contract receiving unit, configured to receive another bidding project information sent by another blockchain node, receive and install an intelligent contract corresponding to the another bidding project information sent by the another blockchain node, and receive a bid sent by a blockchain node as a bidder, where the intelligent contract corresponding to the another bidding project information is installed;
the other bid evaluation result receiving unit is used for sending a bid to the other block chain link point and receiving a bid evaluation result and a bid-winning notice which are made by the other block chain link point according to the bid;
and the other bid evaluation result sending unit is used for sending bid evaluation results and bid-winning notices to all the blockchain nodes so as to finish the other bid-winning flow.
The operations performed by the sub-units are in one-to-one correspondence with the steps of the blockchain-based bidding method in the foregoing embodiment, and are not described herein.
In one embodiment, the apparatus comprises:
a blockchain class creation unit, configured to create a blockchain class in the first terminal using Go language;
an creating block obtaining unit, configured to obtain an creating block after instantiating the blockchain class, where the creating block sets a hash value of a previous block to 0, and generates other blocks based on the creating block, where the other blocks record hash values of the previous blocks of the other blocks;
And the consensus mechanism setting unit is used for setting the consensus mechanism of the blockchain as a Bayesian fault tolerance mechanism.
The operations performed by the units respectively correspond to the steps of the block chain-based bidding method in the foregoing embodiment one by one, and are not described herein again.
According to the bidding device based on the blockchain, the second terminal is allowed to join the blockchain, the second terminal is marked as the appointed blockchain node, the bidding document sent by the blockchain node serving as a bidder and provided with the intelligent contract is received, the bidding evaluation result and the bidding notice made by the appointed blockchain node according to the bidding document are received, and the bidding evaluation result and the bidding notice are sent to all the blockchain nodes, so that the bidding process is completed by utilizing the pre-built blockchain, and the repeated establishment of a bidding platform is avoided.
Referring to fig. 3, in an embodiment of the present invention, there is further provided a computer device, which may be a server, and the internal structure of which may be as shown in the drawing. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the computer is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store data for the blockchain-based bidding approach. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a blockchain-based bidding method.
The above-mentioned processor executes the above-mentioned bidding method based on the blockchain, and is applied to the first terminal, where the steps included in the method are respectively corresponding to the steps of executing the bidding method based on the blockchain in the foregoing embodiment one by one, and are not described herein again.
It will be appreciated by persons skilled in the art that the structures shown in the drawings are only block diagrams of some of the structures that may be associated with the aspects of the present application and are not intended to limit the scope of the computer apparatus to which the aspects of the present application may be applied.
The computer equipment allows the second terminal to join the blockchain, marks the second terminal as a designated blockchain node, receives the bidding document sent by the blockchain node as a bidder and provided with the intelligent contract, receives the bid evaluation result and the bid marking notice made by the designated blockchain link point according to the bidding document, and sends the bid evaluation result and the bid marking notice to all the blockchain nodes, thereby realizing the completion of a bidding process by utilizing a pre-built blockchain and avoiding the repeated establishment of a bidding platform.
An embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements a blockchain-based bidding method, and the method is applied to a first terminal, where the steps included in the method are respectively corresponding to the steps of executing the blockchain-based bidding method in the foregoing embodiment one to one, and are not described herein again.
The computer readable storage medium allows the second terminal to join the blockchain, marks the second terminal as a designated blockchain node, receives a bid sent by the blockchain node as a bidder, which is provided with the intelligent contract, receives a bid evaluation result and a bid winning notice made by the designated blockchain link point according to the bid, and sends the bid evaluation result and the bid winning notice to all the blockchain nodes, thereby realizing the completion of a bid winning process by utilizing a pre-built blockchain and avoiding the repeated establishment of a bid winning platform.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided herein and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present application, and is not intended to limit the scope of the claims, and all equivalent structures or equivalent processes using the descriptions and drawings of the present application, or direct or indirect application in other related technical fields are included in the scope of the claims of the present application.

Claims (7)

1. A block chain based bidding method applied to a first terminal, comprising the following steps:
receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance;
Allowing the second terminal to join the blockchain and marking the second terminal as a designated blockchain node;
receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and installed with the intelligent contract;
the standard book is sent to the appointed block chain node, and a standard marking result and a standard marking notice which are made by the appointed block chain link point according to the standard book are received;
sending the bid evaluation result and the bid-winning notice to all the blockchain nodes, thereby completing a bid-winning process;
the step of sending the bidding document to the designated blockchain node and receiving the bid evaluation result and the bid-winning notice of the designated blockchain node according to the bidding document comprises the following steps:
comparing the bidding amount in the bidding with a preset amount, and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount;
sending a bid with the bidding amount-preset amount being smaller than the preset error amount to the designated blockchain node, and receiving bid evaluation results and bid winning notices which are made by the designated blockchain node according to the bid with the bidding amount-preset amount being smaller than the preset error amount;
The step of sending the bid evaluation result and the bid winning notice to all blockchain nodes so as to complete the bid inviting flow comprises the following steps:
sending the bid evaluation result and the bid-winning notice to all the blockchain nodes;
judging whether an objection request sent by a blockchain node installed with the intelligent contract is received within the public time specified by the intelligent contract;
if the objection request sent by the blockchain node provided with the intelligent contract is not received, invoking a closing project method in the intelligent contract, thereby closing the bidding project to finish the bidding process;
the step of allowing the second terminal to join the blockchain and recording the second terminal as a designated blockchain node includes:
judging whether the second terminal exists in a preset authorized list or not;
if the second terminal exists in a preset authorized list, the second terminal is marked as a designated blockchain node, an identity certificate of the second terminal is issued to the second terminal according to the authorized list, and the second terminal is marked as the designated blockchain node.
2. The method of claim 1, wherein the steps of receiving the bid item information transmitted by the designated blockchain node, receiving and installing the smart contract corresponding to the bid item information transmitted by the designated blockchain node, and receiving the bid transmitted by the blockchain node as a bidder in which the smart contract is installed, comprise:
Receiving bidding project information sent by the designated blockchain node, and receiving and installing intelligent contracts corresponding to the bidding project information sent by the designated blockchain node;
receiving a bid submission application sent by a blockchain node provided with the intelligent contract;
judging whether a blockchain node sending the bid submitting application invokes a bidding participation method in the intelligent contract or not;
if the block chain node for sending the bid calls the method for participating in bidding in the intelligent contract, the block chain node for sending the bid is used as a bidder, and the bid sent by the bidder is received according to the bid submitting application.
3. The blockchain-based bidding method of claim 1, wherein the step of sending the bid evaluation result and the bid-winning notice to all blockchain nodes to complete the bidding process comprises:
receiving another bidding project information sent by another blockchain node, receiving and installing an intelligent contract corresponding to the other bidding project information sent by the other blockchain node, and receiving a bidding document sent by a blockchain node serving as a bidder and provided with the intelligent contract corresponding to the other bidding project information;
Sending a bid to the other block chain link point, and receiving a bid evaluation result and a bid-winning notice which are made by the other block chain link point according to the bid;
and sending the bid evaluation result and the bid winning notice to all the blockchain nodes, thereby completing the process of the other bid.
4. The method of claim 1, wherein the step of receiving information sent by the second terminal agreeing to a predetermined consensus mechanism of the blockchain and a request to join the blockchain, wherein the first terminal is a certificate authority node of a pre-built blockchain, comprises:
creating a blockchain class in the first terminal by adopting a Go language;
the method comprises the steps of obtaining an created block after instantiating the block chain class, setting the hash value of a previous block to 0 in the created block, and generating other blocks based on the created block, wherein the other blocks record the hash values of the previous blocks of the other blocks;
the consensus mechanism of the blockchain is set to be a Bayesian fault tolerance mechanism.
5. A block chain based bidding device for a first terminal, comprising:
the joining request receiving unit is used for receiving information which agrees with a preset consensus mechanism of the blockchain and a request for joining the blockchain, wherein the information is sent by a second terminal, and the first terminal is a certificate authority node of the blockchain which is built in advance;
An allowable joining unit configured to allow the second terminal to join the blockchain and record the second terminal as a specified blockchain node;
the bidding document receiving unit is used for receiving bidding project information sent by the designated blockchain node, receiving and installing an intelligent contract corresponding to the bidding project information sent by the designated blockchain node, and receiving a bidding document sent by the blockchain node serving as a bidder and provided with the intelligent contract;
the bid sending unit is used for sending the bid to the appointed block chain node and receiving a bid evaluation result and a bid winning notice which are made by the appointed block chain node according to the bid;
the bid evaluation result sending unit is used for sending the bid evaluation result and the bid-winning notice to all the blockchain nodes so as to finish a bid-winning flow;
the bidding document sending unit includes:
the amount comparison subunit is used for comparing the bidding amount in the bidding with the preset amount and reserving the bidding with the bidding amount-preset amount being smaller than the preset error amount;
the bidding sending subunit is used for sending the bidding with the bidding amount-preset amount being smaller than the preset error amount to the designated blockchain node, and receiving bid evaluation results and bid-winning notices which are made by the designated blockchain node according to the bidding with the bidding amount-preset amount being smaller than the preset error amount;
The evaluation result transmitting unit includes:
the bid evaluation result sending subunit is used for sending the bid evaluation result and the bid winning notice to all the blockchain nodes;
an objection request judging subunit, configured to judge whether an objection request sent by a blockchain node installed with the intelligent contract is received within a public time specified by the intelligent contract;
a closing bid item subunit, configured to invoke a closing item method in the intelligent contract if an objection request sent by a blockchain node installed with the intelligent contract is not received, so that a bid item is closed to complete a bid flow;
the admission unit includes:
an authorized list judging subunit, configured to judge whether the second terminal exists in a preset authorized list;
and the identity certificate issuing subunit is used for marking the second terminal as a designated blockchain node if the second terminal exists in a preset authorized list, issuing the identity certificate of the second terminal to the second terminal according to the authorized list, and marking the second terminal as the designated blockchain node.
6. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
7. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN201910341156.9A 2019-04-25 2019-04-25 Bitspecan-based bidding method, apparatus, computer device and storage medium Active CN110189190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910341156.9A CN110189190B (en) 2019-04-25 2019-04-25 Bitspecan-based bidding method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910341156.9A CN110189190B (en) 2019-04-25 2019-04-25 Bitspecan-based bidding method, apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN110189190A CN110189190A (en) 2019-08-30
CN110189190B true CN110189190B (en) 2024-01-26

Family

ID=67715082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910341156.9A Active CN110189190B (en) 2019-04-25 2019-04-25 Bitspecan-based bidding method, apparatus, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN110189190B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948371B (en) * 2019-03-07 2021-06-25 深圳市智税链科技有限公司 Method for issuing identity certificate for block chain node and related device
CN110766278A (en) * 2019-09-20 2020-02-07 国家电网有限公司 Automatic bidding method and device and terminal equipment
CN110751544A (en) * 2019-10-18 2020-02-04 中国联合网络通信集团有限公司 Bidding information, supervision information and bid evaluation information processing method, terminal and system
CN110765211A (en) * 2019-11-06 2020-02-07 腾讯科技(深圳)有限公司 Engineering bid inviting management method, device, terminal and storage medium based on block chain
CN111291122B (en) * 2020-02-04 2023-09-12 重庆大学 Bidding method and device based on block chain
CN111784453B (en) * 2020-06-29 2023-11-21 深圳平安智慧医健科技有限公司 Cross-platform medicine collection price synchronization method based on block chain and related device
CN114499827B (en) * 2020-10-23 2023-09-19 中移物联网有限公司 Label evaluation method and device and electronic equipment
CN112541732A (en) * 2020-12-09 2021-03-23 国网浙江省电力有限公司物资分公司 Intelligent bidding contract generation method and device and readable storage medium
CN113379307B (en) * 2021-06-30 2023-07-11 广西广播电视信息网络股份有限公司 Digital television terminal product quality control method and system based on block chain technology
CN116720773B (en) * 2023-06-06 2024-02-13 陕西华春网络科技股份有限公司 Bid-inviting method and device based on block bid evaluation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020076397A (en) * 2001-03-28 2002-10-11 안문균 Method for tender of a goods
CN108305156A (en) * 2017-12-29 2018-07-20 重庆金融资产交易所有限责任公司 Real time bid method, apparatus, equipment and storage medium based on block chain
CN108520402A (en) * 2018-04-09 2018-09-11 济南浪潮高新科技投资发展有限公司 A kind of method of commerce and transaction system based on block chain
CN108549819A (en) * 2018-03-13 2018-09-18 中国地质大学(武汉) A kind of bidding processing method and system based on block chain
CN108765058A (en) * 2018-04-28 2018-11-06 中国科学院信息工程研究所 A kind of safe Synergistic method of manufacture link multiple entity based on block chain
CN109615267A (en) * 2018-12-27 2019-04-12 平安科技(深圳)有限公司 Evaluating Methods of Inviting Bidding and system
CN109658174A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Bidding and offering method, apparatus, equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10679152B2 (en) * 2016-12-06 2020-06-09 Mastercard International Incorporated Method and system for travel itinerary bidding via blockchain
US10861039B2 (en) * 2017-04-12 2020-12-08 Royal Bank Of Canada Bid platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020076397A (en) * 2001-03-28 2002-10-11 안문균 Method for tender of a goods
CN108305156A (en) * 2017-12-29 2018-07-20 重庆金融资产交易所有限责任公司 Real time bid method, apparatus, equipment and storage medium based on block chain
CN108549819A (en) * 2018-03-13 2018-09-18 中国地质大学(武汉) A kind of bidding processing method and system based on block chain
CN108520402A (en) * 2018-04-09 2018-09-11 济南浪潮高新科技投资发展有限公司 A kind of method of commerce and transaction system based on block chain
CN108765058A (en) * 2018-04-28 2018-11-06 中国科学院信息工程研究所 A kind of safe Synergistic method of manufacture link multiple entity based on block chain
CN109658174A (en) * 2018-09-27 2019-04-19 深圳壹账通智能科技有限公司 Bidding and offering method, apparatus, equipment and computer readable storage medium
CN109615267A (en) * 2018-12-27 2019-04-12 平安科技(深圳)有限公司 Evaluating Methods of Inviting Bidding and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
区块链技术在招标领域中的应用研究;李璐璐;;工程经济(第11期);第69-73页 *
区块链技术在招标领域中的应用研究;李璐璐;《工程经济》;第28卷(第11期);第68-72页 *

Also Published As

Publication number Publication date
CN110189190A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
CN110189190B (en) Bitspecan-based bidding method, apparatus, computer device and storage medium
CN110599181B (en) Data processing method, device and equipment based on block chain and storage medium
Lin et al. A sender-receiver framework for knowledge transfer
US10984384B2 (en) System and method for a collaborative information technology governance
CN110490305A (en) Machine learning model processing method and node based on block chain network
TW202123047A (en) Model joint training method and device based on block chain
CN108108951B (en) Decoration data processing method and device, storage medium and computer equipment
CN110163755B (en) Block chain-based data compression and query method and device and electronic equipment
CN109741005B (en) Recruitment information processing method and device
WO2020228531A1 (en) Consortium blockchain governance method and apparatus, computer device and storage medium
JP7062571B2 (en) Organization management support system, organization management support method, and organization management support device
CN111292057A (en) Service processing method based on block chain
CN110599269A (en) Bill generation method and device, computer readable storage medium and computer equipment
Marella et al. Document Verification using Blockchain for Trusted CV Information.
CN109919616B (en) Agricultural product transaction control method, device and maintenance system based on block chain
CN111126987B (en) Resource transfer information processing method and device, storage medium and electronic device
CN115705557A (en) Method and apparatus for coordinating user interactions in green technology projects
CN116431929B (en) Information recommendation method, device, equipment and medium based on privacy calculation
CN112884562B (en) Mortgage processing method and device based on blockchain and readable storage medium
KR102140453B1 (en) Meeting management method and meeting management system using the method
CN113781230A (en) Transaction processing method and device based on block chain
KR102197050B1 (en) Distributed application and system for managing personal financial goods based on block chain using the same
US20210042295A1 (en) Blockchain-based data management method and related system
CN112884374A (en) Data processing method based on block chain and distributed data processing system
CN111311102A (en) Resource ratio adjusting method, device, equipment and computer readable storage medium

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