A decentralized ticketing system, method of purchasing a ticket, and medium
By using a decentralized ticketing system and blockchain technology, and leveraging smart contracts and verifiable delay functions to generate fair random numbers, the problems of unfair ticket grabbing and tampering in existing ticketing systems are solved, achieving fairness and transparency in the ticket purchasing process and improving the credibility of the system.
Patent Information
- Application Number
- CN202311619792.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-29
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-11-29
AI Technical Summary
Existing electronic ticketing systems lack reliable ticket tracking and anti-tampering measures, and also lack a trustworthy ticket transfer mechanism, resulting in low system credibility and susceptibility to being snapped up and tampered with by bot programs.
A decentralized ticketing system is adopted, which generates fair random numbers through smart contracts and blockchain technology. Combined with verifiable delay functions (VDFs), the system ensures the fairness and immutability of the ticket purchase process. An oracle server is used to generate comprehensive random numbers and process them with delay. The system also optimizes the transaction process by combining a fund pool mechanism and multi-signature technology.
This ensured fairness and transparency in the ticket purchasing process, improved the system's credibility, guaranteed a fair chance for every user to obtain tickets, reduced malicious ticket-grabbing, and protected the interests of the organizers.
Smart Images

Figure CN117634657B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer science, and more particularly to a decentralized ticketing system, a method for purchasing tickets, and a medium. Background Technology
[0002] Existing electronic ticketing systems lack reliable ticket tracking and tamper-proofing mechanisms. High-concurrency technologies such as automated systems can facilitate faster ticket purchases. Furthermore, the lack of reliable ticket transfer mechanisms and auditing schemes further undermines the credibility of current ticketing systems. Summary of the Invention
[0003] One objective of this application is to provide a decentralized ticketing system, ticket purchasing method, and medium to solve the problems of the lack of reliable ticket tracking and anti-tampering measures, as well as the lack of transparency in current ticketing systems.
[0004] According to one aspect of this application, a decentralized ticketing method is provided, the method comprising: The system obtains a user's ticket booking request generated on the ticketing platform and sends the ticket booking request to a smart contract. The ticket booking request carries the user's ticket booking information and a random number selected by the user. A random source in the blockchain is sent to a smart contract, and a composite random number is generated based on the random source obtained from the smart contract, the user's ticketing information, and the random number selected by the user. A fair random number is obtained by delaying the composite random number using a verifiable delay function. The ticket purchase result information is generated based on the fair random number and then returned to the ticket purchase platform.
[0005] Optionally, obtain the user's ticket booking request generated on the ticketing platform, including: The basic information of the cultural and entertainment performance is stored in the blockchain, and the smart contract in the blockchain is called to publish the latest basic information of the cultural and entertainment performance. The system displays the latest basic information about entertainment performances released by the smart contract on the ticketing platform, obtains the user's selection based on the basic information, and generates the user's ticket booking request.
[0006] Optionally, before sending the ticket booking request to the smart contract, the following steps are included: User booking requests are stored in a message queue, and the booking requests in the message queue are collected through traffic peak shaving and valley filling.
[0007] Optionally, the user ticketing information includes a unique user identifier, viewing time period, ticket price, and performer information. A comprehensive random number is generated based on a random source from the smart contract, the user ticketing information, and a random number selected by the user, including: Obtain the random source for the current period in Filecoin on the smart contract; Random metrics are generated based on the unique user identifiers in all user ticketing information. A composite random number is generated based on the random source, random index, and the random number selected by each user.
[0008] Optionally, storing the user's ticket booking request in a message queue includes: The system retrieves the viewing seats selected by the user during the ticket-grabbing period specified by the organizer's terminal, the random number, and the ticket price paid, generates a ticket booking request, and stores the generated ticket booking request in a message queue.
[0009] Optionally, the ticket purchase result information includes a list of successful bidders and a list of unsuccessful bidders. After returning the ticket purchase result information to the ticketing platform, it includes: The orders in the winning list will be uploaded to the blockchain based on the ticket purchase result information; The ticket purchase fees corresponding to the on-chain orders in the fund pool are transferred to the organizer, and the unique ticket purchase vouchers generated on the chain are issued to the users on the list of those who won tickets. The fund pool is determined by the ticketing platform to transfer all ticket purchase fees into the fund pool. The ticket fees corresponding to the orders in the unsuccessful signature list in the fund pool will be returned to the users.
[0010] Furthermore, the ticket fees corresponding to the orders on the unsuccessful signature list in the fund pool will be returned to the users, including: Step a: After the results of the current round of ticket purchases are released, obtain the confirmation actions of users who did not win the lottery within the set time period; Step b: When the confirmed action is to continue waiting, users who choose to continue waiting will be added to the new users for random ticket grabbing in the next round of ticket issuance, and the winning weight will be adjusted according to the number of times the users who continue to wait have failed to win a ticket. Step c: When the confirmation is that the user will not wait any longer, the ticket purchase fee paid by the user who will not wait any longer will be directly returned to the user's account. Repeat steps a through c until all unsuccessful users have completed the refund process, and then use the proceeds from the fund pool to compensate unsuccessful users in the form of a lottery.
[0011] Optionally, the ticketing platform may send user booking requests obtained from users to a smart contract, including any of the following: Register a wallet for each user using a digital wallet, generate a unique on-chain account address, and send the user's ticket booking request obtained by the ticketing platform to the smart contract using the unique on-chain account address and the corresponding private key; The system aggregates ticket booking requests from multiple users and uses multisignature to send the aggregated ticket booking requests to the smart contract in batches.
[0012] According to another aspect of this application, a decentralized ticketing system is also provided, comprising: a ticketing platform, a smart contract module, and an oracle server, wherein... The ticketing platform is used to obtain the user's operation when selecting to purchase tickets, generate the user's ticketing request, and send the ticketing request to the smart contract module. The ticketing request carries the user's ticketing information and the random number selected by the user. The oracle server is used to generate a composite random number based on the random source obtained from the smart contract module, the user's ticketing information, and the random number selected by the user. The composite random number is then delayed using a verifiable delay function to obtain a fair random number. The smart contract module is used to generate ticket purchase result information based on the fair random number received from the oracle server, and return the ticket purchase result information to the ticket purchase platform.
[0013] Optionally, the ticketing system includes: an organizer terminal, wherein the organizer terminal is used to store basic information of the cultural and entertainment performance in the blockchain and call the smart contract in the blockchain to publish the latest basic information of the cultural and entertainment performance; The ticketing platform is used to display the latest basic information of cultural and entertainment performances released by the smart contract, and to obtain the user's selection operation based on the basic information to generate a ticket booking request.
[0014] Optionally, the oracle server is used to listen for random number requests sent by the smart contract module and obtain fair random numbers based on the random number requests.
[0015] According to another aspect of this application, a computer-readable medium is also provided, having stored thereon computer-readable instructions that can be executed by a processor to implement the method as described above.
[0016] Compared to existing technologies, this application obtains user booking requests generated on a ticketing platform and sends these requests to a smart contract. The booking request carries user booking information and a random number selected by the user. A random source from the blockchain is sent to the smart contract, and a composite random number is generated based on the random source obtained from the smart contract, the user booking information, and the user-selected random number. This composite random number is then delayed using a verifiable delay function to obtain a fair random number. Based on this fair random number, ticket purchase result information is generated and returned to the ticketing platform. This provides genuine users with more opportunities to acquire tickets, achieving a virtuous cycle in the performance market. Attached Figure Description
[0017] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings: Figure 1 A schematic diagram of the structure of a decentralized ticketing system provided according to one aspect of this application is shown; Figure 2 This illustration shows a schematic diagram of a ticket purchasing method in a decentralized asynchronous trusted ticketing system according to an embodiment of this application; Figure 3 A flowchart illustrating a decentralized ticketing method provided according to one aspect of this application is shown.
[0018] The same or similar reference numerals in the accompanying drawings represent the same or similar parts. Detailed Implementation
[0019] The present application will now be described in further detail with reference to the accompanying drawings.
[0020] In a typical configuration of this application, the terminal, the device of the service network, and the trusted party all include one or more processors (e.g., a central processing unit (CPU)), input / output interfaces, network interfaces, and memory.
[0021] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0022] Computer-readable media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change RAM (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device. As defined in this article, computer-readable media do not include non-transitory computer-readable media, such as modulated data signals and carrier waves.
[0023] This ticketing system uses an on-chain smart contract module that guarantees random results and reliable execution logic. This module connects the organizer's ticketing needs with the audience's ticketing needs; both parties complete the transaction and transfer of tickets through the contract. Since tickets for entertainment performances (such as concerts) typically go on sale much earlier than the performance start time, and audiences' demand for fairness and randomness during the ticket-buying process far outweighs their need for real-time feedback on the results, this ticketing system employs a delayed ticketing mechanism to ensure fairness. Tickets are released a certain time after the initial sales period.
[0024] Figure 1The diagram illustrates the structure of a decentralized ticketing system according to one aspect of this application. The system includes a ticketing platform 100, a smart contract module 200, and an oracle server 300. The ticketing platform 100 receives a user's ticket purchase request and sends it to the smart contract module 200. The ticket purchase request carries user ticketing information and a random number selected by the user. The oracle server 300 generates a composite random number based on a random source obtained from the smart contract module 200, the user's ticketing information, and the user's selected random number. It then delays the composite random number using a verifiable delay function to obtain a fair random number. The smart contract module 200 generates ticket purchase result information based on the fair random number received from the oracle server 300 and returns the ticket purchase result information to the ticketing platform 100. Here, the ticketing platform displays basic information about entertainment performances, such as start time, performers, and ticket prices. Users can search the existing list of entertainment performances on the platform (such as a list of celebrity concerts), select the celebrities, locations, times, and ticket prices they are interested in, and choose their desired seats and pay for their tickets within the designated ticket-grabbing period. Users can also customize a random number to increase the randomness of the entire system, thereby generating their ticket purchase requests. The ticketing platform sends these user ticket purchase requests to a smart contract module for transaction. The smart contract module generates a fair random number through an oracle server. Using the random source on the smart contract module, the user's order information in the ticket purchase request, and the random number selected by the user, a comprehensive random number is generated. This comprehensive random number is then delayed to generate a fair random number. Finally, this fair random number is used to select lucky users from all ticket purchase users, generating ticket purchase result information. This ticket purchase result information includes which users won the lottery and which users did not win the lottery.
[0025] In one embodiment of this application, the ticketing system includes: an organizer terminal, wherein the organizer terminal is used to store basic information of the entertainment performance in a blockchain and call a smart contract in the blockchain to publish the latest basic information of the entertainment performance; the ticketing platform is used to display the latest basic information of the entertainment performance published by the smart contract, and obtain the user's selection operation based on the basic information to generate a ticket booking request. Here, the organizer terminal transmits relevant space-consuming information to IPFS or a related decentralized storage network, wherein the relevant space-consuming information is some information suitable for on-chain, such as some posters, commemorative tickets, performers and other information of the entertainment performance, which is guaranteed to be immutable by using content addressing, and the relevant information is hashed and uploaded to the chain; the organizer terminal calls the contract to publish the latest basic information of the entertainment performance. Taking a concert as an example, the basic information includes: the singers, guests, time and location of the concert, the list of songs of the concert, the promotional posters, commemorative tickets, etc. of the concert, the seating class of the concert and the corresponding number of tickets issued; the several ticket opening times and refund windows of the concert. In the ticketing system of this application, in order to protect fairness and reduce the problem of excessive transaction gas fees caused by a large number of transactions on the blockchain at the same time, the organizer terminal does not need a fixed flash sale time, but sets a time period for grabbing tickets, and users can make selections within the specified time period.
[0026] In one embodiment of this application, the oracle server is used to listen for random number requests sent by smart contracts and obtain a composite random number based on the random number requests. Here, as... Figure 2 As shown, the system includes a ticketing platform, a smart contract module, and an oracle server. Step 1: User ticketing requests are sent via a message queue. Step 2: The ticketing platform collects ticketing requests using a traffic smoothing method. Step 3: The ticketing platform packages user ticketing information and a random number and sends it to the smart contract module. Step 4.1: The smart contract module obtains a public, unpredictable, unbiased, and publicly verifiable random source (DRAND) from Filecoin. Step 4.2: The smart contract module sends the obtained ticketing information to the oracle server. Step 5.1: A comprehensive random index is generated on the oracle server. Step 5.2: The comprehensive random index is delayed using VDF to generate the final random number (i.e., a fair random number). Step 6: The oracle server listens for contract requests through event logs, requests random numbers, and returns a fair random number to the smart contract module. Step 7: Based on the fair random number, the system returns ticketing result information, including lists of successful and unsuccessful ticket purchases, to the ticketing platform. Step 8.1: Successful ticket purchases are recorded on the blockchain. Step 8.2: Unsuccessful purchases result in a refund of the deposit to the user. To provide more ticket access opportunities for true fans and achieve a virtuous cycle in the performance market.
[0027] Figure 3The diagram illustrates a flowchart of a decentralized ticketing method according to one aspect of this application, the method comprising steps S11 to S14, wherein, Step S11: Obtain the user's ticket booking request generated on the ticketing platform and send the ticket booking request to the smart contract. The ticket booking request carries the user's ticket booking information and a random number selected by the user. Here, when a user uses the ticketing platform to purchase tickets, the user's ticket booking request is generated on the ticketing platform. The ticket booking request includes the user's ticket booking information and a random number selected by the user to increase fairness. The collected ticket booking requests are sent to the smart contract to conduct the transaction at the contract level.
[0028] Step S12: Send the random source from the blockchain to the smart contract, and generate a comprehensive random number based on the random source obtained from the smart contract, the user's ticketing information, and the random number selected by the user. Here, a public, unpredictable, unbiased, and publicly verifiable random source from the blockchain is sent to the smart contract. The smart contract combines all the predetermined information to generate a preliminary comprehensive random number, wherein the predetermined information includes the user's ticketing information and the random number selected by the user.
[0029] Specifically, the user ticketing information includes a unique user identifier, viewing time period, ticket price, and performer information. In step S12, the random source of the current period in Filecoin is obtained from the smart contract; a random indicator is generated based on the unique user identifiers in all user ticketing information; and a comprehensive random number is generated based on the random source, the random indicator, and the random number selected by each user. Here, after the ticket sales deadline, the random source exposed by Filecoin contains a random source. The random source (DRAND) of the current period in Filecoin is sent to the smart contract, and a random indicator R1 is generated on the smart contract based on the unique identifier of the ticket-buying user. , Let R1 be the unique identifier of the i-th ticket-purchasing user, and f() be a specific processing function to generate random numbers based on the user's unique identifier, such as a hash function; concatenate the generated R1, the random source (DRAND), and the random number selected by each user to generate a composite random number, for example, using the keccak256 algorithm for concatenation processing: , n≥k, where r i R1 is a custom random number that can be optionally entered when purchasing tickets (i.e., a random number selected by the user), and R2 is a composite random number.
[0030] Step S13: Delay the composite random number using a verifiable delay function to obtain a fair random number. Here, the initial composite randomness index is based on each user input, and the DRAND generated in each cycle will be different. However, there is still the possibility that some malicious users may use high-performance machines to monitor on-chain data in real time and conduct simulated transactions. Although in the case of strong identity binding, it is costly to obtain a favorable random result by sending a new order before the end of the ticket purchase and it is impossible to affect the results of multiple accounts simultaneously, there is still some room for manipulation for proxy bidding. Therefore, an uncertainty factor is introduced by introducing a verifiable delay function (VDF): 1) Most random number schemes can only remain safe when honest participants dominate, but by using VDF, this can be reduced to at least one honest participant. 2) VDF can be regarded as a proof of the passage of time, that is, for a given VDF, it takes at least a certain amount of time to obtain its result, and it can effectively resist attacks accelerated by parallel computing. In order to compute VDF, it must be computed according to a series of strictly sequential tasks, where subsequent tasks must depend on the completion of the previous task. 3) The VDF accepts basic input and sets relevant time and security parameters, outputting the final result along with corresponding proof. Verifiers can judge the correctness of the VDF result through the input, relevant parameters, output, and proof. After a preset VDF calculation time, the aggregated random number is delayed to generate a fair random number. After the random number is delayed for a period of time, everyone needs to calculate for a long time to get the result, but the result can be verified.
[0031] Step S14: Generate ticket purchase result information based on the fair random number and return the ticket purchase result information to the ticket purchase platform. Here, the on-chain contract requests a fair random number from the oracle server via log messages, uses this fair random number to filter out the final user list from all ticket purchase users, and returns the ticket purchase result information to the ticket purchase platform.
[0032] In one embodiment of this application, in step S11, basic information about the entertainment performance is stored in the blockchain, and a smart contract in the blockchain is invoked to publish the latest basic information about the entertainment performance; the latest basic information about the entertainment performance published by the smart contract is displayed on the ticketing platform, and the user's selection operation based on the basic information is obtained to generate the user's ticketing request. Here, the organizer's terminal transmits relevant space-consuming information to IPFS or a related decentralized storage network. The relevant space-consuming information is some information suitable for being uploaded to the blockchain, such as posters, commemorative tickets, performers, etc. of the entertainment performance. Content addressing is used to ensure immutability, and the relevant information is hashed and uploaded to the blockchain; the organizer's terminal invokes the contract to publish the latest basic information about the entertainment performance, displays the basic information on the ticketing platform, and when the user purchases a ticket, they select the basic information, such as the time period, location, seat, ticket price, etc., to generate the user's ticketing request.
[0033] Next, user booking requests are stored in a message queue, and these requests are collected using a traffic shaving and valley filling method. Traffic shaving and valley filling is a function of the message queue; traffic has peak and off-peak periods. By shaving and valley filling, order messages are collected on the blockchain and sent when gas fees are relatively low, avoiding the need to send a large number of transactions simultaneously, which would result in high fees.
[0034] The process involves retrieving the user's chosen seat, a random number, and the ticket price paid during the designated ticket-buying period specified by the organizer's terminal. A booking request is then generated and stored in a message queue. Within this process, the user selects their desired seat and pays for the performance within the specified timeframe. The user can optionally define a custom random number to increase the system's randomness. Based on these user choices, a booking request is generated and sent to a smart contract via a message queue for contract-level transaction processing.
[0035] In one embodiment of this application, the ticket purchase result information includes a winning list and a losing list. After returning the ticket purchase result information to the ticketing platform, the orders in the winning list are uploaded to the blockchain according to the ticket purchase result information. The ticket purchase fees corresponding to the uploaded orders in the fund pool are transferred to the organizer, and the unique ticket purchase vouchers generated on the blockchain are issued to the users on the ticket-winning list. The fund pool is determined by the ticketing platform by depositing all ticket purchase fees into the fund pool. The ticket purchase fees corresponding to the orders in the losing list in the fund pool are returned to the users. Here, the smart contract returns the ticket purchase result information to the ticketing platform, which includes a winning list and a losing list. The winning list includes information about the users who won tickets, including user account, ticket payment amount, seat information, etc. The losing list includes information about the users who did not win tickets. The ticketing platform deposits all ticket purchase fees paid by users into the fund pool, waits for the ticket issuance results, and transfers the funds to the organizer's account. During the several ticket issuance processes, the fund pool continuously accumulates interest income. After obtaining the final user list, the ticketing platform sends the unique ticket purchase voucher generated on the blockchain to the users who successfully purchased tickets, returns the ticket purchase amount to the users who did not win the lottery, and distributes the profits generated in the fund pool to the users who did not win the lottery in the form of a lottery.
[0036] In one embodiment of this application, when returning the ticket fees corresponding to orders on the unsuccessful ticket purchase list in the fund pool to users, the following rules are used: Step a, after the results of the current round of ticket purchases are released, obtain the confirmation actions of unsuccessful users within a set time period; Step b, when the confirmation action is to continue waiting, users who choose to continue waiting will be added to the random ticket-grabbing process with new users in the next round of ticket sales, and the winning weight will be adjusted according to the number of unsuccessful purchases by users who continue waiting; Step c, when the confirmation action is to not continue waiting, the ticket fees paid by users who do not continue waiting will be directly returned to their accounts; Steps a to c are repeated until all unsuccessful users complete the refund process, and the fund pool revenue is used to compensate unsuccessful users in the form of a lottery. Here, in the process of concert ticket sales, there are often special circumstances that prevent users from attending and result in refunds. These refunded tickets will be redistributed to the sales channels for use in subsequent ticket sales. The rules for ticket refunds and multiple ticket opening waiting periods include the following: After the current round of ticket grabbing ends, users who did not successfully grab tickets can choose to automatically or manually confirm within 12 hours whether to continue waiting for tickets. The previously paid ticket amount will be directly refunded to their user accounts. For users who choose to continue waiting, in the next round of ticket opening, they will participate in the random ticket grabbing process along with newly joined users. Unlike new users, the system will gradually increase the user's winning weight and the probability of winning the lottery when they fail to win, based on the number of times they have failed to win. This process is repeated until all users have completed the refund process, all ticket opening windows are closed, winning users are confirmed, and the funds pool revenue is used to compensate unsuccessful users in the form of a lottery. After all on-chain ticket vouchers are issued, the final ticket payment will be transferred to the organizer. To protect the organizer's interests and prevent malicious refunds from causing significant losses, it is preferable that factors such as whether refunds are allowed, the amount of refund fees, and the refund time window are related to the number of users waiting in the ticket opening queue.
[0037] This allows each user's probability of obtaining a ticket to be randomly determined based on a combination of factors, such as the number of times they wait, while the immutable nature of the system prevents the organizer from changing their mind at the last minute, ensuring transparency for consumers.
[0038] In one embodiment of this application, sending user booking requests obtained by the ticketing platform to a smart contract includes any of the following: registering a wallet for each user using a digital wallet, generating a unique on-chain account address, and sending the user booking requests obtained by the ticketing platform to the smart contract using the unique on-chain account address and the corresponding private key; aggregating booking requests from multiple users and using multi-signature to send the aggregated booking requests to the smart contract in batches. Here, to lower the barrier for users to use the decentralized trusted ticketing system, ticketing methods, and blockchain, the ticketing platform packages and sends the collected transaction data to the on-chain smart contract for fair decision-making; the ticketing platform uses a message queue to smooth out congestion during peak order periods and continuously sends transactions when gas fees are low, reducing the overall transaction cost. Two methods can be adopted in the process of sending transactions to the blockchain: (1) Register an independent wallet for each account in the form of a digital wallet to form a unique on-chain account address. Users use the address and the corresponding private key to send transactions to the smart contract. (2) Aggregate multiple ticket purchase transactions and use multi-signature to send the transactions to the smart contract in batches to further reduce the cost of on-chain transactions; among them, multi-signature prevents power from being centralized and a single entity from controlling the system, thereby further improving the credibility of the system. Using multi-signature to send most transactions to the chain in batches can save on-chain transaction fees.
[0039] Both of these methods can return the ticket purchaser's on-chain credentials, ensuring that the ticket purchase information cannot be tampered with.
[0040] In this embodiment, ticket purchase information is bound to the user's real identity. Transactions within a certain period are filtered at the contract level, and duplicate purchases are deduplicated to prevent users from increasing their chances of being selected by buying multiple tickets. For malicious duplicate ticket purchases, corresponding penalties can be implemented to prevent users from gaining an advantage by creating numerous accounts and using multiple devices to purchase tickets simultaneously. Furthermore, the use of flash sales is avoided to ensure fairness in the ticket purchasing process.
[0041] Furthermore, embodiments of this application also provide a computer-readable medium storing computer-readable instructions that can be executed by a processor to implement the aforementioned decentralized ticketing method.
[0042] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
[0043] It should be noted that this application can be implemented in software and / or a combination of software and hardware, for example, using an application-specific integrated circuit (ASIC), a general-purpose computer, or any other similar hardware device. In one embodiment, the software program of this application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of this application (including related data structures) can be stored in a computer-readable recording medium, such as RAM memory, a magnetic or optical drive, a floppy disk, or similar devices. Furthermore, some steps or functions of this application can be implemented in hardware, for example, as circuitry that cooperates with a processor to perform the various steps or functions.
[0044] Furthermore, a portion of this application can be applied as a computer program product, such as computer program instructions, which, when executed by a computer, can invoke or provide the methods and / or technical solutions according to this application through the operation of the computer. The program instructions invoking the methods of this application may be stored in a fixed or removable recording medium, and / or transmitted via data streams in broadcast or other signal carrying media, and / or stored in the working memory of a computer device operating according to the program instructions. Here, one embodiment of this application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein, when the computer program instructions are executed by the processor, the apparatus is triggered to operate the methods and / or technical solutions based on the foregoing embodiments of this application.
[0045] It will be apparent to those skilled in the art that this application is not limited to the details of the exemplary embodiments described above, and that this application can be implemented in other specific forms without departing from the spirit or essential characteristics of this application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No reference numerals in the claims should be construed as limiting the scope of the claims. Furthermore, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices recited in the apparatus claims may also be implemented by a single unit or device in software or hardware. The terms "first," "second," etc., are used to indicate names and do not indicate any particular order.
Claims
1. A decentralized ticketing method, characterized in that, The method includes: The system obtains a user's ticket booking request generated on the ticketing platform and sends the ticket booking request to a smart contract. The ticket booking request carries the user's ticket booking information and a random number selected by the user. A random source in the blockchain is sent to a smart contract, and a composite random number is generated based on the random source obtained from the smart contract, the user's ticketing information, and the random number selected by the user. A fair random number is obtained by delaying the composite random number using a verifiable delay function; Based on the fair random number, the ticket purchase result information is generated and returned to the ticket purchase platform; Before sending the ticket booking request to the smart contract, the process includes: storing the user's ticket booking request in a message queue and collecting the ticket booking requests in the message queue through traffic peak shaving and valley filling. The user ticketing information includes a unique user identifier, viewing time period, ticket price, and performer information. The step of generating a comprehensive random number based on the random source obtained from the smart contract, the user ticketing information, and the random number selected by the user includes: obtaining the random source of the current period in Filecoin on the smart contract; generating a random indicator based on the unique user identifier in all user ticketing information; and generating a comprehensive random number based on the random source, the random indicator, and the random number selected by each user. The method further includes binding the user's ticket booking information with the user's real identity, so that the smart contract can filter transactions within a period of time and deduplicate duplicate ticket purchase transactions.
2. The method according to claim 1, characterized in that, Obtain user booking requests generated on the ticketing platform, including: The basic information of the cultural and entertainment performance is stored in the blockchain, and the smart contract in the blockchain is called to publish the latest basic information of the cultural and entertainment performance. The system displays the latest basic information about entertainment performances released by the smart contract on the ticketing platform, obtains the user's selection based on the basic information, and generates the user's ticket booking request.
3. The method according to claim 1, characterized in that, The step of storing the user's ticket booking request in the message queue includes: The system retrieves the viewing seats selected by the user during the ticket-grabbing period specified by the organizer's terminal, the random number, and the ticket price paid, generates a ticket booking request, and stores the generated ticket booking request in a message queue.
4. The method according to claim 1, characterized in that, The ticket purchase result information includes a list of successful bidders and a list of unsuccessful bidders. After returning the ticket purchase result information to the ticketing platform, it includes: The orders in the winning list will be uploaded to the blockchain based on the ticket purchase result information; The ticket purchase fees corresponding to the on-chain orders in the fund pool are transferred to the organizer, and the unique ticket purchase vouchers generated on the chain are issued to the users in the winning list. The fund pool is determined by the ticketing platform to transfer all ticket purchase fees into the fund pool. The ticket fees corresponding to the orders in the unsuccessful signature list in the fund pool will be returned to the users.
5. The method according to claim 4, characterized in that, The ticket fees corresponding to the orders on the unsuccessful signature list in the fund pool will be returned to the users, including: Step a: After the results of the current round of ticket purchases are released, obtain the confirmation actions of users who did not win the lottery within the set time period; Step b: When the confirmed action is to continue waiting, users who choose to continue waiting will be added to the next round of ticket sales and will participate in a random ticket grabbing event together with new users. The winning weight will be adjusted based on the number of times the users who continue waiting have failed to win a ticket. Step c: When the confirmation is that the user will not wait any longer, the ticket purchase fee paid by the user who will not wait any longer will be directly returned to the user's account. Repeat steps a through c until all unsuccessful users have completed the refund process, and then use the proceeds from the fund pool to compensate unsuccessful users in the form of a lottery.
6. The method according to claim 1, characterized in that, Sending user booking requests obtained by the ticketing platform to a smart contract, including any of the following: Register a wallet for each user using a digital wallet, generate a unique on-chain account address, and send the user's ticket booking request obtained by the ticketing platform to the smart contract using the unique on-chain account address and the corresponding private key; The system aggregates ticket booking requests from multiple users and uses multisignature to send the aggregated ticket booking requests to the smart contract in batches.
7. A decentralized ticketing system, characterized in that, The ticketing system includes: a ticketing platform, a smart contract module, and an oracle server, wherein... The ticketing platform is used to obtain the user's operation when selecting to purchase tickets, generate the user's ticketing request, and send the ticketing request to the smart contract module. The ticketing request carries the user's ticketing information and the random number selected by the user. The oracle server is used to generate a composite random number based on the random source obtained from the smart contract module, the user's ticketing information, and the random number selected by the user. The composite random number is then delayed using a verifiable delay function to obtain a fair random number. The smart contract module is used to generate ticket purchase result information based on the fair random number received from the oracle server, and return the ticket purchase result information to the ticket purchase platform; Before sending the ticket booking request to the smart contract module, the process includes: storing the user's ticket booking request in a message queue and collecting the ticket booking requests in the message queue through traffic peak shaving and valley filling. The user ticketing information includes a unique user identifier, viewing time period, ticket price, and performer information. The step of generating a comprehensive random number based on the random source obtained from the smart contract module, the user ticketing information, and the random number selected by the user includes: obtaining the random source of the current period in Filecoin on the smart contract; generating a random indicator based on the unique user identifier in all user ticketing information; and generating a comprehensive random number based on the random source, the random indicator, and the random number selected by each user. It also includes binding the user's ticket booking information with the user's real identity, so that the smart contract can filter transactions within a period of time and deduplicate duplicate ticket purchase transactions.
8. The ticketing system according to claim 7, characterized in that, The ticketing system includes: an organizer terminal, wherein the organizer terminal is used to store basic information of cultural and entertainment performances in a blockchain and call the smart contract in the blockchain to publish the latest basic information of cultural and entertainment performances; The ticketing platform is used to display the latest basic information of cultural and entertainment performances released by the smart contract, and to obtain the user's selection operation based on the basic information to generate a ticket booking request.
9. The ticketing system according to claim 7, characterized in that, The oracle server is used to listen for random number requests sent by smart contracts and obtain fair random numbers based on the random number requests.
10. A computer-readable medium having stored thereon computer-readable instructions that can be executed by a processor to implement the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Data processing method, device and system based on block chain and electronic equipment
CN110708371A
Decentralized house purchase number shaking method based on blockchain smart contract
CN111445355A
Distributed lottery system and method based on verifiable delay function
CN112527244A
