CN110245512A - Lottery data cochain method and its equipment applied to block chain - Google Patents
Lottery data cochain method and its equipment applied to block chain Download PDFInfo
- Publication number
- CN110245512A CN110245512A CN201910547013.3A CN201910547013A CN110245512A CN 110245512 A CN110245512 A CN 110245512A CN 201910547013 A CN201910547013 A CN 201910547013A CN 110245512 A CN110245512 A CN 110245512A
- Authority
- CN
- China
- Prior art keywords
- client
- lottery data
- lottery
- public key
- data
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/602—Providing cryptographic facilities or services
-
- 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
- G06Q50/00—Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
- G06Q50/34—Betting or bookmaking, e.g. Internet betting
Abstract
This application discloses the lottery data cochain method and its equipment that are applied to block chain, block chain node receives the lottery data cochain request that the first client is sent;Triggering verifies intelligent contract, the intelligent contract of the verification verifies the identity of first client, after verification passes through, the lottery data is encrypted with first client public key, and executes the cochain process of the lottery data of the first client public key encryption;The block chain node receives the inquiry request of the lottery data of the second client, and the inquiry request of the lottery data includes the second client public key;Triggering verifies intelligent contract, the intelligent contract of the verification verifies the identity of second client, after verification passes through, the lottery data is encrypted with second client public key, and executes the cochain process of the lottery data of the second client public key encryption.The application can disclose lottery data cochain credible.
Description
Technical field
This application involves block chain technical fields, more particularly to applied to block chain lottery data cochain method and its set
It is standby.
Background technique
Currently, block chain technology is the peer-to-peer network based on decentralization, with open source software Cryptography Principles, when ordinal number
It is combined according to common recognition mechanism, to ensure the coherent of each node in distributed data base and continue, so that information is verified immediately, can
Retrospect, but be difficult to tamper with and can not shield, to create a set of privacy, shareable value system efficiently, safe.
Existing lottery platform is all the database using centralization, saves the lottery ticket number of commodity, and the lottery ticket time is used
The contents such as the mobile phone that the lottery ticket at family uses;However, the database of lottery platform, there is data to be tampered, the authenticity of data
The problems such as cannot be guaranteed, and the operation platform of lottery ticket modifies the lottery ticket number of certain commodity, deleting situations such as user's difference is commented.Especially
To some small lottery platforms, the Information Security and authenticity of commodity all be cannot be guaranteed: and commodity or service
Lottery ticket content it is untrue, can mislead to user, influence the experience of user.
Therefore, how can not distort based on block chain, the data of lottery platform are stored in block chain by believable mode
On, become urgent problem to be solved.
Above content is only used for the technical solution that auxiliary understands the application, does not represent and recognizes that above content is existing skill
Art.
Summary of the invention
To solve the above-mentioned problems, the application provides the lottery data cochain method and its equipment for being applied to block chain, should
Method can allow the data cochain of lottery ticket, so that the lottery data on chain is credible, it is open and clear.
The application first aspect provides the lottery data cochain method for being applied to block chain, which comprises
Block chain node receives the lottery data cochain request that the first client is sent, the lottery data cochain request packet
Include first client public key;
Triggering verifies intelligent contract, and the intelligent contract of the verification verifies the identity of first client, verifies
By rear, the lottery data is encrypted with first client public key, and executes first client public key and adds
The cochain process of close lottery data;
The block chain node receives the inquiry request of the lottery data of the second client, and the lottery data is looked into
Asking request includes the second client public key;
Triggering verifies intelligent contract, and the intelligent contract of the verification verifies the identity of second client, verifies
By rear, the lottery data is encrypted with second client public key, and executes second client public key and adds
The cochain process of close lottery data.
In a kind of possible embodiment, the method also includes: the block chain node receives second client
End sends lottery data inquiry request;
The block chain node sends lottery data inquiry response to second client, and the lottery data inquiry is rung
It should include the lottery data of the second client public key encryption, in order to which the second client own private key is to second visitor
The lottery data of family end public key encryption is decrypted.
In a kind of possible embodiment, the lottery data is that the corresponding user of first client is flat in lottery ticket
The operation data of platform, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
In a kind of possible embodiment, the first client own public key encrypts the lottery data, tool
Body are as follows: first client carries out the encryption of preset ratio with own public key to the lottery data.
In a kind of possible embodiment, the lottery data includes relating attribute and dereferenced attribute;Wherein, described
The attribute value of lottery data relating attribute is superimposed automatically.
The application second aspect provides the lottery data cochain equipment for being applied to block chain, and the equipment is block chain link
Point, the equipment include receiving unit and processing unit;Wherein,
The receiving unit, receives the lottery data cochain request that the first client is sent, and the lottery data cochain is asked
It asks including first client public key;
The processing unit, triggering verifies intelligent contract, described to verify intelligent contract to the identity of first client
It is verified, after verification passes through, the lottery data is encrypted with first client public key, and execute described first
The cochain process of the lottery data of client public key encryption;
The receiving unit, receives the inquiry request of the lottery data of the second client, and the lottery data is looked into
Asking request includes the second client public key;
The processing unit, triggering verifies intelligent contract, described to verify intelligent contract to the identity of second client
It is verified, after verification passes through, the lottery data is encrypted with second client public key, and execute described second
The cochain process of the lottery data of client public key encryption.
In a kind of possible embodiment, the equipment includes transmission unit;The receiving unit receives described second
Client sends lottery data inquiry request;
The transmission unit sends lottery data inquiry response to second client, and the lottery data inquiry is rung
It should include the lottery data of the second client public key encryption, in order to which the second client own private key is to second visitor
The lottery data of family end public key encryption is decrypted.
In a kind of possible embodiment, the lottery data is that the corresponding user of first client is flat in lottery ticket
The operation data of platform, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
In a kind of possible embodiment, the first client own public key encrypts the lottery data, tool
Body are as follows: first client carries out the encryption of preset ratio with own public key to the lottery data.
In a kind of possible embodiment, the lottery data includes relating attribute and dereferenced attribute;Wherein, coloured silk is stated
The attribute value of ticket data relating attribute is superimposed automatically.
The application can allow the data cochain of lottery ticket, so that the lottery data on chain is credible, it is open and clear.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.
Fig. 1 is the lottery data cochain method flow schematic diagram provided by the embodiments of the present application applied to block chain;
Fig. 2 is lottery data cochain method flow schematic diagram that is provided by the embodiments of the present application and being applied to block chain;
Fig. 3 is the lottery data cochain device structure schematic diagram provided by the embodiments of the present application applied to block chain.
Specific embodiment
For the clearer general idea for illustrating the application, carry out in an illustrative manner with reference to the accompanying drawings of the specification detailed
It describes in detail bright.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing
Similar object, without being used to describe a particular order or precedence order.It should be understood that the sequence used in this way is in appropriate feelings
It can be interchanged under condition, so that the embodiment of the present invention described herein can be other than those of illustrating or describing herein
Sequence implement.
In addition, term " includes " and " having " and their any deformation, it is intended that covering non-exclusive includes example
Such as, the process, method, system, product or equipment for containing a series of steps or units those of are not necessarily limited to be clearly listed
Step or unit, but may include being not clearly listed or intrinsic for these process, methods, product or equipment other
Step or unit.
So-called block chain node and client in the embodiment of the present application, it can be understood as respond extraneous certain trigger item
Part, and the abstract machine that state is converted is done by certain rule, it can be mobile phone, tablet computer, palm PC, individual's PC computer etc.
It can be according to application software and the equipment that can be networked.
As shown in Figure 1, being applied to the lottery data cochain method of block chain, the method includes the steps S101-S104.
S101, block chain node receive the lottery data cochain request that the first client is sent, the lottery data cochain
Request includes first client public key.
S102, triggering verify intelligent contract, and the intelligent contract of the verification verifies the identity of first client,
After verification passes through, the lottery data is encrypted with first client public key, and it is public to execute first client
The cochain process of the lottery data of key encryption.
S103, the block chain node receive the inquiry request of the lottery data of the second client, the lottery ticket number
According to inquiry request include the second client public key.
S104, triggering verify intelligent contract, and the intelligent contract of the verification verifies the identity of second client,
After verification passes through, the lottery data is encrypted with second client public key, and it is public to execute second client
The cochain process of the lottery data of key encryption.
In one example, the method also includes: the block chain node receives second client and sends lottery ticket
Data inquiry request;
The block chain node sends lottery data inquiry response to second client, and the lottery data inquiry is rung
It should include the lottery data of the second client public key encryption, in order to which the second client own private key is to second visitor
The lottery data of family end public key encryption is decrypted.
In one example, the lottery data is operand of the corresponding user of first client in lottery platform
According to, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
In one example, the first client own public key encrypts the lottery data, specifically: described
One client carries out the encryption of preset ratio with own public key to the lottery data.
In one example, the lottery data includes relating attribute and dereferenced attribute;Wherein, the lottery data closes
Attribute attribute value is superimposed automatically.
In above-mentioned example, operator of first client as lottery data, the second client is looked into as lottery data
Inquiry person;For some specific lottery platform, every user either lottery data operator, be also possible to lottery data
Inquiry.
Below by taking Fig. 2 as an example, the cochain method flow for the lottery data of the application being applied on block chain is said
Bright, this method includes S201-S209.
S201, the first client send lottery data cochain and request to give block chain node, in lottery data cochain request
Including the first client public key.
S202, triggers the verification intelligence contract on block chain, the verification intelligence contract to the identity of first client into
Row verification, and the coloured silk that the lottery data is encrypted with first client public key, and first client public key is encrypted
Ticket data executes cochain process.
Block chain node encrypts lottery data with the first client public key, which can be lottery data is complete
Portion's field is encrypted, and is also possible to encrypt the part field of the lottery data, such as: only to the comment content of privacy
It is encrypted;It is also possible to not encrypt the lottery data.
In addition, the lottery data includes being divided into two attribute, relating attribute and dereferenced attribute.Such as: user buys color
The ticket time belongs to dereferenced attribute, and the lottery ticket time buying of every user may be stored on block chain;Such as: a certain phase
The quantity purchase of lottery ticket is exactly relating attribute, includes lottery ticket quantity purchase in the data format of lottery ticket, as long as there have user to buy to be color
Ticket, lottery ticket purchase number can be superimposed automatically.
The verification refer to judge first client whether be the lottery platform user, the only user of the lottery platform
It can just have permission and the lottery data is subjected to cochain.
It should be noted that upper chain process is the conventional process of this field, without being described in detail.Such as: in workload
It proves to be packaged data under PoW common recognition mode, verify, the block chain node for getting book keeping operation power can be by the packing block
It is placed on next block of current block, as new block cochain.
Lottery ticket purchase number refers to user's selection or directly desired lottery number;Lottery ticket issue refers to announcing the winners in a lottery the phase for lottery ticket
Number.
S203, the block chain node send lottery data cochain and respond to first client.
S204, the second client send the lottery data inquiry request and give block chain node, the lottery data inquiry request
Including second client public key.
At this point, the corresponding user of the second client can be after seeing the lottery data, which is looked into
It askes.The first client and the second client are all the terminal devices for being equipped with decentralization application software in the application, all may be used
It is interacted with directly clicking through row information with the block chain link on block chain.
S205, triggers the verification intelligence contract on block chain, which carries out the identity of the second client
Verification encrypts the lottery data with second client public key, and second client public key is added after verification passes through
Close lottery data executes cochain process.
After verification passes through, process is performed the next step;Verification does not pass through, Flow ends.
S206, the block chain node send out lottery data inquiry response to the second client.
S207, the second client send lottery data inquiry request and give block chain node.
S208, the block chain node send lottery data inquiry response and give second client, and lottery data inquiry is rung
It should include the lottery data of the second client public key encryption.
S209, the second client are decrypted with the lottery data that own private key encrypts second client public key, are obtained
To the lottery data.
The application can allow the data cochain of lottery ticket, and the cochain process is open and clear, any user of same lottery platform
It can check the lottery data;It ensure that the authenticity of lottery data.
It should be noted that client is directly to carry out the interaction of information, block chain with the node of block chain in the application
Information is stored directly on block chain by node, not the server of centralization, so that it is credible to allow lottery data more to disclose;And
It is not that the server of existing client and centralization interacts.
As shown in figure 3, being applied to the lottery data cochain equipment of block chain, the equipment is block chain node, described to set
Standby includes receiving unit and processing unit.
The receiving unit, receives the lottery data cochain request that the first client is sent, and the lottery data cochain is asked
It asks including first client public key;
The processing unit, triggering verifies intelligent contract, described to verify intelligent contract to the identity of first client
It is verified, after verification passes through, the lottery data is encrypted with first client public key, and execute described first
The cochain process of the lottery data of client public key encryption;
The receiving unit, receives the inquiry request of the lottery data of the second client, and the lottery data is looked into
Asking request includes the second client public key;
The processing unit, triggering verifies intelligent contract, described to verify intelligent contract to the identity of second client
It is verified, after verification passes through, the lottery data is encrypted with second client public key, and execute described second
The cochain process of the lottery data of client public key encryption.
In one example, the equipment includes transmission unit;The receiving unit receives second client and sends
Lottery data inquiry request;
The transmission unit sends lottery data inquiry response to second client, and the lottery data inquiry is rung
It should include the lottery data of the second client public key encryption, in order to which the second client own private key is to second visitor
The lottery data of family end public key encryption is decrypted.
In one example, the lottery data is operand of the corresponding user of first client in lottery platform
According to, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
In one example, the first client own public key encrypts the lottery data, specifically: described
One client carries out the encryption of preset ratio with own public key to the lottery data.
In one example, the lottery data includes relating attribute and dereferenced attribute;Wherein, the lottery data closes
Attribute attribute value is superimposed automatically.
The application can allow the data cochain of lottery ticket, and the cochain process is open and clear, any user of same lottery platform
It can check the lottery data;It ensure that the authenticity of lottery data.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure
Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate
The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description.
These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.
Professional technician can use different methods to achieve the described function each specific application, but this realization
It is not considered that exceeding scope of the present application.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (10)
1. being applied to the lottery data cochain method of block chain, which is characterized in that the described method includes:
Block chain node receives the lottery data cochain request that the first client is sent, and the lottery data cochain request includes institute
State the first client public key;
Triggering verifies intelligent contract, and the intelligent contract of the verification verifies the identity of first client, and verification passes through
Afterwards, the lottery data is encrypted with first client public key, and executes the first client public key encryption
The cochain process of lottery data;
The block chain node receives the inquiry request of the lottery data of the second client, and the inquiry of the lottery data is asked
It asks including the second client public key;
Triggering verifies intelligent contract, and the intelligent contract of the verification verifies the identity of second client, and verification passes through
Afterwards, the lottery data is encrypted with second client public key, and executes the second client public key encryption
The cochain process of lottery data.
2. the method according to claim 1, wherein the method also includes:
The block chain node receives second client and sends lottery data inquiry request;
The block chain node sends lottery data inquiry response to second client, the lottery data inquiry response packet
The lottery data of the second client public key encryption is included, in order to which the second client own private key is to second client
The lottery data of public key encryption is decrypted.
3. the method according to claim 1, wherein the lottery data is the corresponding use of first client
Operation data of the family in lottery platform, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
4. the method according to claim 1, wherein the first client own public key is to the lottery ticket number
According to encryption, specifically:
First client carries out the encryption of preset ratio with own public key to the lottery data.
5. the method according to claim 1, wherein the lottery data includes relating attribute and dereferenced category
Property;Wherein,
The attribute value of the lottery data relating attribute is superimposed automatically.
6. being applied to the lottery data cochain equipment of block chain, which is characterized in that the equipment is block chain node, the equipment
Including receiving unit and processing unit;Wherein,
The receiving unit receives the lottery data cochain request that the first client is sent, the lottery data cochain request packet
Include first client public key;
The processing unit, triggering verify intelligent contract, and the intelligence contract that verifies carries out the identity of first client
Verification encrypts the lottery data with first client public key, and execute first client after verification passes through
Hold the cochain process of the lottery data of public key encryption;
The receiving unit, receives the inquiry request of the lottery data of the second client, and the inquiry of the lottery data is asked
It asks including the second client public key;
The processing unit, triggering verify intelligent contract, and the intelligence contract that verifies carries out the identity of second client
Verification encrypts the lottery data with second client public key, and execute second client after verification passes through
Hold the cochain process of the lottery data of public key encryption.
7. equipment according to claim 6, which is characterized in that the equipment includes transmission unit;
The receiving unit receives second client and sends lottery data inquiry request;
The transmission unit sends lottery data inquiry response to second client, the lottery data inquiry response packet
The lottery data of the second client public key encryption is included, in order to which the second client own private key is to second client
The lottery data of public key encryption is decrypted.
8. equipment according to claim 6, which is characterized in that the lottery data is the corresponding use of first client
Operation data of the family in lottery platform, including lottery ticket purchase number, lottery number, lottery ticket issue and lottery ticket time buying.
9. equipment according to claim 6, which is characterized in that the first client own public key is to the lottery ticket number
According to encryption, specifically:
First client carries out the encryption of preset ratio with own public key to the lottery data.
10. equipment according to claim 6, which is characterized in that the lottery data includes relating attribute and dereferenced category
Property;Wherein,
The attribute value of the lottery data relating attribute is superimposed automatically.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910547013.3A CN110245512A (en) | 2019-06-24 | 2019-06-24 | Lottery data cochain method and its equipment applied to block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910547013.3A CN110245512A (en) | 2019-06-24 | 2019-06-24 | Lottery data cochain method and its equipment applied to block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110245512A true CN110245512A (en) | 2019-09-17 |
Family
ID=67888878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910547013.3A Pending CN110245512A (en) | 2019-06-24 | 2019-06-24 | Lottery data cochain method and its equipment applied to block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110245512A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127159A (en) * | 2019-12-24 | 2020-05-08 | 北京海益同展信息科技有限公司 | Lottery management method, lottery management system, computing device, and medium |
-
2019
- 2019-06-24 CN CN201910547013.3A patent/CN110245512A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111127159A (en) * | 2019-12-24 | 2020-05-08 | 北京海益同展信息科技有限公司 | Lottery management method, lottery management system, computing device, and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101785243B (en) | Transferable restricted security tokens | |
CN110247918A (en) | Number cochain method and its equipment are shaken applied to block chain | |
CN110232286A (en) | A kind of electric quotient data cochain method and its equipment for applying intelligent contract | |
CN110247923A (en) | Number cochain method and its equipment are shaken based on block chain | |
CN103763370B (en) | A kind of method, system and device for changing mobile terminal workspace screen-lock password | |
CN104618390A (en) | Website data feedback method, display method and system and processing system | |
CN110266696A (en) | A kind of evaluation data cochain method and its equipment applied to block chain | |
CN110247921A (en) | A kind of polled data cochain method and its equipment for applying intelligent contract | |
CN110266698A (en) | Pass through the Knowledge Sharing data cochain method and its equipment of block chain | |
CN110264206A (en) | A kind of electric quotient data cochain method and its equipment based on block chain | |
CN110263529A (en) | Number cochain method and its equipment are shaken using intelligent contract | |
CN110278270A (en) | A kind of polled data cochain method and its equipment based on block chain | |
CN110245512A (en) | Lottery data cochain method and its equipment applied to block chain | |
CN110232287A (en) | Pass through the shared economic data cochain method and its equipment of block chain | |
CN110263563A (en) | By means of the ad click data cochain method and its equipment of block chain | |
CN110263100A (en) | Using the shared economic data cochain method and its equipment of intelligent contract | |
CN110266695A (en) | Using the lottery data cochain method and its equipment of intelligent contract | |
CN110266699A (en) | Prize drawing data cochain method and its equipment applied to block chain | |
CN110213294A (en) | By means of the community data cochain method and its equipment of block chain | |
CN110264205A (en) | A kind of electric quotient data cochain method and its equipment applied to block chain | |
CN110233853A (en) | It is a kind of to thumb up data cochain method and its equipment applied to block chain | |
CN110233852A (en) | Prize drawing data cochain method and its equipment based on block chain | |
CN110263562A (en) | A kind of evaluation data cochain method and its equipment based on block chain | |
CN110225056A (en) | A kind of evaluation data cochain method and its equipment for applying intelligent contract | |
CN110266691A (en) | Credit data cochain method and its equipment based on block chain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |