CN111429186A - Fancy carp lottery incentive method, equipment and storage medium - Google Patents

Fancy carp lottery incentive method, equipment and storage medium Download PDF

Info

Publication number
CN111429186A
CN111429186A CN202010270601.XA CN202010270601A CN111429186A CN 111429186 A CN111429186 A CN 111429186A CN 202010270601 A CN202010270601 A CN 202010270601A CN 111429186 A CN111429186 A CN 111429186A
Authority
CN
China
Prior art keywords
block
winning
transaction
random number
prize
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
CN202010270601.XA
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.)
Hangzhou Left Chain Technology Co ltd
Original Assignee
Hangzhou Left Chain 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 Hangzhou Left Chain Technology Co ltd filed Critical Hangzhou Left Chain Technology Co ltd
Priority to CN202010270601.XA priority Critical patent/CN111429186A/en
Publication of CN111429186A publication Critical patent/CN111429186A/en
Pending legal-status Critical Current

Links

Images

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/0208Trade or exchange of goods or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/58Random or pseudo-random number generators
    • G06F7/588Random number generators, i.e. based on natural stochastic processes
    • 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/0225Avoiding frauds
    • 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/0239Online discounts or incentives

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a fancy carp lottery incentive method, equipment and a storage medium, wherein the method comprises the following steps: executing bonus donation transaction through a fancy carp contract, and storing bonus into a prize pool address; executing lottery drawing transaction through a fancy carp contract, and verifying whether the lottery drawing request is legal: if yes, selecting a plurality of blocks according to a preset rule, and acquiring a plurality of random numbers issued by the selected blocks; generating a first random number and a second random number according to the obtained random numbers; determining a first block height in a first block height interval according to the first random number; determining the winning transaction of the height of the first block according to the second random number, and determining the sending address of the winning transaction as a winning address; recording the winning address and the winning time into a contract; executing prize winning transaction through a fancy carp contract, and verifying whether a prize winning request is legal: if so, a prize is awarded to the winning address. The method and the system continuously attract the users to pay attention to the block chain network with high reward while guaranteeing the lottery fairness of the fancy carps.

Description

Fancy carp lottery incentive method, equipment and storage medium
Technical Field
The application relates to the technical field of internet, in particular to a fancy carp lottery incentive method, equipment and a storage medium.
Background
On one hand, the existing fancy carp lottery drawing scheme is a centralized lottery drawing scheme, and the fairness of lottery drawing can only be expected to an office without cheating and cannot be guaranteed through technical means;
on the other hand, the building and maintenance of the block chain network and the ecology require a large number of users to participate, however, the existing user incentive scheme is generally limited to mine excavation rewards and the air drop rewards are carried out on mine excavation users. The above-described user incentive schemes have the disadvantage that the incentive is of limited appeal, or that a few of the more attractive air drop incentives are generally not persistent, and are not attractive enough to many people, and the attracted users are often not concerned about the blockchain ecology after the deployment of the mine excavation nodes.
Disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies in the prior art, it is desirable to provide a koi lottery incentive method, device and storage medium that not only ensures the fairness of koi lottery, but also attracts the user's attention and participates in the blockchain network.
In a first aspect, the present invention provides a koi lottery incentive method suitable for a block chain node, including:
executing bonus donation transaction through a fancy carp contract, and storing the donated bonus into a prize pool address in the fancy carp contract; wherein, the balance of the prize pool address can not be transferred by the non-winning account;
performing lottery drawing transaction of drawing a prize on the first block height section through the koi contract execution request, and verifying whether the lottery drawing request of the lottery drawing transaction is legal:
otherwise, the lottery transaction execution fails;
if yes, selecting a plurality of blocks according to a pre-configured rule, and acquiring a plurality of random numbers issued by the selected blocks; wherein, the block height of the selected block is not less than the maximum block height of the first block height interval;
generating a first random number and a second random number according to the obtained random numbers;
determining a first block height in a first block height interval according to the first random number;
determining a winning transaction in the first block of the first block height according to the second random number, and determining a transmission address of the winning transaction as a winning address;
recording the winning address and the winning time into a fancy carp contract;
executing prize winning transaction through a fancy carp contract, and verifying whether a prize winning request of the prize winning transaction is legal or not according to the prize winning address and the prize winning time: if so, a prize is awarded to the winning address.
In a second aspect, the present invention provides a fancy carp lottery incentive method suitable for a user side, wherein a fancy carp contract is configured on a block chain, and the balance of a prize pool address in the fancy carp contract cannot be transferred by a non-winning account, the method comprising:
inquiring the winning address and winning time recorded in the koi contract; after the lottery drawing transaction is successfully executed by a Koi contract, the winning address and the winning time are selected according to a preconfigured rule, a plurality of random numbers issued by the selected blocks are obtained, a first random number and a second random number are generated according to the obtained random numbers, the height of the first block in a first block height interval is determined according to the first random number, the winning transaction in the first block with the height of the first block is determined according to the second random number, and the sending address of the winning transaction is recorded into the contract after being determined as the winning address; the block height of the selected block is not less than the maximum block height of the first block height interval;
judging whether the current user wins a prize according to the winning address, and judging whether the current time is legal for winning a prize:
if yes, generating a prize drawing transaction through a private key signature corresponding to the prize drawing address and sending the prize drawing transaction to the block chain network, so that the block chain nodes execute the prize drawing transaction through a fancy carp contract, and issuing a prize money to the prize drawing address after verifying that a prize drawing request of the prize drawing transaction is legal according to the prize drawing address and the prize drawing time.
In a third aspect, the present invention also provides an apparatus comprising one or more processors and memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a koi lottery incentive method provided according to embodiments of the present invention.
In a fourth aspect, the present invention also provides a storage medium storing a computer program for causing a computer to execute the koi lottery incentive method according to the embodiments of the present invention.
According to the fancy carp lottery incentive method, the fancy carp lottery incentive equipment and the storage medium, which are provided by various embodiments of the invention, through configuring the fancy carp contract which is based on the random number lottery issued by the block chain and takes the block height interval as the lottery cycle on the block chain, on one hand, the fairness of the fancy carp lottery is ensured, and on the other hand, the purposes of continuously attracting users to pay attention and participating in the block chain network by periodic high-volume awards are realized.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a koi lottery incentive method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another koi lottery incentive method according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a koi lottery incentive method according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a koi lottery incentive method suitable for a blockchain node, including:
s11: executing bonus donation transaction through a fancy carp contract, and storing the donated bonus into a prize pool address in the fancy carp contract; wherein, the balance of the prize pool address can not be transferred by the non-winning account;
s13: and executing a lottery drawing transaction for drawing a prize in the first block height section through the fancy carp contract:
s131: verifying whether the lottery drawing request of the lottery drawing transaction is legal:
otherwise, the lottery transaction execution fails;
if yes, go to step S132: selecting a plurality of blocks according to a pre-configured rule, and acquiring a plurality of random numbers issued by the selected blocks; wherein, the block height of the selected block is not less than the maximum block height of the first block height interval;
s133: generating a first random number and a second random number according to the obtained random numbers;
s134: determining a first block height in a first block height interval according to the first random number;
s135: determining a winning transaction in the first block of the first block height according to the second random number, and determining a transmission address of the winning transaction as a winning address;
s136: recording the winning address and the winning time into a fancy carp contract;
s15: executing prize winning transaction through a fancy carp contract, and verifying whether a prize winning request of the prize winning transaction is legal or not according to the prize winning address and the prize winning time: if so, a prize is awarded to the winning address.
Specifically, the above method will be exemplarily described below, taking as an example that each block height section includes 10000 blocks, and the user a lucky wins in the lottery cycle in which the block height section is (0,10000).
When the host of the fancy carp lottery event, or the foundation of the block chain and the project side donate the fancy carp contract with the bonus, the bonus donation transaction tx1 can be generated on any terminal, and tx1 is sent to the block chain network.
In step S11, the block link point executes tx1 by koi contract, and if the execution succeeds, the prize donated by tx1 is saved in the prize pool address of the koi contract. Assets in the prize pool address can only be distributed to the winning user by a contract when the winning user draws a prize, and cannot be governed by an administrative account or other accounts.
The sponsor of the fancy carp lottery event, or the fund of the block chain can automatically monitor the latest height of the block chain by configuring a robot program in a certain device, and when the robot program monitors that the latest height of the block chain exceeds 10000, the robot program can automatically generate a lottery drawing transaction tx2 and send the lottery drawing transaction tx2 to the block chain network. The tx2 may be configured to designate a block height interval (e.g., (0,10000), (1234,4321), (etc.) according to the rules configured by the koi contract, or may be configured not to designate a block height interval according to the rules configured by the koi contract, and the block height interval is automatically determined by the koi contract (see step S131).
In addition, when any blockchain user finds that the latest height of the blockchain exceeds 10000 and a koi contract is not yet awarded (for example, a device for configuring a robot program is down, and the like), a lottery transaction can also be generated in the user terminal and sent to the blockchain network to trigger the lottery.
In step S13, the block link point executes tx2 by a koi contract, which specifically includes:
s131, verify whether the lottery drawing request of tx2 is legal.
Specifically, when tx2 specifies a specific tile height interval, the verification of step S131 includes:
verifying whether the block height interval specified by tx2 is legal, e.g., the current latest block height is 12345, and tx2 specifies a block height interval of (0,20000), then tx2 specifies a block height interval of illegal,
it is verified whether the block height section designated by tx2 has been awarded, and when the block height section has been awarded, the award cannot be repeated, and the award winning request is illegal.
When tx2 does not specify a specific block height interval, in step S131, the block link point needs to determine the first block height interval of the tx2 requested drawing according to the rule pre-configured in the koi contract, and then verify whether the first block height interval has already been drawn, for example:
the block chain node firstly determines that block1 belongs to a block height interval (10000,20000) according to the block height 10456 of a block1 into which tx2 is packed and the number 10000 of blocks included in each block height interval, then determines a previous block height interval (0,10000) of (10000,20000) as a first block height interval, and finally verifies whether the prize is awarded (0,10000).
Among the two methods for verifying the validity of the lottery drawing transaction and the lottery drawing request, the first method for specifying the specific block height interval in the lottery drawing transaction is suitable for temporarily reaching the sponsor who plays the koi lottery drawing activities (the block height interval can be freely selected) on the block chain, and the second method for automatically determining the lottery drawing interval through the koi contract with a fixed lottery drawing period is suitable for fund clubs, project parties and the like which continuously play koi lottery drawing (the block height interval is usually fixed) on the block chain.
In the present embodiment, S132 includes: selecting a first block height interval (0,10000)]Second block of maximum block height 1000010000Obtaining a second block10000Issued third random number r10000(ii) a The specific principle of block distribution of random numbers can refer to CN201811351787.0 application, and is not described herein again. In other embodiments, the second block may be configured as any block with a block height not less than the maximum block height of the first block height interval and not greater than the rollback safety depth (to avoid rollback), which may achieve the same technical effect.
Step S133 includes: and operating the third random number according to a pre-configured first algorithm and a pre-configured second algorithm respectively to generate a first random number and a second random number. For example, take r10000Performs a certain hash operation to generate a first random number r1And, take r10000And performing another hash operation to generate a second random number r2. It will be appreciated by those skilled in the art that the first and second algorithms herein can also be configured as any transform operation method commonly used in the art, and the same technical effect can be achieved.
In another embodiment, step S132 includes: selecting a third block with a block height of 10000 plus one (10001) and 10002 respectively10001And a fourth block10002Obtaining a third block10001Fourth random number r of publications10001And a fourth blockblock10002Fifth random number r of issue10002. Similarly, the third block and the fourth block may be configured as any block having a block height not less than the maximum block height of the first block height interval and not greater than the rollback safety depth (to avoid rollback), so that the same technical effects may be achieved.
Step S133 includes: a fourth random number r10001And a fifth random number r10002Is determined as a first random number r1And a second random number r2
In further embodiments, steps S132 and S133 may further obtain 3 or more random numbers issued by 3 or more blocks with block heights not less than the maximum block height of the first block height interval and not greater than the rollback safety depth, and generate the first random number r according to the obtained 3 or more random numbers1And a second random number r2The same technical effect can be achieved.
In step S134, according to the first random number r1Determining a first block height interval (0,10000)]First block height h of1
E.g. h1=0+r1% (10000-0) +1 ═ 3413, or,
h1’=10000-(r1% (10000-0) +1) ═ 6587, and the like.
In step S135, according to the second random number r2Determining a first block height h1First block of3413Tx3, the address addr of the transmission of tx31Determined as the winning address.
For example, block3413If there are 25 transactions, the winning transaction is in block3413Wherein i is r2% 25+1 ═ 7, block3413The 7 th transaction in (1) is determined to be the winning transaction tx3, or,
i’=25-(r2% 25+1) ═ 18, block3413The 18 th transaction in (2) is determined to be the winning transaction tx3, and so on.
In step S136, the winning address addr determined in step S135 is set1And the time of winning the prize (e.g., (1)0000,20000]Before the prize is drawn, or the block height reaches 20000, etc.) is recorded into the koi contract, the prize money is pre-distributed to addr in the koi contract according to the pre-configured prize money distribution rule1An account.
When the user A pays attention to the fancy carp lottery activity, the user side of the user A inquires the winning address and the winning time recorded in the fancy carp contract, and if the address addr of the user A is inquired1Winning a prize (and not exceeding the time of drawing a prize), a draw transaction tx4 can be generated by the private key signature of the user A, and tx4 is sent to the blockchain network.
In step S15, the tile link point executes tx4 by koi contract, verifies whether the prize drawing request of tx4 is legal according to the winning address and the prize drawing time recorded in step S136: if yes, the addr pre-distributed in the combination of the fancy carps is used1Award in account to winning address addr1
In addition, if the winning user does not receive the prize due to the fact that the winning user does not pay attention to the fancy carp lottery event, the operator can recover the pre-distributed prize by sending a transaction after the prize receiving time is over, and the recovered prize is accumulated for the next lottery.
When the latest height of the block chain exceeds 20000/30000/…, the robot program can automatically generate the lottery transaction again and send the transaction to the block chain network to trigger the lottery in the (10000,20000]/(20000,30000]/… interval, and the specific lottery process and the prize drawing process are the same as those in the (0,10000) interval and are not described again.
In the embodiment, the random number lottery issued based on the block chain is configured on the block chain, and the koi contract taking the block height interval as the lottery cycle is configured on the block chain, so that the fairness of the koi lottery is ensured on one hand, and the situation that the koi continuously attracts the attention of the user and participates in the block chain network by the periodic high-volume reward is realized on the other hand.
Fig. 2 is a flowchart of another koi lottery incentive method according to an embodiment of the present invention. The method illustrated in fig. 2 may be performed in conjunction with the method illustrated in fig. 1.
As shown in fig. 2, in this embodiment, the present invention further provides a cryy-carp lottery incentive method suitable for a user end, wherein a cryy contract is configured on a block chain, and a balance of a prize pool address in the cryy contract cannot be transferred by a non-winning account, the method includes:
s21: inquiring the winning address and winning time recorded in the koi contract; after the lottery drawing transaction is successfully executed by a Koi contract, the winning address and the winning time are selected according to a preconfigured rule, a plurality of random numbers issued by the selected blocks are obtained, a first random number and a second random number are generated according to the obtained random numbers, the height of the first block in a first block height interval is determined according to the first random number, the winning transaction in the first block with the height of the first block is determined according to the second random number, and the sending address of the winning transaction is recorded into the contract after being determined as the winning address; the block height of the selected block is not less than the maximum block height of the first block height interval;
s23: judging whether the current user wins a prize according to the winning address, and judging whether the current time is legal for winning a prize:
if yes, go to step S25: and generating a prize drawing transaction through a private key signature corresponding to the prize drawing address and sending the prize drawing transaction to the block chain network so that the block chain nodes execute the prize drawing transaction through a fancy carp contract, and issuing a prize to the prize drawing address after verifying that a prize drawing request of the prize drawing transaction is legal according to the prize drawing address and the prize drawing time.
Preferably, the method further comprises: when the query result of step S21 is that the first block height interval is not awarded, a lottery transaction is generated and sent to the block chain network.
Preferably, the method further comprises: and responding to the current user to donate the bonus to the fancy carp contract, generating bonus donation transaction and sending the bonus donation transaction to the block chain network, so that the block chain node executes the bonus donation transaction through the fancy carp contract and stores the donated bonus into the prize pool address.
The lottery principle of the method shown in fig. 2 can refer to the method shown in fig. 1, and the details are not repeated here.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 3, as another aspect, the present application also provides an apparatus 300 including one or more Central Processing Units (CPUs) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the apparatus 300 are also stored. The CPU301, ROM302, and RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
To the I/O interface 305, AN input section 306 including a keyboard, a mouse, and the like, AN output section 307 including a network interface card such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage section 308 including a hard disk, and the like, and a communication section 309 including a network interface card such as a L AN card, a modem, and the like, the communication section 309 performs communication processing via a network such as the internet, a drive 310 is also connected to the I/O interface 305 as necessary, a removable medium 311 such as a magnetic disk, AN optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 309, and/or installed from the removable medium 311.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each unit may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A koi lottery incentive method, wherein the method is applied to a blockchain node, and wherein the method comprises:
executing bonus donation transaction through a fancy carp contract, and storing the donated bonus into a prize pool address in the fancy carp contract; wherein the balance of the progressive address cannot be transferred by a non-winning account;
performing lottery drawing transaction of drawing a prize in a first block height section through the koi contract execution request, and verifying whether the lottery drawing request of the lottery drawing transaction is legal:
if not, the lottery drawing transaction fails to be executed;
if yes, selecting a plurality of blocks according to a pre-configured rule, and acquiring a plurality of random numbers issued by the selected blocks; wherein, the block height of the selected block is not less than the maximum block height of the first block height interval;
generating a first random number and a second random number according to the obtained random numbers;
determining a first block height in the first block height interval according to the first random number;
determining a winning transaction in a first block of the first block height according to the second random number, and determining a sending address of the winning transaction as a winning address;
recording the winning address and the winning time into the fancy carp contract;
executing prize drawing transaction through the fancy carp contract, and verifying whether a prize drawing request of the prize drawing transaction is legal or not according to the prize drawing address and the prize drawing time: if so, a prize is awarded to the winning address.
2. The method of claim 1, wherein selecting the blocks according to a pre-configured rule and obtaining the random numbers issued by the selected blocks comprises:
selecting a second block with the maximum block height in the first block height interval, and acquiring a third random number issued by the second block;
the generating a first random number and a second random number according to the acquired plurality of random numbers comprises:
and operating the third random number according to a pre-configured first algorithm and a pre-configured second algorithm respectively to generate a first random number and a second random number.
3. The method of claim 1, wherein selecting the blocks according to a pre-configured rule and obtaining the random numbers issued by the selected blocks comprises:
selecting a third block and a fourth block with block heights respectively being the maximum block height plus one and the maximum block height plus two, and acquiring a fourth random number issued by the third block and a fifth random number issued by the fourth block;
the generating a first random number and a second random number according to the acquired plurality of random numbers comprises:
determining the fourth random number and the fifth random number as a first random number and a second random number.
4. The method of any of claims 1-3, wherein the verifying that the request to draw the prize for the draw transaction is legitimate comprises:
and verifying whether the first block height interval has no prize.
5. The method of claim 4, wherein verifying whether the first block height interval is not awarded further comprises:
and determining the height interval of the previous block of the second block height interval to which the block where the lottery transaction is located belongs as the first block height interval.
6. A koi lottery incentive method, wherein a koi contract is configured on a block chain, and a balance of a prize pool address in the koi contract cannot be transferred by a non-winning account, the method is applicable to a user side, and the method comprises the following steps:
inquiring the winning address and winning time recorded in the koi contract; after the winning address and the winning time are successfully executed by the koi contract, selecting a plurality of blocks according to a preconfigured rule, acquiring a plurality of random numbers issued by the selected blocks, generating a first random number and a second random number according to the acquired random numbers, determining the height of the first block in the height interval of the first block according to the first random number, determining winning transaction in the first block with the height of the first block according to the second random number, determining the sending address of the winning transaction as the winning address, and recording the winning address into the contract; the block height of the selected block is not less than the maximum block height of the first block height interval;
judging whether the current user wins a prize according to the winning address, and judging whether the current time is legal for winning a prize:
if yes, generating a prize drawing transaction through a private key signature corresponding to the prize drawing address and sending the prize drawing transaction to a block chain network, so that block chain nodes can execute the prize drawing transaction through the fancy carp contract, and issuing a prize money to the prize drawing address after verifying that a prize drawing request of the prize drawing transaction is legal according to the prize drawing address and the prize drawing time.
7. The method of claim 6, further comprising:
and when the inquiry result shows that the first block height interval has no lottery drawing, generating a lottery drawing transaction and sending the lottery drawing transaction to a block chain network.
8. The method of claim 6 or 7, further comprising:
and responding to the current user to donate the bonus to the fancy carp contract, generating bonus donation transaction and sending the bonus donation transaction to a block chain network, so that block chain nodes execute the bonus donation transaction through the fancy carp contract and store the donated bonus into the prize pool address.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-8.
10. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-8.
CN202010270601.XA 2020-04-08 2020-04-08 Fancy carp lottery incentive method, equipment and storage medium Pending CN111429186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010270601.XA CN111429186A (en) 2020-04-08 2020-04-08 Fancy carp lottery incentive method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010270601.XA CN111429186A (en) 2020-04-08 2020-04-08 Fancy carp lottery incentive method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111429186A true CN111429186A (en) 2020-07-17

Family

ID=71555886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010270601.XA Pending CN111429186A (en) 2020-04-08 2020-04-08 Fancy carp lottery incentive method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111429186A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053187A (en) * 2020-08-24 2020-12-08 深圳区块大陆科技有限公司 Block chain-based prize pool reward chain winding method
CN112508641A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Method and device for distributing articles, computer equipment and storage medium
CN112767221A (en) * 2021-02-02 2021-05-07 深圳市易讯天空网络技术有限公司 Block chain lottery drawing method, terminal device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389399A (en) * 2018-10-18 2019-02-26 深圳前海乐寻坊区块链科技有限公司 Lottery industry method, apparatus, computer equipment and storage medium based on block chain
KR101928087B1 (en) * 2018-01-03 2019-02-26 한국조폐공사 Method for managing on-line lottery based on blockchain and server using the same
CN109583892A (en) * 2018-11-21 2019-04-05 安徽高山科技有限公司 A kind of random number selecting method in block chain
CN109636998A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 A kind of method and device drawn a lottery using block chain
CN109741513A (en) * 2018-12-20 2019-05-10 太原理工大学 A kind of winners' announcement in lottery method based on block chain technology
CN110601819A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Method for processing random number and related equipment
CN110648447A (en) * 2019-08-08 2020-01-03 杭州复杂美科技有限公司 Game random number generation method, application, device, equipment and storage medium
CN110910559A (en) * 2019-11-25 2020-03-24 杭州趣链科技有限公司 Lottery drawing method based on block chain
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101928087B1 (en) * 2018-01-03 2019-02-26 한국조폐공사 Method for managing on-line lottery based on blockchain and server using the same
CN109389399A (en) * 2018-10-18 2019-02-26 深圳前海乐寻坊区块链科技有限公司 Lottery industry method, apparatus, computer equipment and storage medium based on block chain
CN109583892A (en) * 2018-11-21 2019-04-05 安徽高山科技有限公司 A kind of random number selecting method in block chain
CN109741513A (en) * 2018-12-20 2019-05-10 太原理工大学 A kind of winners' announcement in lottery method based on block chain technology
CN109636998A (en) * 2019-01-09 2019-04-16 山东浪潮质量链科技有限公司 A kind of method and device drawn a lottery using block chain
CN110648447A (en) * 2019-08-08 2020-01-03 杭州复杂美科技有限公司 Game random number generation method, application, device, equipment and storage medium
CN110601819A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Method for processing random number and related equipment
CN110910559A (en) * 2019-11-25 2020-03-24 杭州趣链科技有限公司 Lottery drawing method based on block chain
CN110958317A (en) * 2019-11-29 2020-04-03 腾讯科技(深圳)有限公司 Data processing method and equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112053187A (en) * 2020-08-24 2020-12-08 深圳区块大陆科技有限公司 Block chain-based prize pool reward chain winding method
CN112508641A (en) * 2020-12-01 2021-03-16 数字广东网络建设有限公司 Method and device for distributing articles, computer equipment and storage medium
CN112767221A (en) * 2021-02-02 2021-05-07 深圳市易讯天空网络技术有限公司 Block chain lottery drawing method, terminal device and computer readable storage medium
CN112767221B (en) * 2021-02-02 2023-12-19 深圳市易讯天空网络技术有限公司 Block chain lottery drawing method, terminal device and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN111429186A (en) Fancy carp lottery incentive method, equipment and storage medium
US8360869B2 (en) Power winners processing engine
US8382586B2 (en) Power winners processing method
US8348755B2 (en) Power winners processing system
CN112346634B (en) Virtual article issuing method and device
US8715071B2 (en) Power winners processing system and method
CN109395394B (en) Forecast guess game deployment method and game method, equipment and storage medium
JP2013208322A (en) Game system, control method used therefor, and computer program
CN109395393B (en) Game deployment method based on parallel chain, game method, game device and storage medium
US20150328552A1 (en) Systems and methods for achieving user engagement in an online gaming environment using incentives
US9311779B2 (en) Power winners processing method
CA3012038C (en) Autonomously operating computerized gaming platforms and method of operating thereof
US20170208132A1 (en) Dynamic endpoint resolution wagering system
US9997020B2 (en) Local jackpot system appearing global in nature and global prize management system and method of use
CN111346385A (en) Game matching method and device
CN110354496A (en) The processing method and processing device of e-sports race, storage medium, electronic equipment
US9646462B2 (en) Method and apparatus for awarding at least one jackpot prize
CN109432780B (en) Game deployment method based on parallel chain, game method, game device and storage medium
US20220189256A1 (en) System and method for conducting online video game tournaments and matches
US11872494B2 (en) Method for changing game parameter
CN109316752B (en) Game deployment method, game method, device and storage medium
JP2021159268A (en) Computer system and program
KR20200107712A (en) Mehtod for editing game parameter
KR20140079754A (en) Online lottery system for item and method thereof
JP2015123133A (en) Program and server system

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200717