CN110084651A - A kind of lottery drawing method based on block chain, device and terminal - Google Patents

A kind of lottery drawing method based on block chain, device and terminal Download PDF

Info

Publication number
CN110084651A
CN110084651A CN201910377136.7A CN201910377136A CN110084651A CN 110084651 A CN110084651 A CN 110084651A CN 201910377136 A CN201910377136 A CN 201910377136A CN 110084651 A CN110084651 A CN 110084651A
Authority
CN
China
Prior art keywords
user
prize
lottery
information
prize drawing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910377136.7A
Other languages
Chinese (zh)
Inventor
戚耀文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910377136.7A priority Critical patent/CN110084651A/en
Publication of CN110084651A publication Critical patent/CN110084651A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0212Chance discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0226Incentive systems for frequent usage, e.g. frequent flyer miles programs or point systems

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present invention proposes a kind of lottery drawing method based on block chain, device and terminal, which comprises generates sweepstake information according to intelligent contract, includes prize drawing process and condition of announcing the winners in a lottery in sweepstake information;Real-time reception participates in the information of the user of prize drawing;Judge whether to reach the condition of announcing the winners in a lottery according to the information for the user for participating in prize drawing;Reach announce the winners in a lottery condition in the case where, select prize winner;Bonus is provided to the corresponding account of prize winner;Information, the information of prize winner, bonus that the user of prize drawing will be participated in, are recorded in the block of block chain.Using intelligent contract and block chain make user from participate in sweepstake, draw a lottery, the process for announcement of getting the winning number in a bond it is fully transparent, also allow user that can clearly check mutual participation process.Facilitate in the enthusiasm for improving user's participation prize drawing, entire prize drawing process can also be traced by block chain, make entire prize-winning data that can not distort using block chain.

Description

A kind of lottery drawing method based on block chain, device and terminal
Technical field
The present invention relates to block chain technical field more particularly to a kind of lottery drawing methods based on block chain, device and end End.
Background technique
Currently, prize drawing passes through offer bonus, prize after providing lottery drawing machine meeting and getting the winning number in a bond as a kind of traditional marketing methods Product attract consumer.More and more Internet enterprises also start with sweepstake, and user is attracted to participate in, and are used with increasing The user of its product improves user's attention rate.For example, the businessman in electric business platform, interior setting sweepstake is to attract consumer Consumption.However, existing sweepstake, user can only see drawing outcomes, and user can not visualize the entire stream for seeing prize drawing clearly Journey can not trace prize drawing process, affect the enthusiasm that user participates in prize drawing.
Summary of the invention
The embodiment of the present invention provides a kind of lottery drawing method based on block chain, device and terminal, to solve the prior art In one or more technical problems.
In a first aspect, the embodiment of the invention provides a kind of lottery drawing methods based on block chain, comprising:
Sweepstake information is generated according to intelligent contract, includes prize drawing process and item of announcing the winners in a lottery in the sweepstake information Part;
Real-time reception participates in the information of the user of prize drawing;
Judged whether to reach the condition of announcing the winners in a lottery according to the information of the user for participating in prize drawing;
Reach it is described announce the winners in a lottery condition in the case where, select prize winner;
Bonus is provided to the corresponding account of the prize winner;
By information, the information of the prize winner, the bonus of the user for participating in prize drawing, block chain is recorded Block in.
In one embodiment, judge whether to reach the condition of announcing the winners in a lottery according to the information of the user for participating in prize drawing, wrap It includes:
Extract the investment integral in the information of the user for participating in prize drawing;
By it is all participate in prize drawing users investment integrate summation, obtain user integral and;
Judge the user integral and whether be greater than integral threshold, if so, reaching the condition of announcing the winners in a lottery.
In one embodiment, judge whether to reach the condition of announcing the winners in a lottery according to the information of the user for participating in prize drawing, wrap It includes:
Extract the quantity of the user for participating in prize drawing;
Judge whether the quantity of the user for participating in prize drawing is greater than number threshold value, if so, reaching the condition of announcing the winners in a lottery.
In one embodiment, the block includes the cryptographic Hash for indexing a upper block, selects prize winner, packet It includes:
The cryptographic Hash is converted into decimal value, the quantity of the decimal value and the user for participating in prize drawing It is compared, obtained remainder is the sequence number of the prize winner.
In one embodiment, the corresponding account of Xiang Suoshu prize winner provides bonus, comprising:
Using the user integral and the bonus is generated, the corresponding account of Xiang Suoshu prize winner provides the reward Gold.
In one embodiment, further includes:
The quantity of the user for participating in prize drawing, the prize-winning time of the prize winner are recorded in the block.
Second aspect, the embodiment of the present invention provide a kind of prize drawing device based on block chain, comprising:
Sweepstake information generating module, for generating sweepstake information, the sweepstake letter according to intelligent contract It include prize drawing process and condition of announcing the winners in a lottery in breath;
User information receiving module participates in the information of the user of prize drawing for real-time reception;
Condition of announcing the winners in a lottery judgment module, for judging whether that reaching described announces the winners in a lottery according to the information of the user for participating in prize drawing Condition;
Prize winner's selecting module, for reach it is described announce the winners in a lottery condition in the case where, select prize winner;
Bonus provides module, for providing bonus to the corresponding account of the prize winner;
Cochain module, information, the information of the prize winner, the reward of the user for the participation to be drawn a lottery Gold is recorded in the block of block chain.
In one embodiment, the condition judgment module of announcing the winners in a lottery includes:
Extraction unit is integrated, the investment integral in information for extracting the user for participating in prize drawing;
Integrate summation unit, for by it is all participate in prize drawing users investments integrate summation, obtain user integral and;
Integral contrast unit is opened for judging the user integral and whether being greater than integral threshold if so, reaching described Prize condition.
In one embodiment, the condition judgment module of announcing the winners in a lottery includes:
Number of users extraction unit, for extracting the quantity of the user for participating in prize drawing;
Number of users comparing unit, for judging whether the quantity of the user for participating in prize drawing is greater than number threshold value, if It is then to reach the condition of announcing the winners in a lottery.
In one embodiment, stating block includes the cryptographic Hash for indexing a upper block, prize winner's selection Module includes:
Decimal value converting unit, for the cryptographic Hash to be converted into decimal value;
Prize winner's sequence number computing unit, the number for the decimal value numerical value and the user for participating in prize drawing Amount is compared, and obtained remainder is exactly the sequence number of the prize winner.
In one embodiment, the bonus granting module includes:
Bonus issuing unit, for utilizing the user integral and the generation bonus, Xiang Suoshu prize winner couple The account answered provides the bonus.
In one embodiment, the cochain module be also used to by it is described participate in prize drawing user quantity, it is described in It the prize-winning time for encouraging user, is recorded in the block.
The function of the prize drawing device based on block chain can also be executed corresponding by hardware realization by hardware Software realization.The hardware or software include one or more modules corresponding with above-mentioned function.
It include processor and storage in the structure of the prize drawing device based on block chain in a possible design Device, the memory execute the above-mentioned lottery drawing method based on block chain for storing the support prize drawing device based on block chain Program, the processor is configured to for executing the program stored in the memory.The prize drawing based on block chain Device can also include communication interface, be used for and other equipment or communication.
6th aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are based on block chain for storing Prize drawing device used in computer software instructions comprising for executing involved in the above-mentioned lottery drawing method based on block chain Program.
A technical solution in above-mentioned technical proposal has the following advantages that or the utility model has the advantages that using intelligent contract and block Chain make user from participate in sweepstake, draw a lottery, the process for announcement of getting the winning number in a bond it is fully transparent, also allow user that can clearly check Mutual participation process.Fair, transparent prize drawing is not only realized, additionally aids and participates in the positive of prize drawing in raising user Property, entire prize drawing process can also be traced by block chain, distort entire prize-winning data can not using block chain.
Above-mentioned general introduction is merely to illustrate that the purpose of book, it is not intended to be limited in any way.Except foregoing description Schematical aspect, except embodiment and feature, by reference to attached drawing and the following detailed description, the present invention is further Aspect, embodiment and feature, which will be, to be readily apparent that.
Detailed description of the invention
In the accompanying drawings, unless specified otherwise herein, otherwise indicate the same or similar through the identical appended drawing reference of multiple attached drawings Component or element.What these attached drawings were not necessarily to scale.It should be understood that these attached drawings depict only according to the present invention Disclosed some embodiments, and should not serve to limit the scope of the present invention.
Fig. 1 shows a kind of flow chart of the lottery drawing method based on block chain provided according to embodiments of the present invention.
Fig. 2 shows a kind of prize drawings provided according to embodiments of the present invention to issue interface schematic diagram.
Fig. 3 shows a kind of interface schematic diagram of drawing a lottery provided according to embodiments of the present invention.
Fig. 4 shows the one kind provided according to embodiments of the present invention and announces the winners in a lottery interface schematic diagram.
Fig. 5 shows the flow chart of another lottery drawing method based on block chain provided according to embodiments of the present invention.
Fig. 6 shows the flow chart of another lottery drawing method based on block chain provided according to embodiments of the present invention.
Fig. 7 shows a kind of lottery drawing method schematic diagram based on block chain provided according to embodiments of the present invention.
Fig. 8 shows a kind of initiation prize drawing interface schematic diagram provided according to embodiments of the present invention.
Fig. 9 shows a kind of participation prize drawing interface schematic diagram provided according to embodiments of the present invention.
Figure 10 shows a kind of entrance prize drawing interface schematic diagram provided according to embodiments of the present invention.
Figure 11 shows the personal interface schematic diagram of participation prize drawing user provided according to embodiments of the present invention a kind of.
Figure 12 shows a kind of prize drawing provided according to embodiments of the present invention and checks interface schematic diagram.
Figure 13 shows a kind of structural block diagram of the prize drawing device based on block chain provided according to embodiments of the present invention.
Figure 14 shows the structural block diagram of another prize drawing device based on block chain provided according to embodiments of the present invention.
Figure 15 shows the structural block diagram of another prize drawing device based on block chain provided according to embodiments of the present invention.
Figure 16 shows a kind of structural block diagram of the lottery terminal based on block chain provided according to embodiments of the present invention.
Specific embodiment
Hereinafter, certain exemplary embodiments are simply just described.As one skilled in the art will recognize that Like that, without departing from the spirit or scope of the present invention, described embodiment can be modified by various different modes. Therefore, attached drawing and description are considered essentially illustrative rather than restrictive.
Embodiment one
In a kind of specific embodiment, a kind of lottery drawing method based on block chain is provided, as shown in Figure 1, described Method includes:
Step S10: generating sweepstake information according to intelligent contract, include in the sweepstake information prize drawing process and It announces the winners in a lottery condition;
Step S20: real-time reception participates in the information of the user of prize drawing;
Step S30: judged whether to reach the condition of announcing the winners in a lottery according to the information for the user for participating in prize drawing;
Step S40: reach announce the winners in a lottery condition in the case where, select prize winner;
Step S50: bonus is provided to the corresponding account of prize winner;
Step S60: information, the information of prize winner, bonus of the user of prize drawing will be participated in, the area of block chain is recorded In block.
In a kind of example, in server-side, intelligent contract is created, by prize drawing process, rule, the condition of announcing the winners in a lottery etc. of getting the winning number in a bond write-in In intelligent contract, so that prize drawing process, rule of getting the winning number in a bond, condition of announcing the winners in a lottery can not be changed arbitrarily, to guarantee that winning results are just. Sweepstake information is generated according to intelligent contract, sweepstake information includes prize drawing process, get the winning number in a bond rule, condition of announcing the winners in a lottery.Service Sweepstake information is sent to client by end, and client is lived according to sweepstake information in the publication prize drawing of prize drawing publication interface It is dynamic.User can log in sweepstake by the application program in mobile phone, for example, can be logged in by wechat.After login, user Open the homepage at sweepstake interface.For example, as shown in Fig. 2, showing control " participating in immediately ", user in sweepstake homepage It can be identified oneself in sweepstake by clicking control " participating in immediately ".
If having detected that user identifies oneself in sweepstake, client real-time reception participates in the letter of the user of prize drawing Breath.The information for participating in the user of prize drawing may include user identity identification code, user name, the integral for participating in draw times, purchase Deng.The information for participating in the user of prize drawing is sent to server-side by client.Server-side extracts user identity identification code, and to user (for example, Hash processing) is encrypted in identity code.Encrypted data are sent to client by server-side.As Fig. 2, Shown in Fig. 3 and Fig. 4, client can only expose the first six digits of encryption data, can client entire sweepstake into It is shown in the interface entered.For example, the subsequent eight bit data of user's name A " S8BDUOS ".
In server-side, judged whether to meet condition of announcing the winners in a lottery according to the information for the user for participating in prize drawing.The foundation of judgement can be with It is configured according to actual needs, for example, can then announce the winners in a lottery when the quantity for participating in the user to draw a lottery reaches a threshold value.Alternatively, When the summation of the investment integral for the user for participating in prize drawing reaches another threshold value, then can announce the winners in a lottery.Server-side determination can announce the winners in a lottery Afterwards, the instruction that can be announced the winners in a lottery is sent to client.As shown in figure 3, client can enter interface of drawing a lottery, taking out The lower section for encouraging interface shows the complete block chain prize drawing code of user, and display " having participated in, waiting is announced the winners in a lottery ".User can be with It clicks control " accretion point " and carries out integral purchase, the integral of purchase is more, and winning probability is bigger.
As shown in figure 4, server-side selects prize winner according to rule of getting the winning number in a bond.Prize winner can be special in interface of announcing the winners in a lottery It does not identify and presents, for example, the subsequent prompting prize-winning word " prize-winning " of user's name A.The client for the user not got the winning number in a bond, can To show " not getting the winning number in a bond " in interface of announcing the winners in a lottery.In the client of the user A of prize-winning, show " prize-winning ".According to the participation of user Situation, user can also click control " sharing ", activity are shared with other people.Later, server-side is corresponding to prize winner Account provides bonus, and sweepstake terminates.
Block is the basic unit for constituting block chain, in entire block chain, per every about just will create one for a period of time A block.For example, every primary prize drawing of generation will just participate in pumping after participating in prize drawing, getting the winning number in a bond, provide bonus whole process Information, the information of prize winner, bonus and prize-winning rule of the user of prize etc., are recorded in the block of block chain.Block Chain encrypts the information of record within a block by hash algorithm, and Information Compression is formed at by string number and letter Hexadecimal string, globally unique immutable, referred to as cryptographic Hash.The cryptographic Hash of block chain can accurately and uniquely be known Not and identify a block.It is not tampered with if calculated cryptographic Hash does not change the data meant that in block.By It is to generate on the basis of a upper block in the cryptographic Hash of each block, so entirely being drawn a lottery by the retrospect of block chain Journey facilitates user to check.
Using intelligent contract and block chain make user from participate in sweepstake, draw a lottery, the process for announcement of getting the winning number in a bond it is complete All-transparent also allows user that can clearly check mutual participation process.Fair, transparent prize drawing is not only realized, is also helped In in the enthusiasm for improving user's participation prize drawing, entire prize drawing process can also be traced by block chain, utilize block chain technical ability Distort entire prize-winning data can not.
In one embodiment, as shown in figure 5, step S30 includes:
Step S301: the investment integral in the information for participating in the user of prize drawing is extracted;
Step S302: by it is all participate in prize drawing users investment integrate summation, obtain user integral and;
Step S303: judge user integral and whether be greater than integral threshold, if so, reaching the condition of announcing the winners in a lottery.
In a kind of example, after new user is added to sweepstake, the investment of each user is integrated hair by client Give server-side, server-side cumulative investment integral, obtain user integral and, if scores accumulated are greater than integral threshold (for example, 2000 Point), triggering is announced the winners in a lottery.Integral threshold can be set according to actual needs, in the protection scope of present embodiment.
In one embodiment, as shown in fig. 6, step S30 includes:
Step S304: the quantity for participating in the user of prize drawing is extracted;
Step S305: judging whether the quantity for participating in the user of prize drawing is greater than number threshold value, if so, reaching item of announcing the winners in a lottery Part.
In a kind of example, when participating in the quantity of user of prize drawing greater than 10 people, then reach the condition of announcing the winners in a lottery.Certain number Threshold value can be set according to demand, in the protection scope of present embodiment.
In one embodiment, as shown in Figure 5 and Figure 6, block includes the cryptographic Hash for indexing a upper block, step S40 includes:
Step S401: being converted into decimal value for cryptographic Hash, decimal value and participate in prize drawing user quantity into Row compares, and obtained remainder is the sequence number of prize winner.
In a kind of example, cryptographic Hash is hexadecimal values, and hexadecimal values are changed into decimal value, the decimal system Numerical value takes the remainder divided by the quantity for the user for participating in prize drawing, is exactly the sequence number of prize winner.For example, remainder is 3, then get the winning number in a bond User is the 3rd user.
In one embodiment, as shown in figure 5, step S50:
Step S501: using user integral and generating bonus, provides bonus to the corresponding account of prize winner.
In a kind of example, server-side puts together the integral of all users for participating in prize drawing, after determining prize winner, Some or all of integral can be delivered in the account of prize winner in the form of virtual coin.Prize winner can be from this account It withdraws deposit in family.
In one embodiment, further includes: the quantity of the user of prize drawing, the prize-winning time of prize winner, note will be participated in It records in block.
In a kind of example, after sweepstake, the quantity for participating in the user of prize drawing is counted and this is taken out In prize activity, the records such as prize-winning time of prize winner are within a block.
As shown in fig. 7, sweepstake can be divided into following components on the whole in server-side: generating sweepstake, obtain The integral of activity user determines prize winner, record prize information into block.Prize drawing is generated according to intelligent contract to live Dynamic, one sweepstake of every generation is equivalent to one new account of creation in block chain environment, and turns one to new account Virtual coin is used to represent the movable prizes pool size.After user receives intelligent contract, in client, user can initiate to take out Prize.Prize drawing interface is initiated as shown in Figure 8, and user can initiate to draw a lottery by clicking control " initiating new prize drawing ".Initiate prize drawing After activity, draw a lottery interface into participation as shown in Figure 9, this sweepstake can be participated in by clicking control " I will referring to ", it Enter afterwards shown in Fig. 10 into interface of drawing a lottery.When new user participate in draw a lottery when, server-side can will participate in it is movable integral with The form of virtual coin is given to each user, which is recorded cochain within a block, so that the process, which becomes transparent, to distort. As the quantity for the user for participating in prize drawing increases, intelligent contract is triggered and executed, judges whether to reach the condition of announcing the winners in a lottery, if reaching, Condition of announcing the winners in a lottery then is triggered, determination is announced the winners in a lottery.It as shown in figure 11, is to participate in the personal interface of prize drawing user in client.According to Prize drawing rule determines prize winner, and prize drawing rule is applied in the form of algorithm of drawing a lottery.Specifically, the prize drawing algorithm first step, Take out a random number:
Time used herein, prize drawing corresponding movable address, nonce value (Number once, the Nonce in cryptography It is any or non-repetitive random number being only only used once), it is encoded into character string.Then packaged Hash is utilized Function processing, obtains a random number.Then to Maxnum (the lottery participation number that Maxnum is configuration) remainder, obtained number It is exactly corresponding victor.Second step, the condition of addition triggering prize drawing
When the number of participant reaches Maxnum, start to draw a lottery.Third step, selection prize drawing user:
After having selected prize winner, the virtual coin in prizes pool is all given to prize winner, and block cochain is written, recorded Corresponding block (blockid).Finally, checking prize information: being had after prize drawing process cochain each time corresponding Blockid can trace whole process according to the address of blockid.In client, interface is checked in prize drawing as shown in figure 12, is used Family, which is clicked, checks that list can check the case where all users participate in, and can also look at the quantity of the block chain coin of the acquisition of oneself And wallet address.Activity is flowed (continuous updating and the information flow for being presented to the user content) form by feed to present, left and right Sliding can be switched fast classification, and the functions such as oneself new interested label can be increased by clicking addition.
Embodiment two
In another embodiment specific implementation mode, such as Figure 13, a kind of prize drawing device based on block chain is provided, comprising:
Sweepstake information generating module 10, for generating sweepstake information, the sweepstake according to intelligent contract It include prize drawing process and condition of announcing the winners in a lottery in information;
User information receiving module 20 participates in the information of the user of prize drawing for real-time reception;
Condition of announcing the winners in a lottery judgment module 30, for judging whether that reaching described opens according to the information of the user for participating in prize drawing Prize condition;
Prize winner's selecting module 40, for reach it is described announce the winners in a lottery condition in the case where, select prize winner;
Bonus provides module 50, for providing bonus to the corresponding account of the prize winner;
Cochain module 60, information, the information of the prize winner, the reward of the user for the participation to be drawn a lottery Gold is recorded in the block of block chain.
In one embodiment, as shown in figure 14, the condition judgment module 30 of announcing the winners in a lottery includes:
Extraction unit 301 is integrated, the investment integral in information for extracting the user for participating in prize drawing;
Summation unit 302 is integrated, for the investment of all users for participating in prize drawing to be integrated summation, obtains user integral With;
Integral contrast unit 303, for judging the user integral and whether being greater than integral threshold, if so, reaching institute State the condition of announcing the winners in a lottery.
In one embodiment, as shown in figure 15, the condition judgment module 30 of announcing the winners in a lottery includes:
Number of users extraction unit 304, for extracting the quantity of the user for participating in prize drawing;
Number of users comparing unit 305, for judging whether the quantity of the user for participating in prize drawing is greater than number threshold value, If so, reaching the condition of announcing the winners in a lottery.
In one embodiment, as shown in FIG. 14 and 15, stating block includes the cryptographic Hash for indexing a upper block, institute Stating prize winner's selecting module 40 includes:
Decimal value converting unit 401, for the cryptographic Hash to be converted into decimal value;
Prize winner's sequence number computing unit 402, for the decimal value numerical value and the user for participating in prize drawing Quantity be compared, obtained remainder is exactly the sequence number of the prize winner.
In one embodiment, as shown in FIG. 14 and 15, the bonus granting module 50 includes:
Bonus issuing unit 501, for utilizing the user integral and the generation bonus, Xiang Suoshu prize winner Corresponding account provides the bonus.
In one embodiment, the cochain module 60 is also used to the quantity, described of the user for participating in prize drawing It the prize-winning time of prize winner, is recorded in the block.
The function of each module in each device of the embodiment of the present invention may refer to the corresponding description in the above method, herein not It repeats again.
Embodiment three
Figure 16 shows the structural block diagram of the lottery terminal according to an embodiment of the present invention based on block chain.As shown in figure 16, The lottery terminal based on block chain includes: memory 910 and processor 920, and being stored in memory 910 can be in processor The computer program run on 920.The processor 920 realized when executing the computer program in above-described embodiment based on The lottery drawing method of block chain.The quantity of the memory 910 and processor 920 can be one or more.
The lottery terminal based on block chain further include:
Communication interface 930 carries out data interaction for being communicated with external device.
Memory 910 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
If memory 910, processor 920 and the independent realization of communication interface 930, memory 910,920 and of processor Communication interface 930 can be connected with each other by bus and complete mutual communication.The bus can be Industry Standard Architecture Structure (ISA, Industry Standard Architecture) bus, external equipment interconnection (PCI, Peripheral Component Interconnect) bus or extended industry-standard architecture (EISA, Extended Industry Standard Architecture) bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For Convenient for indicating, only indicated with a thick line in Figure 16, it is not intended that an only bus or a type of bus.
Optionally, in specific implementation, if memory 910, processor 920 and communication interface 930 are integrated in one piece of core On piece, then memory 910, processor 920 and communication interface 930 can complete mutual communication by internal interface.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored with computer program, the program quilt Processor realizes any method in above-described embodiment when executing.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.Moreover, particular features, structures, materials, or characteristics described It may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, this The technical staff in field can be by the spy of different embodiments or examples described in this specification and different embodiments or examples Sign is combined.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic." first " is defined as a result, the feature of " second " can be expressed or hidden It include at least one this feature containing ground.In the description of the present invention, the meaning of " plurality " is two or more, unless otherwise Clear specific restriction.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable read-only memory (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other suitable Jie Matter, because can then be edited, be interpreted or when necessary with other for example by carrying out optical scanner to paper or other media Suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In readable storage medium storing program for executing.The storage medium can be read-only memory, disk or CD etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in its various change or replacement, These should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with the guarantor of the claim It protects subject to range.

Claims (14)

1. a kind of lottery drawing method based on block chain characterized by comprising
Sweepstake information is generated according to intelligent contract, includes prize drawing process and condition of announcing the winners in a lottery in the sweepstake information;
Real-time reception participates in the information of the user of prize drawing;
Judged whether to reach the condition of announcing the winners in a lottery according to the information of the user for participating in prize drawing;
Reach it is described announce the winners in a lottery condition in the case where, select prize winner;
Bonus is provided to the corresponding account of the prize winner;
By information, the information of the prize winner, the bonus of the user for participating in prize drawing, the area of block chain is recorded In block.
2. the method according to claim 1, wherein being judged whether according to the information of the user for participating in prize drawing Reach the condition of announcing the winners in a lottery, comprising:
Extract the investment integral in the information of the user for participating in prize drawing;
By it is all participate in prize drawing users investment integrate summation, obtain user integral and;
Judge the user integral and whether be greater than integral threshold, if so, reaching the condition of announcing the winners in a lottery.
3. the method according to claim 1, wherein being judged whether according to the information of the user for participating in prize drawing Reach the condition of announcing the winners in a lottery, comprising:
Extract the quantity of the user for participating in prize drawing;
Judge whether the quantity of the user for participating in prize drawing is greater than number threshold value, if so, reaching the condition of announcing the winners in a lottery.
4. the method according to claim 1, wherein the block includes the Hash for indexing a upper block Value selects prize winner, comprising:
The cryptographic Hash is converted into decimal value, the quantity progress of the decimal value and the user for participating in prize drawing Compare, obtained remainder is the sequence number of the prize winner.
5. according to the method described in claim 2, it is characterized in that, provide bonus to the corresponding account of the prize winner, Include:
Using the user integral and the bonus is generated, the corresponding account of Xiang Suoshu prize winner provides the bonus.
6. according to the method described in claim 3, it is characterized by further comprising:
The quantity of the user for participating in prize drawing, the prize-winning time of the prize winner are recorded in the block.
7. a kind of prize drawing device based on block chain characterized by comprising
Sweepstake information generating module, for generating sweepstake information according to intelligent contract, in the sweepstake information Including prize drawing process and condition of announcing the winners in a lottery;
User information receiving module participates in the information of the user of prize drawing for real-time reception;
Condition of announcing the winners in a lottery judgment module reaches the item of announcing the winners in a lottery for judging whether according to the information of the user for participating in prize drawing Part;
Prize winner's selecting module, for reach it is described announce the winners in a lottery condition in the case where, select prize winner;
Bonus provides module, for providing bonus to the corresponding account of the prize winner;
Cochain module, for remembering information, the information of the prize winner, the bonus of the user for participating in prize drawing In the block for recording block chain.
8. device according to claim 7, which is characterized in that the condition judgment module of announcing the winners in a lottery includes:
Extraction unit is integrated, the investment integral in information for extracting the user for participating in prize drawing;
Integrate summation unit, for by it is all participate in prize drawing users investments integrate summation, obtain user integral and;
Integral contrast unit, for judging the user integral and whether being greater than integral threshold, if so, reaching the item of announcing the winners in a lottery Part.
9. device according to claim 7, which is characterized in that the condition judgment module of announcing the winners in a lottery includes:
Number of users extraction unit, for extracting the quantity of the user for participating in prize drawing;
Number of users comparing unit, for judging whether the quantity of the user for participating in prize drawing is greater than number threshold value, if so, Reach the condition of announcing the winners in a lottery.
10. device according to claim 7, which is characterized in that stating block includes the cryptographic Hash for indexing a upper block, Prize winner's selecting module includes:
Decimal value converting unit, for the cryptographic Hash to be converted into decimal value;
Prize winner's sequence number computing unit, for the decimal value numerical value and it is described participate in prize drawing user quantity into Row compares, and obtained remainder is exactly the sequence number of the prize winner.
11. device according to claim 8, which is characterized in that the bonus provides module and includes:
Bonus issuing unit, for using the user integral and the generation bonus, Xiang Suoshu prize winner to be corresponding Account provides the bonus.
12. device according to claim 9, which is characterized in that the cochain module is also used to the participation prize drawing The quantity of user, the prize winner the prize-winning time, be recorded in the block.
13. a kind of lottery terminal based on block chain characterized by comprising
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors Realize such as method described in any one of claims 1 to 6.
14. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor Such as method described in any one of claims 1 to 6 is realized when row.
CN201910377136.7A 2019-05-07 2019-05-07 A kind of lottery drawing method based on block chain, device and terminal Pending CN110084651A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910377136.7A CN110084651A (en) 2019-05-07 2019-05-07 A kind of lottery drawing method based on block chain, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910377136.7A CN110084651A (en) 2019-05-07 2019-05-07 A kind of lottery drawing method based on block chain, device and terminal

Publications (1)

Publication Number Publication Date
CN110084651A true CN110084651A (en) 2019-08-02

Family

ID=67419049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910377136.7A Pending CN110084651A (en) 2019-05-07 2019-05-07 A kind of lottery drawing method based on block chain, device and terminal

Country Status (1)

Country Link
CN (1) CN110084651A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599247A (en) * 2019-09-10 2019-12-20 广州方阵科技有限公司 Fair lottery activity method based on block chain technology and user participation
CN111063092A (en) * 2019-10-15 2020-04-24 北京海益同展信息科技有限公司 Lottery drawing method and device based on block chain, electronic equipment and storage medium
CN112053187A (en) * 2020-08-24 2020-12-08 深圳区块大陆科技有限公司 Block chain-based prize pool reward chain winding method
CN112527244A (en) * 2020-12-18 2021-03-19 上海万向区块链股份公司 Distributed lottery system and method based on verifiable delay function
CN112950281A (en) * 2021-03-23 2021-06-11 函谷数巢品牌管理(广州)有限公司 Block chain-based event handling method and device
CN113129083A (en) * 2021-05-19 2021-07-16 中国银行股份有限公司 Automatic lottery drawing and distributing method and system based on 5G message of block chain
CN114550363A (en) * 2022-02-23 2022-05-27 中国工商银行股份有限公司 Block chain-based lottery method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504174A (en) * 2016-09-27 2017-03-15 布比(北京)网络技术有限公司 Lottery industry publishing system and device based on block chain
CN108230047A (en) * 2018-02-05 2018-06-29 武汉斗鱼网络科技有限公司 Data processing method of drawing a lottery and device
CN108335208A (en) * 2018-02-28 2018-07-27 北京京东尚科信息技术有限公司 Method and apparatus for handling information
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
CN109389399A (en) * 2018-10-18 2019-02-26 深圳前海乐寻坊区块链科技有限公司 Lottery industry method, apparatus, computer equipment and storage medium based on block chain
CN109615422A (en) * 2018-11-29 2019-04-12 哈希未来(北京)科技有限公司 Competing pumping method, system and storage medium based on block chain
CN109636998A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 A kind of method and device drawn a lottery using block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106504174A (en) * 2016-09-27 2017-03-15 布比(北京)网络技术有限公司 Lottery industry publishing system and device based on block chain
CN108230047A (en) * 2018-02-05 2018-06-29 武汉斗鱼网络科技有限公司 Data processing method of drawing a lottery and device
CN108335208A (en) * 2018-02-28 2018-07-27 北京京东尚科信息技术有限公司 Method and apparatus for handling information
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
CN109389399A (en) * 2018-10-18 2019-02-26 深圳前海乐寻坊区块链科技有限公司 Lottery industry method, apparatus, computer equipment and storage medium based on block chain
CN109615422A (en) * 2018-11-29 2019-04-12 哈希未来(北京)科技有限公司 Competing pumping method, system and storage medium based on block chain
CN109636998A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 A kind of method and device drawn a lottery using block chain

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599247A (en) * 2019-09-10 2019-12-20 广州方阵科技有限公司 Fair lottery activity method based on block chain technology and user participation
CN111063092A (en) * 2019-10-15 2020-04-24 北京海益同展信息科技有限公司 Lottery drawing method and device based on block chain, electronic equipment and storage medium
CN112053187A (en) * 2020-08-24 2020-12-08 深圳区块大陆科技有限公司 Block chain-based prize pool reward chain winding method
CN112527244A (en) * 2020-12-18 2021-03-19 上海万向区块链股份公司 Distributed lottery system and method based on verifiable delay function
CN112950281A (en) * 2021-03-23 2021-06-11 函谷数巢品牌管理(广州)有限公司 Block chain-based event handling method and device
CN113129083A (en) * 2021-05-19 2021-07-16 中国银行股份有限公司 Automatic lottery drawing and distributing method and system based on 5G message of block chain
CN114550363A (en) * 2022-02-23 2022-05-27 中国工商银行股份有限公司 Block chain-based lottery method and device

Similar Documents

Publication Publication Date Title
CN110084651A (en) A kind of lottery drawing method based on block chain, device and terminal
Muhtadi Vote buying in Indonesia: The mechanics of electoral bribery
Druckman et al. The technological development of congressional candidate web sites: How and why candidates use web innovations
Reith Techno economic systems and excessive consumption: A political economy of ‘pathological’gambling
Chaudhuri Indian media and its transformed public
Comaroff Pentecostalism, populism and the new politics of affect
Bartmann In or out: sub-national island jurisdictions and the antechamber of para-diplomacy
US11132872B2 (en) Lottery ticket
Akhter et al. Determinants of voting behaviour in India: Theoretical perspective
Juventeny Berdún Much ‘more than a club’: Football Club Barcelona’s contribution to the rise of a national consciousness in Catalonia (2003–2014)
Chinchanachokchai et al. Exploring different types of superstitious beliefs in risk-taking behaviors: What we can learn from Thai consumers
JP3216098U (en) Advertising system in interactive environment
Sultana et al. Chasing Luck: Data-driven Prediction, Faith, Hunch, and Cultural Norms in Rural Betting Practices
Megidish et al. Allocation of prizes in contests with participation constraints
Chen A Cultural Crossroads at the “Bloody Angle” The Chinatown Tongs and the Development of New York City’s Chinese American Community
Kozinets et al. Everyday activism: an AI-assisted netnography of a digital consumer movement
Ncube Intersections of nativism and football fandom in Zimbabwean online spaces
Lin et al. Taiwan and the 2001 Baseball World Cup: The national impact of a world sporting event
CN110119602A (en) Man-machine recognition methods, device, server, client and storage medium
Ozuem et al. Exploiting online social gambling for marketing communications
Adams My ticket, my" self": Lottery ticket number selection and the commodification and extension of the self
Sun et al. Exploring Downvoting in Blockchain-based Online Social Media Platforms
Carroll The gender gap as a tool for women’s political empowerment: The formative years, 1980–1984
González-Sirois Quebec's new political equilibrium: the interaction of three ideological axes
Weiss Electoral Dynamics in Sarawak

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210524

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190802