An aggregate signature method for electronic voting

By using a lightweight aggregated signature protocol of blockchain and edge computing in the electronic voting system, the issues of voter privacy protection and voting transparency are solved, and the effects of voter identity anonymity and traceability, voting information disclosure, and improved efficiency are solved. Ballot counting efficiency and security.

CN114240332BActive Publication Date: 2024-09-20NANJING UNIV OF INFORMATION SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111432958.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2024-09-20
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

The existing electronic voting system has flaws in security and transparency, cannot effectively protect voter privacy, has low vote counting efficiency, and cannot achieve complete openness and transparency in the voting process.

Method used

Adopting a lightweight aggregated signature protocol based on blockchain and edge computing, through pseudo-identity anonymization, public voting information on the blockchain and verification of edge computing nodes, voter identity anonymity and traceability, voting information disclosure and verification are achieved. Verifiable, and reduce the time overhead of signature generation and verification.

Benefits of technology

It achieves complete anonymity and traceability of voter identities, accuracy and disclosure of voting information, improves the security and efficiency of vote counting, resists replay attacks, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114240332B
    Figure CN114240332B
Patent Text Reader

Abstract

The invention discloses an aggregate signature method for electronic voting. The method comprises the following steps: a registration center receives a registration request, generates a pseudo identity, a master public key, a master private key and a voting status for a voter according to system parameters, and stores the pseudo identity, the master public key and the voting status in a blockchain; after a certification center successfully authenticates the identity of the voter, it generates a partial key according to the system parameters and returns it to the voter; after receiving the partial key, the voter randomly selects a secret value to generate a group public key and a group private key; the voter sends the ballot to an edge computing node, the computing node uploads the ballot and the pseudo identity to all members in the group, obtains all signatures and aggregates all signatures after verification, and uploads them to a central network, the edge computing nodes in other groups verify the validity of the aggregate group signature, after all verifications are passed, the edge node uploads the voting information and the pseudo identity to the blockchain, and updates the voting status stored in the blockchain of the voter to 1; and the voting information is automatically identified to obtain the number of votes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of electronic voting, and in particular relates to an aggregate signature method for electronic voting. Background Art

[0002] With the development of information technology, the application of electronic voting systems has become more and more widespread. Electronic voting is generally supervised by representatives of the government or independent election authorities, and is mostly conducted remotely through the Internet. Voters can submit their votes to the election authorities through the Internet at any location. This avoids the time spent in queuing during the voting process and greatly reduces manpower costs in counting votes. However, while electronic voting brings convenience, it also has many security risks. On the one hand, attackers launch attacks on voters' personal privacy, such as stealing users' real identities and corresponding ballot information, and maliciously tampering with ballot information, resulting in final counting errors. On the other hand, the voting process cannot be fully open and transparent. Voters can only apply to third parties for ballot verification, which results in unsatisfactory verification efficiency. Therefore, in order to solve the security threats faced by electronic voting, realize the transparency and verifiability of electronic voting, and protect voters' privacy, it is necessary to design a secure, reliable, and efficient aggregate signature protocol.

[0003] In recent years, blind signatures, ring signatures, aggregate signatures, etc. are the research hotspots of electronic signature protocols. Most of the previous solutions can only meet the basic characteristics of voting, such as vote uniqueness and invisibility of ballots. But now, the demand for better security and transparency has led to extensive discussions among many researchers and scholars on the aggregate signature electronic voting protocol designed based on blockchain technology. At present, some researchers have achieved certain research results in the field of aggregate signature electronic voting protocols based on blockchain, but the existing research results still have problems such as user identity privacy leakage, malicious tampering of ballots, inability to achieve complete openness and transparency of the voting process, and inability to strike a balance between security and efficiency. Therefore, a secure and efficient aggregate signature protocol based on blockchain is proposed, which can be efficiently applied to electronic voting. Summary of the invention

[0004] Purpose of the invention: In order to achieve the accuracy of vote counting and the anonymity of users in an electronic voting environment, there are some security and efficiency issues in existing electronic voting solutions that need to be solved. The present invention aims to solve the following problems:

[0005] (1) Anonymity and traceability of voters. Existing electronic voting solutions focus mainly on ensuring the accuracy of vote counting, but lack consideration of some security issues, such as achieving anonymity protection and malicious user traceability. In this invention, we use the aggregate signature method to separate the real identity of the voter from the ballot information. Attackers cannot obtain the real identity of the voter through the ballot information, and for malicious voters who meet the tracking conditions, their real identities can be tracked.

[0006] (2) Publicity and verifiability of ballots. Some existing solutions use bulletin boards to make voting information public, but ballots can only verify the accuracy of the final total votes. The ballot corresponding to each voter is encrypted and displayed in the bulletin board, which makes it impossible for voters to know the specific information of other ballots. Therefore, we use the characteristics of blockchain, such as decentralization, openness, and anonymity, to completely write the specific information of the ballot into the blockchain and publish it on the network, thereby achieving the publicity and verifiability of the ballot.

[0007] (3) Security and efficiency of the protocol. On the one hand, the generation and verification of a single signature and the generation and verification of an aggregate signature will incur a large time overhead. On the other hand, the time overhead of writing the ballot information into the blockchain is also not low. Therefore, we design a lightweight aggregate signature protocol based on blockchain and edge computing technology to achieve a good balance between security and efficiency.

[0008] Technical solution: In order to achieve the above purpose, the technical solution adopted by the present invention is: a blockchain-based aggregate signature method for electronic voting, the method comprising the following steps:

[0009] Step A: Based on the security parameters, the registration center generates system parameters;

[0010] Step B: Based on the voter’s real identity and system parameters, the registration center generates the voter’s pseudo identity, master public key and master private key, and writes the voter’s pseudo identity identifier and master public key into the blockchain;

[0011] Step C: Based on the voter's master private key, the voter encrypts a random message. Based on the encrypted message sent by the voter, the system parameters, and the corresponding information of the voter in the blockchain, the authentication center first verifies the validity of the voter's identity. If the verification is successful, a partial key of the voter is generated;

[0012] Step D: Based on the system parameters and the voter's partial key, the voter generates his or her own group public key and group private key, and uses the public key of the edge computing node in the group to be added to encrypt a message and send it to the edge computing node. Each group has only one edge computing node, that is, the generation of each group is determined by the edge computing node. The edge computing node searches for the voter's related information stored in the blockchain and records whether the voter has voted.

[0013] Step E: After the voter signs and encrypts the voting information according to the system parameters and the voter's group private key, the voter returns the signed information to the edge computing node in the group. Finally, the edge computing node of the group aggregates all signatures to generate a group signature and uploads it to the central network. The edge computing nodes in other groups in the network verify whether the aggregate signature is valid. If the verification is successful, the edge computing node can write the encrypted voting information into the blockchain.

[0014] Step F: Based on the voting information uploaded to the blockchain, the smart contract counts the final votes.

[0015] Further, the detailed steps of step A are as follows:

[0016] A.1 System parameters include the following: a large prime number q, a cyclic group G of order q, two generators P1 and P2, and 6 hash functions;

[0017] H:G×{0,1} * →G; H1:{0,1} * ×{0, 1} * ×G×G→G;

[0018] H2: H3:

[0019] H4: H5:{0,1} * ×{0, 1} * ×{0, 1} * ×{0, 1} * ×G→G

[0020] in, is defined as follows: In the definition, (a0,q) = 1 means that a0 and q are relatively prime, that is: Any element in is relatively prime to the prime number q;

[0021] A.2 Random selection of registration centers as the key, and through the equation P pub =sP1, calculate the public key P pub ;

[0022] A.3 The final output system parameters of this stage are params = {q, P1, P2, P pub ,H,H1,H2,H3,H4,H5}.

[0023] Further, the detailed steps of step B are as follows: First, the voter will send his real identity RID iSent to the registration center, the registration center randomly selects And randomly select timestamp t i , through XOR operation and system parameters params, calculate the equation Get a fake ID i ,Secondly, the registration center randomly selects As a voter ID i The master private key sk i =k i , the master private key is only known to the voter, and is calculated through the equation pk i =k i P1, calculate the voter's master public key pk i , and set the parameter c i =0 is the initial state, where c i Indicates the voting status, 0 means no vote, 1 means voted, and finally (ID i ,pk i ,c i ) is written into the blockchain and can be viewed by everyone.

[0024] Further, the detailed steps of step C are as follows:

[0025] C.1 Each group has only one edge computing node, that is, the location of each group is determined by the edge computing node. Each edge computing node is regarded as the administrator of a group. The edge computing node identifier is consistent with the group identifier. The voter ID i Randomly select a number a and an edge computing node identifier MECS, and use the master private key sk generated by the registration center i Encrypt the random number a Ultimately voters will have information Send to the certification authority;

[0026] C.2 The authentication center receives the message Auth i Afterwards, based on the ID contained in the message i , find the corresponding information of the voter in the blockchain, including the voter's master public key pk i and voting status c i , for information Auth i The encrypted item, i.e. the third item Decryption is performed to determine whether the voter has the correct master public-private key pair, using the found master public key pk i By judging the equation Is it true? If the verification is successful, the voter has the correct master public-private key pair granted by the certification center, that is, the authentication is successful. i= 0, that is, the voter has not voted yet, the certification center will perform the following steps:

[0027] (1) Random selection of certification centers As the private key of the edge computing node MECS of the group to which the voter belongs, PK is calculated through the system parameter params. MECS =s MECS P2 is the public key PK of the edge computing node MECS MECS , the certification center will eventually (s MECS ,PK MECS ) is sent to the corresponding edge computing node MECS through a secure channel;

[0028] (2) Authentication center for voter ID i Randomly select a parameter With a timestamp T 1,i , and calculate the partial key D according to the system parameters params i , which contains two parameters d i With R i , d i =r i +s MECS h 1,i ,R i =r i P2,h 1,i =H1(ID i ,MECS,R i ,PK MECS ), where h 1,i is the output value of the hash function H1, and the final authentication center generates the voter's partial key D i =(d i ,R i ), and M i =(D i ,MECS,R i ,PK MECS ) is returned to the voters.

[0029] Further, the detailed steps of step D are as follows:

[0030] D.1 Voter ID i Upon receiving the message M i After that, first according to the system parameters params, information M i Partial key D in i And the edge computing node public key PK MECS , through the equation: d MECS P2=R i +PK MECS h 1,iVerify that the partial key is correct, where the voter passes h 1,i =H1(ID i ,MECS,R i ,PK MECS ), if the equation holds, the verification is successful, and the voter randomly selects As its secret value, the x i Only the voters themselves can know;

[0031] D.2 Voter ID i According to the system parameters params, the information M received by the authentication center i and the secret value x i Calculate X i =x i P2,Q i =R i +X i h 2,i , we get two parameters X i With Q i , where h 2,i =H2(ID i ,MECS,X i ,PK MECS ) is the output value of the hash function H2, and sets the voter’s group private key SK i With the group public key PK i :SK i =(d i ,x i ), PK i =(Q i ,R i ), the final voter uses the public key PK of the only edge computing node MECS in the group MECS message i =(PK i ,pk i ,T 1,i +1,ID i ) for encryption Among them, T 1,i The purpose of +1 is to update the timestamp to prevent replay attacks. Voters will eventually send encrypted information Send to edge computing node MECS;

[0032] D.3 The edge computing node MECS receives the voter ID i Encrypted information sent Afterwards, use your own private key s MECS Decrypt the information Finally get the unencrypted message mess i =(PK i,pk i ,T 1,i +1,ID i ), in obtaining the voter pseudo-identity identifier ID i After that, the edge computing node MECS queries the relevant information stored in the blockchain according to the user's pseudo identity and obtains c i , and store the voter's master public key PK i , group public key pk i , voting status c i .

[0033] Further, the detailed steps of step E are as follows:

[0034] E.1 When the voter ID i Confirm the content of the ballot i After uploading to the edge computing node MECS of the group, the edge computing node will i with a pseudo-voter ID i , and sent to all voter IDs in the group j , Where n is the voter ID i The number of all members in the group, in the voter ID j Receive m i With ID i After confirming the validity of the ballot content, the system parameters params and the group private key SK j Give your correct signature σ j , the specific signing process is as follows, u j =H3(ID j ,MECS,m i ,Y j ), Y j =y j P2, w j =h 4,j (x j h 2,j +d j )+u j (y j +h 5,j x j ), where ID j The real identity is RID j The pseudo-identity of the voter, x j With d j is ID j The group private key in this group, randomly selected h 2,j =H2(ID j ,MECS,X j ,PKMECS ), h 4,j =H4(ID j ,MECS,m j ,Y j ,PK j ), h 5,j =H5(ID j ,MECS,m j ,Y j ,PK j ), h 2,j ,h 4,j With h 5,j are the output values ​​of hash functions H2, H4 and H5, respectively, and u j is the output value of the hash function H3, and X j =x j P2, where x j For voter ID j The secret value of the message m i The corresponding n signatures σ j =(Y j ,u j ,w j ), the group members send the signatures to the edge computing node MECS respectively. After receiving n signatures, the edge computing node MECS verifies whether the following equations hold;

[0035] Verify the equation: w j P2-u j Y j -u j h 5,j X j =h 4,j (Q j +h 1,j PK MECS );

[0036] If all n signatures are verified by the above equation, then the signatures given by all members of the group are valid signatures. If the signature given by a voter is incorrect, the edge node in the group will vote m. i Return to voter ID i ;

[0037] E.2 The edge computing node receives all voter signatures σ j , and after verifying that the signature is valid, all signatures are aggregated. The aggregation process is as follows: MECS =∑u j h 5,j X j , Y MECS =∑u j Y j , WMECS =∑w j , and finally generate the aggregate signature σ=(Y MECS ,U MECS ,W MECS ), the edge computing node uploads the message with the aggregate signature to the central network. The edge computing nodes in other groups in the network can verify the aggregate signature through the following equation. The verification process is mainly verified by the following equation: MECS P2-Y MECS -U MECS =∑h 4,i (Q i +h 1,i PK MECS ), if all verifications pass, the aggregate signature is a valid signature. If other edge computing nodes in the network fail to pass the signature verification, the signature is rejected and shall not be written into the blockchain.

[0038] Further, the detailed steps of step F are as follows: After the aggregate signature verification is passed, the edge computing node will send the voting information m i with a pseudo-voter ID i Write it directly into the blockchain and write the voter's corresponding c i Updated to 1. After the ballot is written into the blockchain, the smart contract directly reads the specific information of the ballot and adds 1 to the total number of votes for the corresponding candidate. After all the ballots are written into the blockchain, the final counting results will also be announced on the central network and blockchain.

[0039] Beneficial effects: Compared with the prior art, the beneficial technical effects of the technical solution of the present invention are as follows:

[0040] (1) The present invention can ensure complete anonymity and traceability of voter identity.

[0041] The present invention anonymizes the real identity of the voter through an independent third party (registration center), that is, generates a corresponding and unique pseudo-identity. The registration center only knows the relationship between the real identity and the pseudo-identity of the voter, and cannot know the specific voting information from the information written in the final blockchain. When the ballot needs to be traced, the edge computing node of the group finds the corresponding pseudo-identity and applies to the registration center for tracing, and the real identity of the voter on the ballot can be found. Since the third parties in this scheme are independent individuals and have no direct connection, the complete anonymity and traceability of the voter's identity can be achieved.

[0042] (2) The present invention ensures that voting information is accurate and open.

[0043] In order to have more practical application value, if only the final vote count can be displayed without showing the voting behavior of each person, the credibility of the voting activity will be greatly reduced. This invention provides a mechanism for all voters to verify the voting results, that is, each voter can perform "signature-ballot" verification through the uploaded public key, that is, verify the correctness of the voting information, and at the same time use smart contracts to count the votes, fully realize the accuracy of the counting, and thus realize the accuracy and complete disclosure of the voting process.

[0044] (3) The present invention greatly improves the efficiency of vote counting while ensuring security.

[0045] This scheme proposes a lightweight aggregate signature protocol that only uses the map-to-point hash function and avoids the use of bilinear pairings, which greatly reduces the time and computational overhead in the voting process. Writing voting information into the blockchain requires a lot of time, but the present invention uses edge computing technology. Voters upload their ballots to edge computing nodes, which are written into the blockchain by edge computing nodes. This provides voters with an excellent user experience. Compared with mobile devices, edge computing nodes have a significant advantage in the speed of writing into the blockchain.

[0046] (4) Resist replay attacks.

[0047] When voters upload their ballot information, a timestamp is added to the ballot information. Voters can use the timestamp to verify whether their ballot information has been maliciously tampered with. The adversary cannot know the specific timestamp, that is, it is impossible to forge a valid ballot information. And each ballot will be verified by all users in the group. When the voter whose ballot is forged finds that his ballot has been forged, he will give an invalid signature, that is, the first round of verification will fail. This can resist replay attacks. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is the system model diagram;

[0049] Figure 2 This is the main process diagram of the plan. DETAILED DESCRIPTION

[0050] The present invention will be further described below in conjunction with the accompanying drawings.

[0051] The present invention proposes a blockchain-based aggregate signature method for electronic voting, which comprises the following steps:

[0052] Step A: Based on the security parameters, the registration center generates system parameters;

[0053] Step B: Based on the voter’s real identity and system parameters, the registration center generates the voter’s pseudo identity, master public key and master private key, and writes the voter’s pseudo identity identifier and master public key into the blockchain;

[0054] Step C: Based on the voter's master private key, the voter encrypts a random message. Based on the encrypted message sent by the voter, the system parameters, and the corresponding information of the voter in the blockchain, the authentication center first verifies the validity of the voter's identity. If the verification is successful, a partial key of the voter is generated;

[0055] Step D: Based on the system parameters and the voter's partial key, the voter generates his or her own group public key and group private key, and uses the public key of the edge computing node in the group to be added to encrypt a message and send it to the edge computing node. Each group has only one edge computing node, that is, the generation of each group is determined by the edge computing node. The edge computing node searches for the voter's related information stored in the blockchain and records whether the voter has voted.

[0056] Step E: After the voter signs and encrypts the voting information according to the system parameters and the voter's group private key, the voter returns the signed information to the edge computing node in the group. Finally, the edge computing node of the group aggregates all signatures to generate a group signature and uploads it to the central network. The edge computing nodes in other groups in the network verify whether the aggregate signature is valid. If the verification is successful, the edge computing node can write the encrypted voting information into the blockchain.

[0057] Step F: Based on the voting information uploaded to the blockchain, the smart contract counts the final votes.

[0058] Further, the detailed steps of step A are as follows:

[0059] A.1 System parameters include the following: a large prime number q, a cyclic group G of order q, two generators P1 and P2, and 6 hash functions;

[0060] H:G×{0,1} * →G; H1:{0,1} * ×{0, 1} * ×G×G→G;

[0061] H2: H3:

[0062] H4: H5:{0,1} * ×{0, 1} * ×{0, 1} * ×{0, 1} * ×G→G

[0063] in, is defined as follows: In the definition, (a0,q) = 1 means that a0 and q are relatively prime, that is, the set Any element in is relatively prime to the prime number q;

[0064] A.2 Random selection of registration centers as the key, and through the equation P pub =sP1, calculate the public key P pub ;

[0065] A.3 The final output system parameters of this stage are params = {q, P1, P2, P pub ,H,H1,H2,H3,H4,H5}.

[0066] Further, the detailed steps of step B are as follows: First, the voter will send his real identity RID i Sent to the registration center, the registration center randomly selects And randomly select timestamp t i , through XOR operation and system parameters params, calculate the equation Get a fake ID i ,Secondly, the registration center randomly selects As a voter ID i The master private key sk i =k i , the master private key is only known to the voter, and is calculated through the equation pk i =k i P1, calculate the voter's master public key pk i , and set the parameter c i =0 is the initial state, where c i Indicates the voting status, 0 means no vote, 1 means voted, and finally (ID i ,pk i ,c i ) is written into the blockchain and can be viewed by everyone.

[0067] Further, the detailed steps of step C are as follows:

[0068] C.1 Each group has only one edge computing node, that is, the location of each group is determined by the edge computing node. Each edge computing node is regarded as the administrator of a group. The edge computing node identifier is consistent with the group identifier. The voter ID i Randomly select a number a and an edge computing node identifier MECS, and use the master private key sk generated by the registration center i Encrypt the random number a Ultimately voters will have information Send to the certification authority;

[0069] C.2 The authentication center receives the message Auth i Afterwards, based on the ID contained in the message i , find the corresponding information of the voter in the blockchain, including the voter's master public key pk i and voting status c i , for information Auth i The encrypted item, i.e. the third item Decryption is performed to determine whether the voter has the correct master public-private key pair, using the found master public key pk i By judging the equation Is it true? If the verification is successful, the voter has the correct master public-private key pair granted by the certification center, that is, the authentication is successful. i = 0, that is, the voter has not voted yet, the certification center will perform the following steps:

[0070] (1) Random selection of certification centers As the private key of the edge computing node MECS of the group to which the voter belongs, PK is calculated through the system parameter params. MECS =s MECS P2 is the public key PK of the edge computing node MECS MECS , the certification center will eventually (s MECS ,PK MECS ) is sent to the corresponding edge computing node MECS through a secure channel;

[0071] (2) Authentication center for voter ID i Randomly select a parameter With a timestamp T 1,i , and calculate the partial key D according to the system parameters params i , which contains two parameters d i With R i , d i =r i +s MECS h 1,i ,R i =r i P2,h 1,i =H1(ID i ,MECS,R i ,PK MECS ), where h 1,i is the output value of the hash function H1, and the final authentication center generates the voter's partial key D i =(d i ,R i), and M i =(D i ,MECS,R i ,PK MECS ) is returned to the voters.

[0072] Further, the detailed steps of step D are as follows:

[0073] D.1 Voter ID i Upon receiving the message M i After that, first according to the system parameters params, information M i Partial key D in i And the edge computing node public key PK MECS , through the equation: d MECS P2=R i +PK MECS h 1,i Verify that the partial key is correct, where the voter passes h 1,i =H1(ID i ,MECS,R i ,PK MECS ), if the equation holds, the verification is successful, and the voter randomly selects As its secret value, the x i Only the voters themselves can know;

[0074] D.2 Voter ID i According to the system parameters params, the information M received by the authentication center i and the secret value x i Calculate X i =x i P2,Q i =R i +X i h 2,i , we get two parameters X i With Q i , where h 2,i =H2(ID i ,MECS,X i ,PK MECS ) is the output value of the hash function H2, and sets the voter’s group private key SK i With the group public key PK i :SK i =(d i ,x i ), PK i =(Q i ,R i ), the final voter uses the public key PK of the only edge computing node MECS in the group MECS message i=(PK i ,pk i ,T 1,i +1,ID i ) for encryption Among them, T 1,i The purpose of +1 is to update the timestamp to prevent replay attacks. Voters will eventually send encrypted information Send to edge computing node MECS;

[0075] D.3 The edge computing node MECS receives the voter ID i Encrypted information sent Afterwards, use your own private key s MECS Decrypt the information Finally get the unencrypted message mess i =(PK i ,pk i ,T 1,i +1,ID i ), in obtaining the voter pseudo-identity identifier ID i After that, the edge computing node MECS queries the relevant information stored in the blockchain according to the user's pseudo identity and obtains c i , and store the voter's master public key PK i , group public key pk i , voting status c i .

[0076] Further, the detailed steps of step E are as follows:

[0077] E.1 When the voter ID i Confirm the content of the ballot i After uploading to the edge computing node MECS of the group, the edge computing node will i with a pseudo-voter ID i , and sent to all voter IDs in the group j , Where n is the voter ID i The number of all members in the group, in the voter ID j Receive m i With ID i After confirming the validity of the ballot content, the system parameters params and the group private key SK j Give your correct signature σ j , the specific signing process is as follows, u j =H3(ID j ,MECS,m i ,Y j ), Y j =yj P2, w j =h 4,j (x j h 2,j +d j )+u j (y j +h 5,j x j ), where ID j The real identity is RID j The pseudo-identity of the voter, x j With d j is ID j The group private key in this group, randomly selected h 2,j =H2(ID j ,MECS,X j ,PK MECS ), h 4,j =H4(ID j ,MECS,m j ,Y j ,PK j ), h 5,j =H5(ID j ,MECS,m j ,Y j ,PK j ), h 2,j ,h 4,j With h 5,j are the output values ​​of hash functions H2, H4 and H5, respectively, and u j is the output value of the hash function H3, and X j =x j P2, where x j For voter ID j The secret value of the message m i The corresponding n signatures σ j =(Y j ,u j ,w j ), the group members send the signatures to the edge computing node MECS respectively. After receiving n signatures, the edge computing node MECS verifies whether the following equations hold;

[0078] Verify the equation: w j P2-u j Y j -u j h 5,j X j =h 4,j (Q j +h 1,j PK MECS );

[0079] If all n signatures are verified by the above equation, then the signatures given by all members of the group are valid signatures. If the signature given by a voter is incorrect, the edge node in the group will vote m. i Return to voter ID i ;

[0080] E.2 The edge computing node receives all voter signatures σ j , and after verifying that the signature is valid, all signatures are aggregated. The aggregation process is as follows: MECS =∑u j h 5,j X j , Y MECS =∑u j Y j , W MECS =∑w j , and finally generate the aggregate signature σ=(Y MECS ,U MECS ,W MECS ), the edge computing node uploads the message with the aggregate signature to the central network. The edge computing nodes in other groups in the network can verify the aggregate signature through the following equation. The verification process is mainly verified by the following equation: MECS P2-Y MECS -U MECS =∑h 4,i (Q i +h 1,i PK MECS ), if all verifications pass, the aggregate signature is a valid signature. If other edge computing nodes in the network fail to pass the signature verification, the signature is rejected and shall not be written into the blockchain.

[0081] Further, the detailed steps of step F are as follows: After the aggregate signature verification is passed, the edge computing node will send the voting information m i with a pseudo-voter ID i Write it directly into the blockchain and write the voter's corresponding c i Updated to 1. After the ballot is written into the blockchain, the smart contract directly reads the specific information of the ballot and adds 1 to the total number of votes for the corresponding candidate. After all the ballots are written into the blockchain, the final counting results will also be announced on the central network and blockchain.

Claims

1. A blockchain-based aggregate signature method for electronic voting, characterized in that: The method comprises the following steps: Step A: Based on the security parameters, the registration center generates system parameters; Step B: Based on the voter’s real identity and system parameters, the registration center generates the voter’s pseudo identity, master public key and master private key, and writes the voter’s pseudo identity identifier and master public key into the blockchain; Step C: Based on the voter's master private key, the voter encrypts a random message. Based on the encrypted message sent by the voter, the system parameters, and the corresponding information of the voter in the blockchain, the authentication center first verifies the validity of the voter's identity. If the verification is successful, a partial key of the voter is generated; Step D: Based on the system parameters and the voter's partial key, the voter generates his or her own group public key and group private key, and uses the public key of the edge computing node in the group to be added to encrypt a message and send it to the edge computing node. Each group has only one edge computing node, that is, the generation of each group is determined by the edge computing node. The edge computing node searches for the voter's related information stored in the blockchain and records whether the voter has voted. Step E: After the voter signs and encrypts the voting information according to the system parameters and the voter's group private key, the voter returns the signed information to the edge computing node in the group. Finally, the edge computing node of the group aggregates all signatures to generate a group signature and uploads it to the central network. The edge computing nodes in other groups in the network verify whether the aggregate signature is valid. If the verification is successful, the edge computing node can write the encrypted voting information into the blockchain. Step F: Based on the voting information uploaded to the blockchain, the smart contract counts the final votes; Step C: C.1 Each group has only one edge computing node, that is, the location of each group is determined by the edge computing node. Each edge computing node is regarded as the administrator of a group. The edge computing node identifier is consistent with the group identifier. The voter ID i Randomly select a number a and an edge computing node identifier MECS, and use the master private key sk generated by the registration center i Encrypt the random number a Ultimately voters will have information Send to the certification authority; C.2 The authentication center receives the message Auth i Afterwards, based on the ID contained in the message i , find the corresponding information of the voter in the blockchain, including the voter's master public key pk i and voting status c i , for information Auth i The encrypted item, i.e. the third item Decryption is performed to determine whether the voter has the correct master public-private key pair, using the found master public key pk i By judging the equation Is it true? If the verification is successful, the voter has the correct master public-private key pair granted by the certification center, that is, the authentication is successful. i =0, that is, the voter has not voted yet, the authentication center will perform the following steps: (1) Random selection of certification centers As the private key of the edge computing node MECS of the group to which the voter belongs, PK is calculated through the system parameter params. MECS =s MECS P2 is the public key PK of the edge computing node MECS MECS , the certification center will eventually (s MECS ,PK MECS ) is sent to the corresponding edge computing node MECS through a secure channel; (2) Authentication center for voter ID i Randomly select a parameter With a timestamp T 1,i , and calculate the partial key D according to the system parameters params i , which contains two parameters d i With R i , d i =r i +s MECS h 1,i ,R i =r i P2,h 1,i =H1(ID i ,MECS,R i ,PK MECS ), where h 1,i is the output value of the hash function H1, and the final authentication center generates the voter's partial key D i =(d i ,R i ), and M i =(D i ,MECS,R i ,PK MECS ) returned to the voters; Step D The detailed steps are as follows: D.1 Voter ID i Upon receiving the message M i After that, first according to the system parameters params, information M i Partial key D in i And the edge computing node public key PK MECS , through the equation: d MECS P2=R i +PK MECS h 1,i Verify that the partial key is correct, where the voter passes h 1,i =H1(ID i ,MECS,R i ,PK MECS ), if the equation holds, the verification is successful, and the voter randomly selects As its secret value, the x i Only the voters themselves can know; D.2 Voter ID i According to the system parameters params, the information M received by the authentication center i and the secret value x i Calculate X i =x i P2,Q i =R i +X i h 2,i , we get two parameters X i With Q i , where h 2,i =H2(ID i ,MECS,X i ,PK MECS ) is the output value of the hash function H2, and sets the voter’s group private key SK i With the group public key PK i :SK i =(d i ,x i ), PK i =(Q i ,R i ), the final voter uses the public key PK of the only edge computing node MECS in the group MECS message i =(PK i ,pk i ,T 1,i +1,ID i ) for encryption Among them, T 1,i The purpose of +1 is to update the timestamp to prevent replay attacks. Voters will eventually send encrypted information Send to edge computing node MECS; D.3 The edge computing node MECS receives the voter ID i Encrypted information sent Afterwards, use your own private key s MECS Decrypt the information Finally get the unencrypted message mess i =(PK i ,pk i ,T 1,i +1,ID i ), in obtaining the voter pseudo-identity identifier ID i After that, the edge computing node MECS queries the relevant information stored in the blockchain according to the user's pseudo identity and obtains c i , and store the voter's master public key PK i , group public key pk i , voting status c i .

2. According to claim 1, a blockchain-based aggregate signature method for electronic voting is characterized in that: Step A: A.1 System parameters include the following: a large prime number q, a cyclic group G of order q, two generators P1 and P2, and 6 hash functions; H:G×{0,1} * →G;H1:{0,1} * ×{0,1} * ×G×G→G; <h2 style=";text-align:left;direction:ltr">H2:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> H3:<h2 style=";text-align:left;direction:ltr"> H4: H5:{0,1} * ×{0,1} * ×{0,1} * ×{0,1} * ×G→G in, is defined as follows: In the definition, (a0,q) = 1 means that a0 and q are relatively prime, that is, the set Any element in is relatively prime to the prime number q; A.2 Random selection of registration centers as the key, and through the equation P pub =sP1, calculate the public key P pub ; A.3 The final output system parameters of this stage are params = {q, P1, P2, P pub ,H,H1,H2,H3,H4,H5}.

3. According to claim 2, a blockchain-based aggregate signature method for electronic voting is characterized in that: Step B: First, the voter will send their real ID i Sent to the registration center, the registration center randomly selects And randomly select timestamp t i , through XOR operation and system parameters params, calculate the equation Get a fake ID i ,Secondly, the registration center randomly selects As a voter ID i The master private key sk i =k i , the master private key is only known to the voter, and is calculated through the equation pk i =k i P1, calculate the voter's master public key pk i , and set the parameter c i =0 is the initial state, where c i Indicates the voting status, 0 means no vote, 1 means voted, and finally (ID i ,pk i ,c i ) is written into the blockchain and can be viewed by everyone.

4. According to claim 1, a blockchain-based aggregate signature method for electronic voting is characterized in that: The detailed steps of step E are as follows: E.1 When the voter ID i Confirm the content of the ballot i After uploading to the edge computing node MECS of the group, the edge computing node will i with a pseudo-voter ID i , and sent to all voter IDs in the group j , Where n is the voter ID i The number of all members in the group, in the voter ID j Receive m i With ID i After confirming the validity of the ballot content, the system parameters params and the group private key SK j Give your correct signature σ j , the specific signing process is as follows, u j =H3(ID j ,MECS,m i ,Y j ), Y j =y j P2, w j =h 4,j (x j h 2,j +d j )+u j (y j +h 5,j x j ), where ID j The real identity is RID j The pseudo-identity of the voter, x j With d j is ID j The group private key in this group, randomly selected h 2,j =H2(ID j ,MECS,X j ,PK MECS ), h 4,j =H4(ID j ,MECS,m j ,Y j ,PK j ), h 5,j =H5(ID j ,MECS,m j ,Y j ,PK j ), h 2,j ,h 4,j With h 5,j are the output values ​​of hash functions H2, H4 and H5 respectively, u j is the output value of the hash function H3, and X j =x j P2, where x j For voter ID j The secret value of the message m i The corresponding n signatures σ j =(Y j ,u j ,w j ), the group members send the signatures to the edge computing node MECS respectively. After receiving n signatures, the edge computing node MECS verifies whether the following equations hold; Verify the equation: w j P2-u j Y j -u j h 5,j X j =h 4,j (Q j +h 1,j PK MECS ); If all n signatures are verified by the above equation, then the signatures given by all members of the group are valid signatures. If the signature given by a voter is incorrect, the edge node in the group will vote m. i Return to voter ID i ; E.2 The edge computing node receives all voter signatures σ j , and after verifying that the signature is valid, all signatures are aggregated. The aggregation process is as follows: MECS =∑u j h 5,j X j , Y MECS =∑u j Y j , W MECS =∑w j , and finally generate the aggregate signature σ=(Y MECS ,U MECS ,W MECS ), the edge computing node uploads the message with the aggregate signature to the central network. The edge computing nodes in other groups in the network can verify the aggregate signature through the following equation. The verification process is mainly verified by the following equation: MECS P2-Y MECS -U MECS =∑h 4,i (Q i +h 1,i PK MECS ), if all verifications pass, the aggregate signature is a valid signature. If other edge computing nodes in the network fail to pass the signature verification, the signature is rejected and shall not be written into the blockchain.

5. According to claim 4, a blockchain-based aggregate signature method for electronic voting is characterized in that: The detailed steps of step F are as follows: After the aggregate signature verification is passed, the edge computing node will send the voting information m i with a pseudo-voter ID i Write it directly into the blockchain and write the voter's corresponding c i Updated to 1. After the ballot is written into the blockchain, the smart contract directly reads the specific information of the ballot and adds 1 to the total number of votes for the corresponding candidate. After all the ballots are written into the blockchain, the final counting results will also be announced on the central network and blockchain.