Multi-wheel sealed electronic auction scheme based on state channel
By conducting bidding processing off-chain and using IPFS distributed storage, the problem of low efficiency and high cost of blockchain in multi-round sealed bidding is solved, and efficient and low-cost multi-round sealed bidding is achieved, and is passed through supervisory agencies and Watchtower supervision ensures the transparency and security of the system.
Patent Information
- Application Number
- CN202410620855.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-03
AI Technical Summary
The blockchain-based sealed electronic auction solution has problems of low efficiency and high cost in multi-round sealed bidding scenarios, resulting in delays and high handling fees.
Adopt a multi-round sealed electronic auction scheme based on state channels, reduce the consensus pressure of the blockchain network by conducting a large number of bidding processes off-chain, use the IPFS distributed storage system to alleviate storage pressure, and ensure the system through supervisory agencies and watchtower modules transparency and security.
Auction efficiency is improved, costs are reduced, a more efficient multi-round sealed bidding process is achieved, and the compliance and security of the system are ensured through supervision by supervisory agencies and watchtowers.
Smart Images

Figure CN118586994A
Abstract
Description
Technical Field
[0001] The invention relates to the field of multi-round sealed electronic auctions, and in particular to a multi-round sealed electronic auction solution based on a state channel. Background Art
[0002] With the rapid development of Internet technology and the rapid popularization of e-commerce, the electronic auction industry has rapidly emerged worldwide and has become a new type of business form. Traditional electronic auction solutions mostly adopt a centralized auction method that relies on a third-party platform. The seller entrusts a third party to publish auction information, collect bidders' bids, and calculate auction results. The third party supervises the bidders' bidding operations and punishes bidders who violate the rules. In recent years, the rapid development of blockchain technology has provided a more novel solution for electronic auctions. As an open and transparent distributed ledger, the blockchain's natural decentralized structure can effectively remove third parties. More and more studies are trying to use the distributed fault tolerance and decentralization characteristics of blockchain to use blockchain as an infrastructure to realize electronic auctions. The openness, transparency, and immutability of sales. With the continuous development of blockchain technology, the emergence of smart contracts has endowed blockchain with Turing-complete programming attributes, enabling it to have the ability to develop applications on the chain. Existing sealed auction schemes based on blockchain usually use smart contracts to replace third parties in traditional auction schemes, and are combined with various cryptographic tools to achieve user privacy protection. The seller publishes the auction task through the smart contract, and the buyer initiates the bid through the smart contract and the contract calculates the auction result. The flexibility of smart contracts allows auction activities to be customized according to specific needs to meet various complex business logics. Its automation characteristics ensure the fast and accurate execution of transactions, eliminate human intervention and potential errors, while reducing transaction costs and significantly reducing the risk of fraud.
[0003] However, traditional solutions usually rely on third parties to handle the auction process. Although it is very convenient to rely on third-party platforms, it is usually expensive in actual applications and faces many security risks. First, the third-party platform manages the entire auction process and holds a large amount of private data. Users will face certain privacy leakage risks. Then, the third-party platform may collude with malicious bidders to tamper with auction data or manipulate auction results in order to gain benefits, which seriously damages the legitimate rights and interests of honest users. Secondly, centralized third-party platforms inevitably inherit all the vulnerabilities of single point failures, affecting the stable operation of auction activities. Finally, third-party auction platforms are relatively closed and have a dominant position relative to buyers and sellers. They may create false data through illegal means to evade government review and undermine the credibility and compliance of auctions. Blockchain-based solutions can effectively avoid the risks of single point failures, collusion and privacy leakage in traditional centralized auction methods. Although many scholars at home and abroad have conducted extensive research on sealed auction solutions based on blockchain, most of the studies only focus on simple sealed auction scenarios with one bid, ignoring the multi-round sealed bidding scenarios in real applications. Multi-round sealed auctions have the characteristics of multiple rounds of frequent bidding and a large number of intermediate auction results, which leads to the pursuit of more efficient and lower-cost solutions in the auction process. However, due to the design principles and technical limitations of blockchain, blockchain has problems with low throughput and weak scalability. First, the design principles and technical limitations of blockchain lead to low transaction processing per second (TPS). The consensus mechanism of blockchain ensures the decentralized nature but sacrifices the speed of system transaction processing. Secondly, smart contracts are programs running on blockchain, and their execution consumes blockchain resources, which require payment. Finally, the storage on the blockchain is limited and costly, so it is not suitable for storing large amounts of large data. Summary of the invention
[0004] In view of the shortcomings of the prior art, the present invention provides a multi-round sealed electronic auction scheme based on state channels, which solves the efficiency and cost problems of implementing multi-round sealed electronic auction schemes based on blockchain technology. Due to the design principles and technical limitations of blockchain itself, the existing blockchain-based sealed auction schemes directly applied to multi-round sealed auction scenarios will lead to significant delays and high handling fees.
[0005] To achieve the above purpose, the present invention is implemented through the following technical solutions: a multi-round sealed electronic auction system based on a state channel, including a user module, a supervisory agency module, a third-party supervisory service provider module, a blockchain system module, and an IPFS distributed storage system module. The user module can be divided into two roles: buyers and sellers. Registered and approved users can join the system to participate in the auction. The seller is responsible for publishing the auction task and creating a channel. The buyer applies to join the multi-party state channel to participate in the bidding. Among them, a channel instance includes a seller and multiple buyers, which can be collectively referred to as channel users. The supervisory service provider module is an incompletely trusted entity that provides services to channel users, also known as a watchtower. Compared with ordinary users, it has stronger computing resources and storage resources. The watchtower provides storage services and dispute services for users and charges corresponding fees. It continuously monitors the channel by storing the channel data of bound users. With the permission of the user, it can trigger the dispute mechanism on behalf of the user to ensure the safety of user funds and the legal rights and interests during the auction process. At the same time, the watchtower also bears the responsibility of providing channel data to the supervisory agency so that the supervisory agency can timely understand the bidding situation in the channel and implement necessary supervisory measures.
[0006] Preferably, the supervisory agency module is served by an authoritative agency such as the government, which does not directly participate in the auction process, but is only responsible for supervising and reviewing the auction to ensure the compliance and stable operation of the system. Users and watchtowers need to apply for registration with the supervisory agency before joining the system, and the supervisory agency will conduct corresponding qualification review. In addition, in order to maintain the transparency and fairness of auction activities, the supervisory agency needs to regularly review the compliance of users and watchtowers, impose fines on watchtowers that do not act, regularly maintain and update user credit scores, and punish users who violate regulations.
[0007] Preferably, the blockchain system module serves as the basic network for the operation of the system. The blockchain provides important guarantees for the transparency and integrity of the auction activities. Each activity is recorded in the form of a transaction in the blockchain, ensuring that user operations during the auction process are traceable and cannot be tampered with.
[0008] Preferably, the IPFS distributed storage system module overcomes the limitation of blockchain itself on data storage capacity, stores large-volume data such as image files in the auction process externally to IPFS, and only records the unique address corresponding to these data in the blockchain. By uploading the data hash value instead of the data itself to the chain, the blockchain storage pressure can be effectively alleviated and the storage cost can be reduced without sacrificing data integrity and accessibility, thereby enhancing the scalability and efficiency of the system.
[0009] Preferably, the multi-round sealed electronic auction scheme based on state channel comprises the following steps:
[0010] Step 1: Initialization phase: Watchtowers and users need to register with the supervisory agency before joining the system, and the supervisory agency will review them. After the review is passed, the supervisory agency can recommend Watchtowers to users based on the recommendation algorithm or user preference information, and users will bind Watchtowers. Therefore, the initialization phase can be divided into Watchtower registration, user registration, Watchtower service binding and release channel contracts;
[0011] Step 2: Preparation phase: The preparation phase mainly involves the preparation work required before bidding in the off-chain channel, which can be divided into auction task release, bidding application and multi-party status channel creation;
[0012] Step 3: Bidding stage: In the bidding stage, users complete multiple rounds of sealed bidding processes in the channel and jointly update the auction status in the channel according to the rules;
[0013] Step 4: Closing stage: After the auction is over, any channel user can submit the final status and apply to close the channel. Assuming that the auction ends after one round, the latest valid status generated at this time is the final status. Assuming that the channel user closes the channel, a channel closing transaction is sent to the channel contract. After verification, it enters the dispute period and waits for the set dispute time T;
[0014] Step 5: Management stage: Due to the isolation of the channel, in order to enable the supervisory agency to manage the auction process, the watchtower is also responsible for providing channel data to the supervisory agency. The supervisory agency obtains detailed transaction data of channel users in the channel from the watchtower, and the supervisory agency uses the symmetric key pair to decrypt the channel status data, from which the bidding rounds in the channel, the winning price of each round and the winning user can be known. The supervisory agency manages the auction based on the above data, and supervises and reviews the bidding process and results. In addition, the supervisory agency also needs to regularly review the qualifications and compliance of the watchtower and users to maintain the safe and stable operation of the system.
[0015] Preferably, in step three, the bidding consists of multiple rounds, and each round requires a leader to organize and promote the auction bidding process, which is mainly responsible for collecting bids, calculating results and collecting signatures. Each round of auction bidding can be divided into four main sub-stages: leader election, bidding, confirmation of bidding results and watchtower backup data. After each round of auction, a valid channel state agreed upon by all channel users will be generated. Users will send this channel state to their respective bound watchtowers for backup. To achieve bidding privacy protection, users in the channel all use Pedersen commitments to encrypt their bids, and a multi-party state channel leader broadcast mechanism combined with an anonymous veto network is used to calculate the winning price. To achieve the privacy of the reserve price of the auction item, the seller bids with the remaining buyers with the reserve price as the bid.
[0016] Preferably, in step three, assuming that there is one seller and qualified potential bidders participating in the bidding in the channel instance, that is, the valid bidder set, the channel member set can be represented as, with representing the member's bid, and the bid can be represented in binary form as, where is a connection symbol, is the binary length of the bid, and if it is a seller, it is the reserve price for the auction item; if it is a buyer, it is the price offered by the buyer to obtain the auction item.
[0017] Preferably, in step 4, if other users have disputes over the channel closing status, they can call the channel contract user dispute function. Assuming that the user has disputes over the channel closing end status within the time, the user can send a user dispute transaction to the channel contract.
[0018] The present invention provides a multi-round sealed electronic auction scheme based on a state channel. It has the following beneficial effects:
[0019] The present invention uses a multi-round sealed electronic auction scheme based on state channels to transfer a large number of bidding processes to the off-chain channel for processing, thereby greatly reducing the consensus pressure of the blockchain network, improving the processing efficiency of the blockchain system and reducing costs. Without considering disputes, this scheme only requires two gas expenses for creating and closing the channel, which is independent of the auction rounds, and transactions within the channel do not require on-chain consensus, thereby effectively improving auction efficiency and reducing auction costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is the principle diagram of the state channel of the present invention;
[0021] Figure 2 It is a schematic diagram of the off-chain bidding process of the present invention;
[0022] Figure 3 This is a model diagram of an efficient multi-round sealed auction system based on a state channel of the present invention;
[0023] Figure 4 It is a schematic diagram of bidding in the channel of the present invention. DETAILED DESCRIPTION
[0024] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] Please see attached Figure 1 - Attachment Figure 4The embodiment of the present invention provides a multi-round sealed electronic auction system based on a state channel, including a user module, a supervisory agency module, a third-party supervisory service provider module, a blockchain system module, and an IPFS distributed storage system module. The user module can be divided into two roles: buyers and sellers. Registered and approved users can join the system to participate in the auction. The seller is responsible for publishing the auction task and creating a channel. The buyer applies to join the multi-party state channel to participate in the bidding. Among them, a channel instance includes a seller and multiple buyers, which can be collectively referred to as channel users. The supervisory service provider module is an incompletely trusted entity that provides services to channel users, also known as a watchtower. Compared with ordinary users, it has stronger computing resources and storage resources. The watchtower provides storage services and dispute services for users and charges corresponding fees. It continuously monitors the channel by storing the channel data of bound users. With the permission of the user, it can trigger the dispute mechanism on behalf of the user to ensure the safety of the user's funds and the legitimate rights and interests in the auction process. At the same time, the watchtower also bears the responsibility of providing channel data to the supervisory agency so that the supervisory agency can timely understand the bidding situation in the channel and implement necessary supervisory measures.
[0026] The supervisory agency module is served by the government and other authoritative institutions. It does not directly participate in the auction process, but is only responsible for supervising and reviewing the auction to ensure the compliance and stable operation of the system. Users and watchtowers must apply for registration with the supervisory agency before joining the system, and the supervisory agency will conduct corresponding qualification review. In addition, in order to maintain the transparency and fairness of auction activities, the supervisory agency needs to regularly review the compliance of users and watchtowers, impose fines on watchtowers that do not act, regularly maintain and update user credit scores, and punish users who violate regulations.
[0027] The blockchain system module serves as the basic network for the operation of the system. The blockchain provides important guarantees for the transparency and integrity of auction activities. Each activity is recorded in the form of a transaction in the blockchain, ensuring that user operations during the auction process are traceable and cannot be tampered with.
[0028] In order to overcome the limitations of blockchain itself on data storage capacity, the IPFS distributed storage system module stores large-volume data such as image files in the auction process externally to IPFS, and only records the unique address corresponding to this data in the blockchain. By uploading the data hash value instead of the data itself to the chain, it can effectively alleviate the blockchain storage pressure and reduce storage costs without sacrificing data integrity and accessibility, thereby enhancing the scalability and efficiency of the system.
[0029] Embodiment 1:
[0030] like Figure 1 - Figure 4 As shown, the embodiment of the present invention provides a multi-round sealed electronic auction solution based on a state channel, comprising the following steps:
[0031] Step 1: Initialization phase: Watchtowers and users need to register with the supervisory agency before joining the system, and the supervisory agency will review them. After the review is passed, the supervisory agency can recommend Watchtowers to users based on the recommendation algorithm or user preference information, and users will bind Watchtowers. Therefore, the initialization phase can be divided into Watchtower registration, user registration, Watchtower service binding and release channel contracts;
[0032] Step 2: Preparation phase: The preparation phase mainly involves the preparation work required before bidding in the off-chain channel, which can be divided into auction task release, bidding application and multi-party status channel creation;
[0033] Step 3: Bidding stage: In the bidding stage, users complete multiple rounds of sealed bidding processes in the channel and jointly update the auction status in the channel according to the rules;
[0034] Step 4: Closing stage: After the auction is over, any channel user can submit the final status and apply to close the channel. Assuming that the auction ends after one round, the latest valid status generated at this time is the final status. Assuming that the channel user closes the channel, a channel closing transaction is sent to the channel contract. After verification, it enters the dispute period and waits for the set dispute time T;
[0035] Step 5: Management stage: Due to the isolation of the channel, in order to enable the supervisory agency to manage the auction process, the watchtower is also responsible for providing channel data to the supervisory agency. The supervisory agency obtains detailed transaction data of channel users in the channel from the watchtower, and the supervisory agency uses the symmetric key pair to decrypt the channel status data, from which the bidding rounds in the channel, the winning price of each round and the winning user can be known. The supervisory agency manages the auction based on the above data, and supervises and reviews the bidding process and results. In addition, the supervisory agency also needs to regularly review the qualifications and compliance of the watchtower and users to maintain the safe and stable operation of the system.
[0036] Specifically, the implementation process is divided into five stages, namely initialization stage, preparation stage, bidding stage, closing stage and management stage. The specific implementation stages are as follows:
[0037] Phase 1: Initialization phase.
[0038] Before joining the system, watchtowers and users need to register with the supervisory agency and be reviewed by the supervisory agency. After the review is passed, the supervisory agency can recommend watchtowers to users based on the recommendation algorithm or user preference information, and users will bind to watchtowers. Therefore, the initialization phase can be divided into watchtower registration, user registration, watchtower service binding, and release channel contracts.
[0039] (1) Watchtower Registration
[0040] Step 1: The supervisory agency publishes the Watchtower Management Contract (WMC) to the blockchain. Its main functions include watchtower registration, watchtower service contract binding, watchtower punishment, watchtower deposits, etc. The watchtower registration function RegisterWSP() is called by the audited watchtower to deposit the collateral and set the watchtower dispute fee and storage fee. The watchtower service contract binding function BindWSC() is called when the watchtower service contract is initialized to set the watchtower service contract address. The watchtower punishment function Penalty() is called by the watchtower service contract to deduct the watchtower collateral for punishment. The watchtower deposit function AddDeposit() is called by the watchtower to add collateral to the watchtower management contract;
[0041] Step 2: The watchtower chain sends the watchtower registration application req = {addr w ,fee s ,fee d}, where addr w is the watchtower blockchain address, fee s Data storage fee, fee d Dispute fees for users;
[0042] Step 3: After receiving the registration request, the supervisory agency will review the watchtower and generate the watchtower registration information m after the review is passed req ={addr wmc ,addr w ,fee s ,fee d ,dep}. Among them, addr wmc is the watchtower management contract address, dep is the watchtower collateral. The supervisory agency generates a signature for the watchtower registration information and sends {m req ,sign g (m req )}Send to Watchtower;
[0043] Step 4: The watchtower verifies the signature of the supervisory agency and initiates a registration transaction to the watchtower management contract WMC after verification. Deposit a Watchtower deposit;
[0044] Step 5: The Watchtower publishes the Watchtower Service Contract (WSC) to the blockchain, and the Watchtower registration is completed. The main functions of the contract include associating subscribed users, entering channel information, recording user channel closures, punishing inactive Watchtowers, and extracting revenue from Watchtowers. The user association function is implemented by the BindUser() function, which the user calls to bind the service to the subscribed Watchtower. The channel information entry is completed by the AddChannel() function, which is called by the channel contract to create and set the channel information. The recording of channel termination is implemented by the CloseInfo() function to ensure that detailed information is accurately saved when the channel is closed. If there is a situation where the Watchtower does not act, the user can file a complaint through the Punish() function. After the contract is verified, the Penalty() function in the Watchtower Management Contract will be triggered to deduct the corresponding compensation from the Watchtower's collateral to compensate for the user's losses. The withdrawal of revenue is performed by the Withdraw() function, which the Watchtower can call to extract the financial revenue in the contract after obtaining approval from the supervisory agency.
[0045] (2) User Registration
[0046] Users need to apply for registration with the supervisory agency and submit proof of qualifications for credit assessment as required. After the supervisory agency has reviewed and approved it, the user's credit value will be published on the blockchain.
[0047] Step 1: The supervisory agency publishes the User Management Contract (UMC). The main functions of the contract include user credit value maintenance and user auction task registration. User credit value assessment and maintenance are implemented by the CredScoreCal() function, and user credit value is dynamically updated based on the user's historical transaction behavior. User auction item release registration is implemented by the Publish() function, and users publish auction tasks and upload task information;
[0048] Step 2: User applies for registration, and user p generates a symmetric key sk p = £(t,r) and use the public key pk of the supervisory agency g Encrypt the symmetric key to obtain the encrypted symmetric key sk enc =E(sk p ,pk g ). Where £ is the symmetric encryption key generation function, t represents the current time, r represents the random number, and E is the asymmetric encryption function. The user will use the encrypted symmetric key sk enc And qualification certificate and your own public key pk g sent to supervisory bodies;
[0049] Step 3: The supervisory agency reviews the user's qualifications. After the review is passed, a credit assessment is conducted based on the actual situation and the results are published on the blockchain. The registration is successful.
[0050] The credit score of participants will be determined through a comprehensive analysis of preliminary basic credit assessment and historical auction behavior. Basic credit includes the qualifications and social reputation of the individual, which is a representative indicator of their ability to keep their promises in auction activities. It will be flexibly evaluated by regulators in the off-chain environment based on actual conditions. Auction behavior refers to the evaluation of the user's performance during the auction process, such as whether preparation, bid submission and signature submission are timely. During the initial evaluation, the default values of auction behavior are initialized;
[0051] (3) Watchtower Service Binding
[0052] Step 1: Completed registered user i You can set your personal preference information and choose to subscribe to the watchtower. The supervisory agency generates a watchtower recommendation request req = {addr u ,pf}. Among them, addr u is the user's blockchain address, and pf is the user's preference information for Watchtower. The user generates a signature for the Watchtower recommendation request. u (req), the watchtower recommendation request and signature {req,sign u (req)} sent to the supervisory authority;
[0053] Step 2: After the supervisory agency verifies the user's signature, it generates the watchtower recommendation result res={addr w ,addr wsc ,fee s ,fee d There are many watchtower recommendation algorithms, which are not the focus of this article and will not be described in detail. The supervisory agency generates a signature for the recommendation result. g (res), and the recommendation result and signature {res,sign g (res)} sent to the user;
[0054] Step 3: After the user receives the recommendation result from the Watchtower and verifies the signature, he / she initiates a service subscription transaction to the Watchtower service contract WSC published by the recommended Watchtower Complete the service binding between the user and Watchtower.
[0055] (4) Release channel contract
[0056] The supervisory agency publishes a multi-party state channel contract (MultipartyStateChannelContract, MSCC) to the blockchain. The main functions of the contract include user registration, channel creation, bidding disputes, channel closure, user closure disputes, watchtower closure disputes and user withdrawals. The bidder user registers the user by executing the RegisterUser() function, sets the user information including the blockchain address, the bound watchtower address and the watchtower service contract address and the dispute fee, and deposits the collateral and dispute fee. The channel creation function Create() is called by the seller to open the channel. The bidding dispute function BidDispute() is called by any channel user, including the seller user and all bidder users who have successfully completed the channel information registration, to apply for on-chain channel contract arbitration when a dispute arises in the off-chain bidding. The channel closing request is implemented by calling the Close() function. The channel user can call this function to submit the current channel status. After verification, the channel is set to be closed with a delay. When a dispute arises over the current channel closure, the channel user can call the user closure dispute function UserDispute() to submit the latest channel status, and the watchtower monitoring the channel can call the watchtower closure dispute function WspDispute() to initiate a dispute on behalf of the service user and submit the latest channel status for settlement. The user withdrawal function Withdraw() is called by any channel user to withdraw their own channel collateral and dispute fee balance after the channel is closed, and interact with the user management contract to update the user's credit value.
[0057] Phase 2: Preparation
[0058] The preparation phase mainly involves the preparatory work required before bidding in the off-chain channel, which can be divided into auction task release, bidding application, and multi-party status channel creation.
[0059] (1) Auction task release
[0060] Step 1: The seller uploads the product description information and display pictures to IPFS, then initializes the relevant attributes in the auction item data structure and publishes the auction task. The seller initiates the auction item publishing transaction to the user management contract
[0061] Among them, imageHash and descHash are the IPFS hash address indexes of the image information and description information respectively, appTime is the deadline for user registration application, startTime and endTime are the official start time and end time of the auction respectively, accessCredit is the access credit value, and dep is the mortgage amount;
[0062] Step 2: The contract verifies the user's identity and the legitimacy of the parameters. After the verification is passed, the channel contract is deployed and the channel information is set. The information is registered on the blockchain and the successful addition of the auction item and the channel contract instance address are returned.
[0063] (2) Bidding Application
[0064] Before joining the channel to participate in the bidding, bidders need to apply for bidding within the specified time, that is, to enter information in order to obtain the qualification to participate in the auction and apply to join the channel to participate in the bidding. The user initiates a channel user information registration transaction to the channel contract MSCC And deposit a deposit and dispute fee.
[0065] (3) Multi-party state channel creation
[0066] All bidders participating in the auction must complete the channel user information registration within the specified time. After the user registration time expires, the seller initiates a channel creation transaction to the channel contract. The channel is created.
[0067] Phase 3: Bidding Phase
[0068] In the bidding stage, users complete multiple rounds of sealed bidding in the channel and jointly update the auction status in the channel according to the rules. The channel bidding model is as follows: Figure 4 shown.
[0069] The bidding consists of multiple rounds, and each round requires a leader to organize and promote the auction bidding process, which is mainly responsible for collecting bids, calculating results and collecting signatures. Each round of auction bidding can be divided into four main sub-stages: leader election, bidding, confirmation of bidding results and watchtower backup data. After each round of auction, a valid channel state will be generated by consensus of all channel users, and users will send this channel state to their respective bound watchtowers for backup. In order to achieve bidding privacy protection, users in the channel (including sellers and buyers) use Pedersen commitments to encrypt their bids, and use a multi-party state channel leader broadcast mechanism combined with an anonymous veto network to calculate the winning price. In order to achieve the privacy of the auction item's reserve price, the seller bids with the remaining buyers with the reserve price as the bid.
[0070] Assume that there is one seller and n-1 potential bidders who are qualified to bid in the channel instance, that is, the effective bidder set P = {p 1 ,p 2 ,…p n-1}, the channel member set can be expressed as U = {u1,u 2 ,…u n}. Use b i Indicates member u i The quotation of iIt can be expressed in binary form as where b ij ∈{0,1}, is the connection symbol, l is the binary length of the quotation. i If b is the seller, i Reserve a reserve price for the item; if u i If b is the buyer, i The price the buyer offers to acquire the item.
[0071] (1) Leader election
[0072] At the beginning of each round, a leader node must be selected from the channel users of the multi-party state channel instance to handle the state generation and synchronization issues of all channel users in that round. A leader selection method that is both easy to implement and ensures fairness is adopted: a rotation mechanism based on the public key address, taking turns according to the order of the public key size, to ensure that each channel user has the opportunity to serve as the leader. First, each node can obtain the public key addresses of all participants from the multi-party state channel instance deployed on the blockchain, and then sort them from small to large according to the size of the public key address. The k-th round state confirmation selects the participant node with the public key address ranked as v=k%n as the leader. Since the public key address is pre-generated and stored in the multi-party state channel instance, the address obtained by each node is fixed, and k is also fixed, so the network can reach a consensus on the leader node without any additional communication.
[0073] (2) Bidding
[0074] Step 1: Seller s Set the resource share for this round of auction and reserve price Randomly select an auxiliary evidence comwit s , calculate the corresponding commitment Generate a signature and broadcast the resource share and the low price commitment value reserved for this round of auction To all bidders in all channels;
[0075] Step 2: Bidder u in the channel j After the signature is verified, generate and broadcast your own quotation commitment And sign the commitment to generate sign j (combid j ). After this step, each channel member has the quotation commitment of all parties;
[0076] Step 3: The leader verifies the signatures of the other parties and determines the bid commitment set of the kth round of bidders after verification. and quotation documents
[0077] (3) Confirmation of bidding results
[0078] 1) Calculate the winning price
[0079] At this point, the winning price is selected from the valid bids submitted in this round. Starting from the highest price, the winning price of this round is calculated bit by bit.
[0080] Step 1: Each channel user u including sellers and buyers i Randomly select l pairs of secret elements calculate The parameter sets SX and SY are made public, and the corresponding non-interactive zero-knowledge proof is published to prove the correctness of the parameter construction. ij |j∈N,1≤j≤l},SY={Y ij |j∈N,1≤j≤l};
[0081] Step 2: Each channel user u i Calculate T according to formula 5.1 and 5.2 respectively ij and e ij , broadcast and publish your own ij And the corresponding zero-knowledge proof. Among them, T ij Can be seen as gt ij In the form of ij The specific information of the bid is hidden.
[0082]
[0083]
[0084] Step 3: Each channel user u i Independent of all e ij Perform a multiplication operation. According to the properties of the anonymous veto network, an output of 0 or 1 will be obtained, representing the j-th bit value of the final winning price binary of this round;
[0085] Step 4: Repeat steps 2 and 3 for l times to generate the final winning price of this round. (k) After completing the calculation from the most significant bit to the least significant bit, the winning price of this round of bidding is found by bit-by-bit calculation. Assume that when calculating the jth bit, there is This means that a bidder's bid for the jth bit is 1. Then the person who bid 0 at the jth bit realizes that he has lost this round of auction, but other bidders do not know who bid 1, nor do they know how many bidders are currently bidding 1. In order to retain the qualification to continue to participate in subsequent auctions and to recover the deposit after the auction, the bidder who lost this round of auction needs to publish data as if the bit is 0 after the jth bit, that is, Therefore, privacy protection of failed bids is achieved in this way.
[0086] 2) Winner Declaration
[0087] At this stage, the winning price of this round has been calculated, and all bidders know whether they are the winner of this round of bidding. However, the winner still needs to make a winning declaration, that is, to provide auxiliary evidence randomly selected when making a commitment to decrypt the commitment to convince everyone. The security properties of the Pedersen commitment mechanism ensure that malicious users cannot forge the decrypted value of the commitment.
[0088] 3) State Synchronization
[0089] Step 1: Leader Verification After verification, the auction results are generated. Among them, addr u The blockchain address and price of the winner of this round (k) is the winning price of this round, The resource share of this round of transactions, Matrix (k) is the total settlement matrix. Then the effective state G of this round of channels is generated (k) ={addr mscc ,version+k,res (k)}, the leader signs the channel status and channel version number, and {G (k) ,sign l (G (k) ),sign l (version+k,res (k) )}Broadcast to other channel members;
[0090]
[0091] Step 2: After the channel user ui verifies the status and signature, (k) Generate the signature sign with the version number version+k i (G (k) ) and sign i (addr mscc,version+k), which means that the valid state is recognized; in order to realize the privacy protection of the backup data stored by users in the watchtower, and at the same time ensure that the watchtower can still monitor the user channel through the backup data, protect the user's funds and legal rights, the signing process of the version number is added.
[0092] Step 3: After the leader collects signatures, a signature set is generated and The kth round of bidding ends. Then the first k+1 round of bidding can be carried out until the end of the entire auction.
[0093] If a dispute arises during the bidding process, the bidding dispute can be used as a channel security mechanism. A dispute resolution mechanism is designed to address off-chain disputes during the bidding phase. Any channel user can apply for on-chain arbitration when a dispute arises, providing channel security during the bidding phase. Assume that channel user u A Violation, honest user u in the channel B Ability to send disputed transactions to channel contracts The dispute process is shown in Algorithm 1.
[0094]
[0095] (4) Watchtower backup data
[0096] Step 1: Channel user ui generates symmetrical encryption for channel status and signature and signature And channel transaction data Send to bound watchtower for backup.
[0097] Step 2: Watchtower r After receiving and verifying, sign the channel data and version number to generate and Will store credentials and Sent to its bound user, where H(data) is the hash value of the channel transaction data data.
[0098] Step 3: After receiving and verifying the signature, user ui pays the bound watchtower w r Set storage fee m .
[0099] Zero-knowledge proofs are used in two places in the off-chain bidding process. The specific generation and verification are as follows.
[0100] (1) The zero-knowledge proof published by the user in the first step is intended not to reveal the secret value x ij and ij In the case of and The specific structure is (g c1 ,g c1 ,r 1 =c 1 -x ij h,r 2 =c 2 -y ij h). Among them, For user u i Two randomly selected elements, Other users can verify it according to formula 5.4.
[0101]
[0102] (2) To publish e ij A correctly constructed zero-knowledge proof, i.e. where r ij ∈{x ij ,y ij}. User u i Generate the proof as follows
[0103] For ease of understanding, assume that u i Randomly select elements c,k 1 ,h 1 ∈ R Z q , then calculate
[0104]
[0105] in, (w 1 ,w 2 ,k 1 ,k 2 ,h1,h2) as If others want to verify ij The correctness of the construction only requires checking whether each condition in formula 5.6 is true at the same time.
[0106]
[0107] Similarly, it can be verified Time ij Correctness of construction.
[0108] Phase 4: Closing Phase
[0109] After the auction is over, any user in the channel can submit the final status and apply to close the channel. Assuming that the auction ends after the first N rounds, the final status G (N) Assume that channel user ui Close the channel and send a transaction to the channel contract After verification, the channel enters the dispute period and waits for time T.
[0110] If other users have disputes about the channel closure status, they can call the channel contract user dispute function. j If there is a dispute over the channel closing status within time T, then user u j User dispute transactions can be sent to the channel contract As shown in Algorithm 2. If version+m<version+n and the status and signature verification pass, it means u i There is fraudulent behavior trying to close the channel with the old state for settlement, which is a fraud for dishonest users u i Punishment is imposed. The channel enters the dispute period again and waits for T time.
[0111]
[0112]
[0113] Assume that the user applying to close the channel is u i , the closed version number is version+m. User u j The Watchtower j Transactions can be sent to the channel contract during the valid dispute period
[0114] , as shown in Algorithm 3. If version+m<version+n and the status and signature verification pass, it means that user u i There is fraudulent behavior trying to close the channel with the old state, which is a fraud for dishonest users u i Punishment, rejection of channel closure request, watchtower w j Obtain dispute fees. Therefore, the watchtower can prevent malicious users from closing channels with old states and protect the rights and interests of honest users.
[0115]
[0116] If there is no new dispute in the channel during the dispute period T, the channel will be closed after the dispute period ends. j By sending transactions to the channel contract To retrieve the deposit and dispute fee, the channel contract sends a transaction to the service contract of the watchtower bound to the channel user. Records the closing information of the channel.
[0117] Stage 5: Management Stage
[0118] Since the channel is isolated, in order to enable the supervisory agency to manage the auction process, the watchtower also assumes the responsibility of providing channel data to the supervisory agency. The supervisory agency obtains the channel user u from the watchtower r ∈U Detailed transaction data in the channel Supervisory agencies use u r Symmetric key right Decryption Get channel status data G (k) ={addr mscc ,version+k,res (k)}, from which we can know the bidding rounds in the channel, the winning price in each round, and the winning user. The supervisory agency manages the auction based on the above data and supervises and reviews the bidding process and results. In addition, the supervisory agency also needs to regularly review the qualifications and compliance of the watchtowers and users to maintain the safe and stable operation of the system.
[0119] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A multi-round sealed electronic auction system based on a state channel, comprising a user module, a supervisory agency module, a third-party supervisory service provider module, a blockchain system module, and an IPFS distributed storage system module, characterized in that: The user module can be divided into two roles: buyers and sellers. Registered and approved users can join the system to participate in the auction. Sellers are responsible for publishing auction tasks and creating channels. Buyers apply to join the multi-party status channel to participate in bidding. Among them, a channel instance contains a seller and multiple buyers, which can be collectively referred to as channel users. The monitoring service provider module monitoring service provider is an incompletely trusted entity that provides services to channel users, also known as a watchtower. Compared with ordinary users, it has stronger computing resources and storage resources. The watchtower provides users with storage services and dispute services and charges corresponding fees. It continuously monitors the channel by storing the channel data of bound users. With the user's permission, it can trigger the dispute mechanism on behalf of the user to ensure the user's financial security and legal rights and interests during the auction process. At the same time, the watchtower is also responsible for providing channel data to the supervisory agency so that the supervisory agency can promptly understand the bidding situation in the channel and implement necessary supervisory measures.
2. According to the state channel-based multi-round sealed electronic auction system of claim 1, it is characterized in that: The supervisory agency module is served by the government and other authoritative agencies. It does not directly participate in the auction process, but is only responsible for supervising and reviewing the auction to ensure the compliance and stable operation of the system. Users and watchtowers must apply for registration with the supervisory agency before joining the system, and the supervisory agency will conduct corresponding qualification review. In addition, in order to maintain the transparency and fairness of auction activities, the supervisory agency needs to regularly review the compliance of users and watchtowers, impose fines on watchtowers that do not act, regularly maintain and update user credit scores, and punish users who violate regulations.
3. According to the state channel-based multi-round sealed electronic auction system of claim 1, it is characterized in that: The blockchain system module serves as the basic network for the operation of the system. The blockchain provides important guarantees for the transparency and integrity of auction activities. Each activity is recorded in the form of transactions in the blockchain, ensuring that user operations during the auction process are traceable and cannot be tampered with.
4. According to the state channel-based multi-round sealed electronic auction system of claim 1, it is characterized in that: In order to overcome the limitation of blockchain itself on data storage capacity, the IPFS distributed storage system module stores large-volume data such as image files in the auction process externally to IPFS, and only records the unique address corresponding to these data in the blockchain. By uploading the data hash value instead of the data itself to the chain, the blockchain storage pressure can be effectively alleviated and the storage cost can be reduced without sacrificing data integrity and accessibility, thereby enhancing the scalability and efficiency of the system.
5. A multi-round sealed electronic auction scheme based on a state channel according to any one of claims 1 to 4, characterized in that: The following steps are involved: Step 1: Initialization phase: Watchtowers and users need to register with the supervisory agency before joining the system, and the supervisory agency will review them. After the review is passed, the supervisory agency can recommend Watchtowers to users based on the recommendation algorithm or user preference information, and users will bind Watchtowers. Therefore, the initialization phase can be divided into Watchtower registration, user registration, Watchtower service binding and release channel contracts; Step 2: Preparation phase: The preparation phase mainly involves the preparation work required before bidding in the off-chain channel, which can be divided into auction task release, bidding application and multi-party status channel creation; Step 3: Bidding stage: In the bidding stage, users complete multiple rounds of sealed bidding processes in the channel and jointly update the auction status in the channel according to the rules; Step 4: Closing stage: After the auction is over, any channel user can submit the final status and apply to close the channel. Assuming that the auction ends after one round, the latest valid status generated at this time is the final status. Assuming that the channel user closes the channel, a channel closing transaction is sent to the channel contract. After verification, it enters the dispute period and waits for the set dispute time T; Step 5: Management stage: Due to the isolation of the channel, in order to enable the supervisory agency to manage the auction process, the watchtower is also responsible for providing channel data to the supervisory agency. The supervisory agency obtains detailed transaction data of channel users in the channel from the watchtower, and the supervisory agency uses the symmetric key pair to decrypt the channel status data, from which the bidding rounds in the channel, the winning price of each round and the winning user can be known. The supervisory agency manages the auction based on the above data, and supervises and reviews the bidding process and results. In addition, the supervisory agency also needs to regularly review the qualifications and compliance of the watchtower and users to maintain the safe and stable operation of the system.
6. A multi-round sealed electronic auction scheme based on state channels according to claim 5, characterized in that: In step three, the bidding consists of multiple rounds. Each round requires a leader to organize and promote the auction bidding process, which is mainly responsible for collecting bids, calculating results and collecting signatures. Each round of auction bidding can be divided into four main sub-stages: leader election, bidding, confirmation of bidding results and watchtower backup data. After each round of auction, a valid channel state will be generated by consensus of all channel users. Users will send this channel state to their respective bound watchtowers for backup. In order to achieve bidding privacy protection, users in the channel use Pedersen commitments to encrypt their bids, and use a multi-party state channel leader broadcast mechanism combined with an anonymous veto network to calculate the winning price. In order to retain the privacy of the reserve price of the auction item, the seller bids with the remaining buyers with the reserved reserve price as the bid.
7. A multi-round sealed electronic auction scheme based on state channels according to claim 5, characterized in that: In step 3, it is assumed that there is one seller and n-1 qualified potential bidders in the channel instance, that is, the valid bidder set P = {p1, p2, ... p n-1 }, the channel member set can be expressed as U = {u1,u2,...u n }, use b i Indicates member u i The quotation of i It can be expressed in binary form as where b ij ∈{0,1}, is the connection symbol, l is the binary length of the quotation, if u i If b is the seller, i Reserve a reserve price for the item; if u i For the buyer, then b i The price the buyer offers to acquire the item.
8. The multi-round sealed electronic auction scheme based on state channel according to claim 5 is characterized in that: In step 4, if other users have disputes about the channel closure status, they can call the channel contract user dispute function. Assume that user u j If there is a dispute over the channel closing status within time T, then user u j User dispute transactions can be sent to the channel contract
