Electronic voting method, system, storage medium and terminal device for resisting collusion attack

By dividing it into host nodes, voting nodes and candidate nodes on the blockchain, and using public parameters and serial repeated square calculations to generate decryption keys, the problem of electronic voting information leakage and tampering is solved, and the need for no-step The high security and fair voting process of the three-party trust ensures the authenticity and immutability of the voting results.

CN118487742BActive Publication Date: 2024-09-17HUNAN TIAN HE GUO YUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410939265.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-17
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

The existing blockchain-based electronic voting scheme has the problems of voting information leakage and tampering, so how to further improve it to ensure security.

Method used

Through the blockchain node identity registration, it is divided into host nodes, voting nodes and candidate nodes. The voting information is encrypted using public parameters, and a decryption key is generated through serial repeated square calculations to ensure that the data can be decrypted after a predetermined time, avoiding Decryption in advance to realize the timed release and high hidden data, while verifying signature and counting results through smart contracts to ensure the fairness and security of the voting process.

Benefits of technology

Implement an anti-conspiracy attack electronic voting method without the trust of third parties on the blockchain, improves data security and system fairness, effectively resists malicious collusion and nodes forged data, and ensures the authenticity of the voting results and Improperty.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118487742B
    Figure CN118487742B
Patent Text Reader

Abstract

The present invention relates to an anti-collusion attack electronic voting method, system, storage medium and terminal device, including: participants complete blockchain node identity registration, and divide the registered nodes into host nodes, voting nodes and candidate nodes; and the host publishes voting information to start voting and voting deadline; public parameters are generated according to the voting deadline, and are allocated to voting nodes in the blockchain; the voting node receives the voting message, and after completing the voting according to the voting message, the voting information is encrypted using the public key in the public parameter, and uploaded to the blockchain after signing; the host calculates the decryption key, and decrypts the voting information uploaded by the voting node according to the decryption key; the voting information decrypted by the host is counted to obtain the ballot data, and after verifying the signature and counting, the statistical results are packaged and chained. The trust problem of the third party is solved, and the data security is improved, and the problem of malicious collusion and node forged data can be effectively resisted, and the fairness of the system is maintained.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to an electronic voting method, system, storage medium and terminal device that are resistant to collusion attacks. Background Art

[0002] Blockchain mainly solves the problem of how to reach consensus in a decentralized network environment, and its greatest potential lies in "decentralization". Blockchain packages all transaction information within a period of time into blocks and synchronizes them to all nodes to ensure that transaction information cannot be tampered with, because under the consensus mechanism, it is unbearable to get more than half of the nodes to agree with you.

[0003] Electronic voting is usually used to solve the problem of disagreement within the team. A safe and fair vote can help select a valuable leader and can also most realistically reflect the real situation of different candidates being recognized. Electronic voting is a voting method that uses an electronic system to help vote and count votes. The main purpose of electronic voting is to solve the current problems of paper voting, such as the inability to vote remotely and the high cost. The security of electronic voting is considered to be one of the most difficult problems to solve. Due to the anonymity, data immutability, and decentralization of the blockchain, the blockchain-based electronic voting solution can solve some secure multi-party computing (MPC) problems that traditional electronic voting solutions cannot effectively solve.

[0004] However, there are still problems such as voting information leakage and tampering. How to further improve and perfect it to ensure security is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a blockchain-based anti-collusion attack electronic voting method, comprising:

[0006] Participants complete blockchain node identity registration, and the registered nodes are divided into host nodes, voting nodes, and candidate nodes; the host publishes voting information to start voting and voting deadline;

[0007] Generate public parameters based on the voting deadline and distribute them to voting nodes in the blockchain;

[0008] The voting node receives the voting message, completes the voting according to the voting message, encrypts the voting information using the public key in the public parameters, and uploads it to the blockchain after signing;

[0009] The host calculates the decryption key and decrypts the voting information uploaded by the voting node based on the decryption key;

[0010] The voting information decrypted by the host is counted to obtain the ballot data. After verifying the signature and counting, the statistical results are packaged and uploaded to the chain.

[0011] Furthermore, the voting message includes a set of candidate nodes, a voting deadline, and a designated sending address for uploading data after the voting is completed.

[0012] Furthermore, the step of generating public parameters includes:

[0013] exist Randomly select a large prime number in the interval , where n>32, and satisfies , ; , is any integer;

[0014] Calculate the public key ;

[0015] Calculate the decryption key ;

[0016] The voting deadline t is parameterized as ,and , where s is the number of squared moduli per second that the solver can perform;

[0017] Random Selection ,in Representation model The minimum non-negative simplified residual coefficient of ; Represents the random parameters of the voting node;

[0018] Calculate the signature of the voting node generated by the random parameter ;

[0019] Random Selection ,satisfy ,calculate ,in for The Jacobi symbol of ; Indicates that the voting node randomly generates a random number as a private key;

[0020] calculate ,satisfy ; The ciphertext representing the vote on the voting message;

[0021] Publish and broadcast public parameters To the blockchain, the parameter tuple Return to the host.

[0022] Furthermore, the step of encrypting the voting information using the public key in the public parameters includes:

[0023] Voting nodes that have completed voting are randomly selected ,in Representation model The value set of ;

[0024] calculate ,in For voting nodes Uploaded ciphertext, The data slice that votes for the node;

[0025] The nodes that have completed the voting send the encrypted voting data and its signature to the designated address according to the requirements in the task information published by the host.

[0026] Furthermore, the step of calculating the decryption key includes:

[0027] Host order calculation , which satisfies ; Indicates that the ciphertext is decrypted according to the current time;

[0028] calculate ; Express Take the absolute value;

[0029] calculate , ,in Represents the greatest common divisor of a and b, and then obtains the decryption key .

[0030] Furthermore, the step of decrypting the voting information uploaded by the voting node according to the decryption key includes:

[0031] Defining Operations , by calculating Decrypt voting information, where u is the variable name.

[0032] Furthermore, the host broadcasts the counting results to the blockchain. After receiving the data in the network, the accounting node verifies whether the data has been stored in the local block. If not, the transaction data is stored in the memory pool, broadcasted to adjacent nodes, and packaged into blocks. After reaching a consensus, it is officially uploaded to the chain.

[0033] On the other hand, the present invention also provides a blockchain-based anti-collusion attack electronic voting system for executing any of the above methods, including: a data collection and random number seed generation unit, a calculation unit, a response allocation unit, a verification unit and a packaging unit;

[0034] A data collection and random number seed generation unit, which is used to receive parameters and generate random number seeds under constraints, and receive uploaded encrypted data and signatures after the voting node completes voting;

[0035] A computing unit generates a random number sequence under constraints using the seed, determines parameters of each link of a parameter generation equation according to the random number sequence, and calculates and outputs a common parameter;

[0036] Response allocation unit, used for on-chain voting nodes to respond to voting information, and for the host to allocate voting qualifications to corresponding response nodes;

[0037] A verification unit, used to verify the user's signature and obtain a verification result;

[0038] The packaging unit is used to broadcast the user's encrypted voting data to the blockchain in the form of transactions. After reaching a consensus, the accounting node packages the transaction data into blocks and adds them to the blockchain.

[0039] On the other hand, the present invention also provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned electronic voting methods against collusion attacks.

[0040] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores a program code that can be executed by the processor; the program code is used to execute any of the above-mentioned anti-collusion attack electronic voting methods.

[0041] Compared with the prior art, the technical solution of the present invention has the following gain effects:

[0042] (1) The blockchain-based anti-collusion attack electronic voting method and its system environment described in the present invention are deployed on the blockchain. The entire process does not require a third party, which solves the problem of trust in the third party;

[0043] (2) The decryption key of the present invention can only be obtained through serial repeated square calculations in our design. Hidden in the puzzle, The nodes are randomly selected, and each node is different. Large enough, which means that no one can know in advance , no one can solve the problem in advance, which ensures that the encrypted data can only be decrypted after the scheduled time, and it is impossible to decrypt in advance. The purpose of this is to keep the data uploaded in the system highly hidden before the decryption key is decrypted. We only need to set the appropriate difficulty of the problem, and we can control the time of decryption key release relatively accurately, achieve timed release, improve data security, and effectively resist malicious collusion and node forgery of data, maintaining the fairness of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 This is a flow chart of an embodiment of the blockchain-based anti-collusion attack electronic voting method of the present invention;

[0045] Figure 2 A system diagram of an embodiment of the blockchain-based anti-collusion attack electronic voting method of the present invention;

[0046] Figure 3 This is a system model diagram of an embodiment of the blockchain-based anti-collusion attack electronic voting method of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] It should be noted that if the embodiments of the present invention involve directional indications, such as up, down, left, right, front, back, etc., then the directional indication is only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly. In addition, if the embodiments of the present invention involve descriptions of "first, second", "S1, S2", "step one, step two", etc., then such descriptions are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features or indicating the execution order of the method, etc. Those skilled in the art can understand that anything that does not violate the gist of the invention under the technical concept of the invention should be included in the protection scope of the present invention.

[0049] like Figure 1 As shown, the present invention provides a blockchain-based anti-collusion attack electronic voting method, comprising:

[0050] S1: Participants complete blockchain node identity registration, and the registered nodes are divided into host nodes, voting nodes, and candidate nodes; and the host publishes voting information to start voting and voting deadline.

[0051] Specifically, participants need to complete identity registration on the blockchain and attach their basic information. The blockchain will assign appropriate identity nodes and grant corresponding permissions based on the content of the basic information.

[0052] More specifically, it is optional but not limited to deploying smart contracts in the blockchain, and according to the basic information of each participant, the registered legal nodes are divided into host nodes, voting nodes and candidate nodes. The selection principles and numbers of the host, voting nodes and candidate nodes can be arbitrarily determined by the smart contract, and the corresponding selection principles are set according to the voting business organization. For example, the smart contract is set to 1:3:n according to the needs of the business organization, that is, the number of host nodes is set to 1, the number of voting nodes is set to 3, and the number of candidate nodes is set to the remaining number of nodes. The identity can be repeated or unique.

[0053] More specifically, the voting message includes a set of candidate nodes and a voting deadline; other information may also be optional but not limited to, including, for example, a designated sending address for uploading data after the voting is completed, voting node notes, etc.

[0054] S2: Generate public parameters based on the voting deadline and distribute them to voting nodes in the blockchain;

[0055] Specifically, optionally but not limited to deploying a second smart contract (Smart Contract, SC) in the blockchain to generate public parameters; preferably including:

[0056] S21: Randomly select a large prime number in the interval , where n>32, and satisfies , ; , is any integer; and To ensure The prime number is large enough and must be singular; that is, choose , and then determine whether it satisfies , If so, then the selected Yes, if not, please reselect ;treat After selection, , , calculated , .

[0057] S22: Calculate the public key ; N represents the public key of the algorithm, which is the product of two mutually prime numbers.

[0058] S23: Calculate the decryption key ; It means that it satisfies the Euler function;

[0059] S24: Parameterize the voting deadline t as ,and ,in is the number of squared moduli per second that the solver can perform;

[0060] S25: Random Selection ,in Representation model The minimum non-negative simplified residual coefficient of ; Represents the random parameters of the voting node;

[0061] S26: Calculate the signature of the voting node generated by the random parameter ;

[0062] S27: Random Selection ,satisfy ,calculate ,in for The Jacobi symbol of ; Indicates that the voting node randomly generates a random number as a private key;

[0063] S28; Calculation ,satisfy ; The ciphertext representing the vote on the voting message;

[0064] S29: Publish and broadcast public parameters To the blockchain, the parameter tuple Return to the host.

[0065] S3: The voting node receives the voting message, completes the voting according to the voting message, encrypts the voting information using the public key in the public parameters, and uploads it to the blockchain after signing;

[0066] Specifically, the voting node obtains the voting message published by the host in the blockchain and responds to the task; after the host counts the response information of the voting nodes, the voting nodes start voting, encrypt the voting information according to the public key in the public parameters calculated above, and upload it to the blockchain network as a message after signing.

[0067] Preferably, after voting is completed according to the voting message, the voting information is encrypted using the public key in the public parameters, including:

[0068] S31: Voting nodes that have completed voting are randomly selected ,in Representation model The value set of ;

[0069] S32: Calculation ,in For voting nodes Uploaded ciphertext, The data slice that votes for the node;

[0070] S33: The nodes that have completed voting send the encrypted voting data and its signature to the designated address according to the requirements in the task information published by the host.

[0071] S4: The host calculates the decryption key and decrypts the voting information uploaded by the voting node according to the decryption key;

[0072] Specifically, the step of calculating the decryption key can be performed simultaneously with step S2 or can be performed later. The host starts to sequentially calculate the decryption key according to the parameter tuple returned in step S29. The step numbers of the present invention are only for distinguishing explanations and do not limit the order of each step, operation time, etc.

[0073] Specifically, optionally but not limited to deploying a third smart contract in the blockchain to calculate the decryption key . Preferably include:

[0074] S41: Host order calculation , which satisfies ; Indicates that the ciphertext is decrypted according to the current time;

[0075] S42: Calculation ; Express Take the absolute value;

[0076] S43: Calculation , ,in Represents the greatest common divisor of a and b, and then obtains the decryption key .

[0077] More specifically, decrypting the voting information uploaded by the voting node according to the decryption key preferably includes:

[0078] S44: Define Operation , by calculating Decrypt voting information, where u is the variable name.

[0079] S5: Count the voting information decrypted by the host, obtain the ballot data, verify the signature and count, and then package the statistical results on the chain.

[0080] Specifically, after the host decrypts the voting information, he verifies the signature of the voting node according to the pre-set smart contract. After the verification is passed, the host counts the voting results through the smart contract.

[0081] The preferred method includes: the host broadcasts the counting results to the blockchain, and the accounting node verifies whether the data has been stored in the local block after receiving the data in the network. If not, the transaction data is stored in the memory pool, broadcasts the data to adjacent nodes, and packages it into blocks, and officially uploads it to the chain after reaching a consensus.

[0082] On the other hand, Figure 2 and Figure 3 As shown, the present invention also provides a blockchain-based anti-collusion attack electronic voting system, comprising:

[0083] Data collection and random number seed generation unit, calculation unit, response allocation unit, verification unit and packaging unit;

[0084] The data collection and random number seed generation unit is used to receive parameters and generate random number seeds under constraints, and receive uploaded encrypted data and signatures after the voting node completes voting;

[0085] The calculation unit generates a random number sequence under constraints using the seed, determines the parameters of each link of the parameter generation equation according to the random number sequence, and calculates and outputs the public parameters according to step S2. Preferably, it also includes calculating the remuneration of the corresponding user according to the data uploaded by the ordinary user using the previously announced remuneration calculation method;

[0086] The response allocation unit is used for the on-chain voting nodes to respond to the voting information, and the host to allocate voting qualifications to the corresponding response nodes;

[0087] The verification unit is used to verify the user's signature and obtain a verification result;

[0088] The packaging unit is used to broadcast the user's encrypted voting data to the blockchain in the form of a transaction. After reaching a consensus, the accounting node packages the transaction data into a block and adds it to the blockchain.

[0089] In particular, the data acquisition and random number seed generation unit comprises a data receiving module and a seed verification module;

[0090] The data receiving module is used to receive the time parameters provided by the host, such as the selected task deadline parameters. , and receive the ciphertext data uploaded by the voting nodes.

[0091] The seed verification module is used to ensure that the generated random number is greater than 160 bits, that the selected prime number is large enough (at least 128 bits), and that the selected random number is This is done to ensure that it becomes impossible for attackers to crack using exhaustive search.

[0092] The computing unit includes a puzzle equation building module and a puzzle solving module;

[0093] The difficult problem equation building module generates a set of equations according to the parameters transmitted by the data acquisition and random number seed generation unit, and transmits the set of equations to the difficult problem solving unit.

[0094] The problem solving module performs sequential calculations on the equation set and outputs the decryption key. ; Using the decryption key According to step S52, the encrypted data uploaded by all voting nodes is decrypted.

[0095] The response allocation unit includes a response module and an allocation module, which are used for the on-chain voting nodes to respond to the voting information, and the host to allocate voting qualifications to the corresponding response nodes.

[0096] The verification unit includes a verification module, which verifies the signature in the node upload data and obtains the verification result; the verification module is also responsible for the verification of the vote counting results announced by the host by the ordinary voting node.

[0097] The packaging unit includes a packaging module, which is mainly used to verify the transaction data broadcast by the host to the blockchain. Specifically, the accounting node verifies whether the data has been stored in the local block after receiving the transaction information in the network. If not, the transaction data is stored in the memory pool, broadcasted to the adjacent nodes, and packaged into blocks. Verify whether the data recorded in the current block can pass the verification of the verification module. If both are satisfied, the current block will be put on the chain, otherwise it will be rejected.

[0098] On the other hand, the present invention also provides a computer storage medium storing executable program code; the executable program code is used to execute any of the above-mentioned electronic voting methods against collusion attacks.

[0099] On the other hand, the present invention also provides a terminal device, including a memory and a processor; the memory stores a program code that can be executed by the processor; the program code is used to execute any of the above-mentioned anti-collusion attack electronic voting methods.

[0100] Exemplarily, the program code may be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the program code in the terminal device.

[0101] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the terminal device may also include an input / output device, a network access device, a bus, etc.

[0102] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0103] The memory may be an internal storage unit of the terminal device, such as a hard disk or a memory. The memory may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Further, the memory may also include both an internal storage unit of the terminal device and an external storage device. The memory is used to store the program code and other programs and data required by the terminal device. The memory may also be used to temporarily store data that has been output or is to be output.

[0104] Compared with the prior art, the technical solution of the present invention has the following gain effects:

[0105] (1) The blockchain-based anti-collusion attack electronic voting method and its system environment described in the present invention are deployed on the blockchain. The entire process does not require a third party, which solves the problem of trust in the third party;

[0106] (2) The decryption key of the present invention can only be obtained through serial repeated square calculations in our design. Hidden in the puzzle, The nodes are randomly selected, and each node is different. Large enough, which means that no one can know in advance , no one can solve the problem in advance, which ensures that the encrypted data can only be decrypted after the scheduled time, and it is impossible to decrypt in advance. The purpose of this is to keep the data uploaded in the system highly hidden before the decryption key is decrypted. We only need to set the appropriate difficulty of the problem, and we can control the time of decryption key release relatively accurately, achieve timed release, improve data security, and effectively resist malicious collusion and node forgery of data, maintaining the fairness of the system.

[0107] The above-mentioned anti-collusion attack electronic voting system, computer storage medium and terminal device are created based on the above-mentioned anti-collusion attack electronic voting method. Their technical functions and beneficial effects are no longer repeated here. The various technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A blockchain-based anti-collusion attack electronic voting method, characterized in that: include: Participants complete blockchain node identity registration and divide registered nodes into moderator nodes, voting nodes, and candidate nodes; The host will release voting information to start voting and set the voting deadline; Generate public parameters based on the voting deadline and distribute them to voting nodes in the blockchain; The voting node receives the voting message, completes the voting according to the voting message, encrypts the voting information using the public key in the public parameters, and uploads it to the blockchain after signing; The host calculates the decryption key and decrypts the voting information uploaded by the voting node based on the decryption key; Count the voting information decrypted by the host, obtain the ballot data, verify the signature and count, and then package the statistical results on the chain; The steps to generate public parameters include: exist Randomly select a large prime number in the interval ,in , and satisfy , ; , is any integer; Calculate the public key ; Calculate the decryption key ; The voting deadline Parameterized as ,and ,in is the number of squared moduli per second that the solver can perform; Random Selection ,in Representation model The minimum non-negative simplified residual coefficient of ; Represents the random parameters of the voting node; Calculate the signature of the voting node generated by the random parameter ; Random Selection ,satisfy ,calculate ,in for Jacobi symbol; x means the voting node randomly generates a random number as the private key; calculate ,satisfy, ; The ciphertext representing the vote on the voting message; Publish and broadcast public parameters To the blockchain, the parameter tuple Return to the host.

2. The anti-collusion attack electronic voting method according to claim 1 is characterized in that: The voting message includes the candidate node set, voting deadline, and the designated address for uploading data after the voting is completed.

3. The anti-collusion attack electronic voting method according to claim 1 is characterized in that: The steps of encrypting voting information using the public key in the public parameters include: Voting nodes that have completed voting are randomly selected ,in Representation model The value set of ; calculate ,in For voting nodes Uploaded ciphertext, The data slice that votes for the node; The nodes that have completed the voting send the encrypted voting data and its signature to the designated address according to the requirements in the task information published by the host.

4. The method for electronic voting against collusion attacks according to claim 3 is characterized in that: The steps to calculate the decryption key include: Host order calculation , which satisfies ; Indicates that the ciphertext is decrypted according to the current time; calculate ; X indicates yes Take the absolute value; calculate , ,in Represents the greatest common divisor of a and b, and then obtains the decryption key .

5. The anti-collusion attack electronic voting method according to claim 4 is characterized in that: The steps of decrypting the voting information uploaded by the voting node according to the decryption key include: Defining Operations , by calculating Decrypt voting information, is the variable name.

6. The method for electronic voting against collusion attacks according to any one of claims 1 to 5, characterized in that: The host broadcasts the counting results to the blockchain. After receiving the data in the network, the accounting node verifies whether the data has been stored in the local block. If not, the transaction data is stored in the memory pool, broadcasted to adjacent nodes, and packaged into blocks. After reaching a consensus, it is officially uploaded to the chain.

7. A blockchain-based anti-collusion attack electronic voting system, used to execute the method described in any one of claims 1 to 6, characterized in that: include: Data collection and random number seed generation unit, calculation unit, response allocation unit, verification unit and packaging unit; A data collection and random number seed generation unit, used to receive parameters and generate random number seeds under constraints, and receive uploaded encrypted data and signatures after the voting node completes voting; A computing unit generates a random number sequence under constraints using the seed, determines parameters of each link of a parameter generation equation according to the random number sequence, and calculates and outputs a common parameter; Response allocation unit, used for on-chain voting nodes to respond to voting information, and for the host to allocate voting qualifications to corresponding response nodes; A verification unit, used to verify the user's signature and obtain a verification result; The packaging unit is used to broadcast the user's encrypted voting data to the blockchain in the form of transactions. After reaching a consensus, the accounting node packages the transaction data into blocks and adds them to the blockchain.

8. A computer storage medium, characterized in that: An executable program code is stored; the executable program code is used to execute the anti-collusion attack electronic voting method described in any one of claims 1-6.

9. A terminal device, characterized in that: It comprises a memory and a processor; the memory stores a program code executable by the processor; the program code is used to execute the anti-collusion attack electronic voting method described in any one of claims 1-6.