CN110189465A - A kind of random lottery drawing method and its equipment by means of block chain - Google Patents

A kind of random lottery drawing method and its equipment by means of block chain Download PDF

Info

Publication number
CN110189465A
CN110189465A CN201910509043.5A CN201910509043A CN110189465A CN 110189465 A CN110189465 A CN 110189465A CN 201910509043 A CN201910509043 A CN 201910509043A CN 110189465 A CN110189465 A CN 110189465A
Authority
CN
China
Prior art keywords
cryptographic hash
block
equipment
prize drawing
remainder
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.)
Granted
Application number
CN201910509043.5A
Other languages
Chinese (zh)
Other versions
CN110189465B (en
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 Ai Morui Strategic Technology Co Ltd
Original Assignee
Beijing Ai Morui Strategic 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 Ai Morui Strategic Technology Co Ltd filed Critical Beijing Ai Morui Strategic Technology Co Ltd
Priority to CN201910509043.5A priority Critical patent/CN110189465B/en
Publication of CN110189465A publication Critical patent/CN110189465A/en
Application granted granted Critical
Publication of CN110189465B publication Critical patent/CN110189465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C15/00Generating random numbers; Lottery apparatus
    • G07C15/006Generating random numbers; Lottery apparatus electronically
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3236Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using cryptographic hash functions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/56Financial cryptography, e.g. electronic payment or e-cash
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The present invention discloses a kind of random lottery drawing method and its equipment by means of block chain, comprising: prize drawing equipment initiates a transfer request on block chain, and transfer request is used as prize drawing;Equipment of drawing a lottery carries out Hash operation to transfer request, obtains the first cryptographic Hash;Prize drawing equipment is obtained when previous round goes out total block number n out of block node;First cryptographic Hash divided by block number n is always gone out, is obtained corresponding first remainder m by equipment of drawing a lottery;Equipment of drawing a lottery is obtained when m-th of block in total block of previous round, and carries out block Hash operation to m-th of block, obtains the second cryptographic Hash;After second cryptographic Hash is added default value by equipment of drawing a lottery, then Hash operation is carried out to the second cryptographic Hash plus default value, obtains third cryptographic Hash;Third cryptographic Hash divided by default integer, is obtained corresponding second remainder by equipment of drawing a lottery;Second remainder is this prize drawing number.Present invention can ensure that the randomness of prize drawing process, openly, it is fair and credible.

Description

A kind of random lottery drawing method and its equipment by means of block chain
Technical field
The present invention relates to block chain and prize drawing combination technology field, more particularly, to it is a kind of by means of block chain with Machine lottery drawing method and its equipment.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm Application model.Common recognition mechanism is that the mathematical algorithm established between different nodes and trust, obtain equity is realized in block catenary system.Area Block chain is the Floor layer Technology of bit coin, as a database account book, records all transaction records.The characteristics of system is that have very It is multiple respectively with node all over the world, each node can safeguard a set of identical database.Which results in maliciously distort Data and its difficulty, loss of data is extremely rare, so that it is transparent to realize a justice, solves the platform of trust crisis.
Existing prize drawing technology is widely used in business activity, such as the movable prize drawing in market or gambling prize drawing, to inhale Draw consumer's eyeball or repays the customers, the further participation enthusiasm for promoting lottery industry participant or commercially available people.Prize drawing Technology is also applied to intra-company's activity, such as company's annual meeting or company set up Zhou Nianhui activity, with feedback employee, increase person Company's collection body-sensing of work etc..Existing prize drawing mostly uses greatly the prize drawing of artificial or computer, and the randomness manually drawn a lottery is poor, and prize drawing process is not It is transparent, therefore drawing outcomes may be by black-box operation, it is thus possible to there are unjustnesses.Computer prize drawing may due to prize drawing algorithm Be tampered or by hacker's malicious attack, and draw a lottery mechanism can not transparence, therefore its drawing outcomes be also likely to be present it is unfair, Situation of the injustice in, randomness difference.
Summary of the invention
In view of the drawbacks of the prior art, it is an object of the invention to solve existing prize drawing scheme randomness not ensureing, and Due to prize drawing process not can guarantee it is all opaque, so there may be underground, inequitable technical problems.
To achieve the above object, in a first aspect, the present invention provides a kind of random lottery drawing method by means of block chain, including Following steps:
Prize drawing equipment initiates a transfer request on block chain, and the transfer request includes: initiator address, recipient Address and transfer amounts;The transfer request is used as prize drawing;
Equipment of drawing a lottery carries out Hash operation to the transfer request, obtains the first cryptographic Hash;
Prize drawing equipment is obtained when previous round goes out total block number n out of block node;N is positive integer;
First cryptographic Hash is always gone out block number n divided by described by equipment of drawing a lottery, and obtains corresponding first remainder m;M be less than The positive integer of n;
Equipment of drawing a lottery is obtained when m-th of block in total block of previous round, and carries out block Hash fortune to m-th of block It calculates, obtains the second cryptographic Hash;
After second cryptographic Hash is added default value by equipment of drawing a lottery, then the second cryptographic Hash plus default value is breathed out Uncommon operation, obtains third cryptographic Hash;
The third cryptographic Hash divided by default integer, is obtained corresponding second remainder by equipment of drawing a lottery;Second remainder For this number of drawing a lottery;The default integer determines the numerical value change section of the prize drawing number.
Optionally, the default value is 1 to the arbitrary integer between m.
Specifically, 1 is a random number to the arbitrary integer between m, therefore the default value is a random number, into One step has ensured the randomness of prize drawing process.
Wherein, the second cryptographic Hash is hexadecimal, and the second cryptographic Hash adds default integer process and is also required to first breathe out second Uncommon value and default integer are converted into identical system, and Hash operation is carried out after being added again later and obtains corresponding third cryptographic Hash.
Optionally, first cryptographic Hash is hexadecimal data;Equipment of drawing a lottery is by first cryptographic Hash divided by institute It states and always goes out block number n, obtain corresponding first remainder m, specifically comprise the following steps:
First cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
Prize drawing equipment will convert into the first cryptographic Hash of decimal data and always go out block number n divided by described, obtain corresponding the One remainder m.
Optionally, the third cryptographic Hash is hexadecimal data;Equipment of drawing a lottery is by the third cryptographic Hash divided by pre- If integer, corresponding second remainder is obtained, is specifically comprised the following steps:
The third cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
The third cryptographic Hash that prize drawing equipment will convert into decimal data obtains corresponding more than second divided by default integer Number.
Optionally, when the default integer is 10, the prize drawing number changes in 0~9 range;The default integer is When 100, the prize drawing number changes in 00~99 range, wherein, will be defeated after its ten zero paddings if the second remainder is less than 10 Out.
Specifically, the default integer is the summation of candidate number section number quantity, to ensure the number of having in all candidate prize drawings It can be drawn.
Wherein, which can be applied to market activity prize drawing or company's annual meeting prize drawing, can set several The first prize, second prize and third prize, every kind of awards correspond to a kind of prize.Repeat draw a lottery, can according to go out prize number sequence will It is divided into one of awards, for example, first taking out third prize, then takes out second prize, finally takes out the first prize.Wherein, if drawing below Number repeated with the number that is extracted into before, then extract again, it is all to guarantee to draw until being extracted into different numbers Awards.
In addition, that is, candidate lottery numbers can also be from S+1~S+T if the number of prize drawing person is not since 000 number Variation, then can be set as T for default integer, after acquiring the second remainder, the second remainder is added S, then obtains corresponding drawing outcomes.
Second aspect, the present invention provide a kind of random prize drawing equipment by means of block chain, comprising:
Unit is initiated in prize drawing, and for initiating transfer request on block chain, the transfer request includes: initiator Location, recipient address and transfer amounts;The transfer request is used as prize drawing;
Hash operation unit obtains the first cryptographic Hash for carrying out Hash operation to the transfer request;
Block information acquiring unit, for obtaining the total block number n out for working as previous round and going out block node;N is positive integer;
Remainder determination unit obtains corresponding first remainder for first cryptographic Hash always to be gone out block number n divided by described m;M is the positive integer less than n;
Block information acquiring unit, for obtaining m-th of block in the total block for working as previous round;
Hash operation unit obtains the second cryptographic Hash for carrying out block Hash operation to m-th of block;By After two cryptographic Hash add default value, then Hash operation is carried out to the second cryptographic Hash plus default value, obtains third Hash Value;
Prize drawing is extra-large unit, for the third cryptographic Hash divided by default integer, to be obtained corresponding second remainder;It is described Second remainder is this prize drawing number;The default integer determines the numerical value change section of the prize drawing number.
Optionally, the default value is 1 to the arbitrary integer between m.
Optionally, first cryptographic Hash is hexadecimal data;The remainder determination unit is by first Hash Value is converted into corresponding decimal data;The first cryptographic Hash that will convert into decimal data always goes out block number n divided by described, obtains Corresponding first remainder m.
Optionally, the third cryptographic Hash is hexadecimal data;The prize drawing is extra-large unit for the third Hash Value is converted into corresponding decimal data;The third cryptographic Hash of decimal data be will convert into divided by default integer, corresponded to The second remainder.
Optionally, when the default integer is 10, the prize drawing number changes in 0~9 range;The default integer is When 100, the prize drawing number changes in 00~99 range, wherein, will be defeated after its ten zero paddings if the second remainder is less than 10 Out.
In general, through the invention it is contemplated above technical scheme is compared with the prior art, have below beneficial to effect Fruit:
The present invention provides a kind of random lottery drawing method and its equipment by means of block chain, is sent out based on block chain transferred account service Prize drawing is played, the process of prize drawing relies on the cryptographic Hash of block chain data, since there are randomnesss for Hash operation itself, and combines current The block cryptographic Hash of block counts and random wherein a certain block in one wheel block, in addition, increasing by one on this basis Random number enhances the randomness of prize drawing process.Finally remming as a result, dividing exactly to it using random Harsh operation three times, Final prize drawing is obtained, ensure that the randomness of the prize drawing process.
The present invention provides a kind of random lottery drawing method and its equipment by means of block chain, is based on block chain technology, by There is open and clear characteristic in block chain data, and block chain Information Security is very high, is very unlikely to be tampered, therefore credible Degree is high.Number in block chain can be found by any user, therefore the process drawn a lottery can be supervised by masses, so that being based on block Chain draw a lottery just, fair and open, is able to satisfy practical application request.
Detailed description of the invention
Fig. 1 is the random lottery drawing method flow chart provided by the invention by means of block chain;
Fig. 2 is the random prize drawing equipment architecture diagram provided by the invention by means of block chain.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below Not constituting a conflict with each other can be combined with each other.
Fig. 1 is the random lottery drawing method flow chart provided by the invention by means of block chain;As shown in Figure 1, including following Step:
S101, prize drawing equipment initiate a transfer request on block chain, the transfer request include: initiator address, Recipient address and transfer amounts;The transfer request is used as prize drawing;
S102, prize drawing equipment carry out Hash operation to the transfer request, obtain the first cryptographic Hash;
S103, prize drawing equipment are obtained when previous round goes out total block number n out of block node;N is positive integer;
First cryptographic Hash is always gone out block number n divided by described, obtains corresponding first remainder m by S104, prize drawing equipment;m For the positive integer less than n;
S105, prize drawing equipment are obtained when m-th of block in total block of previous round, and carry out block to m-th of block Hash operation obtains the second cryptographic Hash;
S106, after the second cryptographic Hash is added default value by prize drawing equipment, then to the second cryptographic Hash for adding default value Hash operation is carried out, third cryptographic Hash is obtained;
The third cryptographic Hash divided by default integer, is obtained corresponding second remainder by S107, equipment of drawing a lottery;Described second Remainder is this prize drawing number;The default integer determines the numerical value change section of the prize drawing number.
Specifically, the block process that goes out of block node is that will trade to be packaged into the process of block out.If always going out block when previous round Number is n, then when total block counts of previous round are n.
In one example, the common recognition mode of mechanism (DelegatedProofofStake, DPOS) is proved in authorization equity Under, for example when previous round has 15 block nodes out, each going out block node, continuously 6 blocks, each round go out total block out of block node out Number is 90;Each go out the corresponding block of block, then each round, which can go out block node correspondence, there are 90 blocks.Wherein, every to take turns out Block node goes out during block, and each going out block node is to go out block in a predetermined sequence, i.e., each block is generated according to predetermined order. In other words, each block is sequential.
Optionally, the default value is 1 to the arbitrary integer between m.
Optionally, first cryptographic Hash is hexadecimal data;Equipment of drawing a lottery is by first cryptographic Hash divided by institute It states and always goes out block number n, obtain corresponding first remainder m, specifically comprise the following steps:
First cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
Prize drawing equipment will convert into the first cryptographic Hash of decimal data and always go out block number n divided by described, obtain corresponding the One remainder m.
Optionally, the third cryptographic Hash is hexadecimal data;Equipment of drawing a lottery is by the third cryptographic Hash divided by pre- If integer, corresponding second remainder is obtained, is specifically comprised the following steps:
The third cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
The third cryptographic Hash that prize drawing equipment will convert into decimal data obtains corresponding more than second divided by default integer Number.
Optionally, when the default integer is 10, the prize drawing number changes in 0~9 range;The default integer is When 100, the prize drawing number changes in 00~99 range, wherein, will be defeated after its ten zero paddings if the second remainder is less than 10 Out.
It should be noted that default integer can be set according to actual needs in prize drawing scheme provided by the invention.Not only It is only limitted to 10 or 100 both of these case.Specifically, the summation that integer is candidate number section number quantity is preset, to ensure all times The number of having can be pumped in choosing prize drawing.
In one embodiment: if the lottery drawing method is applied to market activity prize drawing, if candidate prize drawing people has 500, A number is distributed for every candidate, the number of distribution can change in 000~499 number section.But the awards drawn may include: The first prize 1, second prize 5, third prize 20 the case where.It needs to draw 26 numbers in 500 candidate numbers altogether, with complete At sweepstake.Wherein, the first prize can get refrigerator prize, and second prize can get micro-wave oven prize, and third prize can get flower stand Prize.
Then default integer can be set as 500, then the number extracted out changes corresponding be randomly dispersed in 000~499.It repeats It draws a lottery 26 times, in the number being extracted into, preceding 20 numbers are then third prize, and the 21st number to the 25th number is then second prize, 26th number is then the first prize.Wherein, it if the number drawn below is repeated with the number being extracted into before, extracts again, directly Until being extracted into different numbers, got the winning number in a bond with guaranteeing to draw 26 candidate prize drawing people.
In addition, that is, candidate lottery numbers can also be from S+1~S+T if the number of prize drawing person is not since 000 number Variation, then can be set as T for default integer, after acquiring the second remainder, the second remainder is added S, then obtains corresponding drawing outcomes.
In another embodiment, if the lottery drawing method is applied to company's annual meeting prize drawing, if candidate employee has 2000, A number is distributed for every candidate employee, the number of distribution can change in 000~1999 number section.But the awards drawn may wrap It includes: the case where the first prize 10, second prize 30, third prize 100.It needs to draw 140 in 2000 candidate numbers altogether Number, to complete sweepstake.Default integer is set as 2000, then correspondence is randomly dispersed in 000~1999 by the number extracted out Middle variation.It repeats to draw a lottery 140 times, in the number being extracted into, preceding 100 numbers are then third prize, and the 101st number is to the 130th Number is then second prize, and the 131st number to the 140th number is then the first prize.Wherein, if the number drawn below with before The number being extracted into repeats, then extracts again, until being extracted into different numbers, to guarantee to draw in 140 candidate employees Prize.
Wherein, the first prize can reward company's latest edition mobile phone one, and second prize can reward company's small size air cleaner one Platform, third prize can reward company's mobile power source one.
Random lottery drawing method provided by the invention is also applied in other concrete scenes, and those skilled in the art can To carry out practical application according to actual needs.Those skilled in the art can select the default integer according to actual needs, with full The corresponding prize drawing variation range section of foot requires.The present invention does any restriction not to this.
Fig. 2 is the random prize drawing equipment architecture diagram provided by the invention by means of block chain, as shown in Fig. 2, including as follows Unit:
Unit 201 is initiated in prize drawing, and for initiating a transfer request on block chain, the transfer request includes: to initiate Square address, recipient address and transfer amounts;The transfer request is used as prize drawing;
Hash operation unit 202 obtains the first cryptographic Hash for carrying out Hash operation to the transfer request;
Block information acquiring unit 203, for obtaining the total block number n out for working as previous round and going out block node;N is positive integer;
Remainder determination unit 204 obtains corresponding first for first cryptographic Hash always to be gone out block number n divided by described Remainder m;M is the positive integer less than n;
Block information acquiring unit 203, for obtaining m-th of block in the total block for working as previous round;
Hash operation unit 202 obtains the second cryptographic Hash for carrying out block Hash operation to m-th of block;It will After second cryptographic Hash adds default value, then Hash operation is carried out to the second cryptographic Hash plus default value, obtains third Kazakhstan Uncommon value;
Prize drawing is extra-large unit 205, for the third cryptographic Hash divided by default integer, to be obtained corresponding second remainder; Second remainder is this prize drawing number;The default integer determines the numerical value change section of the prize drawing number.
Optionally, the default value is 1 to the arbitrary integer between m.
Optionally, first cryptographic Hash is hexadecimal data;The remainder determination unit 204 is breathed out described first Uncommon value is converted into corresponding decimal data;The first cryptographic Hash that will convert into decimal data always goes out block number n divided by described, obtains To corresponding first remainder m.
Optionally, the third cryptographic Hash is hexadecimal data;The prize drawing unit 205 that is extra-large breathes out the third Uncommon value is converted into corresponding decimal data;The third cryptographic Hash of decimal data be will convert into divided by default integer, obtained pair The second remainder answered.
Optionally, when the default integer is 10, the prize drawing number changes in 0~9 range;The default integer is When 100, the prize drawing number changes in 00~99 range, wherein, will be defeated after its ten zero paddings if the second remainder is less than 10 Out.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to The limitation present invention, any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should all include Within protection scope of the present invention.

Claims (10)

1. a kind of random lottery drawing method by means of block chain, which comprises the following steps:
Prize drawing equipment initiates a transfer request on block chain, and the transfer request includes: initiator address, recipient address And transfer amounts;The transfer request is used as prize drawing;
Equipment of drawing a lottery carries out Hash operation to the transfer request, obtains the first cryptographic Hash;
Prize drawing equipment is obtained when previous round goes out total block number n out of block node;N is positive integer;
First cryptographic Hash is always gone out block number n divided by described by equipment of drawing a lottery, and obtains corresponding first remainder m;M is less than n's Positive integer;
Equipment of drawing a lottery is obtained when m-th of block in total block of previous round, and carries out block Hash operation to m-th of block, Obtain the second cryptographic Hash;
After second cryptographic Hash is added default value by equipment of drawing a lottery, then Hash fortune is carried out to the second cryptographic Hash plus default value It calculates, obtains third cryptographic Hash;
The third cryptographic Hash divided by default integer, is obtained corresponding second remainder by equipment of drawing a lottery;Second remainder is this Secondary prize drawing number;The default integer determines the numerical value change section of the prize drawing number.
2. the random lottery drawing method according to claim 1 by means of block chain, which is characterized in that the default value is 1 to the arbitrary integer between m.
3. the random lottery drawing method according to claim 1 by means of block chain, which is characterized in that first cryptographic Hash For hexadecimal data;
Equipment of drawing a lottery will first cryptographic Hash divided by total block number n out, obtain corresponding first remainder m, specifically include as Lower step:
First cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
The first cryptographic Hash that prize drawing equipment will convert into decimal data always goes out block number n divided by described, obtains corresponding more than first Number m.
4. the random lottery drawing method according to claim 1 by means of block chain, which is characterized in that the third cryptographic Hash For hexadecimal data;
The third cryptographic Hash divided by default integer, is obtained corresponding second remainder, specifically comprised the following steps: by equipment of drawing a lottery
The third cryptographic Hash is converted into corresponding decimal data by equipment of drawing a lottery;
The third cryptographic Hash that prize drawing equipment will convert into decimal data obtains corresponding second remainder divided by default integer.
5. the random lottery drawing method according to any one of claims 1 to 4 by means of block chain, which is characterized in that described When default integer is 10, the prize drawing number changes in 0~9 range;When the default integer is 100, the prize drawing number is 00 Variation in~99 ranges, wherein if the second remainder is less than 10, will be exported after its ten zero paddings.
6. a kind of random prize drawing equipment by means of block chain characterized by comprising
Prize drawing initiate unit, on block chain initiate a transfer request, the transfer request include: initiator address, Recipient address and transfer amounts;The transfer request is used as prize drawing;
Hash operation unit obtains the first cryptographic Hash for carrying out Hash operation to the transfer request;
Block information acquiring unit, for obtaining the total block number n out for working as previous round and going out block node;N is positive integer;
Remainder determination unit obtains corresponding first remainder m for first cryptographic Hash always to be gone out block number n divided by described;m For the positive integer less than n;
Block information acquiring unit, for obtaining m-th of block in the total block for working as previous round;
Hash operation unit obtains the second cryptographic Hash for carrying out block Hash operation to m-th of block;Second is breathed out After uncommon value adds default value, then Hash operation is carried out to the second cryptographic Hash plus default value, obtains third cryptographic Hash;
Prize drawing is extra-large unit, for the third cryptographic Hash divided by default integer, to be obtained corresponding second remainder;Described second Remainder is this prize drawing number;The default integer determines the numerical value change section of the prize drawing number.
7. the random prize drawing equipment according to claim 6 by means of block chain, which is characterized in that the default value is 1 to the arbitrary integer between m.
8. the random prize drawing equipment according to claim 6 by means of block chain, which is characterized in that first cryptographic Hash For hexadecimal data;First cryptographic Hash is converted into corresponding decimal data by the remainder determination unit;It will turn The first cryptographic Hash for changing decimal data into always goes out block number n divided by described, obtains corresponding first remainder m.
9. the random prize drawing equipment according to claim 6 by means of block chain, which is characterized in that the third cryptographic Hash For hexadecimal data;The third cryptographic Hash is converted into corresponding decimal data by the prize drawing unit that is extra-large;It will turn The third cryptographic Hash of decimal data is changed into divided by default integer, obtains corresponding second remainder.
10. according to the described in any item random prize drawing equipment by means of block chain of claim 6 to 9, which is characterized in that described When default integer is 10, the prize drawing number changes in 0~9 range;When the default integer is 100, the prize drawing number is 00 Variation in~99 ranges, wherein if the second remainder is less than 10, will be exported after its ten zero paddings.
CN201910509043.5A 2019-06-13 2019-06-13 Random lottery method and equipment by means of block chain Active CN110189465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910509043.5A CN110189465B (en) 2019-06-13 2019-06-13 Random lottery method and equipment by means of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910509043.5A CN110189465B (en) 2019-06-13 2019-06-13 Random lottery method and equipment by means of block chain

Publications (2)

Publication Number Publication Date
CN110189465A true CN110189465A (en) 2019-08-30
CN110189465B CN110189465B (en) 2020-12-25

Family

ID=67721559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910509043.5A Active CN110189465B (en) 2019-06-13 2019-06-13 Random lottery method and equipment by means of block chain

Country Status (1)

Country Link
CN (1) CN110189465B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601819A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Method for processing random number and related equipment
CN110633983A (en) * 2019-09-05 2019-12-31 腾讯科技(深圳)有限公司 Target event execution method and device based on block chain

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149819A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Resisting replay attacks efficiently in a permissioned and privacy- preserving blockchain network
CN106980488A (en) * 2017-03-14 2017-07-25 腾讯科技(深圳)有限公司 Random digit generation method and device
CN107392770A (en) * 2017-08-09 2017-11-24 北京云知科技有限公司 A kind of random-number generating method and system based on block chain
CN108259235A (en) * 2018-01-04 2018-07-06 杭州复杂美科技有限公司 A kind of block chain accounting nodes selection method
CN108305056A (en) * 2018-03-27 2018-07-20 搜游网络科技(北京)有限公司 Data processing method, device based on block chain and block chain meshed network
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
US20180300694A1 (en) * 2018-05-14 2018-10-18 Beijing Good Fortune Innovative Intelligence Technology Co.Ltd Method for intelligently selecting accounting node of blockchain
CN108831001A (en) * 2018-06-25 2018-11-16 北京奇虎科技有限公司 Node based on block chain randomly selects method, system, node, electronic equipment
CN109360091A (en) * 2018-08-30 2019-02-19 阿里巴巴集团控股有限公司 A kind of arbitrary object choosing method and device based on block chain
CN109377225A (en) * 2018-10-30 2019-02-22 杭州复杂美科技有限公司 Transaction allocation method, common recognition method, equipment and storage medium
CN109783057A (en) * 2018-12-03 2019-05-21 北京建筑大学 Random digit generation method and device on a kind of block chain

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170149819A1 (en) * 2015-11-25 2017-05-25 International Business Machines Corporation Resisting replay attacks efficiently in a permissioned and privacy- preserving blockchain network
CN106980488A (en) * 2017-03-14 2017-07-25 腾讯科技(深圳)有限公司 Random digit generation method and device
CN107392770A (en) * 2017-08-09 2017-11-24 北京云知科技有限公司 A kind of random-number generating method and system based on block chain
CN108259235A (en) * 2018-01-04 2018-07-06 杭州复杂美科技有限公司 A kind of block chain accounting nodes selection method
CN108447014A (en) * 2018-03-19 2018-08-24 成都零光量子科技有限公司 A kind of block chain lottery industry method and system
CN108305056A (en) * 2018-03-27 2018-07-20 搜游网络科技(北京)有限公司 Data processing method, device based on block chain and block chain meshed network
US20180300694A1 (en) * 2018-05-14 2018-10-18 Beijing Good Fortune Innovative Intelligence Technology Co.Ltd Method for intelligently selecting accounting node of blockchain
CN108831001A (en) * 2018-06-25 2018-11-16 北京奇虎科技有限公司 Node based on block chain randomly selects method, system, node, electronic equipment
CN109360091A (en) * 2018-08-30 2019-02-19 阿里巴巴集团控股有限公司 A kind of arbitrary object choosing method and device based on block chain
CN109377225A (en) * 2018-10-30 2019-02-22 杭州复杂美科技有限公司 Transaction allocation method, common recognition method, equipment and storage medium
CN109783057A (en) * 2018-12-03 2019-05-21 北京建筑大学 Random digit generation method and device on a kind of block chain

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110633983A (en) * 2019-09-05 2019-12-31 腾讯科技(深圳)有限公司 Target event execution method and device based on block chain
CN110601819A (en) * 2019-09-26 2019-12-20 腾讯科技(深圳)有限公司 Method for processing random number and related equipment
CN110601819B (en) * 2019-09-26 2023-02-14 腾讯科技(深圳)有限公司 Processing method for random number, block chain link point device and storage medium

Also Published As

Publication number Publication date
CN110189465B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN110164021B (en) A kind of random lottery drawing method and equipment of application block chain
CN109523683B (en) Anonymous electronic voting method based on block chain technology
KR102348418B1 (en) Methods and apparatus for efficiently implementing a distributed database within a network
AU2019229437B2 (en) Methods and apparatus for a distributed database within a network
CN103095453B (en) The Bloom filter of the public key encryption occured simultaneously using privately owned set
CN107181797A (en) The block compression method and system of a kind of block chain
CN113536382A (en) Block chain-based medical data sharing privacy protection method by using federal learning
CN107103097A (en) Drawing method and terminal device based on block chain technology
CN109923536A (en) Method and apparatus for the distributed data base including anonymous entry
CN105069358A (en) Keyword searchable encryption method based on Bloom filter with storage structure
CN109508552A (en) The method for secret protection of distributed cloud storage system
CN109985389B (en) Cheating-preventing method and system for card games based on intelligent block chain contracts
CN108667717A (en) Block chain processing method, medium, device and computing device based on instant communication message record
CN106549751A (en) Key exchange apparatus and method
WO2017040313A1 (en) Methods and apparatus for a distributed database within a network
CN103929484B (en) The method and device of personalized resource is integrated for user
CN110164022A (en) A kind of random number of shaking method and its equipment on block chain
CN110189465A (en) A kind of random lottery drawing method and its equipment by means of block chain
CN107679149A (en) A kind of data processing method and server
CN110223440A (en) A kind of random number of shaking method and apparatus of application block chain
CN110932854A (en) Block chain key distribution system and method for Internet of things
CN110381447A (en) Wireless frequency spectrum cut-in method and system based on block chain
JP2013208201A (en) Game parlor system
CN107147498A (en) A kind of strong anonymous RFID authentication protocols based on Hash functions and Dynamic-shared key
CN110223436A (en) A kind of lottery ticket of application block chain is extra-large method and apparatus at random

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 100085 No. 108, 1st Floor, No. 9, Shangdi Jiujie, Haidian District, Beijing

Applicant after: Beijing ruice Technology Co.,Ltd.

Address before: 100085 No. 108, 1st Floor, No. 9, Shangdi Jiujie, Haidian District, Beijing

Applicant before: BEIJING AIMO RUICE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant