CN109615422A - Competing pumping method, system and storage medium based on block chain - Google Patents
Competing pumping method, system and storage medium based on block chain Download PDFInfo
- Publication number
- CN109615422A CN109615422A CN201811444905.2A CN201811444905A CN109615422A CN 109615422 A CN109615422 A CN 109615422A CN 201811444905 A CN201811444905 A CN 201811444905A CN 109615422 A CN109615422 A CN 109615422A
- Authority
- CN
- China
- Prior art keywords
- algorithm
- competing
- cryptographic hash
- pumping
- block chain
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0207—Discounts or incentives, e.g. coupons or rebates
- G06Q30/0212—Chance discounts or incentives
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3827—Use of message hashing
Abstract
This application discloses a kind of competing pumping method, system and storage medium based on block chain.Wherein, this method comprises: the predetermined block of access block chain;Obtain the cryptographic Hash of predetermined block;And lottery winner is determined from the multiple participants for participating in competing pumping according to cryptographic Hash and pre-defined algorithm.It takes out to reach competing the result is that the technical effect artificially not manipulated being randomly generated, the competing pumping of the tradition solved have the risk artificially manipulated, competing pumping result caused not can guarantee fair and just technical problem.
Description
Technical field
This application involves block chain fields, more particularly to a kind of competing pumping method, system and storage based on block chain
Medium.
Background technique
Guess prize drawing widely exist in people's daily life, such as: randomly selected in TV programme lucky user,
Network answer prize drawing etc..It is according to the data of the competing pumping of participation that competing pumping system, which can be abstracted into, which generally includes participant's
Quantity participates in the information such as number, and one or multidigit lottery winner is randomly generated.One step of key of the guess system is how to determine
For generating the random number of lottery winner, current common practice is that choosing believable third party as entropy source generates random number.Example
Such as, which can be a game company, by the game company simultaneously line user volume it is rear three as with
Machine number, what is relied on is that the data of the game company are true data.However, the entropy source of single centralization is often easy
(i.e. there may be the risks being tampered for data) being steered, no matter the public credibility of third party itself has mostly by force.So tradition is competing
There is the possibility artificially manipulated in the result of pumping, it is untrue, unreliable to have the characteristics that.
The risk for existing and artificially manipulating is taken out for above-mentioned tradition is competing, causes competing pumping result not can guarantee fair and just
The technical issues of, currently no effective solution has been proposed.
Summary of the invention
Embodiment of the disclosure provides a kind of competing pumping method, system and storage medium based on block chain, at least
Solve competing take out of tradition existing in the prior art and there is the risk that artificially manipulates, cause it is competing smoke result not can guarantee it is fair and just
Technical problem.
According to the one aspect of the embodiment of the present disclosure, a kind of competing pumping method based on block chain is provided, comprising: access region
The predetermined block of block chain;Obtain the cryptographic Hash of predetermined block;And according to cryptographic Hash and pre-defined algorithm from participating in the more of competing pumping
Lottery winner is determined in a participant.
According to the other side of the embodiment of the present disclosure, a kind of storage medium is additionally provided, storage medium includes storage
Program, wherein the method as described in processor execution any of the above one in program operation.
According to the another aspect of the embodiment of the present disclosure, a kind of competing pumping system based on block chain is additionally provided, comprising: access
Module, for accessing the predetermined block of block chain;Module is obtained, for obtaining the cryptographic Hash of predetermined block;And determining module,
For determining lottery winner from the multiple participants for participating in competing pumping according to cryptographic Hash and pre-defined algorithm.
According to the other side of the embodiment of the present disclosure, a kind of competing pumping system based on block chain is additionally provided, comprising: place
Manage device;And memory, it is connect with processor, for providing the instruction for handling following processing step for processor: access block
The predetermined block of chain;Obtain the cryptographic Hash of predetermined block;And according to cryptographic Hash and pre-defined algorithm from participating in the multiple of competing pumping
Lottery winner is determined in participant.
In the embodiments of the present disclosure, the cryptographic Hash of the predetermined block of block chain is obtained by node, then node is according to Kazakhstan
Uncommon value and pre-defined algorithm determine award-winner from multiple participants for participating in competing pumping.It is well known that the block Hash of block chain
What value was randomly generated, and the block chain characteristics such as there is decentralization, transparent, information can not distort, therefore avoid artificial
The case where manipulating competing pumping result generation.It takes out to reach competing the result is that the technical effect artificially not manipulated being randomly generated,
It solves the competing pumping of tradition and there is the risk artificially manipulated, competing pumping result is caused not can guarantee fair and just technical problem.
Detailed description of the invention
Attached drawing described herein is used to provide further understanding of the disclosure, constitutes part of this application, this public affairs
The illustrative embodiments and their description opened do not constitute the improper restriction to the disclosure for explaining the disclosure.In the accompanying drawings:
Fig. 1 is [terminal (or mobile device)] for realizing the method according to the embodiment of the present disclosure 1
Hardware block diagram;
Fig. 2 is the system schematic of the competing pumping method according to the embodiment of the present disclosure 1 based on block chain;
Fig. 3 is the flow diagram according to the competing pumping method based on block chain of the embodiment of the present disclosure 1;
Fig. 4 is the system schematic based on the competing pumping of block chain according to the embodiment of the present disclosure 2;And
Fig. 5 is the system schematic based on the competing pumping of block chain according to the embodiment of the present disclosure 3.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution of the disclosure, implement below in conjunction with the disclosure
Attached drawing in example, is clearly and completely described the technical solution in the embodiment of the present disclosure.Obviously, described embodiment
The only embodiment of disclosure a part, instead of all the embodiments.Based on the embodiment in the disclosure, this field is common
Disclosure protection all should belong in technical staff's every other embodiment obtained without making creative work
Range.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
Embodiment 1
According to the present embodiment, a kind of competing pumping method based on block chain is provided, it should be noted that in the process of attached drawing
The step of illustrating can execute in a computer system such as a set of computer executable instructions, although also, in process
Logical order is shown in figure, but in some cases, it can be to be different from shown or described by sequence execution herein
Step.
Embodiment of the method provided by the present embodiment can be in mobile terminal, terminal or similar arithmetic unit
Middle execution.Fig. 1 shows a kind of the hard of the terminal (or mobile device) for realizing the competing pumping method based on block chain
Part structural block diagram.As shown in Figure 1, terminal 10 (or mobile device 10) may include one or more (uses in figure
102a, 102b ... ..., 102n are shown) (processor 102 can include but is not limited to Micro-processor MCV or can processor 102
The processing unit of programmed logic device FPGA etc.), memory 104 for storing data and the transmission for communication function
Module 106.It in addition to this, can also include: display, input/output interface (I/O interface), universal serial bus (USB) end
Mouth (a port that can be used as in the port of I/O interface is included), network interface, power supply and/or camera.This field is common
Technical staff is appreciated that structure shown in FIG. 1 is only to illustrate, and does not cause to limit to the structure of above-mentioned electronic device.Example
Such as, terminal 10 may also include than shown in Fig. 1 more perhaps less component or with different from shown in Fig. 1
Configuration.
It is to be noted that said one or multiple processors 102 and/or other data processing circuits lead to herein
Can often " data processing circuit " be referred to as.The data processing circuit all or part of can be presented as software, hardware, firmware
Or any other combination.In addition, data processing circuit for single independent processing module or all or part of can be integrated to meter
In any one in other elements in calculation machine terminal 10 (or mobile device).As involved in the embodiment of the present disclosure,
The data processing circuit controls (such as the selection for the variable resistance end path connecting with interface) as a kind of processor.
Memory 104 can be used for storing the software program and module of application software, as in the embodiment of the present disclosure based on
Corresponding program instruction/the data storage device of competing pumping method of block chain, processor 102 are stored in memory 104 by operation
Interior software program and module realizes above-mentioned application program thereby executing various function application and data processing
Competing pumping method based on block chain.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as
One or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory
104 can further comprise the memory remotely located relative to processor 102, these remote memories can pass through network connection
To terminal 10.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication
And combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of terminal 10 provide.In an example, transmitting device 106 includes that a network is suitable
Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to
Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module,
For wirelessly being communicated with internet.
Display can such as touch-screen type liquid crystal display (LCD), the liquid crystal display aloow user with
The user interface of terminal 10 (or mobile device) interacts.
Herein it should be noted that in some optional embodiments, above-mentioned computer equipment shown in FIG. 1 (or movement is set
It is standby) it may include hardware element (including circuit), software element (including the computer generation that may be stored on the computer-readable medium
Code) or both hardware element and software element combination.It should be pointed out that Fig. 1 is only a reality of particular embodiment
Example, and it is intended to show that the type for the component that may be present in above-mentioned computer equipment (or mobile device).
Fig. 2 is the schematic diagram of the system of the competing pumping method according to the present embodiment based on block chain.Referring to Fig. 2 institute
Show, the system include: node 200, operate in node 200 a block chain (the block chain be based on pow know together algorithm, with
Based on the network of ether mill), first terminal equipment 210, second terminal equipment 220 and third terminal equipment 230.Wherein,
The user 203 of the user 201 of one terminal device 210, the user 202 of second terminal equipment 220 and third terminal equipment 230 are
Terminal device accessed node can be passed through.For example, node 200 can carry out guess prize drawing, user 201, user based on block chain
202 and user 203 the competing pumping can be participated in by respective terminal device.Then, the user that node 200 is taken out unexpectedly from participation
A lottery winner is randomly generated in (i.e. user 201, user 202 and user 203).It should be noted that the node in system
200, a block chain, first terminal equipment 210, second terminal equipment 220 and the third terminal operated in node 200 is set
Standby 230 applicable hardware configurations recited above.
Under above-mentioned running environment, according to the first aspect of the present embodiment, a kind of competing pumping based on block chain is provided
Method, this method are realized by node 200 shown in Fig. 2.Fig. 3 shows the flow diagram of this method, refering to what is shown in Fig. 3,
This method comprises:
S302: the predetermined block of access block chain;
S304: the cryptographic Hash of predetermined block is obtained;And
S306: lottery winner is determined from the multiple participants for participating in competing pumping according to cryptographic Hash and pre-defined algorithm.
Specifically, the risk for existing and artificially manipulating is taken out for tradition present in above-mentioned background technique is competing, competing pumping is caused to tie
Fruit not can guarantee fair and just technical problem, refering to what is shown in Fig. 2, node 200 accesses the block run in node 200 first
The predetermined block of chain.Such as: the serial number of the predetermined block of the block chain 618.
Further, node 200 obtains the cryptographic Hash of predetermined block.When wherein the cryptographic Hash is that block chain generates block
The value generated is waited, cryptographic Hash can not be obtained before block generation by anyone.And this cryptographic Hash is anticipated in statistics
It can not be controlled by anyone in justice.Therefore we specify following block (i.e. predetermined block).Examining in safety
Consider, the difference between the serial number of specified block and the serial number of current newest block is at least 50.Due to POW common recognition mechanism
Characteristic, there are the segment acknowledgement times after the block chain block in the network of ether mill generates.Generating serial number 618 blocks
Afterwards, after generating serial number 668 blocks, the block that serial number 618 can be identified.Therefore, in the present invention,
Difference between the serial number of specified block and the serial number of current newest block is at least 50.
Further, node 200 is according to cryptographic Hash and pre-defined algorithm from determining in the multiple participants for participating in competing pumping
Prize person.Such as: multiple participants are user 201, user 202 and user 203, and node 200 is according to cryptographic Hash and predetermined calculation
Method determines lottery winner (for example, lottery winner can be user 201) from user 201, user 202 and user 203.
To which in this way, node 200 obtains the cryptographic Hash of the predetermined block of block chain, then 200 basis of node
Cryptographic Hash and pre-defined algorithm determine award-winner from multiple participants for participating in competing pumping.It is well known that the block of block chain is breathed out
What uncommon value was randomly generated, and the block chain characteristics such as there is decentralization, transparent, information can not distort, therefore avoid people
Occur the case where competing pumping result to manipulate.The technology effect artificially not manipulated the result is that being randomly generated is taken out to reach competing
Fruit.And then solve the competing pumping of tradition and there is the risk artificially manipulated, it causes competing pumping result not can guarantee fair and just technology and asks
Topic.
Optionally, pre-defined algorithm includes the first algorithm and the second algorithm, and is determined according to cryptographic Hash and pre-defined algorithm
The operation of lottery winner, comprising: using cryptographic Hash as random number seed, random number is generated according to the first algorithm;And according to random
Several and the second algorithm determines lottery winner.
Specifically, pre-defined algorithm includes the first algorithm and the second algorithm.Node 200 is first by acquired predetermined block
Cryptographic Hash is as random number seed (i.e. entropy source).Then node 200 generates random number according to the random number seed and the first algorithm.
Wherein first algorithm can be for by the deterministic algorithm of uniform random number between random number seed generation [0,1].
Further, node 200 determines lottery winner according to the random number and the second algorithm of generation.Wherein, the second algorithm can
With the algorithm for that can determine lottery winner by random number and participant's information, this algorithm is a deterministic algorithm, i.e., given
Random number and participant's information, it is identical that anyone runs the lottery winner that this algorithm obtains at any time.Such as: the calculation
The process of method can be (for betting prize drawing): by user 201, user 202 and user 203, (i.e. multiple participations are bet
Participant) it sorts according to certain sequence.Then accumulative summation is carried out to its amount bet, calculates it and accounts for overall ratio.Then
The participant that given random number meets condition lower than first wins.This meets condition can be with are as follows: does not include it of this participant
Preceding participant bets summation ratio less than given random number;This participant and participant before bet summation ratio be greater than or
Equal to given random number.
In this way, node 200 obtains random number according to cryptographic Hash and the first algorithm, then according to random number and
Two algorithms obtain lottery winner.To, the producing method of lottery winner be it is random, competing pumping result is not artificially controlled, so that competing
It is more fair and just to take out the result generated.
Optionally, it before the operation of the predetermined block of access block chain, executes following operation: disclosing the first algorithm and the
Two algorithms;And the information of multiple participants is obtained, and disclose the information of multiple participants.
Specifically, node 200 access block chain predetermined block operation before, node 200 disclose first algorithm with
Second algorithm, the meaning of the disclosure, which refers to, can obtain the main body (such as: user 201) of any desired acquisition algorithm code
Obtain the identical copy of a code.Wherein it is possible to by the way that the first algorithm and the second algorithm are hosted in believable third
First algorithm and the second algorithm can also be broadcast on ether mill by Fang Jiedian by intelligent contract.Also, disclosed first calculates
Method is that anyone runs this algorithm using identical random number seed at any time, and the random number of generation is identical.It is public
The second algorithm opened is a deterministic algorithm, i.e., any in the case where given random number and the information of multiple participants
The lottery winner that user relies on second algorithm to obtain at any time is identical.
Further, node 200 obtains the information of multiple participants, and discloses the information of multiple participants.For example, with
In the case that family 201, user 202 and user 203 (i.e. multiple participants) participate in competing pumping, node 200 obtains user 201, uses
The information of family 202 and user 203, wherein the information may include the name of user, identity information, the quantity bet and
Participate in the options such as time.Then node 200 discloses the information of multiple participants.In this way, it completes and completely passes through
The competing of block chain (by taking ether mill as an example) is pumped through journey.The maximum characteristic of this competing pumping is that its fair and just property can be examined, and makes
The process that must participate in competing pumping is more transparent, and has ensured that competing pumping information is not easy to be tampered and the more fair public affairs of competing pumping result
Just.
Optionally, the first algorithm and the second algorithm are sent to third party's node and carry out disclosure;And/or by the first algorithm
And second algorithm write-in ether mill in intelligent contract.
Specifically, the first algorithm and the second algorithm are sent to third party's node and carry out disclosure, and/or section by node 200
Point 200 will be in the intelligent contract in the first algorithm and the second algorithm write-in ether mill.Wherein, which has higher
Confidence level, the intelligent contract on an ether mill is construed as the space of one section of storing data and operates on it
Interface.In this way, it so that the first algorithm and the second algorithm are more transparent, has ensured and has not been usurped in the intelligent contract of write-in
Change, so that competing, to be pumped through Cheng Gengjia rigorous.
Optionally, the operation of the information of multiple participants is disclosed, comprising: will be in the information write-in ether mill of multiple participants
Intelligent contract.
Specifically, multiple participants can be user 201, user 202 and user 203, and then node 200 is by user
201, the information of user 202 and user 203 are written in the intelligent contract in ether mill.In this way, it ensure that participation
The information of person will not be tampered.
Optionally, the whether accurate checking request of requests verification lottery winner of input is received;In response to checking request, verifying
Cryptographic Hash whether be preset predetermined block cryptographic Hash;And in the case where verifying the accurate situation of cryptographic Hash, according to predetermined
Whether proof of algorithm lottery winner is accurate.
Specifically, in the case where node 200 generates lottery winner, any participant for participating in this competing pumping can be verified
Whether lottery winner is accurate.Such as: the participant for participating in this competing pumping is user 201, and user 201 has verifying lottery winner
(for example, lottery winner be user 202) whether accurate demand, then node 200 receives user 201 and passes through first terminal equipment
The whether accurate checking request of requests verification lottery winner of 210 inputs.Then, node 200 is in response to the checking request, node
200 verifying cryptographic Hash whether be preset predetermined block cryptographic Hash.Then, in the case where verifying the accurate situation of cryptographic Hash,
Whether node 200 is accurate according to pre-defined algorithm verifying lottery winner.In this way, in the case where generating lottery winner, also increase
Add whether verifying lottery winner correctly operates, so that whether any one user can to verify lottery winner accurate.
Optionally, further includes: whether the first algorithm and the second algorithm in the intelligent contract of verifying are accurate.
Specifically, user have verifying lottery winner whether accurate demand when, node 200 verifies the in intelligent contract
Whether one algorithm and the second algorithm are accurate, so that this is competing, to be pumped through Cheng Gengjia rigorous.
Optionally, further includes: whether the information for verifying multiple participants in intelligent contract is accurate.
Specifically, user have verifying lottery winner whether accurate demand when, node 200 is verified more in intelligent contract
Whether the information of a participant is accurate, so that this is competing, to be pumped through Cheng Gengjia rigorous.
You need to add is that the present invention discloses and a kind of realizes the above-mentioned competing system for being pumped through journey and verification process, it is intended to be
Above-mentioned competing be pumped through in journey and verification process provides good encapsulation for user.The system includes:
(1) block chain interface encapsulation.The purpose of block chain interface encapsulation is to provide for device inside and block chain (ether
Mill) interaction approach.Its main composition has two parts:
1) a geth node.The effect of this node is to provide entering for device and ether mill network interaction
Mouth point.All operations (read and store) for block chain can all pass through this entrance.
2) a set of function interface that interaction data is abstracted as to the receiving of geth node.The function interface
The data broadcasted can will be needed to be converted to the transaction data of geth node receiving and broadcasted in ether mill net
Network.This interface is called in storing data, can be read its content by specified contract address, is used for
Verify contract and competing pumping line code process.
(2) competing pumping mode block encapsulation.Its main composition includes:
1) data-interface is issued, the corresponding intelligent contract of the competing pumping of publication one is used for, required data are whole
Corresponding transaction data is managed into, and then geth node is called to create contract.
2) prize drawing logic interfacing is executed, for reading its data according to the corresponding contract address of competing pumping.
3) authentication module encapsulate, for according to it is competing take out announce contract address and lottery winner address come
Judge no effective when the prize drawing based on this intelligent contract.
To which the predetermined block of block chain is obtained based on the method for the competing pumping of block chain by node 200 according to the present embodiment
Cryptographic Hash, then node 200 determines lottery winner from multiple participants for participating in competing pumpings according to cryptographic Hash and pre-defined algorithm.Cause
This avoids the case where artificially manipulating competing pumping result generation.To reach competing pumping the result is that is be randomly generated is not artificially manipulated
Technical effect, solve competing take out of tradition and there is the risk that artificially manipulates, competing pumping result is caused not can guarantee fair and just skill
Art problem.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules is not necessarily of the invention
It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Embodiment 2
Fig. 4 shows the system 400 based on the competing pumping of block chain according to the embodiment of the present invention, the system 400 and implementation
The method of example 1 is corresponding.Refering to what is shown in Fig. 4, the system 400 includes: access modules 410, for accessing the fate of block chain
Block;Module 420 is obtained, for obtaining the cryptographic Hash of predetermined block;And determining module 430, for according to cryptographic Hash and in advance
Determine algorithm and determines lottery winner from the multiple participants for participating in competing pumping.
Optionally, pre-defined algorithm includes the first algorithm and the second algorithm, and determining module includes: generation submodule, is used
In using cryptographic Hash as random number seed, random number is generated according to the first algorithm;And determine submodule, for according to random number
Lottery winner is determined with the second algorithm.
Optionally, further includes: execution module, for executing following before the operation of the predetermined block of access block chain
Operation: the first algorithm and the second algorithm are disclosed;And the information of multiple participants is obtained, and disclose the information of multiple participants.
Optionally, the operation of the first algorithm and the second algorithm is disclosed, comprising: sends the first algorithm and the second algorithm
Disclosure is carried out to third party's node;And/or the first algorithm and the second algorithm are written to the intelligent contract in ether mill.
Optionally, the operation of the information of multiple participants is disclosed, comprising: will be in the information write-in ether mill of multiple participants
Intelligent contract.
Optionally, further includes: receiving module, accurately requests verification lottery winner for receiving input whether ask by verifying
It asks;First authentication module, in response to checking request, verify cryptographic Hash whether be preset predetermined block Hash
Value;And second authentication module, in the case where verify the accurate situation of cryptographic Hash, according to pre-defined algorithm, whether verifying lottery winner to be quasi-
Really.
Optionally, further includes: third authentication module, for verifying the first algorithm in intelligent contract and the second algorithm is
It is no accurate.
Optionally, further includes: whether the 4th authentication module, the information for verifying multiple participants in intelligent contract are quasi-
Really.
To obtain the Kazakhstan of the predetermined block of block chain by the system 400 based on the competing pumping of block chain according to the present embodiment
Uncommon value, then the system 400 determines award-winner from multiple participants for participating in competing pumping according to cryptographic Hash and pre-defined algorithm.Therefore
Avoid the case where artificially manipulating competing pumping result generation.It takes out to reach competing the result is that artificially not manipulated of being randomly generated
Technical effect solves the competing pumping of tradition and there is the risk artificially manipulated, competing pumping result is caused not can guarantee fair and just technology
Problem.
Embodiment 3
Fig. 5 shows the system 500 based on the competing pumping of block chain according to the embodiment of the present invention, the system 500 and basis
Method described in embodiment 1 is corresponding.Refering to what is shown in Fig. 5, the system 500 includes: processor 510;And memory 520, with
Processor 510 connects, for providing the instruction for handling following processing step for processor 510: the predetermined block of access block chain;
Obtain the cryptographic Hash of predetermined block;And according to cryptographic Hash and pre-defined algorithm from being determined in the multiple participants for participating in competing pumping
Prize person.
Optionally, pre-defined algorithm includes the first algorithm and the second algorithm, and is determined according to cryptographic Hash and pre-defined algorithm
The operation of lottery winner, comprising: using cryptographic Hash as random number seed, random number is generated according to the first algorithm;And according to random
Several and the second algorithm determines lottery winner.
Optionally, memory 520 is also used to provide the instruction for handling following processing step for processor 510: in access region
Before the operation of the predetermined block of block chain, executes following operation: disclosing the first algorithm and the second algorithm;And obtain multiple participations
The information of person, and the information of multiple participants is disclosed.
Optionally, the operation of the first algorithm and the second algorithm is disclosed, comprising: sends the first algorithm and the second algorithm
Disclosure is carried out to third party's node;And/or the first algorithm and the second algorithm are written to the intelligent contract in ether mill.
Optionally, the operation of the information of multiple participants is disclosed, comprising: will be in the information write-in ether mill of multiple participants
Intelligent contract.
Optionally, memory 520 is also used to provide the instruction for handling following processing step for processor 510: receiving input
The whether accurate checking request of requests verification lottery winner;In response to checking request, verify whether cryptographic Hash is preset
The cryptographic Hash of predetermined block;And in the case where verifying the accurate situation of cryptographic Hash, it is whether accurate that lottery winner is verified according to pre-defined algorithm.
Optionally, memory 520 is also used to provide the instruction for handling following processing step for processor 510: verifying intelligence
Whether the first algorithm and the second algorithm in contract are accurate.
Optionally, memory 520 is also used to provide the instruction for handling following processing step for processor 510: verifying intelligence
Whether the information of multiple participants in contract is accurate.
To obtain the Kazakhstan of the predetermined block of block chain by the system 500 based on the competing pumping of block chain according to the present embodiment
Uncommon value, then the system 500 determines award-winner from multiple participants for participating in competing pumping according to cryptographic Hash and pre-defined algorithm.Therefore
Avoid the case where artificially manipulating competing pumping result generation.It takes out to reach competing the result is that artificially not manipulated of being randomly generated
Technical effect solves the competing pumping of tradition and there is the risk artificially manipulated, competing pumping result is caused not can guarantee fair and just technology
Problem.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Various Jie that can store program code such as reservoir (RAM, RandomAccess Memory), mobile hard disk, magnetic or disk
Matter.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of competing pumping method based on block chain characterized by comprising
Access the predetermined block of block chain;
Obtain the cryptographic Hash of the predetermined block;And
Lottery winner is determined from the multiple participants for participating in competing pumping according to the cryptographic Hash and pre-defined algorithm.
2. the method according to claim 1, wherein the pre-defined algorithm include the first algorithm and the second algorithm,
And the operation of the lottery winner is determined according to the cryptographic Hash and the pre-defined algorithm, comprising:
Using the cryptographic Hash as random number seed, random number is generated according to first algorithm;And
The lottery winner is determined according to the random number and second algorithm.
3. according to the method described in claim 2, it is characterized by further comprising:
Before the operation of the predetermined block of access block chain, following operation is executed:
First algorithm and second algorithm are disclosed;And
The information of the multiple participant is obtained, and discloses the information of the multiple participant.
4. according to the method described in claim 3, it is characterized in that, disclosing the behaviour of first algorithm and second algorithm
Make, comprising:
First algorithm and second algorithm are sent to third party's node and carry out disclosure;And/or
By the intelligent contract in first algorithm and second algorithm write-in ether mill.
5. according to the method described in claim 4, it is characterized in that, disclosing the operation of the information of the multiple participant, comprising:
By the intelligent contract in the information write-in ether mill of the multiple participant.
6. according to the method described in claim 5, it is characterized by further comprising:
Receive the whether accurate checking request of lottery winner described in the requests verification of input;
In response to the checking request, verify the cryptographic Hash whether be the preset predetermined block cryptographic Hash;With
And
In the case where verifying the accurate situation of cryptographic Hash, it is whether accurate that the lottery winner is verified according to the pre-defined algorithm.
7. according to the method described in claim 6, it is characterized by further comprising:
It verifies first algorithm in the intelligent contract and whether second algorithm is accurate.
8. according to the method described in claim 6, it is characterized by further comprising:
Whether the information for verifying the multiple participant in the intelligent contract is accurate.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When as processor perform claim require any one of 1 to 8 described in method.
10. a kind of competing pumping system based on block chain characterized by comprising
Access modules, for accessing the predetermined block of block chain;
Module is obtained, for obtaining the cryptographic Hash of the predetermined block;And
Determining module is got the winning number in a bond for being determined from the multiple participants for participating in competing pumping according to the cryptographic Hash and pre-defined algorithm
Person.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811444905.2A CN109615422A (en) | 2018-11-29 | 2018-11-29 | Competing pumping method, system and storage medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811444905.2A CN109615422A (en) | 2018-11-29 | 2018-11-29 | Competing pumping method, system and storage medium based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109615422A true CN109615422A (en) | 2019-04-12 |
Family
ID=66005491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811444905.2A Pending CN109615422A (en) | 2018-11-29 | 2018-11-29 | Competing pumping method, system and storage medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109615422A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110084651A (en) * | 2019-05-07 | 2019-08-02 | 百度在线网络技术(北京)有限公司 | A kind of lottery drawing method based on block chain, device and terminal |
CN110135909A (en) * | 2019-05-15 | 2019-08-16 | 山东工商学院 | Data processing method, system, equipment and storage medium based on zero-knowledge proof |
CN110164021A (en) * | 2019-06-13 | 2019-08-23 | 北京艾摩瑞策科技有限公司 | A kind of random lottery drawing method and equipment of application block chain |
CN110309670A (en) * | 2019-06-18 | 2019-10-08 | 阿里巴巴集团控股有限公司 | A kind of prize drawing background service method, system and equipment |
CN110490590A (en) * | 2019-09-27 | 2019-11-22 | 腾讯科技(深圳)有限公司 | Activation record querying method, device, equipment and storage medium based on block chain |
CN110780848A (en) * | 2019-10-16 | 2020-02-11 | 上海链度科技有限公司 | Double-random generation method and supervision system based on block chain distributed random process |
CN111311386A (en) * | 2020-01-19 | 2020-06-19 | 深圳壹账通智能科技有限公司 | Block chain-based bead shaking method and system, electronic device and storage medium |
CN112508623A (en) * | 2020-12-16 | 2021-03-16 | 福州凌云数据科技有限公司 | Lottery system based on block chain intelligent contract |
CN112527244A (en) * | 2020-12-18 | 2021-03-19 | 上海万向区块链股份公司 | Distributed lottery system and method based on verifiable delay function |
CN112734455A (en) * | 2019-10-29 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Prize exchanging result generating method, device and equipment and readable storage medium |
CN115953199A (en) * | 2023-03-10 | 2023-04-11 | 青岛网信信息科技有限公司 | Marketing campaign method, medium and system for packing prizes by user |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790253A (en) * | 2017-01-25 | 2017-05-31 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | Authentication method and device based on block chain |
CN107392770A (en) * | 2017-08-09 | 2017-11-24 | 北京云知科技有限公司 | A kind of random-number generating method and system based on block chain |
CN107862782A (en) * | 2017-10-27 | 2018-03-30 | 链家网(北京)科技有限公司 | Drawing method and device based on ether mill block chain |
CN108845790A (en) * | 2018-06-20 | 2018-11-20 | 胡晓东 | A kind of application block chain generates the method and relevant apparatus of credible random number |
-
2018
- 2018-11-29 CN CN201811444905.2A patent/CN109615422A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106790253A (en) * | 2017-01-25 | 2017-05-31 | 中钞信用卡产业发展有限公司北京智能卡技术研究院 | Authentication method and device based on block chain |
CN107392770A (en) * | 2017-08-09 | 2017-11-24 | 北京云知科技有限公司 | A kind of random-number generating method and system based on block chain |
CN107862782A (en) * | 2017-10-27 | 2018-03-30 | 链家网(北京)科技有限公司 | Drawing method and device based on ether mill block chain |
CN108845790A (en) * | 2018-06-20 | 2018-11-20 | 胡晓东 | A kind of application block chain generates the method and relevant apparatus of credible random number |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110084651A (en) * | 2019-05-07 | 2019-08-02 | 百度在线网络技术(北京)有限公司 | A kind of lottery drawing method based on block chain, device and terminal |
CN110135909A (en) * | 2019-05-15 | 2019-08-16 | 山东工商学院 | Data processing method, system, equipment and storage medium based on zero-knowledge proof |
CN110164021A (en) * | 2019-06-13 | 2019-08-23 | 北京艾摩瑞策科技有限公司 | A kind of random lottery drawing method and equipment of application block chain |
CN110164021B (en) * | 2019-06-13 | 2019-11-12 | 北京艾摩瑞策科技有限公司 | A kind of random lottery drawing method and equipment of application block chain |
CN110309670A (en) * | 2019-06-18 | 2019-10-08 | 阿里巴巴集团控股有限公司 | A kind of prize drawing background service method, system and equipment |
CN110309670B (en) * | 2019-06-18 | 2023-06-20 | 创新先进技术有限公司 | Lottery background service method, system and equipment |
CN110490590B (en) * | 2019-09-27 | 2023-12-15 | 腾讯科技(深圳)有限公司 | Activity record query method, device, equipment and storage medium based on block chain |
CN110490590A (en) * | 2019-09-27 | 2019-11-22 | 腾讯科技(深圳)有限公司 | Activation record querying method, device, equipment and storage medium based on block chain |
CN110780848A (en) * | 2019-10-16 | 2020-02-11 | 上海链度科技有限公司 | Double-random generation method and supervision system based on block chain distributed random process |
CN110780848B (en) * | 2019-10-16 | 2023-05-12 | 上海链度科技有限公司 | Dual-random generation method and supervision system based on block chain distributed random process |
CN112734455A (en) * | 2019-10-29 | 2021-04-30 | 腾讯科技(深圳)有限公司 | Prize exchanging result generating method, device and equipment and readable storage medium |
CN112734455B (en) * | 2019-10-29 | 2023-09-05 | 腾讯科技(深圳)有限公司 | Method, device and equipment for generating prize exchanging result and readable storage medium |
CN111311386A (en) * | 2020-01-19 | 2020-06-19 | 深圳壹账通智能科技有限公司 | Block chain-based bead shaking method and system, electronic device and storage medium |
WO2021142972A1 (en) * | 2020-01-19 | 2021-07-22 | 深圳壹账通智能科技有限公司 | Blockchain-based rolling-ball lottery method and system, electronic device, and storage medium |
CN112508623A (en) * | 2020-12-16 | 2021-03-16 | 福州凌云数据科技有限公司 | Lottery system based on block chain intelligent contract |
CN112527244A (en) * | 2020-12-18 | 2021-03-19 | 上海万向区块链股份公司 | Distributed lottery system and method based on verifiable delay function |
CN115953199A (en) * | 2023-03-10 | 2023-04-11 | 青岛网信信息科技有限公司 | Marketing campaign method, medium and system for packing prizes by user |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109615422A (en) | Competing pumping method, system and storage medium based on block chain | |
EP3531649B1 (en) | Method and device for allocating augmented reality-based virtual objects | |
CN106682984B (en) | Transaction business process method and system based on block chain | |
DE69833381T3 (en) | DEVICE AND METHOD FOR VERIFYING HONEST GAME TRANSACTIONS IN A COMMUNICATION NETWORK | |
CN109345387A (en) | Across the chain method of commerce of block chain, across chain communication device and storage medium | |
US11083960B2 (en) | Cryptographically based system and protocol for provably fair token-based games | |
ES2871053T3 (en) | Preventing Misrepresentation of Input Data by Participants in Multi-Party Secure Computing | |
CN110417558A (en) | Verification method and device, the storage medium and electronic device of signature | |
CN109078333B (en) | Method and device for matching game friends | |
CN107912082A (en) | Method is provided by the messenger service of the open chat room providing message service corresponding to link information and performs message server and terminal that the messenger service provides method | |
CN106993233A (en) | Information processing method and device based on net cast | |
KR20160077131A (en) | Data processing method based on instant messaging or social applications, and device thereof | |
CN108810643A (en) | A kind of red packet distribution method, device and live broadcast system | |
CN108140280A (en) | For the method and system for income of playing | |
CN110365479A (en) | Random digit generation method and device based on block chain | |
CN109905474A (en) | Data safety sharing method and device based on block chain | |
CN106846034A (en) | Share generation method, device and the electronic equipment of the page | |
CN110347871A (en) | The method, apparatus and storage medium be shown to reply video | |
CN113822973A (en) | Method, apparatus, electronic device, medium, and program for operating avatar | |
CN110290192A (en) | The storage of data distribution formula and data capture method, device based on block chain | |
CN109559092A (en) | A kind of method and apparatus for issuing, being arranged and handling learning tasks | |
CN113282418A (en) | Model aggregation processing method and device | |
KR20190124612A (en) | Block Chain based Event Drawing Method | |
CN109224451B (en) | Game development method and device based on block chain subchain and storage medium | |
CN109377366A (en) | Logical card processing method, device and storage medium based on block chain |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190412 |
|
RJ01 | Rejection of invention patent application after publication |