CN118608169A - Lottery identity verification method combining with blockchain - Google Patents
Lottery identity verification method combining with blockchain Download PDFInfo
- Publication number
- CN118608169A CN118608169A CN202410789930.3A CN202410789930A CN118608169A CN 118608169 A CN118608169 A CN 118608169A CN 202410789930 A CN202410789930 A CN 202410789930A CN 118608169 A CN118608169 A CN 118608169A
- Authority
- CN
- China
- Prior art keywords
- lottery
- user
- blockchain
- data
- identity verification
- 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
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012795 verification Methods 0.000 title claims abstract description 18
- 230000008569 process Effects 0.000 claims description 5
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 238000002347 injection Methods 0.000 claims description 3
- 239000007924 injection Substances 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 238000013500 data storage Methods 0.000 abstract description 2
- 239000000243 solution Substances 0.000 description 3
- 230000004075 alteration Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the technical field of block chains, in particular to a lottery identity verification method combining with a block chain, which comprises the following steps: inputting lottery serial numbers or user public key query data; inquiring and obtaining a user data packet; the user acquires the private key in a segmented way and decrypts the data packet; the beneficial effects are as follows: according to the lottery identity verification method combining the blockchain, a distributed data storage environment is established based on the blockchain technology, each selling base station is regarded as each node, the blockchain consensus among the nodes is achieved, the lottery and the user data are stored, and the nodes can be managed by selecting different managers through strategies.
Description
Technical Field
The invention relates to the technical field of blockchains, in particular to a lottery identity verification method combining a blockchain.
Background
The lottery industry has come from off-line physical support, purchasing lottery requires an off-line physical terminal to print out an entity ticket, and verifying the authenticity of the lottery requires going to an off-line entity store to verify the lottery entity paper ticket using special equipment.
In the prior art, the verification process is very complicated, and the physical lottery ticket is easy to lose or damage, so that a purchaser cannot exchange or check, and the purchaser is likely to have the situation that the prize is not exchanged.
In addition, the purchase of the lottery is not bound with the information of the purchaser, so that a loophole is reserved for illegal actions, the situation that someone is led can occur, and the loophole can be drilled by illegal molecules.
Disclosure of Invention
The present invention is directed to a method for verifying lottery identities by combining blockchain, so as to solve the problems set forth in the background art.
In order to achieve the above purpose, the present invention provides the following technical solutions: a lottery identity verification method incorporating a blockchain, the lottery identity verification method comprising the steps of:
inputting lottery serial numbers or user public key query data;
inquiring and obtaining a user data packet;
the user acquires the private key in a segmented way and decrypts the data packet.
Preferably, in the verification process, the history record of purchasing the lottery ticket is queried, the user uses the private key to decrypt, and the authenticity is judged according to the decryption result.
Preferably, the private key is stored in a segmented manner, and is stored in a plurality of mailbox segments filled in during registration, and the user calls back at the same time when the user needs to call.
Preferably, when a user purchases a lottery, the lottery website generates a unique lottery serial number, and records the serial number, the lottery number, the injection, the time stamp and the user public key; acquiring user information, and encrypting by using a public key; packaging all data, and sending a proposal to a blockchain network by a node; consensus is reached that the data is stored.
Preferably, the method is used.
Preferably, the method is used.
Preferably, the method is used.
Compared with the prior art, the invention has the beneficial effects that:
According to the lottery identity verification method combining the blockchain, a distributed data storage environment is established based on a blockchain technology, each selling base station is regarded as each node, blockchain consensus is achieved among the nodes, lottery and user data are stored, each node can be managed by selecting different managers through strategies, due to the fact that the number of the nodes is huge, when a certain node changes certain data, hash values of the blocks are changed, content newly generated by the node cannot be approved by most nodes, and therefore tampering is prevented, and reliability and effectiveness of the lottery are improved. Due to the characteristics of the block chain, the purchasing record is kept fair and transparent.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
In order to make the objects, technical solutions, and advantages of the present invention more apparent, the embodiments of the present invention will be further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are some, but not all, embodiments of the present invention, are intended to be illustrative only and not limiting of the embodiments of the present invention, and that all other embodiments obtained by persons of ordinary skill in the art without making any inventive effort are within the scope of the present invention.
Example 1
Referring to fig. 1, the present invention provides a technical solution: a lottery identity verification method incorporating a blockchain, the lottery identity verification method comprising the steps of:
inputting lottery serial numbers or user public key query data;
inquiring and obtaining a user data packet;
the user acquires the private key in a segmented way and decrypts the data packet;
In the verification process, firstly, the history record of buying lottery is inquired, the user uses the private key of the user to decrypt, the authenticity is judged according to the decryption result, the storage of the private key is stored in a segmented mode, a plurality of mail boxes filled in during registration are stored in a segmented mode, and when the user needs to call, the user calls and returns at the same time; when a user purchases a lottery, the lottery website generates a unique lottery serial number, and records the serial number, the lottery number, the injection, the time stamp and the user public key; acquiring user information, and encrypting by using a public key; packaging all data, and sending a proposal to a blockchain network by a node; consensus is reached that the data is stored.
Example two
Based on the first embodiment, the specific implementation manner is as follows:
1. generating unique feature codes according to ticket face information of the lottery ticket, wherein each lottery ticket has unique feature codes and cannot be repeated, and the unique feature codes are equivalent to unique identification codes (IDs) of the lottery ticket and are used for guaranteeing uniqueness of lottery ticket purchase;
2. Further, the feature codes are used for generating lottery data by combining the purchased digital number combination, the purchase date and time stamp, the purchase period number, the purchase input lottery bets, the purchase website address and the user public key;
3. Further, acquiring user information, and identity information of a purchaser such as name, gender and identity card number (wherein, user data is input by registering personal information, public and private key pairs are generated during input and are saved by a cloud or a user), purchase initiating places, purchase certificates, payment information such as payment amount, payment time, payment receipt and the like, and generating user data from the user identity and the behavior;
4. The user data is encrypted by using a user public key, personal privacy information is encrypted and protected, the encrypted data is returned, the information can only be decrypted by using the user private key, the private key is not stored in a blockchain, and the user stores the private key by himself;
5. generating an original data fingerprint by using a hash algorithm in combination with lottery data and user encryption personal information and timestamp information;
6. packaging lottery original data, encrypted data of an individual user and data fingerprints together, storing the data in a distributed block chain network, and synchronizing the data transmitted to a master node after the data are transmitted to be consensus by a block chain node;
7. When verification is carried out, inputting lottery data or scanning lottery data, inquiring, checking whether lottery information is correct, inputting a private key by a user, and pairing, if the lottery information is failed, proving that the lottery information is not the prize-exchanging person, the same information can not leak the true purchaser information of the lottery, and if someone inquires the specific purchasing condition of a certain period of lottery, the corresponding purchasing information can not be obtained through decryption.
8. On the other hand, the block chain is characterized in that the original lottery data and the purchaser information are stored after the hash algorithm, if a certain node is changed, the hash value is also changed, so that the tampering is detected, the information is further guaranteed to be unable to be tampered, and the trusted lottery value is increased.
9. The invention according to the scheme is characterized in that the public key is stored in the lottery data, so that the information can be retrieved, the user can inquire the data on the chain, the public key of the inquirer is used for inquiring the information of the purchase in the past, the traceability of the information is ensured, and the basic information of the user is not exposed.
When the data is searched, the information of the purchaser is not exposed, the privacy of the purchaser is protected, the required information and the history record are searched, and the traceability of the information is fully ensured; in addition, when the lottery information is verified, a purchaser is required to provide a private key, the purchasing information is decrypted, whether the purchaser is himself or herself is judged according to the decrypted result, namely the true lottery is judged, and if the purchaser is the true lottery, the false lottery is judged as the false lottery, and the verification process is convenient, simple and efficient and has 100% of accuracy.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (4)
1. A lottery identity verification method combined with a blockchain is characterized in that: the lottery identity verification method comprises the following steps:
inputting lottery serial numbers or user public key query data;
inquiring and obtaining a user data packet;
the user acquires the private key in a segmented way and decrypts the data packet.
2. The blockchain-combined lottery authentication method of claim 1, wherein: in the verification process, the history record of purchasing lottery is firstly inquired, the user uses the private key to decrypt, and the authenticity is judged according to the decryption result.
3. The blockchain-combined lottery authentication method of claim 2, wherein: the private key is stored in a sectional mode, a plurality of mailbox sections filled in during registration are stored, and when the user needs to call, the user calls and returns at the same time.
4. The blockchain-combined lottery authentication method of claim 1, wherein: when a user purchases a lottery, the lottery website generates a unique lottery serial number, and records the serial number, the lottery number, the injection, the time stamp and the user public key; acquiring user information, and encrypting by using a public key; packaging all data, and sending a proposal to a blockchain network by a node; consensus is reached that the data is stored.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410789930.3A CN118608169A (en) | 2024-06-19 | 2024-06-19 | Lottery identity verification method combining with blockchain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410789930.3A CN118608169A (en) | 2024-06-19 | 2024-06-19 | Lottery identity verification method combining with blockchain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118608169A true CN118608169A (en) | 2024-09-06 |
Family
ID=92564437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410789930.3A Pending CN118608169A (en) | 2024-06-19 | 2024-06-19 | Lottery identity verification method combining with blockchain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118608169A (en) |
-
2024
- 2024-06-19 CN CN202410789930.3A patent/CN118608169A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12106311B2 (en) | Methods and systems for making, tracking and authentication of products | |
CN106452756B (en) | Can the safe Quick Response Code construction verification method of off-line verification and device | |
US8856533B2 (en) | Device, system and method for determining authenticity of an item | |
KR102194421B1 (en) | Method and apparatus for marking manufactured items using physical characteristic | |
KR101276902B1 (en) | Method and device for obtaining item information using rfid tags | |
US7283630B1 (en) | Verification of authenticity of goods by use of random numbers | |
JP2022514784A (en) | Methods and systems for preparing and performing object authentication | |
JP2007507120A (en) | Product protection gateway and method for checking product authenticity | |
CN113469716A (en) | Product tracing method and system based on block chain and identification analysis | |
CN102855577A (en) | Multiple merchandise anti-counterfeiting verification method based on cloud computing | |
CN118608169A (en) | Lottery identity verification method combining with blockchain | |
CN108830626A (en) | A kind of two-dimension code anti-counterfeit traceability system and method suitable for e-commerce | |
CN117764584B (en) | Digital asset management method and device and electronic equipment | |
CN113888192B (en) | RFID lightweight authentication method based on block chain in Chinese herbal medicine product traceability platform | |
CN118115175A (en) | RSA algorithm-based anti-counterfeiting tracing method | |
CN108830619A (en) | A kind of encryption system of commodity counterfeit prevention | |
US20030014309A1 (en) | Method for judging unauthorized use of point information and promotion system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |