Block chain-based lottery ticket generation device and method and lottery ticket configuration and verification system and method

By using a blockchain-based lottery allocation scheme, an improved VRF algorithm and equity factor calculation model are employed to generate and store lottery serial numbers, thereby solving the fairness and transparency issues of existing lottery schemes and improving the security and user participation of the lottery process.

CN121789339APending Publication Date: 2026-04-03CHINA MOBILE INTERNET CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-26
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Existing lottery schemes suffer from problems such as difficulty in verifying fairness, lack of transparency in random number generation, unreasonable distribution of benefits, low efficiency, and data security risks, making them unsuitable for the needs of online marketing and e-commerce platforms.

Method used

A blockchain-based lottery allocation scheme is adopted, using an improved VRF algorithm and equity factor calculation model to generate lottery ticket serial numbers, which are then stored on the blockchain to ensure the fairness, transparency, and verifiability of the lottery process.

Benefits of technology

This improved the fairness and transparency of the lottery process, prevented tampering, enhanced user participation and loyalty, and ensured the rationality and security of prize ticket distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121789339A_ABST
    Figure CN121789339A_ABST
Patent Text Reader

Abstract

The invention provides a block chain-based lottery ticket generation device and method, and a lottery ticket configuration and verification system and method. The lottery ticket serial number generation method comprises the steps of establishing a model, calculating a right factor, calculating the number of lottery tickets and generating the lottery ticket serial number, specifically, calculating the right factor based on multiple dimension data, calculating the number of lottery tickets based on the right factor, an expression factor, a historical expression score and an adaptive weight adjustment factor, and generating the lottery ticket serial number. And using a VRF function to select the number of lottery tickets as a data source to generate lottery ticket serial numbers. The lottery ticket configuration and verification method comprises the steps of verifying a user identity, generating a lottery ticket serial number, generating and verifying a winning serial number, distributing prizes and storing information, wherein a VRF function is used for selecting a block hash value as a data source to generate and verify the winning serial number. According to the method, the lottery coupons can be distributed fairly and reasonably, the lottery ticket serial numbers can be generated randomly, the winning serial numbers can be obtained, and data are prevented from being tampered and forged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the blockchain field, and in particular to blockchain-based lottery configuration. Background Technology

[0002] With the rapid development of online marketing and e-commerce platforms, prize draws have become an important means of attracting users and increasing user engagement and loyalty. Merchants and platforms need a fair, secure, and efficient prize draw scheme that can incentivize user participation while ensuring transparency and credibility. Traditional prize draw methods often suffer from insufficient fairness, complex operation, and difficulty in verification, making it difficult to meet the growing market demand.

[0003] Currently, the most common lottery schemes on the market are as follows: 1. Manual lottery: Winners are randomly selected through manual drawing or lottery. This method is simple to operate, but inefficient, prone to errors, and difficult to verify in terms of fairness.

[0004] 2. Simple random number generation: This method uses a computer to generate random numbers and selects the winner according to certain rules. While this method improves efficiency, the random number generation process is opaque, making it difficult to prove fairness, and it is also easily tampered with.

[0005] 3. Random number generation based on hash values: User information is hashed to generate random numbers. This method improves fairness to some extent, but the choice of hash algorithm and its implementation details are opaque, making it difficult to fully verify.

[0006] Therefore, an innovative lottery system should be developed that will provide merchants and platforms with more intelligent and automated marketing tools, while also bringing users a fairer and more engaging experience. Summary of the Invention

[0007] To address at least one of the aforementioned technical problems, this disclosure provides a blockchain-based lottery allocation scheme that reduces human intervention, uses an improved VRF algorithm to achieve efficient and automated lottery allocation, and ensures the fairness, transparency, and verifiability of the allocation process.

[0008] According to a first aspect of this disclosure, a method for generating lottery ticket serial numbers based on blockchain is provided, comprising the following steps: Provide equity factors, obtain multi-dimensional data from the database of the lottery system, design corresponding calculation functions for each dimension of data, establish an equity factor calculation model for each user by performing linear operations on the calculation functions, associate the dimension data with the user's historical behavior and user information trajectory, and the selection of calculation functions meets the requirements of achieving economic marginal effect; Calculate the equity factor for each user using the equity factor calculation model; Provides performance factors, historical performance scores, and adaptive weight adjustment factors for each user, for each user on the [date / time]... During the current lottery event period, the number of prize tickets to be allocated to users is calculated based on the equity factor, performance factor, historical performance score, and adaptive weight adjustment factor. A factor calculation model for the performance factor, historical performance score, and adaptive weight adjustment factor is established using nested functions, and a calculation model for the number of prize tickets is established based on the factor calculation model. For users, the VRF function generates multiple lottery ticket serial numbers based on the number of tickets to be allocated, where the data source for the lottery ticket random number seed includes the number of tickets.

[0009] According to a second aspect of this disclosure, a blockchain-based lottery ticket serial number generation device is provided, comprising: The model module is configured to provide equity factors and establish an equity factor calculation model for each user. The model module obtains multi-dimensional data from the database of the lottery system, designs corresponding calculation functions for each dimension of data, and establishes the equity factor calculation model by linearly operating the calculation functions. The dimension data is associated with the user's historical behavior and user information trajectory, and the selection of calculation functions meets the requirements of achieving economic marginal effect. The equity factor calculation module is configured to use the equity factor calculation model to calculate the equity factor for each user. The prize ticket quantity calculation module is configured to provide performance factors, historical performance scores, and adaptive weight adjustment factors for each user. It uses nested functions to build a factor calculation model for these factors, and then builds a calculation model for the prize ticket quantity based on this model. Specifically, for a user at the [number]th [user's position / time], the calculation is performed on the [number]th [user's position / time]. During the lottery event period, the prize ticket calculation module uses a factor calculation model to calculate the performance factor, historical performance score, and adaptive weight adjustment factor. Based on the equity factor, performance factor, historical performance score, and adaptive weight adjustment factor, it calculates the user's... The number of lottery tickets to be allocated during the current lottery period; The lottery ticket serial number generation module is configured to use the VRF function to generate random numbers for lottery tickets, and map the random numbers to a lottery ticket serial number range to generate a lottery ticket serial number for each user. The data source for the lottery ticket random number seed used to generate the random numbers includes the number of lottery tickets.

[0010] According to a third aspect of this disclosure, a blockchain-based method for configuring and verifying lottery tickets is provided, comprising the following steps: The lottery system verifies the identity information submitted by users and assigns a unique user ID to users whose identity information has been verified. A lottery ticket serial number is generated for each user using the method according to the first aspect of this disclosure; The winning random number is generated using a VRF function, and the winning random number is mapped to the winning sequence number range to obtain candidate winning sequence numbers. The winning sequence number is selected from all lottery ticket sequence numbers that match the candidate winning sequence number. The winning sequence number is verified using a VRF public key. The data source for the winning random number seed used to generate the winning random number includes the latest block hash value in the blockchain. Match users and prizes based on verified winning serial numbers, and distribute the prizes to the winning users; Key information generated during the lottery configuration and verification process will be transmitted to blockchain storage.

[0011] According to the fourth aspect of this disclosure, a blockchain-based lottery allocation and verification system is provided, comprising: The identity verification module is configured to verify the identity information submitted by users and assign a unique user ID to users whose identity information has been verified. The prize ticket serial number generation module is configured to provide a rights factor associated with the user's historical behavior and user information trajectory, a performance factor, a historical performance score, and an adaptive weight adjustment factor for calculating the number of prize tickets, generate the number of prize tickets to be allocated through multiple nested functions based on the rights factor, performance factor, historical performance score, and adaptive weight adjustment factor, and generate the prize ticket serial number using a VRF function, wherein the data source for the prize ticket random number seed used to generate the prize ticket serial number includes the number of prize tickets; The winning sequence number generation and verification module is configured to use VRF to generate a winning random number, map the winning random number to a winning sequence number range to obtain a candidate winning sequence number, select a lottery ticket sequence number that matches the candidate winning sequence number from all lottery ticket sequence numbers as the winning sequence number, and verify the winning sequence number using a VRF public key. The winning sequence number generation and verification module obtains the latest block hash value from the blockchain as the data source for the winning random number seed used to generate the winning sequence number. The prize distribution module is configured to match users and prizes based on verified winning serial numbers and distribute the prizes to the winning users. The evidence storage module collects key information generated during the lottery configuration and verification process and transmits this key information to the blockchain for storage.

[0012] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: The algorithm for generating lottery ticket serial numbers incorporates equity factors. By functionalizing various equity factors, lottery tickets are distributed fairly and reasonably, allowing users who contribute more to the platform to have more chances to win. The use of an improved VRF function and a data source with randomness ensures that the generated lottery ticket serial numbers exhibit good random distribution characteristics within the numerical range, preventing clustering effects. The designed function structure allows for flexible configuration of equity factors and control over the number of lottery tickets, enabling the platform to be customized according to actual needs.

[0013] The algorithm for generating and verifying winning serial numbers uses VRF technology to generate random serial numbers independent of the lottery ticket serial number. The winning serial number is obtained by matching the random serial number with the lottery ticket serial number, increasing the randomness of the lottery process. VRF technology ensures that the generated random numbers are unpredictable and tamper-proof, while also providing verifiable proof, making the lottery process transparent and trustworthy, improving the fairness and security of the lottery, and preventing internal cheating and external tampering. Deduplication and supplementation mechanisms ensure the validity and completeness of the winning results. Attached Figure Description

[0014] The accompanying drawings illustrate exemplary embodiments of the present disclosure and, together with the description thereof, serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0015] Figure 1 This is a flowchart of a lottery ticket configuration method according to an embodiment of the present disclosure. Detailed Implementation

[0016] The present disclosure will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and are not intended to limit the scope of the disclosure. Furthermore, it should be noted that, for ease of description, only the parts relevant to the present disclosure are shown in the accompanying drawings.

[0017] It should be noted that, where there is no conflict, the embodiments and features described in this disclosure can be combined with each other. This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0018] An example application of this disclosure is a lottery activity in e-commerce. Existing lottery methods have the following drawbacks: 1. Difficulty in verifying fairness: Most existing lottery schemes lack effective verification mechanisms, making it difficult to prove the fairness of the lottery process and for users to build trust.

[0019] 2. Opaque random number generation: The algorithm and process for generating random numbers are usually a black box operation, and users cannot understand the details, which leads to a lack of fairness and credibility.

[0020] 3. Unreasonable distribution of rights and interests: Most existing solutions adopt a simple average distribution method, which does not take into account the differences in users' contributions and participation, making it difficult to effectively incentivize users.

[0021] 4. Low efficiency of lottery draws: Manual lottery draws are inefficient and prone to errors; while smart contract lottery draws are transparent and trustworthy, they are limited by the performance of the blockchain and cannot support large-scale, high-frequency lottery activities.

[0022] 5. Data security risks: The lottery process involves users' sensitive information. If the random number generation and storage methods are not appropriate, it can easily lead to data leakage and privacy violations.

[0023] To address this, this disclosure, based on Web3.0 technology, designs a function-based algorithm (EFLTA) that incorporates equity factors to generate lottery tickets and an improved VRF algorithm (VRF-LRNGVA) for lottery ticket allocation and verification. By designing functions and selecting data sources to randomly generate and allocate lottery tickets, and by using tamper-proof dynamic lottery data, it provides verification of the lottery ticket allocation process and results. This ensures fair and reasonable lottery ticket generation and allocation, thereby increasing the fairness, transparency, verifiability, and credibility of the lottery activity, improving user participation and loyalty, and encouraging users to participate more in platform activities and interactions.

[0024] Embodiments of this disclosure are described below with reference to the accompanying drawings.

[0025] Figure 1 An example flowchart of a blockchain-based lottery configuration and verification method according to this disclosure is shown.

[0026] like Figure 1 As shown, the lottery ticket configuration and verification method includes: verifying user identity, generating lottery ticket serial numbers, generating and verifying winning serial numbers, prize allocation, and information storage.

[0027] During the user identity verification process, the lottery system verifies the identity information submitted by the user and assigns a unique user ID after verification. If verification fails, the lottery system will display an authentication failure message.

[0028] In the step of generating lottery ticket serial numbers, the EFLTA (Equity Function Algorithm Based on Equity Factors) is used to automatically generate the serial numbers. This equity factor is correlated with the user's historical behavior and is used to comprehensively and realistically evaluate each user's performance within the system, enabling the EFLTA algorithm to generate lottery tickets reasonably and personally. The EFLTA algorithm is built through multi-level nested functions to increase the randomness of lottery ticket generation and prevent tampering. The specific steps for generating lottery ticket serial numbers include: Model Establishment: First, prepare dimensional data, which can be obtained from the lottery system's database. Design a corresponding calculation function for each dimensional data point to calculate its impact on the equity factor. Then, combine multiple calculation functions through linear operations to establish an equity factor calculation model for each user. This model calculates the equity factor for each user. Linear operations facilitate expanding the equity factor calculation model when dimensional data is changed or added. According to this disclosure, dimensional data should be correlated with the user's historical behavior and information trajectory, combining time and spatial dimensions to comprehensively evaluate the user's situation. Calculation functions can be designed based on the expected role of each dimensional data point in the lottery allocation process; for example, designing calculation functions based on the requirement of achieving economic marginal effects helps prevent malicious use of the system by third parties.

[0029] Equity Factor Calculation: The above equity factor calculation model is used for each user. Calculate its equity factor ; Calculate the number of prize tickets: Provides performance factors for each user. Historical performance score Adaptive weight adjustment factor Using equity factors Performance factors Historical performance score Adaptive weight adjustment factor Calculate users The number of lottery tickets to be allocated during the current lottery period. According to this disclosure, the calculation of the number of lottery tickets is linked to a user's historical participation in and winning of lotteries, and a balance is achieved among all users' lottery ticket counts by adjusting weights. Performance Factor Historical performance score Adaptive weight adjustment factor The lottery ticket quantity is calculated using appropriate calculation functions, specifically non-linear functions. Multiple non-linear functions are nested layer by layer according to the calculation hierarchy. The calculation model iterates the calculated number of lottery tickets into a function that calculates the performance factor, historical performance score, and adaptive weight adjustment factor. By using nested functions and iterating through historical calculations, the objectivity of the calculated number of lottery tickets can be increased, and tampering can be prevented.

[0030] Generate lottery ticket serial number: for users Based on the number of tickets to be allocated Use VRF to generate multiple unique random lottery ticket serial numbers. The lottery random number seed used to generate the lottery ticket serial number The data source includes the number of lottery tickets. The time dimension is incorporated into the lottery random number seed using the number of lottery tickets. This helps prevent tampering with and forgery of lottery ticket serial numbers.

[0031] In the step of generating and verifying the winning serial number, an improved VRF-LRNGVA algorithm is used to generate multiple winning random numbers. These random numbers are then mapped to winning serial number ranges to obtain candidate winning serial numbers. The winning serial number is selected from all serial numbers that matches the candidate winning serial numbers, and this is done using the VRF public key. Verify the winning serial number. Advantageously, this is used to generate the winning random number seed. The data source includes the latest block hash in the blockchain. Using a random and unpredictable data source in the blockchain increases the randomness of generating winning random numbers. The VRF-LRNGVA algorithm disclosed herein uses a method of matching random numbers to obtain the winning sequence number, rather than simply randomly selecting the winning sequence number from the generated lottery ticket sequence numbers. This method increases the randomness of the process of obtaining the winning sequence number.

[0032] In the prize distribution step, users and prizes are matched based on the verified winning serial number, and the prizes are allocated to the winning users. Prizes can be distributed on-chain or collected offline. This step generates winning information for each winning user, as well as prize distribution and collection information.

[0033] In the information storage step, key information generated during the configuration and verification of lottery tickets is transmitted to the blockchain for storage, forming permanent evidence.

[0034] The significant advantage of the lottery ticket configuration and verification method disclosed herein lies in its ability to provide automatic and random generation and allocation of lottery tickets from both the data and computational levels through the design of random data sources, functions, and their nested structures. This prevents tampering and forgery, meeting the requirements for a fair, reasonable, and verifiable lottery process. Further specific advantages will be described later with concrete examples.

[0035] According to this disclosure, a method and apparatus specifically for generating lottery ticket serial numbers are also provided.

[0036] This disclosure provides a blockchain-based method for generating lottery ticket serial numbers, which serves as part of the aforementioned lottery ticket configuration and verification method. This part provides a rights factor associated with the user's historical behavior. The lottery ticket serial number is automatically generated based on the equity factor through multiple nested functions. The basic steps are as described above and will not be detailed here.

[0037] The corresponding blockchain-based lottery ticket serial number generation device includes: The model module is configured to include benefit factors associated with users' historical behavior. Furthermore, a rights factor calculation model is established for each user. The model module obtains multiple dimensions of data from the database of the lottery system, designs corresponding calculation functions for each dimension of data, and establishes a rights factor calculation model through linear operation of the calculation functions. The dimension data is associated with the user's historical behavior and information trajectory, and the calculation function is selected according to the requirements of achieving economic marginal effect. The equity factor calculation module is configured to use an equity factor calculation model to calculate the equity factor for each user. ; The prize ticket quantity calculation module is configured to include performance factors for each user. Historical performance score Adaptive weight adjustment factor Nested nonlinear functions are used to construct the equity factor, performance factor, historical performance score, adaptive weight adjustment factor, and number of tickets. The computational model, where, for users In the During the lottery event period, the ticket quantity calculation module calculates the equity factor, performance factor, historical performance score, and adaptive weight adjustment factor based on the calculation model, and calculates the user's... The number of lottery tickets to be allocated during the current lottery period. ; The lottery ticket serial number generation module is configured to use VRF and select the lottery tickets to be assigned to users. Number of lottery tickets As a data source for the random number seed of the lottery ticket, for users Generation and number of lottery tickets Corresponding multiple lottery ticket serial numbers .

[0038] The following describes more specific aspects of the lottery serial number generation method disclosed herein, all of which can be applied to the lottery configuration and verification methods described above.

[0039] According to the lottery serial number generation method disclosed herein, the dimensional data used for the equity factors include: historical spending amount, number of times participating in activities, social interaction level, retention rate within the predetermined time period, credit rating, blockchain or geographical location, age, gender, and employment status. This dimensional data involves the user's historical behavior, information trajectory, and identity information, covering both blockchain-based and actual activities. Each user has a set of dimensional data.

[0040] The design of calculation functions for dimensional data should express the contribution of that dimensional data to the equity factor and achieve a user-friendly and caring effect. Applicable functions include, but are not limited to: The logarithmic function is used to achieve diminishing returns for dimensional data. This function is suitable for economic dimensional data such as historical consumption amounts. The power function is used to control the importance of dimensional data; The hyperbolic tangent and sigmoid functions are used to perform non-linear transformations of dimensional data within a predetermined interval, which can show the marginal contribution effects of positive and negative correlations. These functions are suitable for activity-related dimensional data such as social level and retention rate.

[0041] The equity factor calculation model uses a combination formula. Based on the examples in this disclosure, a first formula that can be used is:

[0042] in, Historical spending amount To the number of times you participate in the activity, For social interaction level, The retention rate within the predetermined time period. , , , , , , These are adjustable parameters. The meanings of the functions in the first formula are as follows: This represents the contribution of consumption amount to the equity factor. Using a logarithmic function achieves diminishing returns, meaning that the higher the consumption amount, the lower its marginal contribution rate. This indicates an adjustable parameter, and C represents the user's historical spending amount.

[0043] : Indicates the contribution of the number of times you participate in the activity to the equity factor. The exponent parameter controls the importance of activity. When... At that time, the equity factors of highly active users grew faster. This indicates an adjustable parameter, where P represents the number of times a user participates in the activity.

[0044] This represents the contribution of social interaction level to the equity factor. The hyperbolic tangent function is used. It can achieve non-linear mapping of social interaction levels. When the interaction level exceeds a certain threshold, its marginal contribution becomes smaller. This indicates an adjustable parameter, where I represents the user's level of social interaction.

[0045] This represents the contribution of user retention rate to the equity factor during the pre-booking period. Using the Sigmoid function, a non-linear mapping of the retention rate can be achieved; its marginal contribution increases as the retention rate exceeds a certain threshold. , This indicates an adjustable parameter, and L represents the user retention rate over the past 7 days.

[0046] This indicates the contribution of the interaction effects of each dimension to the equity factor. This item reflects the product relationship between consumption, activity level, and interaction level. The larger the value, the more balanced the user's performance in all aspects, and the higher the equity factor. These represent adjustable parameters. C, P, I, and L represent the user's historical spending amount, number of times they participated in activities, level of social interaction, and retention rate within a predetermined period (e.g., the last 7 days).

[0047] According to this disclosure, when adding dimensional data, the first formula can be linearly extended by incorporating the added dimensional data and the calculation function used for the added dimensional data into the first formula.

[0048] As mentioned above, the number of prize tickets is calculated based on the user's equity factors, and also incorporates evaluation factors from multiple historical lottery results: performance factors. Historical performance score Adaptive weight adjustment factor According to this disclosure, the calculation of the number of lottery tickets is... Nonlinear functions include, but are not limited to: The square root function is used to reduce the penalty effect on data that ranks lower in a sorted data queue. The hyperbolic tangent function is used to prevent interference from extreme values ​​in the data. The time decay function is used to introduce the time decay effect and dynamic change trend of data; The hyperbolic sine function is used to increase the weighting coefficient of the top-ranked data in a sorted data queue while maintaining monotonicity; The reinforcement learning function is used to adaptively and dynamically optimize the computational weights of the data based on historical states. The Logistic function is used to obtain a relative goal achievement propensity score. The Sigmoid function is used to implement a non-linear mapping of data within a predetermined interval.

[0049] According to this disclosure, one formula for the calculation model of the performance factor is expressed as the second formula:

[0050] The second formula calculates the user In the Performance factors in the next lucky draw event ,in, , , Each for users In the Ranking of the number of coupons won, the amount spent, and the prize amount in this lucky draw. For the smoothing term parameters.

[0051] One formula for calculating historical performance scores is expressed as the third formula:

[0052] in, This represents the total number of historical prize draws. For the first The time for this lucky draw event.

[0053] The calculation model for the adaptive weight adjustment factor is expressed by the fourth formula:

[0054] The fourth formula is constructed based on the principles of reinforcement learning to achieve dynamic optimization, in which... For the first After the next iteration, the user Adaptive weight adjustment factor, initial value Set to 1, The learning rate is used to control the step size of each iteration. Historical performance scores for all users the median of Historical performance scores for all users The median of the absolute values ​​of the differences from the median. For users Historical winnings Compared to the standard score of the total historical winnings of all users, This represents the smoothing term parameter.

[0055] The formula for calculating the number of lottery tickets combines the calculation values ​​from formulas two through four mentioned above, and is represented by formula five:

[0056] in, The original number of prize tickets, derived from user level and business needs, is defined by business rules or is defined as the number of prize tickets from the previous lottery event. This is a moderating factor used to control the strength of the impact of the equity factor on the number of lottery tickets. Historical performance scores for all users the median of Historical performance scores for all users The median of the absolute values ​​of the differences from the median. For the smoothing term parameters.

[0057] After calculating the number of prize tickets to be allocated for each user, a prize ticket serial number will be generated. This step includes, for each user... : Generate a unique random number seed for the lottery ticket. The lottery ticket's random number seed Uses including user identity information, VRF public key And the number of lottery tickets Data source generation; Based on the lottery ticket random number seed Using VRF to generate and count lottery tickets Corresponding multiple verifiable lottery ticket random numbers and the corresponding VRF proof VRF combines the lottery ticket random number seed with the lottery ticket serial number. Connect to ensure random numbers for each lottery ticket only; Random numbers for the lottery tickets Mapped to a predetermined range of lottery ticket serial numbers Obtain multiple lottery ticket serial numbers ; The output includes the lottery ticket number. Lottery ticket serial number and VRF proof triples The number of triples and the number of lottery tickets corresponding.

[0058] The lottery random number seed is generated using a hash function, and the formula is constructed based on the hash function:

[0059] in, This represents a string concatenation operation. For user identity identifiers, This is the VRF public key.

[0060] Use the VRF function to generate multiple lottery ticket random numbers. The formula built based on VRF is:

[0061] in, This represents a string concatenation operation. This is the VRF private key.

[0062] Mapping lottery ticket random numbers The formula is constructed using the PRF function and the arcsine function, and is expressed as:

[0063] in, Let j be the serial number of the lottery ticket for user i. and These are the minimum and maximum values ​​of the lottery ticket serial number, respectively. This is the VRF private key.

[0064] The previous section described the process of generating lottery ticket serial numbers using the EFLTA algorithm. The following section will describe the process of generating winning serial numbers using the VRF-LRNGVA algorithm in the lottery ticket configuration and verification methods.

[0065] Using a VRF function similar to the one described above to generate winning random numbers, the formula based on the VRF function is as follows:

[0066] in, For the first A winning random number, For the corresponding VRF proof, This is the winning serial number. To pre-set the number of winning numbers, This is the VRF private key.

[0067] The formula for mapping winning random numbers is constructed using the PRF function and the arcsine function, and is expressed as:

[0068] in, This is the mapping value of the winning random number. and These are the minimum and maximum values ​​of the winning serial number, respectively. VRF private key; For each winning random number mapping value, a favorable matching method with the lottery ticket serial number is to select the closest lottery ticket serial number as the candidate winning serial number, using the formula:

[0069] in, Iterate through all the issued lottery ticket serial numbers.

[0070] According to this disclosure, generating and verifying the winning serial number also includes: In cases where there are duplicate candidate winning serial numbers, deduplication is performed; After deduplication, the number of candidate winning serial numbers is less than the preset winning number. In cases where the number of candidate winning serial numbers is equal to the preset number of winning numbers, supplementary processing is performed to regenerate new candidate winning serial numbers until the number of candidate winning serial numbers obtained is equal to the preset number of winning numbers. The candidate winning serial numbers obtained after deduplication and supplementation are output as the winning serial numbers.

[0071] Next, verify the output winning serial number. For each winning serial number... Based on its corresponding VRF proof, verification is performed using the VRF public key. The verification formula is as follows:

[0072] All winning serial numbers Verification shows that the lottery process meets the expected randomness requirements. The verified winning serial number and its corresponding VRF proof are used as a tuple. Output the number of pairs and the preset winning numbers. corresponding.

[0073] According to this disclosure, the key information stored in the information storage includes: the lottery ticket serial number assigned to each user, the lottery ticket random number seed, the winning random number seed, the parameters and results of the VRF calculation, the winning serial number sorting queue, the winning user information, the prize information, and multiple items from the prize distribution record.

[0074] In the lottery ticket configuration and verification method disclosed herein, the steps for verifying user identity may further include: The lottery system performs a preliminary check on the format and completeness of the identity information, and then transmits the preliminarily verified identity information to a third party for verification. The third party returns the verification results to the lottery system, which then assigns a unique user ID to the user whose identity information has been verified.

[0075] According to this disclosure, a blockchain-based lottery configuration and verification system corresponding to the above-described lottery configuration and verification methods is provided, including: The identity verification module is configured to verify the identity information submitted by users and assign a unique user ID to users whose identity information has been verified. The prize ticket serial number generation module is configured to provide benefit factors associated with users' historical behavior. Based on equity factors, the lottery ticket serial number is automatically generated through multiple nested functions. The winning serial number generation and verification module is configured to use VRF to generate and verify winning serial numbers. The winning serial number generation and verification module obtains the latest block hash value from the blockchain as the data source for the winning random number seed used to generate the winning serial number. The prize distribution module is configured to match users and prizes based on verified winning serial numbers and distribute the prizes to the winning users. The evidence storage module collects key information generated during the lottery configuration and verification process and transmits this key information to the blockchain for storage.

[0076] According to this disclosure, the lottery configuration and verification system may include an application restriction module configured to restrict or prohibit the use of the system or its constituent modules in conjunction with a human-computer interaction system, a brain-computer interface device, or a VR device.

[0077] According to this disclosure, the multiple modules constituting the lottery configuration and verification system can be divided into multiple accessible computing devices, multiple apps, or multiple storage media, or integrated into the entire accessible computing device, app, or storage media; and / or the multiple modules constituting the system are integrated in the overall device or distributed in multiple devices.

[0078] Not limited to the e-commerce sector as illustrated, the methods and systems disclosed herein can also be applied to the distribution of benefits in the financial and gaming sectors. The "benefits" distributed through lotteries in this disclosure include, but are not limited to: physical prizes, bonuses, and virtual assets.

[0079] In the description of this specification, the references to terms such as "one embodiment / mode," "some embodiments / modes," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment / mode or example is included in at least one embodiment / mode or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment / mode or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments / modes or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments / modes or examples described in this specification, as well as the features of different embodiments / modes or examples.

[0080] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0081] Those skilled in the art should understand that the above embodiments are merely for illustrating the present disclosure and are not intended to limit the scope of the disclosure. Those skilled in the art can make other changes or modifications based on the above disclosure, and these changes or modifications still fall within the scope of the present disclosure.

Claims

1. A method for generating lottery ticket serial numbers based on blockchain, characterized in that, Includes the following steps: The system provides equity factors, obtains multi-dimensional data from the database of the lottery system, designs corresponding calculation functions for each dimension of data, and performs linear operations on the calculation functions to establish an equity factor calculation model for each user. The dimension data is associated with the user's historical behavior and user information trajectory, and the selection of the calculation function meets the requirements of achieving economic marginal effect. The equity factor is calculated for each user using the equity factor calculation model. Provides performance factors, historical performance scores, and adaptive weight adjustment factors for each user, where, for each user at the During the current lottery event period, the number of prize tickets to be allocated to the user in the current lottery period is calculated based on the benefit factor, the performance factor, the historical performance score, and the adaptive weight adjustment factor. In this process, nested functions are used to establish corresponding factor calculation models for the performance factor, the historical performance score, and the adaptive weight adjustment factor. Based on the factor calculation models, a calculation model for the number of prize tickets is established. For each user, multiple lottery ticket serial numbers are generated using a VRF function based on the number of lottery tickets to be allocated, wherein the data source for the lottery ticket random number seed used to generate the lottery ticket serial numbers includes the number of lottery tickets.

2. The method for generating lottery ticket serial numbers based on blockchain according to claim 1, characterized in that, For each user, the dimension data used for the benefit factors includes: historical spending amount, number of times participating in activities, social interaction level, retention rate within the scheduled period, credit rating, block or geographical location, age, gender, and employment status.

3. The method for generating lottery ticket serial numbers based on blockchain according to claim 1, characterized in that, The calculation function used for the dimensional data includes: The logarithmic function is used to achieve diminishing returns on the data in the aforementioned dimension; The power function is used to control the importance of the dimensional data; The Sigmoid function is used to implement non-linear transformation of the dimensional data within a predetermined interval.

4. The method for generating lottery ticket serial numbers based on blockchain according to any one of claims 1 to 3, characterized in that, The formula for the equity factor calculation model includes the first formula: in, Historical spending amount To the number of times you participate in the activity, For social interaction level, The retention rate within the predetermined time period. , , , , , , These are adjustable parameters.

5. The method for generating lottery ticket serial numbers based on blockchain according to claim 4, characterized in that, In the case of modifying or adding the dimensional data, the modified or added dimensional data and the calculation function used therefor are added to the first formula by linear expansion.

6. The method for generating lottery ticket serial numbers based on blockchain according to any one of claims 1 to 3, characterized in that, The function used to calculate the number of lottery tickets includes: The square root function is used to reduce the penalty effect on data that ranks lower in a sorted data queue. The hyperbolic tangent function is used to prevent interference from extreme values ​​in the data. The time decay function is used to introduce the time decay effect and dynamic change trend of data; The hyperbolic sine function is used to increase the weighting coefficient of the top-ranked data in a sorted data queue while maintaining monotonicity; The reinforcement learning function is used to adaptively and dynamically optimize the computational weights of the data based on historical states. The Logistic function is used to obtain a relative goal achievement propensity score. The Sigmoid function is used to implement a non-linear mapping of data within a predetermined interval.

7. The method for generating lottery ticket serial numbers based on blockchain according to claim 6, characterized in that, The formula for the factor calculation model of the performance factor includes a second formula: The second formula calculates the user in the first... The performance factors mentioned in this lottery event. in, , , users respectively In the first The number of coupons obtained in this lucky draw, the ranking of spending amount, and the prize amount. For the smoothing term parameters.

8. The method for generating lottery ticket serial numbers based on blockchain according to claim 6, characterized in that, The formula for the factor calculation model of the historical performance score includes a third formula: in, This represents the total number of historical prize draws. For the first The time for this lucky draw event.

9. The method for generating lottery ticket serial numbers based on blockchain according to claim 6, characterized in that, The formula for the factor calculation model of the adaptive weight adjustment factor includes a fourth formula: The fourth formula is constructed based on the principles of reinforcement learning. in, For the first The user's adaptive weight adjustment factor after the next iteration, initial value Set to 1, The learning rate is used to control the step size of each iteration. For all users, the historical performance score, The median of the historical performance scores. The median is the absolute value of the difference between the historical performance scores of all users and their median. This refers to the user's historical winnings. This is a standard fraction of the historical winning amount relative to the total historical winning amount of all users. This represents the smoothing term parameter.

10. The method for generating lottery ticket serial numbers based on blockchain according to claim 6, characterized in that, The formula for calculating the number of lottery tickets includes a fifth formula: in, The original number of prize tickets, derived from user level and business needs, is defined by business rules or is defined as the number of prize tickets from the previous lottery event. This is a regulating factor used to control the strength of the influence of the equity factor on the number of prize tickets. For all users, the historical performance score, The median of the historical performance scores. The median is the absolute value of the difference between the historical performance score and its median. For the smoothing term parameters.

11. The method for generating lottery ticket serial numbers based on blockchain according to any one of claims 1 to 3, characterized in that, The generation of the prize ticket serial number includes, for the user: A unique lottery ticket random number seed is generated using a data source that includes user identity information, VRF public key, and the number of lottery tickets. Based on the lottery ticket random number seed, VRF is used to generate multiple verifiable lottery ticket random numbers and corresponding VRF proofs corresponding to the number of lottery tickets, wherein the VRF concatenates the lottery ticket random number seed with the lottery ticket serial number to ensure that each lottery ticket random number is unique; Map the lottery ticket random number to a predetermined range of lottery ticket serial numbers. Obtain multiple of the aforementioned lottery ticket serial numbers; The output includes a triplet consisting of the lottery ticket number, the lottery ticket serial number, and the VRF proof. The number of triplets corresponds to the number of lottery tickets.

12. The method for generating lottery ticket serial numbers based on blockchain according to claim 11, characterized in that, The formula for generating the random number seed for the lottery ticket is constructed using a hash function and is expressed as follows: in, This represents a string concatenation operation. For user identity identifiers, This is the VRF public key.

13. The method for generating lottery ticket serial numbers based on blockchain according to claim 11, characterized in that, The formula for generating the multiple lottery ticket random numbers is constructed using a VRF function and is expressed as follows: in, This represents a string concatenation operation. This is the VRF private key.

14. The method for generating lottery ticket serial numbers based on blockchain according to claim 11, characterized in that, The formula for mapping the lottery ticket random numbers is constructed using the VRF function and the arcsine function, and is expressed as: in, For the j-th lottery ticket serial number of the user, and These are the minimum and maximum values ​​of the lottery ticket serial number, respectively. This is the VRF private key.

15. A lottery ticket serial number generation device based on blockchain, characterized in that, include: The model module is configured to provide equity factors and establish an equity factor calculation model for each user. The model module obtains multiple-dimensional data from the database of the lottery system, designs corresponding calculation functions for each dimension of data, and establishes the equity factor calculation model by performing linear operations on the calculation functions. The dimension data is associated with the user's historical behavior and user information trajectory, and the selection of the calculation functions meets the requirements of achieving economic marginal effect. The equity factor calculation module is configured to use the equity factor calculation model to calculate the equity factor for each user. The prize ticket quantity calculation module is configured to provide performance factors, historical performance scores, and adaptive weight adjustment factors for each user. It uses nested functions to build a factor calculation model for the performance factors, historical performance scores, and adaptive weight adjustment factors. Based on the factor calculation model, it builds a calculation model for the prize ticket quantity. Specifically, for the user at the [number]th [period], [the module calculates the prize ticket quantity]. During the lottery event period, the prize ticket quantity calculation module uses the factor calculation model to calculate the performance factor, the historical performance score, and the adaptive weight adjustment factor, and calculates the number of prize tickets to be allocated to the user in the current lottery period based on the equity factor, the performance factor, the historical performance score, and the adaptive weight adjustment factor. The lottery ticket serial number generation module is configured to use a VRF function to generate a lottery ticket random number, and map the lottery ticket random number to a lottery ticket serial number range to generate the lottery ticket serial number for each user. The data source for the lottery ticket random number seed used to generate the lottery ticket random number includes the number of lottery tickets.

16. A method for configuring and verifying lottery tickets based on blockchain, characterized in that, Includes the following steps: The lottery system verifies the identity information submitted by the user and assigns a unique user ID to the user whose identity information has been verified. Generate a prize ticket serial number for each user using the method described in claim 1; A winning random number is generated using a VRF function. The winning random number is then mapped to a winning sequence number range to obtain a candidate winning sequence number. The lottery sequence number that matches the candidate winning sequence number is selected from all lottery sequence numbers as the winning sequence number. The winning sequence number is verified using a VRF public key. The data source for the winning random number seed used to generate the winning random number includes the latest block hash value in the blockchain. Match the user and the prize based on the verified winning serial number, and allocate the prize to the winning user; Key information generated during the lottery configuration and verification process will be transmitted to blockchain storage.

17. The blockchain-based lottery ticket configuration and verification method according to claim 16, characterized in that, The formula for generating the winning random number is constructed using a VRF function and is expressed as follows: in, For the first A winning random number, For the corresponding VRF proof, This is the winning serial number. To pre-set the number of winning numbers, This is the VRF private key.

18. The blockchain-based lottery ticket configuration and verification method according to claim 16, characterized in that, The formula for mapping the winning random number is constructed using the PRF function and the arcsine function, and is expressed as follows: in, This is the mapping value of the winning random number. and These are the minimum and maximum values ​​of the winning serial number, respectively. VRF private key; The lottery ticket serial number that best matches the mapping value of each winning random number is selected as the candidate winning serial number.

19. The blockchain-based lottery ticket configuration and verification method according to claim 18, characterized in that, The generation and verification of the winning serial number includes: In cases where the candidate winning serial numbers are duplicated, deduplication is performed. If the number of candidate winning serial numbers after deduplication is less than the preset winning number, supplementary processing is performed to regenerate new candidate winning serial numbers until the number of candidate winning serial numbers obtained is equal to the preset winning number. The candidate winning serial number obtained after the deduplication and supplementation processes is output as the winning serial number.

20. The blockchain-based lottery ticket configuration and verification method according to claim 17, characterized in that, For each winning serial number, verification is performed using the VRF public key based on its corresponding VRF proof. The verification formula is as follows: The verified winning serial number and its corresponding VRF proof are used as a tuple. The output is the number of the binary tuples, which is the preset number of winning numbers.

21. The blockchain-based lottery ticket configuration and verification method according to claim 16, characterized in that, The key information stored in the information storage includes: the lottery ticket serial number assigned to each user, the lottery ticket random number seed, the winning random number seed, the parameters and results of the VRF calculation, the winning serial number sorting queue, the winning user information, the prize information, and multiple items from the prize distribution record.

22. The blockchain-based lottery ticket configuration and verification method according to claim 16, characterized in that, Verifying user identity includes: The lottery system performs a preliminary verification of the format and completeness of the identity information, transmits the preliminarily verified identity information to a third party for verification, and the third party returns the verification result to the lottery system. The lottery system then assigns a unique user ID to the user whose identity information has been verified.

23. A blockchain-based lottery ticket configuration and verification system, characterized in that, include: The identity verification module is configured to verify the identity information submitted by the user and assign a unique user ID to the user whose identity information has been verified. The prize ticket serial number generation module is configured to provide a rights factor associated with the user's historical behavior and user information trajectory, a performance factor, a historical performance score, and an adaptive weight adjustment factor for calculating the number of prize tickets, and generate the number of prize tickets to be allocated through multiple nested functions based on the rights factor, the performance factor, the historical performance score, and the adaptive weight adjustment factor, and generate the prize ticket serial number using a VRF function, wherein the data source for the prize ticket random number seed used to generate the prize ticket serial number includes the number of prize tickets; The winning sequence number generation and verification module is configured to generate a winning random number using a VRF function, map the winning random number to a winning sequence number range to obtain a candidate winning sequence number, select the lottery ticket sequence number that matches the candidate winning sequence number from all lottery ticket sequence numbers as the winning sequence number, and verify the winning sequence number using a VRF public key. The winning sequence number generation and verification module obtains the latest block hash value from the blockchain as the data source for generating the winning random number seed for the winning sequence number. The prize distribution module is configured to match the user and the prize based on the verified winning serial number, and distribute the prize to the winning user; The evidence storage module collects key information generated during the lottery configuration and verification process and transmits the key information to the blockchain for storage.

24. The blockchain-based lottery allocation and verification system according to claim 23, characterized in that, The system includes an application restriction module configured to restrict or prohibit the use of the system or its constituent modules in conjunction with a human-computer interaction system, a brain-computer interface device, or a VR device.

25. The blockchain-based lottery allocation and verification system according to claim 23, characterized in that, The multiple modules constituting the system are divided into multiple accessible computing devices, multiple applications, or multiple storage media, or integrated into a whole accessible computing device, application, or storage media; and / or the multiple modules constituting the system are integrated in a whole device or distributed in multiple devices.

26. The blockchain-based lottery allocation and verification system according to claim 23, characterized in that, The prizes include physical items, cash prizes, and virtual assets.