Anonymous and anti-coercion electronic voting system based on partial blind signature and blockchain

By introducing identity-based partial blind signature and AES symmetric encryption technology into the electronic voting system, combined with blockchain technology, the security risks of the centralized voting system and the hidden dangers of blind signatures are solved, achieving anonymity and resistance to coercion. Electronic voting system to ensure transparency and security of voting.

CN114333137BActive Publication Date: 2024-10-11FUDAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111541386.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-10-11
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

There are security risks in the existing centralized electronic voting system. It is difficult to ensure the integrity, legality, fairness, uniqueness, verifiability, anonymity and resistance to coercion of the vote. Moreover, traditional blind signature technology has hidden dangers and security issues. Loopholes make it difficult to effectively protect public information.

Method used

Using identity-based partial blind signature (IB-PBS) and AES symmetric encryption technology, combined with blockchain technology, it achieves anonymity and resistance to coercion through distributed storage of voting data and automatic execution of calculations using smart contracts, and through blocks The chain serves as a public bulletin board to record voting results.

Benefits of technology

It provides a secure, anonymous and anti-coercion electronic voting system to prevent voters from double voting and voting results from being manipulated, protects the security of public information, and ensures the transparency and non-tamperability of voting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114333137B_ABST
    Figure CN114333137B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of blockchain technology, specifically an electronic voting system based on partial blind signature and blockchain technology. The present invention mainly serves blockchain technology, studies and analyzes the anonymity loopholes in the electronic voting protocol proposed by Zaghloul et al., integrates identity-based partial blind signatures to propose a new anonymous and anti-coercion electronic voting protocol and applies it to the electronic voting system, solving the inconvenience and potential threat loopholes of the original electronic voting protocol that requires different political parties to perform secure multi-party calculations to achieve anonymity. The electronic voting protocol in the present invention is mainly divided into 7 participants, namely voters, registrars, certification agencies, hosts, election candidates, blockchain networks, and counting agencies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of blockchain, and in particular relates to an anonymous and anti-coercion electronic voting system based on partial blind signature and blockchain. Background Art

[0002] The election committee announces election activities through the central voting system. Voters with voting rights can vote through the central voting system. The election committee completes the vote counting, broadcasts the voting activities through the central voting system and collects all the votes. However, the single-point, centralized voting system carries great risks. It not only needs to publish voting activities, but also needs a huge database to store ballot information, etc., which has the risk of collapse or being attacked by criminals. It can be seen from this that this traditional electronic voting system relies too much on a centralized platform to publish voting activities and store ballots, and cannot guarantee the security of voting. In addition, the centralized voting system inevitably faces all the risks of single point failure.

[0003] If you want to completely replace traditional voting with electronic voting, you need a completely secure electronic voting system, otherwise it will be difficult to replace. A mature and secure electronic voting system needs to meet the following 7 basic characteristics:

[0004] (1) Integrity: Among all votes, the system only counts all valid votes;

[0005] (2) Legitimacy: Only legal voters who have undergone identity verification can participate in voting activities and cast their votes;

[0006] (3) Fairness: The voting results are fair and will not be influenced by anything;

[0007] (4) Uniqueness: A legitimate voter has only one opportunity to exercise his voting rights;

[0008] (5) Verifiability: Voters can verify whether their votes are valid and whether their votes are successfully counted in the voting results;

[0009] (6) Anonymity: Voters cannot be identified through voting. Only the voters themselves can know their votes; no one else can know their votes.

[0010] (7) Resistance to coercion: The coercer requires the coerced voter to vote in a specific way, but the coercer cannot be sure whether the voter will obey the requirement and vote.

[0011] In recent years, blockchain technology has gradually emerged. The new blockchain technology provides a distributed, transparent and tamper-proof distributed ledger. All nodes are interconnected to form a blockchain network. The ledger is maintained by all nodes. It saves all transactions in the blockchain network and verifies transactions by the entire network according to the specified consensus protocol. Secondly, smart contracts on the blockchain can be executed automatically and securely, and can fully reliably handle all message transmissions and execute related calculations. It can be seen that blockchain can be well applied to meet the above characteristics. Therefore, many scholars have tried to use different methods to apply blockchain to electronic voting, and combine blockchain with electronic voting to achieve a secure electronic voting system.

[0012] As for the anonymity problem, some scholars use the characteristics of blockchain to solve it, while others use group signatures, blind signatures and other technologies to solve it. Blind signature is a special type of digital signature, and the signer will not be able to see the specific content of the signature. However, this "blind" signature has huge hidden dangers and is likely to cause users to abuse the signature. Therefore, partial blind signatures were born, which allow the signer to add public information that has been pre-negotiated with the user when signing, and embed it into the blind signature to prevent the user from providing illegal information or abusing rights. It not only protects user privacy and achieves anonymity, but also effectively limits the scope of user rights. Islam et al. proposed an identity-based partial blind signature (IB-PBS) scheme. However, the scheme is not completely safe, and public information may also be attacked. Therefore, it is of great significance to design an efficient and secure IB-PBS scheme. However, it is also necessary to prevent public information from being replaced by attacks and ensure the security of public information.

[0013] In summary, the present invention proposes a new electronic voting protocol based on blockchain technology and using identity-based partial blind signature and AES symmetric encryption technology. It does not rely on reliable statistical authority, stores votes in a distributed manner through blockchain, triggers the operation of smart contracts through voting, and is used to ensure that the voting results are recorded on the blockchain. The blockchain is used as a public bulletin board, which helps to solve major problems such as double voting by voters, manipulation to influence voting results, and resisting coercion. Based on the scheme of Y. Jiang et al., a new efficient and secure IB-PBS scheme is proposed, and it is adjusted and applied to the electronic voting system in an appropriate and clever way, and cleverly combined to achieve anonymity. This cutting-edge scheme can also protect the security of public information from being attacked. Summary of the invention

[0014] The purpose of the present invention is to propose an anonymous and coercion-resistant electronic voting system based on partial blind signatures and blockchain. The present invention aims at the anonymity loopholes of the electronic voting protocol proposed by Zaghloul et al. The present invention incorporates identity-based partial blind signatures to propose a new anonymous and coercion-resistant electronic voting protocol, and actually applies it to the electronic voting system. It solves the inconvenience and potential threat loopholes of the original electronic voting protocol that requires different political parties to perform secure multi-party calculations to achieve anonymity.

[0015] The present invention proposes an anonymous and anti-coercion electronic voting system based on partial blind signature and blockchain, wherein the electronic voting system includes voters, registrars, certification agencies, moderators, election candidates, blockchain networks and vote counting agencies, wherein:

[0016] The voters are a set of qualified voters who are granted the right to vote in the election: i ∈γ|1≤i≤n}, use v i Representing voters;

[0017] The registrar is an entity that generates unique, random digital ballots and shares them anonymously with voters. Registrar;

[0018] The certification body is an entity that is responsible for Both registration and certification are required, and power is too concentrated. Therefore, in order to achieve decentralization, a certification authority CA is added, which will control the voter v i Perform identity-based partial blind signature authentication, and authenticate the voter v i A new public-private key pair will be obtained to achieve anonymity, and CA can be used to represent the certification authority;

[0019] The moderator is an independent entity responsible for voting. i The identity of the registrar is encrypted twice to hide it, and anonymously let them send the registrar's encrypted ballot, using Representative host;

[0020] The election candidates, people or things, can be election candidates, that is, qualified candidates who can participate in the election vote, and are represented by a set: k ∈C|1≤k≤m}, using cand k Representative candidates;

[0021] The blockchain network is an untrusted peer-to-peer P2P network as a blockchain network, which maintains a publicly accessible blockchain and is capable of running election smart contracts;

[0022] The voting counting agency is a trusted third party that counts votes after the voting phase ends.

[0023] The specific operation of the electronic voting system is as follows:

[0024] (1) Voter registration phase: Voter registration is when a voter registers with a registrar. The initial stage of proving whether one is a qualified voter and proving one’s voting eligibility; once a voter provides the necessary evidence required by the election regulations, Confirm eligibility, Registrar The voter will be added to the set of eligible voters γ:

[0025] (1.1) Registrar key generation: Registrar A signing key pair is required to sign and authenticate the identity of the voter when adding the eligible voter to the eligible voter set γ; the registrar Randomly select a key ( is a set of integers from 1 to p-1) and calculates the corresponding public key as Get a Registrar The signature key pair (x r ,y r );

[0026] (1.2) Voter key generation and registration: Voter v i must have a voting key pair corresponding to its electoral identity, so the voter v i Randomly select a key And calculate the corresponding public key as Get the voter's voting key pair (x i ,y i ); In order to register voters, voters and registrars need to share their respective public keys;

[0027] (1.3) Signing the voter's public key: In order to grant a voter the right to vote, the registrar first verifies the voter's qualifications and then signs the registrar's public key before adding the qualified voter to the set of qualified voters; the registrar randomly selects u i , where 1<u i <p-1 and gcd(u i , p-1) (gcd means to find the greatest common factor), and then perform the following calculations:

[0028]

[0029]

[0030] Where: g is A generator of is a publicly selectable multiplication cyclic group, p is the prime order of the multiplication cyclic group, Hash is a hash function, (w i ,s i ) is the signature, u i is a random number, x r is the registrar key, y i is the voter's public key; at the end of the voter registration phase, the registrar The collection of eligible voters will be publicly announced;

[0031] (2) The voter authenticates his / her identity and obtains a new identity. Authentication and obtaining a new identity means that the voter proves to the certification authority CA whether he / she is a qualified voter and proves his / her voting qualifications. After the authentication is passed, the voter's new identity is blindly signed.

[0032] (2.1) System parameter setting: First, the system parameters are generated:

[0033] (2.1.1). Select a four-tuple {F ρ , E / F ρ , G, P}; where ρ is a k-bit prime number; F ρ is a prime field of order q; E / F ρ is a set of points of an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G;

[0034] (2.1.2) Random selection Used to calculate the system master private key, P Pub =xP as the system's master public key;

[0035] (2.1.3). Choose three hash functions:

[0036]

[0037]

[0038]

[0039] in: is an integer from 1 to p, {0, 1} * represents any number of 0 or 1, and G is the additive cyclic group on the elliptic curve; (2.1.4). Finally, the system master private key x is stored confidentially and the global system parameters are output:

[0040]

[0041] Of which: E / F ρis a set of points on an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G, and F ρ is a prime field of order q, P Pub is the master public key of the system, H0, H1, H2 represent three hash functions;

[0042] (2.2) Key extraction: This step is mainly to generate the public and private key pair of the certification authority CA for subsequent blind signing. It is divided into two steps:

[0043] (2.2.1). The certification authority CA will use its identity ID CA It is transmitted to PKG through a secure channel, and then PKG will randomly select a And perform the following calculation:

[0044] R CA =r CA P#(18)

[0045] h CA =H0(ID CA , R CA )#(19)

[0046] Among them: P is the generator of G, r CA yes The random number in, H0 is a hash function, ID CA is the identity of the certification body; (2.2.2). Then calculate the private key d CA =r CA +h CA x; the trusted third party PKG will (d CA , R CA ) is transmitted to the certification authority CA through a secure channel, and the public key P of the certification authority CA CA =R CA +h CA P Pub ; The certification authority CA will decide whether to accept the application based on whether the following equation holds true (d CA , R CA ), if not established, it will not be accepted;

[0047] P CA =d CA P=R CA +h CA P Pub #(20)

[0048] Where: R CA 、h CA is the intermediate parameter calculated in the previous step, P Pub is the system's master public key;

[0049] (2.3) Identity-based partially blind signature: The identity of the certification authority is ID CA , the voter's identity is ID i , the message m that needs to be blindly signed is i′ ,y i′} is the new identity of the voter The public information agreed upon by the certification authority CA and the voters is C = {y i ,(w i ,s i )}, and then go through the following steps:

[0050] (2.3.1) First, since C is public information, it is visible. When voter v i After sending the public information to the certification authority CA, the CA will verify whether the following equation is valid. If it is true, it means that the voter v i Is a legal voter, if not, it means it is illegal and the subsequent steps will not be carried out;

[0051]

[0052] Where: y i is the voter’s public key, (w i ,s i ) is a signature pair generated by the registrar, and p is a prime number;

[0053] (2.3.2) After the first step of authentication is passed, the certification authority CA will randomly select a number Then calculate S = H2(C)[P CA +sP], the certification authority CA will (S, R CA ) is sent to voters who need to authenticate their identities and obtain new identities. i ;

[0054] (2.3.3) When the voter v i Receive (S, R CA ) after v i Three numbers will be randomly selected And calculate:

[0055] E=αS+βP+γ[R CA +H0(ID CA , R CA ) Pub ]=αS+βP+γP CA #(twenty two)

[0056] l=H1(m,E,C)#(23)

[0057] g=α -1(γ+l)+H2(C)#(24)

[0058] Among them: α, β, γ are three random numbers, H0, H1, H2 are hash functions, and C is public information;

[0059] The voter sends g to the certification authority CA;

[0060] (2.3.4) When the certification authority CA receives g, it will calculate δ = gd CA +sH2(C), and send δ back to the voters;

[0061] (2.3.5) Voter v i After receiving δ, ε = αδ + β is calculated, and finally the final identity-based partial blind signature is λ = (m, C, R CA , E, ε);

[0062] (3) Voters obtain ballots during the voting phase.

[0063] (3.1) Ballot generation: Registrar Generate n unique random number ballots The ballots are digitally signed using the ElGamal digital signature scheme; these signature sets are used Represents; then for this set Perform π permutation:

[0064]

[0065] in: is a signature collection;

[0066] (3.2) Voter Rearrangement: Moderator As a middleman, between voters i Requesting votes will help v i The new identity i′ is encrypted twice to hide v i identity and help achieve resilience; This generates a set of N unique numbers in one-shot permutations σ: Perform a secondary scramble to prevent voters from v i The new identity i′ is also revealed;

[0067] (3.3) Certification authority signature verification: Voter v i First, the blind signature of the authentication structure CA obtained in the authentication phase is λ = (m, C, R CA , E, ε), since the information of m includes the voter v i The new public-private key pair cannot be directly exposed to Public information C includes v i Initial public key and registrar The signature pair, therefore, cannot be directly exposed to Therefore, the following processing is required to generate λ′=(H1(m,E,C), R CA , E, ε) to the host Perform signature authentication: judge the equation εP=E+H1(m,E,C)P CA Is it true? If it is true, it means the verification is passed and the following process can be continued. If it is not true, it will not be passed;

[0068] (3.4) Voter’s new identity is blurred: After authentication, the voter v i Will Pass its new public key y′ i , Choose a number at random And calculate

[0069]

[0070] Where: g is A generator of x′ i is the voter's new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor; (3.5) Ballot distribution and encryption: Registrar Received by host After forwarding, the voter obtains the ballot request, including σ(i′) and y″ i ; After receiving The ballots will be randomly distributed to anonymous voters in the following manner: i =π(σ(i′)), when the ballot bal i pass Before sending to voters, To use an encryption key k i Encrypt the ballot:

[0071]

[0072] in: is a random number, x′ i is the voter's new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor, g is A generator of is a publicly selectable multiplicative cyclic group; encrypted votes:

[0073]

[0074] Where: AES-Enc is the AES symmetric encryption algorithm, k i is the symmetric encryption key, bal i For unencrypted votes, this allows The ballots are distributed anonymously to voters, and the content of the ballots is encrypted and invisible to the moderator; a short-lived key is generated for this purpose And allow voters to regenerate the encryption key k when decrypting the ballot i ;

[0075] (3.6) Encrypted vote transmission: Moderator Receive key Q i and the encrypted ballot ebal i After that, in order for voters to be able to calculate b i Will calculate a ciphertext:

[0076]

[0077] Where: b i is the random number of the voter’s new identity fuzzy phase, is also a random number, y′ i is the voter's new public key, g is A generator of ;

[0078] (3.7) Obtaining votes: Voter v i Received by host The ciphertext eb i After that, the ciphertext eb will be passed first. i Calculate the random number:

[0079]

[0080] Where: y′ i is the voter’s new public key, x′ i is the voter's new private key, r m is a random number, g is A generator of ;

[0081] Then the voter uses the key Q i Regenerate symmetric encryption keys Finally decrypted Among them, AES-Dec is the decryption method of AES;

[0082] (4) Voter voting stage: Voters can vote in the election after receiving the ballot.

[0083] (4.1) Ballot encryption: Voters first encrypt the ballot associated with the vote, using the registrar The public key and host The public key Encryption, denoted as B i , as shown below:

[0084]

[0085] Where: v is a randomly selected number and is the registrar public key, is the host's public key, T represents T=(bal i ||Vote), where Vote in T refers to the bit sequence of all candidates Vote = (cand1, cand2, cand3, ..., cand m ), corresponding to the following expression:

[0086]

[0087] Where: cand i Indicates the corresponding candidate;

[0088] (4.2) Submit vote: Voter v i Smart Contract SC that triggers election voting vote And integrate the output ballot encryption pair (c3, c4) of the ballot encryption phase into B i As the input of smart contracts; due to the characteristics of smart contracts, once the smart contract is run, the results of the operation will be added to the blockchain and the votes will be permanently stored;

[0089] (5) During the counting phase, the counting agency will count the votes after the voting phase ends. The counting agency will collect the votes that appear on the blockchain during this phase for verification and counting. Figure 2 Step 10 in this stage is in this stage; the detailed description is as follows:

[0090] Tabulation: For verification purposes, the Registrar Will publish his key (Open Registrants here There is no risk to the security of the protocol because the registrar The key is used for voter registration and vote counting. The set of eligible voters will be announced, so the subsequent leakage of the key It is not a big deal, and each election registrar will regenerate a new public-private key pair). Similarly, the host also needs to be public. Key It is only used for decryption and counting during the vote counting phase, and a new public-private key pair will be regenerated for each election host; and the registrar A new permutation γ is also disclosed: It contains all the votes assigned to the voter during the voter acquisition phase. The counting agency will decrypt the votes on the blockchain as follows:

[0091]

[0092] Among them: (c3, c4) is the encrypted ballot after voting, is the registrar public key, is the host public key, is the registrar private key, It is the host's private key;

[0093] If bal i ∈γ, then the counting agency will check the voting bit sequence attached to the ballot and increase the number of votes for the corresponding candidate accordingly;

[0094] (6) Voter verification phase: Voter verification means that voters can verify whether their votes are included in the final voting results. At the end of the counting phase, the counting agency will announce the results of the election on the blockchain. Each election will publish the corresponding ballots as proof of the legitimacy of the results. Voters can confirm whether their own votes have been cast and counted.

[0095] The beneficial effects of the present invention are as follows: the present invention is based on a cutting-edge electronic voting protocol, discovers its anonymity loopholes, introduces an identity-based partial blind signature algorithm to achieve secure anonymity, uses the blockchain as a publicly accessible and tamper-proof notice board, and uses AES symmetric key encryption for ballots to ensure anti-coercion, thereby providing a secure electronic voting system. BRIEF DESCRIPTION OF THE DRAWINGS

[0096] Figure 1 A diagram of the system model.

[0097] Figure 2 This is a timing diagram of the voting process.

[0098] Figure 3 The system architecture diagram is shown in Figure 2.

[0099] Figure 4 It is a diagram of the system functional modules.

[0100] Figure 5 Illustration of the stages of authenticating a voter and obtaining a new identity.

[0101] Figure 6Comparison chart of the average time consumption for voting encryption and decryption under different key sizes.

[0102] Figure 7 Illustration of the time required to encrypt and decrypt votes for different numbers of votes.

[0103] Figure 8 A comparison chart of the total execution time of each algorithm model. DETAILED DESCRIPTION

[0104] The present invention is further described below by way of embodiments in conjunction with the accompanying drawings.

[0105] Embodiment 1: Figure 2 The figure is a diagram of the voting process of the present invention applied to the electronic voting system. The whole voting process is summarized into 11 steps, which will be divided into six stages. The voting is divided into six stages in total, namely: voter registration, voter identity authentication and obtaining a new identity, voter obtaining a ballot, voter voting, counting agency counting, and voter verifying the ballot. Each stage is also divided into different steps:

[0106] 1. Voter registration stage Voter registration refers to the process of voters submitting The initial stage of proving whether one is a qualified voter and proving one’s eligibility to vote. Once a voter has provided the necessary evidence required by the election regulations, Confirm eligibility, Registrar The voter will be added to the set of eligible voters γ. Figure 2 Steps 1 and 2 are in this stage. The detailed description is as follows:

[0107] (1) Registrar key generation: Registrar A signing key pair is required to sign and authenticate the identity of a voter when adding the eligible voter to the set of eligible voters γ. Randomly select a key And calculate the corresponding public key as Get a Registrar The signature key pair (x r ,y r );

[0108] (2) Voter key generation and registration: Voter v i must have a voting key pair corresponding to its electoral identity, so the voter v i Randomly select a key And calculate the corresponding public key as Get the voter's voting key pair (x i ,y i ). In order to register a voter, the voter and the registrar need to share their respective public keys;

[0109] (3) Signing the voter's public key: In order to grant a voter the right to vote, the registrar first verifies the voter's qualifications and then signs the registrar's public key before adding the qualified voter to the set of qualified voters. The registrar randomly selects u i , where 1<u i <p-1 and gcd(u i , p-1) (gcd means to find the greatest common factor), and then perform the following calculations:

[0110]

[0111]

[0112] where g is A generator of is a publicly selectable multiplication cyclic group, p is the prime order of the multiplication cyclic group, Hash is a hash function, (w i ,s i ) is the signature, u i is a random number, x r is the registrar key, y i is the voter’s public key. At the end of the voter registration phase, the registrar The collection of eligible voters will be announced publicly.

[0113] 2. The stage of voter identity authentication and obtaining a new identity. Identity authentication and obtaining a new identity means that the voter proves to the certification authority CA whether he is a qualified voter and his voting qualifications. After the authentication is passed, the voter's new identity is blindly signed. Figure 2 Steps 3 and 4 are in this stage. The detailed description is as follows:

[0114] (1) System parameter setting: First, the system parameters are generated:

[0115] (1.1). Select a four-tuple {F ρ , E / F ρ , G, P}. Where ρ is a k-bit prime number; F ρ is a prime field of order q; E / F ρ is a set of points of an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G;

[0116] (1.2) Random selection Used to calculate the system master private key, P Pub =xP as the system's master public key;

[0117] (1.3). Select three hash functions:

[0118]

[0119]

[0120]

[0121] in: is an integer from 1 to p, {0, 1} * where represents any number of 0 or 1, and G is the additive cyclic group on the elliptic curve.

[0122] (1.4). Finally, the system master private key x is stored confidentially and the global system parameters are output:

[0123]

[0124] Of which: E / F ρ is a set of points on an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G, and F ρ is a prime field of order q, P Pub is the master public key of the system, and H0, H1, and H2 represent three hash functions.

[0125] (2) Key extraction: This step mainly involves generating the public and private key pair of the certification authority CA so that blind signing can be performed later. It is divided into two steps:

[0126] (2.1) The certification authority CA will use its identity ID CA It is transmitted to PKG through a secure channel, and then PKG will randomly select a And perform the following calculation:

[0127] R CA =r CA P#(18)

[0128] h CA =H0(ID CA , R CA )#(19)

[0129] Among them: P is the generator of G, r CA yes The random number in, H0 is a hash function, ID CA It is the identification mark of the certification body

[0130] (2.2). Then calculate the private key d CA =r CA +h CA x. The trusted third party PKG will (d CA , R CA ) is transmitted to the certification authority CA through a secure channel, and the public key P of the certification authority CACA =R CA +h CA P Pub The certification authority CA will decide whether to accept the certificate based on whether the following equation holds true (d CA , R CA ), if not, it will not be accepted.

[0131] P CA =d CA P=R CA +h CA P Pub #(20)

[0132] Where: R CA 、h CA is the intermediate parameter calculated in the previous step, P Pub Is the system's master public key.

[0133] (3) Identity-based partial blind signature: The identity of the certification authority is ID CA , the voter's identity is ID i , the message m that needs to be blindly signed is i′ ,y i′} is the new identity of the voter The public information agreed upon by the certification authority CA and the voters is C = {y i ,(w i ,s i )}, and then go through the following steps:

[0134] (3.1) First, since C is public information, it is visible. When voter v i After sending the public information to the certification authority CA, the CA will verify whether the following equation is valid. If it is true, it means that the voter v i Is a legal voter, if not, it means it is illegal and the subsequent steps will not be carried out;

[0135]

[0136] Where: y i is the voter’s public key, (w i ,s i ) is a signature pair generated by the registrar, and p is a prime number.

[0137] (3.2) After the first step of authentication is passed, the certification authority CA will randomly select a number Then calculate S = H2(C)[P CA +sP], the certification authority CA will (S, R CA ) is sent to voters who need to authenticate their identities and obtain new identities. i;

[0138] (3.3) When the voter v i Receive (S, R CA ) after v i Three numbers will be randomly selected And calculate

[0139] E=αS+βP+γ[R CA +H0(ID CA , R CA ) Pub ]=αS+βP+γP CA #(twenty two)

[0140] l=H1(m,E,C)#(23)

[0141] g=α -1 (γ+l)+H2(C)#(24)

[0142] Among them: α, β, γ are three random numbers, H0, H1, H2 are hash functions, and C is public information.

[0143] The voter sends g to the certification authority CA;

[0144] (3.4) When the certification authority CA receives g, it will calculate δ = gd CA +sH2(C), and send δ back to the voters;

[0145] (3.5) Voter v i After receiving δ, ε = αδ + β is calculated, and finally the final identity-based partial blind signature is λ = (m, C, R CA , E, ε).

[0146] 3. Voters obtain ballots. Voters obtain ballots. Figure 2 Steps 5, 6, 7, and 8 are in this stage. The detailed description is as follows:

[0147] (1) Ballot generation: Registrar Generate n unique random number ballots The ballots are digitally signed using the ElGamal digital signature scheme. Then for this set Perform π permutation:

[0148]

[0149] in: A collection of signatures.

[0150] (2) Voter re-ranking: Moderator As a middleman, between voters i Requesting votes will help v i The new identity i′ is encrypted twice to hide v i identity and help achieve resilience. This generates a set of N unique numbers in one-shot permutations σ: Perform a secondary scramble to prevent voters from v i The new identity i′ is also revealed;

[0151] (3) Certification authority signature verification: Voter v i First, the blind signature of the authentication structure CA obtained in the authentication phase is λ = (m, C, R CA , E, ε), since the information of m includes the voter v i The new public-private key pair cannot be directly exposed to Public information C includes v i Initial public key and registrar The signature pair, therefore, cannot be directly exposed to Therefore, the following processing is required to generate λ′=(H1(m,E,C), R CA , E, ε) to the host Perform signature authentication: judge the equation εP=E+H1(m,E,C)P CA Is it true? If it is true, it means the verification is passed and the following process can be continued. If it is not true, it will not be passed;

[0152] (4) Voter’s new identity is blurred: After passing the authentication, the voter v i Will Pass its new public key y′ i , Choose a number at random And calculate

[0153]

[0154] Where: g is A generator of x′ i is the voter's new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor.

[0155] (5) Ballot distribution and encryption: Registrar Received by host After forwarding, the voter obtains the ballot request, including σ(i′) and y″ i After receiving The ballots will be randomly distributed to anonymous voters in the following manner:i =π(σ(i′)), when the ballot bal i pass Before sending to voters, To use an encryption key k i Encrypt the ballot:

[0156]

[0157] in: is a random number, x′ i is the voter's new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor, g is A generator of is a publicly selectable multiplication cycle group. Encrypted ballot:

[0158]

[0159] Among them: AES-Enc is the AES symmetric encryption algorithm, which can make The ballots are distributed anonymously to voters, and the content of the ballots is encrypted and invisible to the moderator. For this purpose, a short-lived key is generated. And allow voters to regenerate the encryption key k when decrypting the ballot i .

[0160] (6) Encrypted ballot transmission: Moderator Receive key Q i and the encrypted ballot ebal i After that, in order for voters to be able to calculate b i Will calculate a ciphertext:

[0161]

[0162] Where: b i is the random number of the voter’s new identity fuzzy phase, is also a random number, y′ i is the voter's new public key, g is A generator of .

[0163] (7) Obtaining votes: Voters v i Received by host The ciphertext eb i After that, the ciphertext eb will be passed first. i Calculate the random number:

[0164]

[0165] Where: y′i is the voter’s new public key, x′ i is the voter's new private key, r m is a random number, g is A generator of ;

[0166] Then the voter uses the key Q i Regenerate symmetric encryption keys Finally decrypted AES-Dec is the decryption method of AES.

[0167] 4. Voter voting stage: Voters voting means that after obtaining the ballot, the voters can vote in the election. Figure 2 Step 9 in this stage is in this stage. The detailed description is as follows:

[0168] (1) Ballot encryption: Voters first encrypt the ballot associated with the vote and use the registrar to The public key and host The public key Encryption, denoted as B i , as shown below:

[0169]

[0170] where v is a randomly chosen number and T represents T=(bal i ||Vote), where Vote in T refers to the bit sequence of all candidates Vote = (cand1, cand2, cand3, ..., cand m ), corresponding to the following expression:

[0171]

[0172] Where: cand i Indicates the corresponding candidate, is the registrar public key, The host public key.

[0173] (2) Submit vote: Voter v i Smart Contract SC that triggers election voting vote And integrate the output ballot encryption pair (c3, c4) of the ballot encryption phase into B i As the input of the smart contract. Due to the characteristics of smart contracts, once the smart contract is run, the results of the operation will be added to the blockchain and the votes will be permanently stored.

[0174] 5. The counting agency will count the votes after the voting phase. The counting agency will collect the votes that appear on the blockchain during this phase for verification and counting. Figure 2 Step 10 in this stage is in this stage. The detailed description is as follows:

[0175] (1) Tabulation: For verification purposes, the registrar Will publish his key (Open Registrants here There is no risk to the security of the protocol because the registrar The key is used for voter registration and vote counting. The set of eligible voters will be announced, so the subsequent leakage of the key It is not a big deal, and each election registrar will regenerate a new public-private key pair). Similarly, the host also needs to be public. Key It is only used for decryption and counting during the vote counting phase, and a new public-private key pair will be regenerated for each election host; and the registrar A new permutation γ is also disclosed: It contains all the votes assigned to the voter during the voter acquisition phase. The counting agency will decrypt the votes on the blockchain as follows:

[0176]

[0177] Among them: (c3, c4) is the encrypted ballot after voting, is the registrar public key, is the host public key, is the registrar private key, The host's private key.

[0178] If bal i ∈γ, then the counting agency will check the sequence of voting bits attached to the ballot and increase the number of votes for the corresponding candidate accordingly.

[0179] 6. Voter verification phase, vote verification, means that voters can verify whether their votes are included in the final voting results. At the end of the counting phase, the counting agency will publish the results of the election on the blockchain. Each election will publish the corresponding ballots as proof of the legitimacy of the results. Voters can confirm whether their own votes have been cast and counted. Figure 2 Step 11 in this stage.

[0180] Figure 4This is a system function module diagram, which is divided into general module, voter module, registrar module, moderator module, counting agency module and certification agency module according to different role identities.

[0181] Figure 5 The phase diagram for authenticating the voter's identity and obtaining a new identity is a new phase added by the present invention based on the original protocol. Figure 5 The flow interaction of the whole process is demonstrated.

[0182] Figure 6 This is a comparison chart of the average time consumption for voting encryption and decryption under different key sizes. The present invention tests the time taken by a voter to encrypt a ballot and the time taken by a counting agency to decrypt a ballot under different encryption key sizes.

[0183] Figure 7 It is a diagram showing the time consumption for encrypting and decrypting votes with different numbers of ballots, and a comparison diagram showing the time consumption for encrypting and decrypting ballots with different numbers of ballots at the same time.

[0184] Figure 8 The total execution time comparison chart of each algorithm model shows that the performance of the present invention is improved compared with the previous algorithm models, but is similar to the performance of the more advanced Islam model. This is because the electronic voting system of the present invention is intended to solve the problems of anonymity and anti-coercion, and not much effort has been spent on improving the performance, which needs to be improved in the future.

Claims

1. An anonymous and coercion-resistant electronic voting system based on partial blind signature and blockchain, the electronic voting system includes voters, registrars, certification agencies, moderators, election candidates, blockchain networks and vote counting agencies, Features: The voters are a set of qualified voters who are granted voting rights in the election: i ∈γ|1≤i≤n}, use v i Representing voters; The registrar is an entity that generates unique, random digital ballots and shares them anonymously with voters. Registrar; The certification body is an entity that, in order to avoid Both registration and certification are required, and power is too concentrated. Therefore, in order to achieve decentralization, a certification authority CA is added, which will control the voter v i Perform identity-based partial blind signature authentication, and authenticate the voter v i A new public-private key pair will be obtained to achieve anonymity, and CA can be used to represent the certification authority; The moderator is an independent entity responsible for voting. i The identity of the registrar is encrypted twice to hide it, and anonymously let them send the registrar's encrypted ballot, using Representative host; The election candidates are people or things, that is, qualified candidates who can participate in the election vote, and are represented by a set: k ∈C|1≤k≤m}, using cand k Representative candidates; The blockchain network is an untrusted peer-to-peer (P2P) network that maintains a publicly accessible blockchain and is capable of running election smart contracts; The voting counting agency is a trusted third party that counts votes after the voting phase ends. The specific operation of the electronic voting system is as follows: (1) Voter registration phase: Voter registration is when a voter registers with a registrar. The initial stage of proving whether one is a qualified voter and proving one’s voting eligibility; once a voter provides the necessary evidence required by the election regulations, Confirm eligibility, Registrar The voter will be added to the set of eligible voters γ: (1.1) Registrar key generation: Registrar A signing key pair is required to sign and authenticate the identity of the voter when adding the eligible voter to the eligible voter set γ; the registrar Randomly select a key ( is a set of integers from 1 to p-1) and calculates the corresponding public key as Get a Registrar The signature key pair (x r ,y r ); (1.2) Voter key generation and registration: Voter v i must have a voting key pair corresponding to its electoral identity, so the voter v i Randomly select a key And calculate the corresponding public key as Get the voter's voting key pair (x i ,y i ); In order to register voters, voters and registrars need to share their respective public keys; (1.3) Signing the voter's public key: In order to grant a voter voting rights, the registrar first verifies the voter's qualifications, and then needs to sign the registrar's public key before adding the qualified voter to the set of qualified voters; The registrar randomly selects u i , where 1 < u i < p - 1 and gcd(u i , p - 1) (gcd means finding the greatest common divisor), and then performs the following calculations: Where: g is A generator of is a publicly selectable multiplication cyclic group, p is the prime order of the multiplication cyclic group, Hash is a hash function, (w i ,s i ) is the signature, u i is a random number, x r is the registrar key, y i is the voter's public key; at the end of the voter registration phase, the registrar The collection of eligible voters will be publicly announced; (2) The voter authenticates his / her identity and obtains a new identity. Authentication and obtaining a new identity means that the voter proves to the certification authority CA whether he / she is a qualified voter and proves his / her voting qualifications. After the authentication is passed, the voter's new identity is blindly signed. (2.1) System parameter setting: First, the system parameters are generated: (2.1.1). Select a four-tuple {F ρ ,E / F ρ ,G,P}; where ρ is a k-bit prime number; F ρ is a prime field of order q; E / F ρ is a set of points of an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G; (2.1.2) Random selection Used to calculate the system master private key, P Pub =xP as the system's master public key; (2.1.3). Choose three hash functions: in: is an integer from 1 to p, {0,1} * represents any number of 0 or 1, and G is the additive cyclic group on the elliptic curve; (2.1.4). Finally, the system master private key x is stored confidentially and the global system parameters are output: Of which: E / F ρ is a set of points on an elliptic curve; G is an additive cyclic group on the elliptic curve; P is a generator of G, and F ρ is a prime field of order q, P Pub is the master public key of the system, H 0 ,H 1 ,H 2 Represents three hash functions; (2.2) Key extraction: This is the generation of a public and private key pair for the certification authority CA to facilitate blind signing. This is divided into two steps: (2.2.1). The certification authority CA sends its identity ID CA It is transmitted to PKG through a secure channel, and then PKG will randomly select a And perform the following calculation: R CA =r CA P#(18) h CA =H 0 (ID CA ,R CA )#(19) Among them: P is the generator of G, r CA yes The random number in H 0 is a hash function, ID CA is the identity of the certification body; (2.2.2). Then calculate the private key d CA =r CA +h CA x; the trusted third party PKG will (d CA ,R CA ) is transmitted to the certification authority CA through a secure channel, and the public key P of the certification authority C CA =R CA +h CA P Pub ; The certification authority CA will decide whether to accept the application based on whether the following equation holds true (d CA ,R CA ), if not established, it will not be accepted; P CA =d CA P=R CA +h CA P Pub #(20) Where: R CA 、h CA is the intermediate parameter calculated in the previous step, P Pub is the system's master public key; (2.3) Identity-based partially blind signature: The identity of the certification authority is ID CA , the voter's identity is ID i , the message m that needs to be blindly signed is i′ ,y i′ } is the new identity of the voter The public information agreed upon by the certification authority CA and the voters is C = {y i ,(w i ,s i )}, and then go through the following steps: (2.3.1) First, since C is public information, when voter v i After sending the public information to the certification authority CA, the CA will verify whether the following equation is valid. If it is true, it means that the voter v i Is a legal voter, if not, it means it is illegal and the subsequent steps will not be carried out; Where: y i is the voter’s public key, (w i ,s i ) is a signature pair generated by the registrar, and p is a prime number; (2.3.2) After the first step of authentication is passed, the certification authority CA will randomly select a number Then calculate S = H 2 (C)[P CA +sP], the certification authority CA will (S,R CA ) is sent to voters who need to authenticate their identities and obtain new identities. i ; (2.3.3) When the voter v i Received (S, R CA ) after v i Three numbers will be randomly selected And calculate: E=αS+βP+γ[R CA +H 0 (ID CA ,R CA )P Pub ]=αS+βP+γP CA #(22) l=H 1 (m,E,C)#(23) g=a -1 (γ+l)+H 2 (C)#(24) Among them: α, β, γ are three random numbers, H 0 , H 1 , H 2 They are all hash functions, and C is public information; The voter sends g to the certification authority CA; (2.3.4) When the certification authority CA receives g, it will calculate δ = gd CA +sH 2 (C) and send δ back to the voters; (2.3.5) Voter v i After receiving δ, ε = αδ + β is calculated, and finally the final identity-based partial blind signature is λ = (m, C, R CA ,E,ε); (3) Voters obtain ballots during the voting phase. (3.1) Ballot generation: Registrar Generate n unique random number ballots The ballots are digitally signed using the ElGamal digital signature scheme; these signature sets are used Represents; then for this set Perform π permutation: in: is a signature collection; (3.2) Voter Rearrangement: Moderator As a middleman, between voters i Requesting votes will help v i The new identity i′ is encrypted twice to hide v i identity and help achieve resilience; This generates a set of N unique numbers in one-shot order. Perform a secondary scramble to prevent voters from v i The new identity i′ is also revealed; (3.3) Certification authority signature verification: Voter v i First, the blind signature of the authentication structure CA obtained in the authentication phase is λ=(m,C,R CA ,E,ε), since the information of m includes the voter v i The new public-private key pair cannot be directly exposed to Public information C includes v i Initial public key and registrar The signature pair, therefore, cannot be directly exposed to Therefore, the following processing is required to generate λ′=(H 1 (m,E,C),R CA ,E,ε) to the host Perform signature authentication: judge the equation εP=E+H 1 (m,E,C)P CA Is it true? If it is true, it means the verification is passed and the following process can be continued. If it is not true, it will not be passed; (3.4) Voter’s new identity is blurred: After authentication, the voter v i Will Passing its new public key y i ′, Randomly select a number And calculate Where: g is A generator of i ′ is the voter’s new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor; (3.5) Ballot distribution and encryption: Registrar Received by host After forwarding, the voter obtains the ballot request, including σ(i′) and y i "; After receiving The ballots will be randomly distributed to anonymous voters in the following manner: i =π(σ(i′)), when the ballot bal i pass Before sending to voters, To use an encryption key k i Encrypt the ballot: in: is a random number, x i ′ is the voter’s new private key, p is the prime order of the multiplicative cyclic group, b i is the fuzzy factor, g is A generator of is a publicly selectable multiplicative cyclic group; encrypted votes: Where: AES-Enc is the AES symmetric encryption algorithm, k i is the symmetric encryption key, bal i For unencrypted votes, this allows The ballots are distributed anonymously to voters, and the content of the ballots is encrypted and invisible to the moderator; a short-lived key is generated for this purpose And allow voters to regenerate the encryption key k when decrypting the ballot i ; (3.6) Encrypted vote transmission: Moderator Receive key Q i and the encrypted ballot ebal i After that, in order for voters to be able to calculate b i Will calculate a ciphertext: Where: b i is the random number of the voter’s new identity fuzzy phase, is also a random number, y i ′ is the voter’s new public key, g is A generator of ; (3.7) Obtaining votes: Voter v i Received by host The ciphertext eb i After that, the ciphertext eb will be passed first. i Calculate the random number: Where: y i ′ is the voter’s new public key, x i ′ is the voter’s new private key, r m is a random number, g is A generator of ; The voter then uses the key Q i Regenerate symmetric encryption keys Finally decrypted Among them, AES-Dec is the decryption method of AES; (4) Voter voting stage: Voters voting means that after receiving the ballot, the voters can vote in the election. (4.1) Ballot encryption: Voters first encrypt the ballot associated with the vote, using the registrar The public key and host The public key Encryption, denoted as B i , as shown below: Where: v is a randomly selected number and is the registrar public key, is the host's public key, T represents T=(bal i ∥Vote), Vote in T refers to the bit sequence of all candidates Vote = (cand 1 ,cand 2 ,cand 3 ,…,cand m ), corresponding to the following expression: Where: cand k Indicates the corresponding candidate; (4.2) Submit vote: Voter v i Smart Contract SC that triggers election voting vote And encrypt the output ballot pair (c 3 ,c 4 ) Integrated B i As the input of smart contracts; due to the characteristics of smart contracts, once the smart contract is run, the results of the operation will be added to the blockchain and the votes will be permanently stored; (5) During the counting phase, the counting agency will count the votes after the voting phase ends. The counting agency will collect the votes that appear on the blockchain during this phase for verification and counting: Tabulation: For verification purposes, the Registrar Will publish his key Similarly, a public host is also needed. Key It is only used for decryption and counting during the vote counting phase, and a new public-private key pair will be regenerated for each election host; and the registrar A new permutation will also be revealed It contains all the votes assigned to the voter during the voter acquisition phase. The counting agency will decrypt the votes on the blockchain as follows: Where: (c 3 ,c 4 ) is the encrypted ballot after voting. is the registrar public key, is the host public key, is the registrar private key, It is the host's private key; If bal i ∈γ, then the counting agency will check the voting bit sequence attached to the ballot and increase the number of votes for the corresponding candidate accordingly; (6) Voter verification phase: Voter verification means that voters can verify whether their votes are included in the final voting results. At the end of the counting phase, the counting agency will announce the results of the election on the blockchain. Each election will publish the corresponding ballots as proof of the legitimacy of the results. Voters confirm whether their own votes have been cast and counted.