Lottery information processing method, device and computer-readable storage medium

By customizing the lottery credential text by users and generating hash seeds to confirm the winning, it solves the problems of low openness and internal cheating in traditional lottery systems, and achieves a fair and just winning process.

CN115578818BActive Publication Date: 2025-08-26SHENZHEN STORLEAD TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211213006.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-08-26
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

In traditional lottery systems, buyers can only select winning certificates from limited numbers, which have low openness and transparency, and cannot customize meaningful certificate text, which poses internal cheating risks.

Method used

User customizes the lottery voucher text. The lottery center platform generates hash seeds through hash operation and sends them to the user terminal. The user terminal splices the hash operation with the credential text to generate a hash value and confirms the winning according to the preset rules.

Benefits of technology

It improves the openness, transparency and fairness of lottery information processing, prevents internal cheating, and ensures the fairness and diversity of winning results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115578818B_ABST
    Figure CN115578818B_ABST
Patent Text Reader

Abstract

This application relates to a lottery information processing method, device, and computer-readable storage medium. The method includes: a user customizes the content of a lottery voucher text, which is reported by the user terminal to a lottery center platform. The lottery center platform obtains a hash seed based on all lottery voucher texts and sends it to the user terminal. The user terminal uses the lottery voucher text and the hash seed to obtain a hash value. When the hash value meets the winning hash value setting, the user is notified that the lottery voucher text has won the prize. After verification by the lottery center platform, the lottery voucher text is confirmed to have won the prize, and the lottery center will issue the prize. The technical solution of this application effectively improves the transparency and fairness of the lottery information processing process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a lottery information processing method, device, and computer-readable storage medium. Background Art

[0002] A lottery is a type of winning activity that relies on luck. Buyers can potentially win significant prizes by investing a small amount of money. Traditional lottery systems typically require buyers to select a set of numbers when purchasing a ticket, which serves as proof of winning. At the draw, a set of winning numbers is drawn through some method. If the winning numbers match, the buyer wins the corresponding prize. Traditional lotteries present several challenges: Buyers are restricted to a limited selection of numbers, such as the Mark Six lottery, which only allows six numbers. Furthermore, lottery buyers cannot select a meaningful text as proof of winning. Summary of the Invention

[0003] The embodiments of the present application provide a lottery information processing method, device, and computer-readable storage medium, which can at least solve the problem of low transparency in the process of processing lottery information in related technologies.

[0004] A first aspect of an embodiment of the present application provides a lottery information processing method, which is applied to a lottery center platform, comprising:

[0005] In response to a lottery voucher text reported by a user terminal, issuing a random code to the user terminal according to a preset random code distribution list; wherein the lottery voucher text is user-defined text;

[0006] Performing a hash operation on the lottery voucher text reported by all the user terminals to obtain a hash seed, and distributing the hash seed to all the user terminals; wherein the hash seed is used by the user terminal to calculate a first hash value after being spliced ​​to the lottery voucher text;

[0007] Upon receiving a lottery prize redemption instruction carrying a target lottery ticket voucher text and a target random code, the target lottery ticket voucher text is concatenated with the hash seed and hashed to obtain a second hash value, and the actual random code corresponding to the target lottery ticket voucher text is searched according to the random code allocation list;

[0008] If the target random code is consistent with the actual random code, and the second hash value meets the preset winning hash value rule, a lottery winning confirmation result is generated.

[0009] A second aspect of an embodiment of the present application provides a lottery information processing method, applied to a user terminal, comprising:

[0010] Obtaining a lottery voucher text input by a user, reporting the lottery voucher text to a lottery center platform, and receiving and storing a random code corresponding to the lottery voucher text issued by the lottery center platform according to a preset random code allocation list;

[0011] Receiving a hash seed obtained by performing a hash operation on the lottery voucher text reported by all user terminals by the lottery center platform;

[0012] Concatenate the lottery voucher text and the hash seed and perform a hash operation to obtain a first hash value;

[0013] If the first Hash value meets the preset winning Hash value rule, a lottery winning indication is generated.

[0014] A third aspect of an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a first computer program and a second computer program stored in the memory and executable on the processor. When the processor executes the first computer program, the steps of the lottery information processing method provided in the first aspect of the embodiment of the present application are implemented; when the processor executes the second computer program, the steps of the lottery information processing method provided in the second aspect of the embodiment of the present application are implemented.

[0015] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the lottery information processing method provided in the first and second aspects of the embodiments of the present application are implemented.

[0016] As can be seen from the above, according to the lottery information processing method, device and computer-readable storage medium provided by the present application, the lottery center platform responds to the lottery voucher text reported by the user terminal and sends the random code to the user terminal according to the preset random code distribution list; performs a hash operation based on the lottery voucher text reported by all user terminals to obtain a hash seed, and sends the hash seed to all user terminals; when receiving a lottery prize redemption instruction carrying a target lottery voucher text and a target random code, the target lottery voucher text is spliced ​​with the hash seed and then hashed to obtain a second hash value, and the actual random code corresponding to the target lottery voucher text is queried according to the random code distribution list; if If the target random code is consistent with the actual random code and the second hash value meets the preset winning hash value rules, a lottery winning confirmation result is generated; the user terminal obtains the lottery voucher text input by the user, reports the lottery voucher text to the lottery center platform, and receives and stores the random code corresponding to the lottery voucher text issued by the lottery center platform according to the preset random code distribution list; receives the hash seed obtained by the lottery center platform after performing a hash operation on the lottery voucher text reported by all user terminals; splices the lottery voucher text and the hash seed and then performs a hash operation to obtain a first hash value; if the first hash value meets the preset winning hash value rules, a lottery winning indication is generated.

[0017] Through the implementation of the present application solution, users can customize the content of the lottery voucher text. After all user terminals report the lottery voucher text, the lottery center platform obtains a hash seed based on all lottery voucher texts and sends it to the user terminal. The user terminal uses the lottery voucher text and the hash seed to obtain a hash value. When the hash value meets the winning hash value setting, the user is prompted that the lottery voucher text has won the prize. After verification by the lottery center platform, the lottery voucher text is determined to have won the prize, which effectively improves the openness, transparency and fairness of the lottery information processing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of the basic flow of the lottery information processing method applied to the lottery center platform provided in the first embodiment of the present application;

[0019] Figure 2 A schematic diagram of the basic flow of a lottery information processing method applied to a user terminal side provided in the first embodiment of the present application;

[0020] Figure 3 A detailed flowchart of the lottery information processing method provided in the second embodiment of the present application;

[0021] Figure 4 A schematic diagram of the modules of the lottery center platform provided in the third embodiment of the present application;

[0022] Figure 5A schematic diagram of a module of a user terminal provided in the third embodiment of the present application;

[0023] Figure 6 This is a schematic structural diagram of an electronic device provided in the fourth embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the invention objectives, technical solutions and advantages of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts shall fall within the scope of protection of this application.

[0025] In order to solve the problem of low transparency in the process of processing lottery information in related technologies, the first embodiment of this application provides a lottery information processing method, which is applied to the lottery center platform, such as Figure 1 This is a basic flow chart of a lottery information processing method applied to a lottery center platform provided in this embodiment. The lottery information processing method includes the following steps:

[0026] Step 101: In response to the lottery voucher text reported by the user terminal, a random code is issued to the user terminal according to a preset random code distribution list.

[0027] Specifically, in this embodiment, the lottery voucher text is user-defined text. The user selects a meaningful text based on their own wishes. This text can be in the form of words, numbers, letters, symbols, or any combination thereof, such as "What a beautiful day today!", "I'm going to win five million!", "141234," "113412352," "1431243Bafda," "1234Lucky qeweWERWE," and other text. Upon receiving the lottery voucher text from the user terminal, the lottery center platform returns a random code to the user terminal based on a preset random code allocation list. This random code, combined with the lottery voucher text, constitutes the winning receipt, preventing others from fraudulently claiming the prize. After receiving the lottery voucher text from the user terminal and issuing the random code, the lottery center platform publishes the lottery voucher text to allow all lottery players to monitor and prevent subsequent tampering.

[0028] Step 102: Perform a hash operation based on the lottery voucher text reported by all user terminals to obtain a hash seed, and send the hash seed to all user terminals.

[0029] Specifically, in this embodiment, after the lottery purchase period expires and the lottery voucher texts of all lottery players have been published, the lottery center platform will perform a hash operation on the lottery voucher texts reported by all user terminals. In this embodiment, the hash sha256 algorithm can be optionally used to operate on all lottery voucher texts, and the corresponding hash value is obtained after the hash operation. This hash value is used as a hash seed. This hash seed is used to calculate the first hash value after the user terminal is spliced ​​to the lottery voucher text, and the hash seed is distributed to all user terminals. The calculation method and result of the entire hash seed are public, and everyone can verify and calculate the hash seed and monitor it in real time, thereby ensuring fairness; and the hash seed is calculated after the lottery voucher texts of all lottery players are published, so no one can know the hash seed in advance, thereby effectively avoiding internal cheating.

[0030] Furthermore, in some implementations of this embodiment, the step of performing a hash operation based on the lottery voucher text reported by all user terminals to obtain a hash seed includes: extracting target characters from the lottery voucher text reported by all user terminals according to a preset character extraction rule; wherein the preset character extraction rule includes: the number and arrangement order of characters to be extracted from a single lottery voucher text; and performing a hash operation on all target characters extracted based on the character extraction rule to obtain a hash seed.

[0031] Specifically, this embodiment performs a hash operation on all lottery voucher texts. The target characters in all lottery voucher texts are first extracted according to a preset character extraction rule. A hash operation is then performed on all the obtained target characters to obtain a hash seed. The preset character extraction rule may specify the number of characters to be extracted from each lottery voucher text and the character ranking to be extracted, for example, extracting the third character in the lottery voucher text.

[0032] Furthermore, in some implementations of this embodiment, the target character is the first character in the lottery voucher text; the step of performing a hash operation on all target characters extracted based on the character extraction rule to obtain a hash seed includes: sorting all lottery voucher texts according to the chronological order of reporting time of the lottery voucher texts; concatenating the first characters of all extracted lottery voucher texts according to the arrangement order of the lottery voucher texts to obtain a first character string; and performing a hash operation on the first character string to obtain a hash seed.

[0033] Specifically, the target character extracted in this embodiment is the first character in the lottery voucher text. After obtaining the first character of all lottery voucher texts, the first characters of all lottery voucher texts are concatenated in the order of arrangement of all lottery voucher texts to obtain a first string, and a hash operation is performed on the first string to obtain a hash seed. This embodiment optionally uses the hash sha256 algorithm to calculate the hash value corresponding to the first string to obtain a hash seed. Let the lottery voucher text of the lottery player be s, and the lottery voucher texts of all lottery players S = (s1, s2, ..., s N ) are concatenated in chronological order to form the first string L=s 1,1 s 2,1 ...s N,1 , the calculated hash value is A=sha256(L).

[0034] Step 103: When receiving a lottery prize redemption instruction carrying the target lottery voucher text and the target random code, the target lottery voucher text is concatenated with the hash seed and hashed to obtain a second hash value, and the actual random code corresponding to the target lottery voucher text is queried according to the random code allocation list.

[0035] Specifically, when the lottery center platform of this embodiment receives the lottery prize redemption instruction of the target lottery voucher text and the target random code, it will verify the target lottery voucher text, that is, perform a hash operation on the target lottery voucher text and the hash seed to obtain a second hash value, and query the actual random code corresponding to the target lottery voucher text through the random code allocation list.

[0036] Step 104: If the target random code is consistent with the actual random code and the second hash value meets the preset winning hash value rule, a lottery winning confirmation result is generated.

[0037] Specifically, in this embodiment, after comparing the target random code with the actual random code and comparing the second Hash value with the preset winning Hash value rule, if both the target random code and the second Hash value match, it is determined that the lottery voucher text has won the prize.

[0038] Furthermore, in some implementations of this embodiment, if the target random code is consistent with the actual random code and the second hash value meets the preset winning hash value rule, the step of generating a lottery winning confirmation result includes: matching the constituent characters of the target random code with the constituent characters of the actual random code one by one; when the constituent characters of the target random code and the constituent characters of the actual random code are successfully matched, determining that the target random code is consistent with the actual random code; obtaining string feature information of the preset winning hash value; wherein the string feature information includes at least one of the following: the total number of identical characters in the string, and position distribution information of the identical characters in the string; when the string feature information of the second hash value meets the string feature information of the preset winning hash value, determining that the second hash value meets the preset winning hash value rule; and generating a lottery winning confirmation result corresponding to the target lottery voucher text.

[0039] Specifically, the random code in this embodiment can be a number, letter, symbol, or a combination of the three, such as "47CLQ" or "73493." The target random code is determined to be consistent with the actual random code corresponding to the lottery voucher text by matching the component characters of the target random code one by one. When the component characters of the target random code and the actual random code all match successfully, the target random code and the actual random code are determined to be consistent. Furthermore, the string feature information of the preset winning hash value in this embodiment is published before the user selects the lottery voucher text, and this embodiment uses the SHA256 hash algorithm to obtain the hash value. It should be noted that the SHA256 hash function is a one-way function that generates a fixed-length binary string of 256 for any given text. The SHA256 function has strong anti-collision capabilities. For a given hash value, it is difficult to find the corresponding original text to obtain this hash value, thus effectively preventing pre-emptive cheating. Because the hash algorithm results in a 256-bit binary string, the length of the hash result value needs to be shortened based on the needs of real-world lotteries. This embodiment optionally extracts a binary number every 4 digits (or, when the number of winning lottery tickets is smaller, every 8 digits), for a total of 64 binary numbers. Alternatively, these 64 binary numbers can be represented in hexadecimal, with every four binary numbers represented by a hexadecimal number. The hash algorithm then produces a 16-bit hexadecimal string. Hexadecimal characters are 0123456789ABCDEF, so the hash value obtained through the hash operation can be "456456AAABBC6F3F" or "1F2DF5DDA89C1E23."The preset winning hash value rules of this embodiment are set based on the possible hash string features and the probability of their occurrence. Therefore, the string feature information obtained by the lottery center platform can be the total number of identical characters in the string, the position distribution information of the identical characters in the string, and the possible string features including multiple groups of identical characters, such as "AA34AA45A32ACEDE", "AAAAAAAAA6456CDF", and "AAAA3452DDDD2324". Different levels of awards can also be set based on the probability of occurrence of different string features. For example, if there are ten identical characters in the hash string, the first prize will be awarded, such as "AAAAAAAAA6456ADF", and the hash string has 8 When the characters are the same, the second prize is won, such as "AAAAAAA634456ADF", and when the hash string has 6 identical characters, the third prize is won, etc.; the winning rules can also be determined by setting the positions where the identical characters appear, for example, setting the first prize to be won when the first 7 characters of the hash string are the same, such as "AAAAAAA486456CDF", and the second prize is won when the first 5 characters of the hash string are the same, etc. This embodiment is optional and uses the total number of identical characters in the string as the winning hash value rule; by setting the string feature type of the winning hash value, the winning of a certain type of hash value can be limited. Generally speaking, the lower the probability of a type of hash string appearing, the higher the corresponding winning level is set. When the character string feature information of the second hash value meets the character string feature information of the preset winning hash value, it is determined that the second hash value meets the preset winning hash value rule; and a lottery winning confirmation result corresponding to the target lottery voucher text is generated. For example, when the character string of the second hash value is "CCCCCCC634456CDF", it is determined that the second hash value meets the winning hash value rule, and it is determined that the target lottery voucher text has won the second prize.

[0040] Correspondingly, this embodiment also provides a lottery information processing method applied to the user terminal side, such as Figure 2 This is a basic flow chart of a lottery information processing method applied to a user terminal provided in this embodiment. The lottery information processing method includes the following steps:

[0041] Step 201: Obtain the lottery voucher text input by the user, report the lottery voucher text to the lottery center platform, and receive and store the random code corresponding to the lottery voucher text issued by the lottery center platform according to a preset random code allocation list.

[0042] Specifically, after receiving the user-entered custom text, the user terminal of this embodiment reports it to the lottery center platform and stores the random code returned by the lottery center platform locally within the lottery voucher text. This random code prevents others from tampering with the user's lottery voucher text and, together with the lottery voucher text, constitutes a prize redemption credential. While there are no restrictions on the content of the user-entered custom text, some restrictions may be placed on the number of characters in the text, such as a limit of 100 characters. Therefore, when the user terminal receives the custom text, it can also obtain a preset rule for the total number of text characters. Only when the total number of characters meets the preset rule is the custom text reported to the lottery center platform.

[0043] Step 202: Receive a hash seed obtained by performing a hash operation on the lottery voucher text reported by all user terminals by the lottery center platform.

[0044] Specifically, in this embodiment, after the lottery center platform publishes the hash seed, the user terminal is also used to receive the hash seed, so that the user can supervise the calculation result of the hash seed to prevent the hash seed from being tampered with.

[0045] In some implementations of this embodiment, after the step of receiving a hash seed obtained by performing a hash operation on the lottery voucher text reported by all user terminals on the lottery center platform, the method further includes: when a verification instruction corresponding to the hash seed is received, obtaining the first character of all lottery voucher texts; concatenating the first characters of all obtained lottery voucher texts according to the order in which the lottery voucher texts are published by the lottery center platform to obtain a second character string; performing a hash operation on the second character string to obtain a third hash value; and when the third hash value is consistent with the hash seed, generating a verification result that the operation is correct.

[0046] Specifically, after receiving the hash seed, the user terminal of this embodiment can verify the hash seed according to the user's wishes, obtain the first character of all lottery voucher texts through the lottery voucher text published by the lottery center platform, splice all the obtained characters in the order published by the lottery center platform to obtain a second character string, perform a hash operation on the second character string, and obtain a third hash value. When the third hash value is consistent with the hash seed, it is determined that the hash seed operation is correct.

[0047] Step 203: Concatenate the lottery voucher text and the hash seed and perform a hash operation to obtain a first hash value.

[0048] Specifically, after receiving the hash seed, this embodiment concatenates the user's lottery voucher text with the hash seed and performs a hash operation to obtain a first hash value, which will be used as a comparison basis for whether the lottery is won.

[0049] Furthermore, in some implementations of this embodiment, the step of concatenating the lottery voucher text and the hash seed and performing a hash operation to obtain a first hash value includes: determining the last character of the lottery voucher text; concatenating the hash seed after the last character of the lottery voucher text to obtain a third character string; and performing a hash operation on the third character string to obtain a first hash value.

[0050] Specifically, this embodiment obtains a third string by concatenating the hash seed after the lottery voucher text, and performs a hash operation on the third string to obtain a first hash value. For example, for lottery player i, the customized lottery voucher text is s i , then the lottery voucher text and hash seed are concatenated and hashed B i =sha256(s i A).

[0051] Step 204: If the first hash value meets the preset winning hash value rule, a lottery winning indication is generated.

[0052] Specifically, the user terminal of this embodiment matches the calculated first hash value with a preset winning hash value rule, and generates a lottery winning indication when the first hash value meets the preset winning hash value rule.

[0053] Furthermore, in some implementations of this embodiment, if the first hash value meets the preset winning hash value rules, the step of generating a lottery winning indication includes: obtaining string feature information of the preset winning hash value published by the lottery center platform; wherein the string feature information includes at least one of the following: the total number of identical characters in the string, and position distribution information of the identical characters in the string; when the string feature information of the first hash value meets the string feature information of the preset winning hash value, determining that the first hash value meets the preset winning hash value rules; and generating a lottery winning indication corresponding to the lottery voucher text.

[0054] Specifically, the user terminal of this embodiment determines whether the first hash value meets the winning hash value rule by comparing the character string feature information contained in the first hash value with the preset winning hash value. When the first hash value is "CCCCCCC634456CDF", it is determined after detection that the hash value contains 8 identical characters, and the character string feature information of the preset winning hash value contains this hash value feature, then it is determined that the first hash value meets the winning hash value rule, and the user is prompted that the lottery voucher text has won the prize.

[0055] This technical solution allows users to customize the content of lottery voucher text, overcoming the limitation of traditional lottery voucher text to numbers within a limited range, increasing diversity and making lottery voucher text more meaningful. This technical solution eliminates the manual process of winning numbers in traditional lotteries, preventing the possibility of internal cheating and ensuring the fairness of the lottery. In this technical solution, the hash seed is generated from the lottery voucher text reported by all user terminals. The entire process is open and transparent to everyone, eliminating the possibility of internal manipulation, and everyone can monitor and verify the calculation of the hash seed. The winning hash value rules are announced before the user selects the lottery voucher text, preventing subsequent changes to the winning hash value rules. Due to the unidirectional nature of the hash function, it is impossible to construct the original text corresponding to a specific hash value, thus preventing the possibility of cheating. Furthermore, due to the uncertainty of the hash value, all texts have the same winning probability, so winning is completely based on luck and there is no unfairness. This technical solution does not require a winning number extraction step, and all processes are open and transparent. Therefore, unlike traditional lotteries, it only requires a lottery organizer and only a public platform.

[0056] Based on the above technical solution of the embodiment of the present application, users can customize the content of the lottery voucher text. After all user terminals report the lottery voucher text, the lottery center platform obtains a hash seed based on all lottery voucher texts and sends it to the user terminal. The user terminal uses the lottery voucher text and the hash seed to obtain a hash value. When the hash value meets the winning hash value setting, the user is prompted that the lottery voucher text has won the prize. After verification by the lottery center platform, the lottery voucher text is determined to have won the prize, which effectively improves the openness, transparency and fairness of the lottery information processing process.

[0057] Figure 3 A detailed flow chart of a lottery information processing method provided in the second embodiment of the present application is applied to a lottery information processing system including a user terminal and a lottery center platform. The lottery information processing method includes:

[0058] Step 301: The user terminal obtains the lottery voucher text input by the user, reports the lottery voucher text to the lottery center platform, and receives and stores the random code corresponding to the lottery voucher text issued by the lottery center platform according to a preset random code allocation list.

[0059] Specifically, after receiving the user-entered custom text, the user terminal of this embodiment reports it to the lottery center platform and stores the random code returned by the lottery center platform locally within the lottery voucher text. This random code prevents others from tampering with the user's lottery voucher text and, together with the lottery voucher text, constitutes a prize redemption credential. While there are no restrictions on the content of the user-entered custom text, some restrictions may be placed on the number of characters in the text, such as a limit of 100 characters. Therefore, when the user terminal receives the custom text, it can also obtain a preset rule for the total number of text characters. Only when the total number of characters meets the preset rule is the custom text reported to the lottery center platform.

[0060] Step 302: The lottery center platform responds to the lottery voucher text reported by the user terminal and issues a random code to the user terminal according to a preset random code distribution list.

[0061] Specifically, in this embodiment, the lottery voucher text is user-defined text. The user selects a meaningful text based on their own wishes. This text can be in the form of words, numbers, letters, symbols, or any combination thereof, such as "What a beautiful day today!", "I'm going to win five million!", "141234," "113412352," "1431243Bafda," "1234Lucky qeweWERWE," and other text. Upon receiving the lottery voucher text from the user terminal, the lottery center platform returns a random code to the user terminal based on a preset random code allocation list. This random code, combined with the lottery voucher text, constitutes the winning receipt, preventing others from fraudulently claiming the prize. After receiving the lottery voucher text from the user terminal and issuing the random code, the lottery center platform publishes the lottery voucher text to allow all lottery players to monitor and prevent subsequent tampering.

[0062] Step 303: The lottery center platform performs a hash operation based on the lottery voucher text reported by all user terminals to obtain a hash seed, and sends the hash seed to all user terminals.

[0063] Specifically, in this embodiment, after the lottery purchase period expires and the lottery voucher texts of all lottery players have been published, the lottery center platform will perform a hash operation on the lottery voucher texts reported by all user terminals. In this embodiment, the hash sha256 algorithm can be optionally used to operate on all lottery voucher texts, and the corresponding hash value is obtained after the hash operation. This hash value is used as a hash seed. This hash seed is used to calculate the first hash value after the user terminal is spliced ​​to the lottery voucher text, and the hash seed is distributed to all user terminals. The calculation method and result of the entire hash seed are public, and everyone can verify and calculate the hash seed and monitor it in real time, thereby ensuring fairness; and the hash seed is calculated after the lottery voucher texts of all lottery players are published, so no one can know the hash seed in advance, thereby effectively avoiding internal cheating.

[0064] Step 304: The user terminal receives a hash seed obtained by the lottery center platform after performing a hash operation on the lottery voucher texts reported by all user terminals.

[0065] Specifically, in this embodiment, after the lottery center platform publishes the hash seed, the user terminal is also used to receive the hash seed, so that the user can supervise the calculation result of the hash seed to prevent the hash seed from being tampered with.

[0066] Step 305: The user terminal concatenates the lottery voucher text and the hash seed and performs a hash operation to obtain a first hash value.

[0067] Specifically, after receiving the hash seed, this embodiment concatenates the user's lottery voucher text with the hash seed and performs a hash operation to obtain a first hash value, which will be used as a comparison basis for whether the lottery is won.

[0068] Step 306: If the first hash value meets the preset winning hash value rule, the user terminal generates a lottery winning indication.

[0069] Specifically, the user terminal of this embodiment matches the calculated first hash value with a preset winning hash value rule, and generates a lottery winning indication when the first hash value meets the preset winning hash value rule.

[0070] Step 307: When the lottery center platform receives the lottery prize redemption instruction carrying the target lottery voucher text and the target random code, it concatenates the target lottery voucher text with the hash seed and performs a hash operation to obtain a second hash value, and queries the actual random code corresponding to the target lottery voucher text according to the random code allocation list.

[0071] Specifically, when the lottery center platform of this embodiment receives the lottery prize redemption instruction of the target lottery voucher text and the target random code, it will verify the target lottery voucher text, that is, perform a hash operation on the target lottery voucher text and the hash seed to obtain a second hash value, and query the actual random code corresponding to the target lottery voucher text through the random code allocation list.

[0072] Step 308: If the target random code is consistent with the actual random code, and the second hash value meets the preset winning hash value rule, the lottery center platform generates a lottery winning confirmation result.

[0073] Specifically, in this embodiment, after comparing the target random code with the actual random code and comparing the second Hash value with the preset winning Hash value rule, if both the target random code and the second Hash value match, it is determined that the lottery voucher text has won the prize.

[0074] Based on the above technical solution of the embodiment of the present application, users can customize the content of the lottery voucher text. After all user terminals report the lottery voucher text, the lottery center platform obtains a hash seed based on all lottery voucher texts and sends it to the user terminal. The user terminal uses the lottery voucher text and the hash seed to obtain a hash value. When the hash value meets the winning hash value setting, the user is prompted that the lottery voucher text has won the prize. After verification by the lottery center platform, the lottery voucher text is determined to have won the prize, which effectively improves the openness, transparency and fairness of the lottery information processing process.

[0075] Figure 4 The lottery center platform provided in the third embodiment of this application can be used to implement the lottery information processing method applied to the lottery center platform side in the above embodiments. Figure 4 As shown, the lottery center platform mainly includes:

[0076] The issuing module 401 is configured to issue a random code to the user terminal in response to the lottery voucher text reported by the user terminal according to a preset random code distribution list; wherein the lottery voucher text is user-defined text;

[0077] A first operation module 402 is configured to perform a hash operation based on the lottery voucher text reported by all the user terminals to obtain a hash seed, and to distribute the hash seed to all the user terminals; wherein the hash seed is used by the user terminal to calculate a first hash value after being spliced ​​with the lottery voucher text;

[0078] The second operation module 403 is configured to, upon receiving a lottery prize redemption instruction carrying a target lottery ticket voucher text and a target random code, concatenate the target lottery ticket voucher text with the hash seed, perform a hash operation to obtain a second hash value, and query the actual random code corresponding to the target lottery ticket voucher text according to the random code allocation list;

[0079] The first generating module 404 is configured to generate a lottery winning confirmation result when the target random code is consistent with the actual random code and the second hash value meets a preset winning hash value rule.

[0080] In some implementations of this embodiment, the first operation module 402 is specifically used to: extract target characters from the lottery voucher text reported by all user terminals according to a preset character extraction rule; wherein the preset character extraction rule includes: the number and arrangement order of the characters to be extracted in a single lottery voucher text; and perform a hash operation on all target characters extracted based on the character extraction rule to obtain a hash seed.

[0081] Furthermore, in some implementations of this embodiment, the target character is the first character in the lottery voucher text, and the first operation module 402 is further used to: sort all lottery voucher texts according to the chronological order of reporting time of the lottery voucher texts; concatenate the first characters of all extracted lottery voucher texts according to the arrangement order of the lottery voucher texts to obtain a first character string; and perform a hash operation on the first character string to obtain a hash seed.

[0082] In some implementations of this embodiment, the first generation module 404 is specifically used to: match the constituent characters of the target random code with the constituent characters of the actual random code one by one; when the constituent characters of the target random code successfully match the constituent characters of the actual random code, determine that the target random code and the actual random code are consistent; obtain string feature information of a preset winning hash value; wherein the string feature information includes at least one of the following: the total number of identical characters in the string, and position distribution information of the identical characters in the string; when the string feature information of the second hash value meets the string feature information of the preset winning hash value, determine that the second hash value meets the preset winning hash value rule; and generate a lottery winning confirmation result corresponding to the target lottery voucher text.

[0083] Correspondingly, this embodiment also provides a user terminal, which can be used to implement the lottery information processing method applied to the user terminal side in the above embodiment. Figure 5 As shown, the user terminal mainly includes:

[0084] Reporting module 501, used to obtain the lottery voucher text input by the user, report the lottery voucher text to the lottery center platform, and receive and store the random code corresponding to the lottery voucher text issued by the lottery center platform according to a preset random code allocation list;

[0085] Receiving module 502, used to receive the hash seed obtained by the lottery center platform after performing a hash operation on the lottery voucher text reported by all user terminals;

[0086] A calculation module 503 is used to perform a hash operation on the lottery voucher text and the hash seed to obtain a first hash value;

[0087] The second generating module 504 is configured to generate a lottery winning indication when the first hash value meets a preset winning hash value rule.

[0088] In some implementations of this embodiment, the user terminal further includes: a comparison module, which is used to obtain the first character of all lottery voucher texts when receiving a verification instruction corresponding to a hash seed; splicing the first characters of all obtained lottery voucher texts according to the order in which the lottery voucher texts are published on the lottery center platform to obtain a second character string; performing a hash operation on the second character string to obtain a third hash value; and generating a verification result that the operation is correct when the third hash value is compared and consistent with the hash seed.

[0089] In some implementations of this embodiment, the second generation module 504 is specifically used to: obtain string feature information of a preset winning hash value published by the lottery center platform; wherein the string feature information includes at least one of the following: the total number of identical characters in the string, and position distribution information of the identical characters in the string; when the string feature information of the first hash value meets the string feature information of the preset winning hash value, determining that the first hash value meets the preset winning hash value rule; and generating a lottery winning indication corresponding to the lottery voucher text.

[0090] In some implementations of this embodiment, the operation module 503 is specifically used to: determine the last character of the lottery voucher text; concatenate the hash seed after the last character of the lottery voucher text to obtain a third string; and perform a hash operation on the third string to obtain a first hash value.

[0091] It should be noted that the lottery information processing methods in the aforementioned embodiments can all be implemented based on the lottery center platform or user terminal provided in this embodiment. Ordinary technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working processes of the lottery center platform and user terminal described in this embodiment can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0092] According to the lottery center platform and user terminals provided in this embodiment, users can customize the content of lottery voucher text. After all user terminals report the lottery voucher text, the lottery center platform obtains a hash seed based on all lottery voucher texts and sends it to the user terminals. The user terminals use the lottery voucher text and the hash seed to obtain a hash value. When the hash value meets the winning hash value setting, the user is prompted that the lottery voucher text has won the prize. After verification by the lottery center platform, the lottery voucher text is confirmed to have won the prize, effectively improving the transparency and fairness of the lottery information processing process.

[0093] See also Figure 6 , Figure 6 This is an electronic device provided in the fourth embodiment of the present application. This electronic device can be used to implement the lottery information processing method in the above embodiments. Figure 6 As shown, the electronic device mainly includes:

[0094] Memory 601, processor 602, and a first computer program 603 and a second computer program 604 stored on memory 601 and executable on processor 602. Memory 601 and processor 602 are connected via a bus. When processor 602 executes first computer program 603, it implements the lottery information processing method applied to the lottery center platform in the aforementioned embodiment. When processor 602 executes second computer program 604, it implements the lottery information processing method applied to the user terminal in the aforementioned embodiment. The number of processors may be one or more.

[0095] The memory 601 can be a high-speed random access memory (RAM) memory or a non-volatile memory such as a disk memory. The memory 601 is used to store executable program codes. The processor 602 is coupled to the memory 601 .

[0096] Furthermore, the embodiment of the present application also provides a computer-readable storage medium, which can be provided in the electronic device in the above embodiments. The computer-readable storage medium can be the above Figure 6 Memory in the illustrated embodiment.

[0097] The computer-readable storage medium stores a computer program that, when executed by a processor, implements the lottery information processing method described in the aforementioned embodiments. Furthermore, the computer-readable storage medium may be a USB flash drive, a mobile hard drive, a read-only memory (ROM), RAM, a magnetic disk, or an optical disk, among other media capable of storing program code.

[0098] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0099] Modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of these modules may be selected to achieve the purpose of this embodiment based on actual needs.

[0100] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0101] If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a readable storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0102] It should be noted that for the aforementioned method embodiments, for ease of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all optional embodiments, and the actions and modules involved are not necessarily required by this application.

[0103] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0104] The above is a description of the automatic detection method, device and computer-readable storage medium provided by this application. For those skilled in the art, based on the ideas of the embodiments of this application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on this application.

Claims

1. A lottery information processing method, applied to a lottery center platform, characterized in that: include: In response to a lottery voucher text reported by a user terminal, issuing a random code to the user terminal according to a preset random code distribution list; wherein the lottery voucher text is user-defined text; Performing a hash operation on the lottery voucher text reported by all the user terminals to obtain a hash seed, and distributing the hash seed to all the user terminals; wherein the hash seed is used by the user terminal to calculate a first hash value after being spliced ​​to the lottery voucher text; Upon receiving a lottery prize redemption instruction carrying a target lottery ticket voucher text and a target random code, the target lottery ticket voucher text is concatenated with the hash seed and hashed to obtain a second hash value, and the actual random code corresponding to the target lottery ticket voucher text is searched according to the random code allocation list; If the target random code is consistent with the actual random code, and the second hash value meets the preset winning hash value rule, a lottery winning confirmation result is generated.

2. The lottery information processing method according to claim 1, characterized in that: The step of performing a hash operation based on the lottery voucher text reported by all the user terminals to obtain a hash seed includes: Extracting target characters from the lottery voucher texts reported by all the user terminals according to a preset character extraction rule; wherein the preset character extraction rule includes: the number and arrangement order of the characters to be extracted from a single lottery voucher text; A hash operation is performed on all the target characters extracted based on the character extraction rule to obtain a hash seed.

3. The lottery information processing method according to claim 2, characterized in that: The target character is the first character in the lottery voucher text; The step of performing a hash operation on all the target characters extracted based on the character extraction rule to obtain a hash seed includes: Sorting all the lottery voucher texts according to the order of reporting time of the lottery voucher texts; According to the arrangement order of the lottery voucher texts, concatenating the first characters of all the extracted lottery voucher texts to obtain a first character string; Perform a hash operation on the first character string to obtain a hash seed.

4. The lottery information processing method according to claim 1, characterized in that: If the target random code is consistent with the actual random code, and the second hash value meets the preset winning hash value rule, the step of generating a lottery winning confirmation result includes: Matching the constituent characters of the target random code with the constituent characters of the actual random code one by one; When the constituent characters of the target random code successfully match the constituent characters of the actual random code, it is determined that the target random code is consistent with the actual random code; Obtaining the preset string feature information of the winning hash value; wherein the string feature information includes at least one of the following: the total number of identical characters in the string, and the position distribution information of the identical characters in the string; When the character string feature information of the second Hash value meets the character string feature information of the preset winning Hash value, determining that the second Hash value meets the preset winning Hash value rule; A lottery winning confirmation result corresponding to the target lottery voucher text is generated.

5. A lottery information processing method, applied to a user terminal, characterized in that: include: Obtaining a lottery voucher text input by a user, reporting the lottery voucher text to a lottery center platform, and receiving and storing a random code corresponding to the lottery voucher text issued by the lottery center platform according to a preset random code allocation list; Receiving a hash seed obtained by performing a hash operation on the lottery voucher text reported by all user terminals by the lottery center platform; Concatenate the lottery voucher text and the hash seed and perform a hash operation to obtain a first hash value; If the first Hash value meets the preset winning Hash value rule, a lottery winning indication is generated.

6. The lottery information processing method according to claim 5, characterized in that: After the step of receiving the hash seed obtained by performing a hash operation on the lottery voucher text reported by all user terminals, the method further includes: When a verification instruction corresponding to the hash seed is received, obtaining the first character of all lottery voucher texts; According to the order in which the lottery voucher texts are published on the lottery center platform, the first characters of all the obtained lottery voucher texts are concatenated to obtain a second character string; Performing a hash operation on the second character string to obtain a third hash value; When the third hash value is consistent with the hash seed, a verification result indicating that the operation is correct is generated.

7. The lottery information processing method according to claim 5, characterized in that: The step of generating a lottery winning indication if the first hash value meets a preset winning hash value rule includes: Obtaining character string feature information of a preset winning hash value published by the lottery center platform; wherein the character string feature information includes at least one of the following: the total number of identical characters in the character string, and position distribution information of the identical characters in the character string; When the character string feature information of the first Hash value meets the character string feature information of the preset winning Hash value, determining that the first Hash value meets the preset winning Hash value rule; A lottery winning indication corresponding to the lottery voucher text is generated.

8. The lottery information processing method according to claim 5, characterized in that: The step of concatenating the lottery voucher text and the hash seed and performing a hash operation to obtain a first hash value includes: Determining the last character of the lottery voucher text; Adding the hash seed to the last character of the lottery voucher text to obtain a third character string; Perform a hash operation on the third character string to obtain a first hash value.

9. An electronic device, characterized in that: include: Memory and processor, wherein: The processor is configured to execute the first computer program or the second computer program stored on the memory; When the processor executes the first computer program, the steps of the method according to any one of claims 1 to 4 are implemented; When the processor executes the second computer program, the steps of the method according to any one of claims 5 to 8 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Monitoring method for lottery transaction-by-transaction and monitoring device for lottery transaction-by-transaction

    CN105260936A

  • A method and its system of publishing and sellingdigital instant lottery

    KR1020040062224A