An anonymous voting technology based on ideal grid on blockchain

By combining ideal lattice ring signature technology and smart contracts on the blockchain, the problem of traditional electronic voting systems relying on trusted third parties and quantum attacks is solved, and a decentralized anonymous voting system is realized to ensure the privacy and security of voting. sex.

CN115174092BInactive Publication Date: 2024-08-23BEIJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210600398.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-29
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional electronic voting systems rely on trusted third parties and are vulnerable to attacks in quantum environments, making the privacy and security issues of anonymous voting difficult to solve.

Method used

The ideal lattice-based ring signature technology is combined with the blockchain anonymous voting system, and public and private keys are generated through smart contracts to authenticate voters, and homomorphic encryption and ring signature technology are used to protect voting content and avoid voting results from being known in advance. Implement decentralized voting statistics.

Benefits of technology

Resist quantum computing attacks in a quantum environment, reduce signature length and improve efficiency, and avoid relying on trusted third parties for vote counting. All users can verify voting results by themselves, ensuring the anonymity and privacy of voting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115174092B
    Figure CN115174092B
Patent Text Reader

Abstract

The present invention relates to an ideal lattice-based blockchain anonymous voting technology, and belongs to the field of blockchain privacy protection technology. Aiming at the defects of existing electronic voting systems such as reliance on trusted third parties and lack of resistance to quantum attacks, the present invention adopts a ring signature technology based on an ideal lattice trapdoor to solve the privacy security problem of anonymous voting based on blockchain in a quantum environment. While being able to resist quantum computing attacks, it can reduce the length and efficiency of signatures. The present invention encrypts the content of the vote, protects the content of the ballots disclosed on the chain, and prevents the voting results from being known in advance. At the same time, there is no need to rely on a trusted third party to count the votes, all users can check their votes, and a consensus can be reached without dispute.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an ideal grid-based anonymous voting technology in blockchain, which belongs to the technical field of blockchain privacy protection. Background Art

[0002] With the development of Internet technology, electronic voting systems have been widely used in practical scenarios. Electronic anonymous voting systems need to meet seven standards, namely legitimacy, uniqueness, anonymity, fairness, integrity, accuracy and verifiability. However, these seven standards are difficult to achieve at the same time and are even contradictory, such as openness, transparency and anonymity. In addition, traditional electronic voting requires a third-party trusted management agency. Therefore, the authenticity of the vote depends on the trustworthiness of the centralized agency.

[0003] In order to solve the technical problem that traditional electronic voting relies on trusted third parties, anonymous electronic voting systems based on smart contracts deployed on blockchains have gradually attracted attention. Smart contracts can be regarded as an impartial third-party organization to manage voting projects. Blockchain technology, due to its decentralized and trustless characteristics, can realize public and verifiable electronic voting without the need for trusted third parties. However, with the development of quantum computers, blockchain systems based on traditional cryptography are threatened. Therefore, anonymous voting systems based on blockchains also face the problem of privacy leakage.

[0004] In summary, in order to solve the privacy and security issues of blockchain-based anonymous voting in a quantum environment, it is necessary to find a quantum-resistant and secure blockchain-based anonymous voting technology. Summary of the invention

[0005] The purpose of this invention is to solve the privacy and security issues of blockchain-based anonymous voting in a quantum environment by creatively proposing an ideal lattice-based blockchain anonymous voting technology in view of the defects of existing electronic voting systems such as reliance on trusted third parties and lack of resistance to quantum attacks. This invention adopts an ideal lattice-based ring signature technology to combine it with the anonymous voting application scenario in the blockchain.

[0006] In order to achieve the above object, the present invention adopts the following technical scheme.

[0007] First, the relevant concepts involved in the present invention are explained.

[0008] 1. Blockchain network. It is an infrastructure network used to operate the anonymous voting system, including user nodes and contract servers, and an anonymous network system that achieves distributed storage through a consensus algorithm.

[0009] 2. User node. Refers to the node that registers and generates user addresses in the blockchain, participates in the synchronization of the blockchain and verifies the head node information.

[0010] 3. Contract server. Refers to the user node in the blockchain that is responsible for deploying smart contract services and performing full synchronization of the blockchain.

[0011] 4. Smart contract. A computer protocol designed to disseminate, verify or execute contracts in an information-based manner. Smart contracts accept registration requests for voting projects, generate project public and private keys for them, accept voter registration requests, generate lattice ring signature public and private keys as voting credentials for delegation, and finally participate in vote counting.

[0012] An ideal grid-based blockchain anonymous voting technology includes the following steps:

[0013] Step 1: Register for the voting project.

[0014] The user initializes the voting project and registers the voting project information. The smart contract generates relevant security parameters for the project information.

[0015] Specifically, step 1 may include the following steps:

[0016] Step 1.1: The user initiates a registration request to the smart contract and provides project information, including a list of candidates (c1, c2, ...c n ), voting rules (the number of votes a voter can cast at one time is n), and time nodes (public registration time Tc, public voting time Tv). n represents the nth candidate.

[0017] Step 1.2: The smart contract receives and generates a public-private key pair (IDsk, IDpk) that is exclusive to this project, retains the public key IDpk, and publishes the private key IDsk and related project information (candidate list, voting rules, time nodes) to the blockchain.

[0018] Step 2: Voter registration.

[0019] Users participating in the voting register relevant personal information on the blockchain based on the voting project information applied for on the chain.

[0020] Specifically, step 2 may include the following steps:

[0021] Step 2.1: Blockchain users participating in the voting submit a registration application to the smart contract during the public registration period.

[0022] Step 2.2: After the smart contract receives the voter’s registration application, it generates the voter’s public-private key pair (usk, upk), where usk is the voter’s private key and upk is the voter’s public key.

[0023] Step 2.3: The smart contract uses the project public key IDpk, the voter public key upk and the random number r to generate a unique identification token as the voter's unique identification. The purpose is to prevent a voter from voting multiple times.

[0024] Step 2.4: The smart contract sends the generated voter’s private key and voter’s unique identification token to the voter through a trusted channel.

[0025] Step 3: Voting preparation.

[0026] Before voting, voters who obtain a unique identification token must make necessary preparations, including obtaining the public keys of several voters and relevant information about the voting project.

[0027] Specifically, step 3 may include the following steps:

[0028] Step 3.1: Before voting, the voter selects the public keys upk of k voters of the project ID participating in the voting in the blockchain, and the k voters of the project ID participating in the voting serve as the decoy users of the ring signature, where k ≥ 2.

[0029] Step 3.2: Voters obtain project-related information in the blockchain, including a list of candidates for the project ID (c1, c2, ...c n ), public voting time Tv in the time node, and voting rules.

[0030] Step 4: Vote.

[0031] Voters use homomorphic encryption to encrypt voting content and use ideal lattice-based ring signature technology to sign the encrypted voting content.

[0032] Specifically, step 4 may include the following steps:

[0033] Step 4.1: The voter generates voting content M according to the voting rules of the project ID.

[0034] Step 4.2: The voter uses homomorphic encryption to encrypt the voting content M to obtain the encrypted voting content ME.

[0035] Step 4.3: The voter performs a ring signature on the encrypted voting content ME.

[0036] In this method, a ring signature method based on an ideal lattice is used.

[0037] Step 4.4: The voter publishes the encrypted message ME, ring signature e, project ID, timestamp and voter’s unique ID token on the blockchain.

[0038] Step 5: Preparation for counting votes.

[0039] The smart contract collects votes on the blockchain, authenticates tokens and ring signatures, and performs homomorphic addition of the encrypted message ME.

[0040] Specifically, step 5 may include the following steps:

[0041] Step 5.1: Verify the voter’s unique identification token and only record the first vote corresponding to each token.

[0042] Any user of the blockchain can verify the validity of the voter's ring signature.

[0043] Step 5.2: After verifying the vote, add the voted messages homomorphically.

[0044] Step 6: Vote counting and verification.

[0045] At this point, the total number of votes has been uploaded to the blockchain, and the voting results are made public at this stage. The smart contract uses a decryption algorithm to publicly encrypt the private key of each vote in the blockchain, decrypt each vote, and decrypt the total vote to get the total vote.

[0046] Any user in the blockchain can calculate the results of each vote by themselves to verify the voting results.

[0047] Beneficial Effects

[0048] Compared with the prior art, the present invention has the following advantages:

[0049] 1. The present invention adopts a ring signature technology based on an ideal lattice trapdoor, which can reduce the length and efficiency of the signature while being able to resist quantum computing attacks.

[0050] 2. The present invention encrypts the content of the vote, protects the content of the ballots published on the chain, and prevents the voting results from being known in advance. At the same time, there is no need to rely on a trusted third party to count the votes, all users can check the votes, and a consensus can be reached without dispute. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION

[0052] The present invention is described clearly and completely below in conjunction with the accompanying drawings and embodiments. The described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] An anonymous voting technology based on ideal grid blockchain. In this embodiment, the entities of the voting system include candidates, voters, and project applicants. Figure 1 The specific process is as follows:

[0054] Step 1: Register for the voting project.

[0055] Specifically, the steps include:

[0056] Step 1.1: Register for voting project.

[0057] The project applicant initiates a registration request to the smart contract and provides project information, including a list of candidates (c1, c2, ...c n ), voting rules (the number of votes a voter can cast at one time n), time nodes (public registration time TC, public voting time TV), etc.

[0058] Step 1.2: After receiving the project registration application information, the smart contract generates the public and private key pair (IDsk, IDpk) of the project. The smart contract retains the private key and publishes the public key and related project information (candidate list, voting rules, time nodes) to the blockchain.

[0059] The process of generating the project public and private key pair (IDsk, IDpk) is as follows:

[0060] Master key generation Setup(1 n ).

[0061] The input includes: n*m matrix A on the modulo q polynomial quotient ring, reversible n*n matrix H on the modulo q polynomial quotient ring, and Gaussian distribution D. q, n, and m are all positive integers.

[0062] The output includes: project public key IDpk=A and project private key IDpk=R. Among them, is the check matrix, R is the trapdoor, represents a randomly selected matrix, A1 represents the grid point HG-AR corresponding to the ideal grid, Represents a set of n×m matrices consisting of integers modulo q.

[0063] First, a trapdoor matrix is ​​randomly selected according to the Gaussian distribution D

[0064] Then, calculate

[0065] After that, the project public key IDpk=A and the project private key IDsk=R are output.

[0066] Step 2: Voter registration.

[0067] Specifically, the steps include:

[0068] Step 2.1: Blockchain users participating in the voting submit a registration application to the smart contract during the public registration period.

[0069] Step 2.2: After the smart contract receives the voter’s registration application, it generates the voter’s public and private key pair (upk, usk).

[0070] The specific process of generating the voter's public and private key pair (upk, usk) is as follows:

[0071] Voter public and private key generation algorithm Extract(id i , msk), where:

[0072] Input includes: random number ID corresponding to token i , voting project master key IDsk.

[0073] Output includes: Derived public and private keys and usk i .

[0074] First, the secure hash function H1 calculates Q i =H1(id i ), Q i Indicates user id i The hash value of the token, let k represents a positive integer.

[0075] Afterwards, the MP12 trapdoor derivative algorithm DelTrap (A, Q i , R, σ 2 ) Sampling to get A i The corresponding trapdoor matrix R i , σ 2 is the Gaussian parameter.

[0076] From t = 1 to t = n, take q*I n The tth row u of the matrix t ,u t represents a row element in the ideal grid. i ,R i ,I n u t ,σ) algorithm sampling Satisfy A i s i =qI n mod2q,s i Indicates that the data element is a matrix of dimension (m+nk)×n modulo q, I n represents the identity matrix with dimension n×n, and σ represents the Gaussian parameter.

[0077] Finally, output the derived public key and private key

[0078] Step 2.3: To avoid the problem of a voter voting multiple times, the smart contract uses the project public key IDpk, the voter public key upk and the random number r to generate a unique identification token as the voter's unique identification.

[0079] Step 2.4: The smart contract sends the generated voter private key usk and the voter’s unique identification token to the voter through a trusted channel.

[0080] Step 3: Voting preparation.

[0081] Specifically, the steps include:

[0082] Step 3.1: Before voting, the voter selects k (k>=2) public keys upk of the voters of the project ID participating in the voting in the blockchain, and the k voters of the project ID participating in the voting serve as the decoy users of the ring signature.

[0083] Step 3.2: Voters obtain project-related information in the blockchain, including a list of candidates for the project ID (c1, c2, ...c n ) Public voting time TV, voting system.

[0084] Step 4: Vote.

[0085] Specifically, the steps include:

[0086] Step 4.1: Voters generate voting content M for candidates according to the voting rules of the project.

[0087] Step 4.2: The voter uses homomorphic encryption to encrypt the voting content M and obtain the encrypted voting content ME.

[0088] Step 4.3: The voter performs a ring signature on the encrypted voting content ME.

[0089] This method uses a ring signature method based on an ideal lattice. The specific steps are as follows:

[0090] Sign(ME, R upk , usk), where:

[0091] Input includes: voting message ME, public key ring R selected by the voter upk , voter private key usk, hash function H2.

[0092] Output: Ring signature e.

[0093] First, the public key upk in the ring i Matrix A i Do the following to calculate

[0094] Voter's private key usk matrix S s ,calculate S represents the private key matrix S s and the unit matrix into an integer matrix of dimension (m+nk+n)×n.

[0095] For each public key upk in the ring i , generating the vector Z represents a matrix data element with a dimension of (m+nk)×n and an integer modulo q.

[0096] The traversal of the ring signature number is from i=s+1 to i=num(R upk )-1 and users from i=0 to i=s-1, s represents the voter number, and i represents the user number who participates in the ring signature and provides the public key.

[0097] Then, the commitment value of the user who provided the public key to participate in the ring signature is calculated: z i 、c i They represent the response and commitment of the i-th user on the ring respectively.

[0098] Finally, output the ring signature

[0099] Step 4.4: The voter publishes the encrypted message ME, ring signature e, project identifier, timestamp and voter’s unique identifier token on the chain.

[0100] Step 5: Preparation for counting votes.

[0101] Specifically, the steps include:

[0102] Step 5.1: The smart contract verifies the voter’s unique identification token and only records the first vote corresponding to each token. Any user of the blockchain can verify the validity of the voter’s ring signature.

[0103] The ring signature verification algorithm Verify(ME, e) is as follows, where:

[0104] Input includes: signed message ME, ring signature e; public key set R of users participating in the ring signature upk .

[0105] Output: Verification result 0 or 1.

[0106] Traverse the public key set R upk The element Ri ,calculate Where R i Indicates the i-th user participating in the ring signature;

[0107] Then, the commitments of the users participating in the ring signature are calculated in turn

[0108] Finally, check whether the result is equal to the commitment value c1 of the first user. If they are equal, output 1, indicating that the verification is successful. Otherwise, output 0, indicating that the verification is unsuccessful.

[0109] Step 5.2: After verifying the vote, add the voted messages homomorphically.

[0110] Step 6: Vote counting and verification.

[0111] Specifically, the steps include:

[0112] Step 6.1: Randomly select users in the blockchain as vote counters. The vote counters collect voting information containing the project ID in the blocks generated between the project announcement and the voting deadline, and check whether the voter's unique identification token is correct.

[0113] Step 6.2: Based on the timestamp of the voting information, the vote counter only accepts the voter's first voting information.

[0114] Step 6.3: The vote counter checks the validity of the ring signature for valid votes. If the signature is valid, all encrypted voting information Mc is added together to obtain the encrypted total number of votes TotalMc.

[0115] Step 6.4: The vote counter finally uploads (TotalMc, ID) to the blockchain and completes the vote counting within the counting time.

[0116] Step 6.5: The smart contract publishes the private key and decryption algorithm, decrypts each voting information in the blockchain to obtain the voting content M, and decrypts the encrypted total number of votes TotalMc to obtain the voting result TotalM.

[0117] Any user in the blockchain can verify the voting results based on the voting content M and TotalM.

[0118] The above is only a preferred embodiment of the present invention, and the present invention should not be limited to the contents disclosed in the embodiment and the drawings. Any equivalent or modification completed without departing from the spirit disclosed in the present invention shall fall within the scope of protection of the present invention.

Claims

1. A blockchain anonymous voting method based on ideal grid, characterized in that: The following steps are involved: Step 1: Register for voting project; The user initializes the voting project and registers the voting project information. The smart contract generates relevant security parameters for the project information. Step 1.1: The user initiates a registration request to the smart contract and provides project information, including a list of candidates (c1, c2, ...c n ), voting rules, time nodes, where c n Indicates the nth candidate, the time nodes include the public registration time Tc and the public voting time Tv; Step 1.2: The smart contract receives and generates a public-private key pair (IDsk, IDpk) that is exclusive to this project, retains the public key IDpk, and publishes the private key IDsk and related project information to the blockchain. The related project information includes the candidate list, voting rules, and time nodes; Step 2: Voter registration; Users who participate in the voting register relevant personal information on the blockchain based on the voting project information on the chain; the smart contract generates a unique identifier for the voter; Step 2.1: Blockchain users participating in the voting submit a registration application to the smart contract during the public registration period; Step 2.2: After receiving the voter’s registration application, the smart contract generates the voter’s public-private key pair (usk, upk), where usk is the voter’s private key and upk is the voter’s public key; Step 2.3: The smart contract uses the project public key IDpk, the voter public key upk and the random number r to generate a unique identification token as the voter's unique identification; Step 2.4: The smart contract sends the generated voter’s private key and voter’s unique identification token to the voter through a trusted channel; Step 3: Voting preparation; Before voting, voters who have obtained a unique identification must make necessary preparations, including obtaining the public keys of several voters and relevant information about the voting items; Step 3.1: Before voting, the voter selects the public keys upk of k voters of the project ID participating in the voting in the blockchain. The k voters of the project ID participating in the voting serve as the decoy users of the ring signature, k ≥ 2; Step 3.2: Voters obtain project-related information in the blockchain, including a list of candidates for the project ID (c1, c2, ...c n ), the public voting time Tv and voting rules in the time node; Step 4: Vote; Voters use homomorphic encryption to encrypt the voting content, and use the ideal lattice-based ring signature technology to sign the encrypted voting content; Step 4.1: Voters generate voting content M according to the voting rules of project ID; Step 4.2: The voter uses homomorphic encryption to encrypt the voting content M to obtain the encrypted voting content ME; Step 4.3: The voter performs a ring signature on the encrypted voting content ME, using a ring signature method based on an ideal lattice, as follows: Sign(ME, R upk , usk), where: Input includes: voting message ME, public key ring R selected by the voter upk , voter private key usk, hash function H2; Output: ring signature e; First, the public key upk in the ring i Matrix A i Do the following to calculate A is an n*m matrix on the polynomial quotient ring modulo q; Voter's private key usk matrix S s ,calculate S represents the private key matrix S s and the unit matrix to form an integer matrix of dimension (m+nk+n)×n; For each public key upk in the ring i , generating the vector Z represents a matrix with a dimension of (m+nk)×n, whose data elements are integers modulo q; The traversal of the ring signature number is from i=s+1 to i=num(R upk )-1 and users from i=0 to i=s-1, s represents the number of the voter, and i represents the number of the user who participates in the ring signature and provides the public key; Then, the commitment value of the user who provided the public key to participate in the ring signature is calculated: z i 、c i Respectively represent the response and commitment of the i-th user on the ring; Finally, output the ring signature Step 4.4: The voter publishes the encrypted message ME, ring signature e, project ID, timestamp and voter’s unique ID token on the blockchain; Step 5: Preparation for vote counting; The smart contract collects votes on the blockchain, authenticates the voter’s unique identification and ring signature, and performs homomorphic addition of the encrypted voting content; Step 5.1: Verify the voter’s unique identification token and only record the first vote corresponding to each token; Any user of the blockchain can verify the validity of the voter’s ring signature; Among them, the smart contract verifies the voter's unique identification token, and the ring signature verification algorithm Verify(ME, e) is as follows: Input includes: signed message ME, ring signature e; public key set R of users participating in the ring signature upk ; Output: verification result 0 or 1; Traverse the public key set R upk The element R i ,calculate Where R i Indicates the i-th user participating in the ring signature; Then, the commitments of the users participating in the ring signature are calculated in turn Finally, check whether the result is equal to the commitment value c1 of the first user. If so, output 1, indicating that the verification is successful. Otherwise, output 0, indicating that the verification is unsuccessful. Step 5.2: After verifying the vote, add the voting message homomorphically; Step 6: Vote counting and verification; The smart contract publicly uses the homomorphic encryption private key, and uses the decryption algorithm to decrypt each voting information in the blockchain to obtain each voting result, and decrypts the total voting result to obtain the total voting result; Any user in the blockchain can calculate the results of each vote and verify the voting results.

2. The blockchain anonymous voting method based on ideal grid as claimed in claim 1, characterized in that: In step 1, the process of generating the project public and private key pair (IDsk, IDpk) is as follows: Set up the master key generation (1 n ); The input includes: n*m matrix A on the modulo q polynomial quotient ring, reversible n*n matrix H on the modulo q polynomial quotient ring, Gaussian distribution D, q, n, m are all positive integers; The output includes: project public key IDpk=A and project private key IDpk=R, where: is the check matrix, R is the trapdoor, represents a randomly selected matrix, A1 represents the grid point HG-AR corresponding to the ideal grid, represents a set of n×m matrices composed of integers modulo q; First, a trapdoor matrix is ​​randomly selected according to the Gaussian distribution D Then, calculate After that, the project public key IDpk=A and the project private key IDsk=R are output.

3. The blockchain anonymous voting method based on ideal grid as claimed in claim 1, characterized in that: In step 2, the specific process of generating the voter's public and private key pair (upk, usk) is as follows: Voter public and private key generation algorithm Extract(id i , msk), where: Input includes: random number ID corresponding to token i , voting project master key IDsk; Output includes: Derived public and private keys and usk i ; First, the secure hash function H1 calculates Q i =H1(id i ), Q i Indicates user id i The hash value of the token, set the public key upk i matrix k represents a positive integer; A is an n*m matrix on the polynomial quotient ring modulo q; Afterwards, the trapdoor derived algorithm DelTrap(A, Q i , R, σ 2 ) Sampling to get A i The corresponding trapdoor matrix R i , σ 2 is the Gaussian parameter; From t = 1 to t = n, take q*I n The tth row u of the matrix t ,u t Represents a row element in an ideal grid; use SampleD(A i ,R i ,I n u t ,σ) algorithm sampling Satisfy A i s i =qI n mod2q,s i Indicates that the data element is a matrix of dimension (m+nk)×n modulo q, I n represents the identity matrix of dimension n×n, σ represents the Gaussian parameter; Finally, output the derived public key and private key 4. The blockchain anonymous voting method based on ideal grid as claimed in claim 1, characterized in that: Step 6 includes the following steps: Step 6.1: Randomly select users in the blockchain as vote counters. The vote counters collect voting information containing the project ID in the blocks generated between the project announcement and the voting deadline, and check whether the voter's unique identification token is correct; Step 6.2: Based on the timestamp of the voting information, the vote counter only accepts the voter's first voting information; Step 6.3: The vote counter checks the validity of the ring signature for the valid votes. If the signature is valid, all encrypted voting information Mc is added together to obtain the encrypted total number of votes TotalMc; Step 6.4: The vote counter finally uploads (TotalMc, ID) to the blockchain and completes the vote counting within the counting time; Step 6.5: The smart contract publishes the private key and decryption algorithm, decrypts each voting information in the blockchain to obtain the voting content M, and decrypts the encrypted total number of votes TotalMc to obtain the voting result TotalM; Any user in the blockchain can verify the voting results based on the voting content M and TotalM.