CN111901104A - License plate selection method based on block chain - Google Patents
License plate selection method based on block chain Download PDFInfo
- Publication number
- CN111901104A CN111901104A CN202010663781.8A CN202010663781A CN111901104A CN 111901104 A CN111901104 A CN 111901104A CN 202010663781 A CN202010663781 A CN 202010663781A CN 111901104 A CN111901104 A CN 111901104A
- Authority
- CN
- China
- Prior art keywords
- random number
- block chain
- license plate
- user
- period
- 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
- 238000010187 selection method Methods 0.000 title description 5
- 238000000034 method Methods 0.000 claims abstract description 19
- 238000012216 screening Methods 0.000 claims abstract description 14
- 230000008569 process Effects 0.000 description 5
- 238000012797 qualification Methods 0.000 description 3
- 238000012163 sequencing technique Methods 0.000 description 3
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 2
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 2
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 1
- 229910052782 aluminium Inorganic materials 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000003814 drug Substances 0.000 description 1
- 229910052742 iron Inorganic materials 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0861—Generation of secret information including derivation or calculation of cryptographic keys or passwords
- H04L9/0869—Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R13/00—Elements for body-finishing, identifying, or decorating; Arrangements or adaptations for advertising purposes
- B60R13/10—Registration, licensing, or like devices
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C15/00—Generating random numbers; Lottery apparatus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0442—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply asymmetric encryption, i.e. different keys for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/104—Peer-to-peer [P2P] networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mechanical Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a license plate lottery method based on a block chain, which relates to the technical field of license plate lottery and comprises the following steps: a user i obtains a public key PK published by a server side in a period and generates a random number S through a pseudo-random number generatori(ii) a For generating random number SiEncrypting to obtain ciphertext Ci(ii) a User i sends ciphertext CiUploading to a block chain; the server side discloses a private key SK, and uses SK to pair all submitted ciphertexts C in the periodiDecrypting to obtain random number set { S }iI belongs to Q, wherein Q is all the screened compliant users; service end to random number set{SiI belongs to Q to carry out random reordering, and a new random number set { nS is obtainediI belongs to Q; obtaining a random number nSiAnd ranking the ranking results, wherein the ranking of the results is the selected users at the top. According to the invention, through screening out the selected users, the public verifiability of the license plate selection is realized, the screening is efficient, and the application range is wide.
Description
Technical Field
The invention relates to the technical field of license plate lottery, in particular to a license plate lottery method based on a block chain.
Background
The license plate, commonly called license plate, also referred to as vehicle number plate, is a plate material hung on the front and back of the vehicle, and is usually made of aluminum, iron sheet, plastic or paper, on which the registration number, registration area or other relevant information of the vehicle is marked. The license plate is used for registering the serial number and information of each vehicle, and has the main functions that the region of the vehicle can be known through the license plate, and the owner of the vehicle and the registration information of the vehicle can be checked according to the license plate.
At present, the qualification selection of the license plate of the passenger car is carried out in a lottery mode in partial areas. The details of the existing lottery process are not publicly transparent, and the owner of the card-purchasing consumer cannot really know the exact lottery process, so that the fairness and fairness lack the proof.
An effective solution to the problems in the related art has not been proposed yet.
Disclosure of Invention
Aiming at the problems in the related art, the invention provides a block chain-based license plate selection method to overcome the technical problems in the prior related art.
The technical scheme of the invention is realized as follows:
a license plate lottery method based on a block chain comprises the following steps:
step S1, the user i obtains the public key PK published by the server in the period and generates the random number S through the pseudo-random number generatori;
Step S2, generating random number SiEncrypting to obtain ciphertext Ci;
In step S3, user i combines the ciphertext CiUploading to a block chain;
step S4, the server side opens the private key SK, and SK is used to process all submitted ciphertexts C in the periodiDecrypting to obtain random number set { S }iI belongs to Q, wherein Q is a screening instituteA compliant user;
step S5, the server side sets random numbers { SiI belongs to Q to carry out random reordering, and a new random number set { nS is obtainedi}i∈Q;
Step S6, obtaining random number { nSiAnd ranking the ranking results, wherein the ranking of the results is the selected users at the top.
Further, the method comprises the following steps:
a public key PK and a private key SK in a period are initialized by a server;
the server side publishes a public key PK;
screening and determining a compliant user i in a period;
further, the set of random numbers { S ] is obtainediI ∈ Q, comprising the following steps:
if the random number which can not be decrypted or is obtained by decryption is not in compliance, the user is not in compliance;
screening and determining all compliant users Q;
obtaining a set of random numbers Si}i∈Q。
The invention has the beneficial effects that:
the invention relates to a license plate selection method based on a block chain, which is characterized in that a public key PK is obtained by a user, and a random number S is generated by a pseudo-random number generatoriEncrypting to obtain ciphertext CiUploading to a block chain, and a server side discloses a private key SK, and using the SK to encrypt all submitted ciphertexts C in a periodiAnd decrypting to obtain a random number set sequencing result, and screening out the selected users, so that the public verifiability of the license plate selection is realized, the screening is efficient, and the application range is wide.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a first flowchart illustrating a block chain-based license plate decimation method according to an embodiment of the present invention;
fig. 2 is a schematic block flow diagram of a license plate decimation method based on a block chain according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present invention.
According to the embodiment of the invention, a license plate decimation method based on a block chain is provided.
As shown in fig. 1, a license plate decimation method based on a block chain according to an embodiment of the present invention includes the following steps:
step S1, the user i obtains the public key PK published by the server in the period and generates the random number S through the pseudo-random number generatori;
Step S2, generating random number SiEncrypting to obtain ciphertext Ci;
In step S3, user i combines the ciphertext CiUploading to a block chain;
step S4, the server side opens the private key SK, and SK is used to process all submitted ciphertexts C in the periodiDecrypting to obtain random number set { S }iI belongs to Q, wherein Q is all the screened compliant users;
step S5, the server side sets random numbers { SiI belongs to Q to carry out random reordering, and a new random number set { nS is obtainedi}i∈Q;
Step S6, obtaining random number { nSiAnd ranking the ranking results, wherein the ranking of the results is the selected users at the top.
The method comprises the following steps:
a public key PK and a private key SK in a period are initialized by a server;
the server side publishes a public key PK;
screening and determining a compliant user i in a period;
wherein the set of acquired random numbers { S }iI ∈ Q, comprising the following steps:
if the random number which can not be decrypted or is obtained by decryption is not in compliance, the user is not in compliance;
screening and determining all compliant users Q;
obtaining a set of random numbers Si}i∈Q。
By means of the technical scheme, the public key PK is obtained through a license plate selection method based on the block chain through a user, and the random number S is generated through the pseudo-random number generatoriEncrypting to obtain ciphertext CiUploading to a block chain, and a server side discloses a private key SK, and using the SK to encrypt all submitted ciphertexts C in a periodiAnd decrypting to obtain a random number set sequencing result, and screening out the selected users, so that the public verifiability of the license plate selection is realized, the screening is efficient, and the application range is wide.
Additionally, in one embodiment, as shown in fig. 2, at the beginning of a new numbering cycle (e.g., 1 day per month), the government (system owner) initializes a pair of public and private keys (PK, SK) using an asymmetric cryptography scheme (e.g., national commercial cryptography SM 2) and publishes the public key PK through a government website or other trusted channel; the method comprises the steps that any user/enterprise with license plate number shaking and drawing qualification firstly obtains a public key PK disclosed by the current government, and then a random number generator is used for generating a random number S; the qualified user/enterprise i uses the public key PK to generate a random number S for the user/enterpriseiEncrypting to obtain ciphertext Ci(ii) a Ciphertext C obtained by user iiUpload to blockchain (Ether shop blockchain system as an example), under the consensus mechanism of blockchain, CiPermanently remaining in a non-tamperproof form in the blockchain; before the next cycle of shaking starts, the blockchain restricts anyone, including the system owner, from reading the user's uploaded ciphertext; when the time reaches the next number shaking period, the system holder also needs to disclose a private key SK, and the SK is used for decrypting all submitted ciphertexts in the period; if not decrypted or obtained by decryptionIf the random number is illegal, the right of abandoning the bidder is considered, and finally the respective random number sets { S ] of all legal users/enterprises are obtainediI belongs to Q, and Q is all legal users; the system owner randomly reorders the random numbers in a credible manner, namely the system owner performs hash operation on the combined value of each random number and the sum of the random numbers by using a hash function (taking the SM4 as an example) which can prove safety to obtain a new random number set { nSiI belongs to Q; according to the new random number nSiAnd ranking the results, wherein the ranking is the top one to win the bid.
Specifically, ciphertext CiIs represented as Ci=SM2.encrypt(Si) (ii) a Ciphertext CiDecryption, denoted Si=SM2.decrypt(Ci) (ii) a Set of random numbers { nSiJ ∈ Q is expressed as: nSi=SM4.hash(Si||∑Si)。
In addition, the functional unit (system owner) is highly trusted, and its published public key SM2 public key PK can prove that it owns the private key SK. Due to the security of SM2, the ciphertext submitted by the user has confidentiality. Blockchains each block has a time stamp and intelligent contracts in blockchains can be used to restrict anyone from having to access the ciphertext in advance. Adopting the random number of each person and the sum of all the random numbers to carry out hash to obtain a set { nSiTo make the final result unpredictable for the user. When the random number ciphertext submitted by the user is illegal, the random number ciphertext cannot be successfully decrypted, so the user can cancel the auction qualification. The system has a plurality of colluding malicious users and cannot influence the final random number set { nSiThe randomness of the points. The encryption and decryption budget process of a cryptographic algorithm only needs milliseconds, the writing success of the block chain only needs a few seconds to a few minutes for internal medicine completion, and the feasibility is very high.
In summary, with the above technical solution of the present invention, the public key PK is obtained by the user, and the random number S is generated by the pseudo random number generatoriEncrypting to obtain ciphertext CiUploading to a block chain, and a server side discloses a private key SK, and using the SK to encrypt all submitted ciphertexts C in a periodiDecrypting to obtain random number setAnd the selected users are screened out according to the sequencing result, so that the public verifiability of the license plate selection is realized, the screening is efficient, and the application range is wide.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (3)
1. A license plate lottery method based on a block chain is characterized by comprising the following steps:
a user i obtains a public key PK published by a server side in a period and generates a random number S through a pseudo-random number generatori;
For generating random number SiEncrypting to obtain ciphertext Ci;
User i sends ciphertext CiUploading to a block chain;
the server side discloses a private key SK, and uses SK to pair all submitted ciphertexts C in the periodiDecrypting to obtain random number set { S }iI belongs to Q, wherein Q is all the screened compliant users;
server-side pair random number set SiI belongs to Q to carry out random reordering, and a new random number set { nS is obtainedi}i∈Q;
Obtaining a random number nSiAnd ranking the ranking results, wherein the ranking of the results is the selected users at the top.
2. The block chain based lottery method for license plates according to claim 1, further comprising the steps of:
a public key PK and a private key SK in a period are initialized by a server;
the server side publishes a public key PK;
and screening and determining the compliant users i in the period.
3. The block chain-based license plate decimation method according to claim 2, wherein said obtaining a set of random numbers { S }iI ∈ Q, including the followingThe method comprises the following steps:
if the random number which can not be decrypted or is obtained by decryption is not in compliance, the user is not in compliance;
screening and determining all compliant users Q;
obtaining a set of random numbers Si}i∈Q。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010663781.8A CN111901104A (en) | 2020-07-10 | 2020-07-10 | License plate selection method based on block chain |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010663781.8A CN111901104A (en) | 2020-07-10 | 2020-07-10 | License plate selection method based on block chain |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111901104A true CN111901104A (en) | 2020-11-06 |
Family
ID=73192291
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010663781.8A Pending CN111901104A (en) | 2020-07-10 | 2020-07-10 | License plate selection method based on block chain |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111901104A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112712632A (en) * | 2020-11-17 | 2021-04-27 | 中科扶云(杭州)科技有限公司 | Random shaking number processing method and device, electronic device and storage medium |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6781998B1 (en) * | 2000-04-07 | 2004-08-24 | Telefonaktiebolaget Lm Ericsson (Publ) | Random reordering system/method for use in ATM switching apparatus |
| CN110310097A (en) * | 2019-07-05 | 2019-10-08 | 匿名科技(重庆)集团有限公司 | A kind of public affairs of intelligence contract are rented a house the credible number of shaking method |
| CN111223227A (en) * | 2018-11-26 | 2020-06-02 | 腾讯科技(深圳)有限公司 | Target user screening method and device |
| US20210248863A1 (en) * | 2018-07-13 | 2021-08-12 | Rim JARADEH | Method, system, and device for selecting a winner of a raffle based on content from raffle tickets |
-
2020
- 2020-07-10 CN CN202010663781.8A patent/CN111901104A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6781998B1 (en) * | 2000-04-07 | 2004-08-24 | Telefonaktiebolaget Lm Ericsson (Publ) | Random reordering system/method for use in ATM switching apparatus |
| US20210248863A1 (en) * | 2018-07-13 | 2021-08-12 | Rim JARADEH | Method, system, and device for selecting a winner of a raffle based on content from raffle tickets |
| CN111223227A (en) * | 2018-11-26 | 2020-06-02 | 腾讯科技(深圳)有限公司 | Target user screening method and device |
| CN110310097A (en) * | 2019-07-05 | 2019-10-08 | 匿名科技(重庆)集团有限公司 | A kind of public affairs of intelligence contract are rented a house the credible number of shaking method |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112712632A (en) * | 2020-11-17 | 2021-04-27 | 中科扶云(杭州)科技有限公司 | Random shaking number processing method and device, electronic device and storage medium |
| CN112712632B (en) * | 2020-11-17 | 2022-03-15 | 中科扶云(杭州)科技有限公司 | Random shaking number processing method and device, electronic device and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107181599B (en) | Routing position data secret storage and sharing method based on block chain | |
| CN112583575B (en) | Federal learning privacy protection method based on homomorphic encryption in Internet of vehicles | |
| CN110022217B (en) | Advertisement media service data credible storage system based on block chain | |
| Juels | Targeted advertising... and privacy too | |
| US6377688B1 (en) | Cryptographic communication method and system | |
| CN111797427B (en) | Blockchain user identity supervision method and system giving consideration to privacy protection | |
| CN110740033A (en) | block chain multi-party data sharing method based on secret sharing technology | |
| US7634085B1 (en) | Identity-based-encryption system with partial attribute matching | |
| CN112685783B (en) | Data sharing method supporting privacy protection in financial permission blockchain | |
| CN107682145B (en) | A truly anonymous certificateless multi-message multi-receiver signcryption method | |
| RU2017131640A (en) | CONFIDENTIAL COMMUNICATION MANAGEMENT | |
| CN113158143B (en) | Key management method and device based on block chain digital copyright protection system | |
| CN110458554A (en) | Identity-based data fast transaction method on blockchain | |
| CN109003083A (en) | A kind of ca authentication method, apparatus and electronic equipment based on block chain | |
| CN101442409A (en) | Encipher method and system for B2B data exchange | |
| CN101977197B (en) | Multi-receiver encryption method based on biological characteristics | |
| CN105429941A (en) | Anonymous signcryption method with multiple receiver identities | |
| CN106936593A (en) | Based on the efficient anonymity of elliptic curve without certificate multi-receiver label decryption method | |
| Baee et al. | ALI: Anonymous lightweight inter-vehicle broadcast authentication with encryption | |
| CN101465725A (en) | Key distribution method for public key system based on identification | |
| CN110838915B (en) | Cloud storage data sharing method for forward security key aggregation | |
| CN107070662A (en) | Encryption Proxy Signature method based on obfuscation | |
| JP7272439B2 (en) | CRYPTOGRAPHIC SYSTEM, FUNCTION VALUE CALCULATION METHOD AND PROGRAM | |
| CN116346318B (en) | Data sharing method, sharing device, processor and system thereof | |
| CN110572257B (en) | Identity-based data source identification method and 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 | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20201106 |
|
| RJ01 | Rejection of invention patent application after publication |