Online voting method combined with block chain

By combining blockchain technology and utilizing the cooperation of encrypted message hash values ​​and public-private key pairs, certification centers and trusted third parties, the problems of centralization and tampering risks of the existing online voting system are solved, and a transparent and non-tamperable voting system is achieved. The voting process ensures the credibility and fairness of the voting results.

CN118631469AInactive Publication Date: 2024-09-10SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410789903.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing online voting systems are centralized, vulnerable to cyber attacks and tampering risks, lack transparency and traceability, and are difficult to ensure the fairness and credibility of voting results.

Method used

Using blockchain technology, voters generate encrypted message hashes, public-private key pairs, certification centers and trusted third parties to establish a distributed data storage environment to ensure the legitimacy of voters' identities and the transparency and non-tamperability of the voting process. gender, using the decentralized nature of the blockchain for voting statistics and results announcement.

Benefits of technology

It achieves a transparent and non-tamperable voting process, ensures the credibility and fairness of voting results, prevents repeated voting and malicious occupation, and improves the security and transparency of the voting system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631469A
    Figure CN118631469A
Patent Text Reader

Abstract

The invention relates to the technical field of block chains, in particular to an online voting method in combination with a block chain, which comprises the following steps: a voter generates a unique identifier encrypted message m belonging to the voter, and obtains a hash value h (m) of the message according to an SHA256 hash algorithm; the voter generates a public and private key pair Pub and Pri belonging to the voter according to a non-heap encryption algorithm sm2, the private key is a random numeric string, and the public key is calculated by the private key according to an elliptic curve algorithm; the online voting method combined with the block chain has the beneficial effects that a distributed data storage environment is established based on the block chain technology, and the authentication center issues certificates to the voters to ensure that the identities of the voters are legal. Regarding a voting process that voters initiate transactions to candidates as a voting process, and counting the number of times that the candidates initiate the transactions and counting a voting result. The whole process is transparent and traceable and cannot be tampered. The whole process makes full use of the characteristics of the block chain, and the credibility of the voting result is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of blockchain, and in particular to an online voting method combined with blockchain. Background Art

[0002] In recent years, with the increasing popularity of digital currencies such as Bitcoin and Ethereum, many of their superior features have attracted the attention of many researchers and scholars. The underlying technology can be used in combination with actual business. The essence of blockchain is an open and transparent distributed ledger that records all transaction records. It has the characteristics of providing decentralized, tamper-proof, open and transparent security features without a third-party intermediary.

[0003] In the existing technology, considering the above characteristics, we think of online voting as the electronic form of daily voting. By using advanced cryptography and computer network technology, voters can vote through the Internet at computer terminals set up at polling stations or their homes, and the computer is responsible for counting the votes. This not only saves a lot of manpower and material resources in organizational work, ballot collection and statistics, but also guarantees the interests of voters and the fairness of voting results to a certain extent. All these advantages make it an inevitable trend to replace traditional voting methods. In addition, existing online voting is centralized and vulnerable to network attacks, and there are various risks such as tampering. The emergence of blockchain undoubtedly provides a theoretical basis for the emergence of new online voting systems. Summary of the invention

[0004] The purpose of the present invention is to provide an online voting method combined with blockchain to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: an online voting method combined with blockchain, the online voting method comprising the following steps:

[0006] The voter generates his own unique identification encrypted message m and obtains the hash value h(m) of the message according to the SHA256 hash algorithm;

[0007] Voters generate their own public and private key pairs Pub and Pri based on the non-compound encryption algorithm sm2. The private key is a random number string, and the public key is calculated from the private key using the elliptic curve algorithm.

[0008] Preferably, when initiating voting, the authentication center creates a voter list of voters with voting rights and provides their accounts with a login name for identity authentication; after the user logs in, the hash value h(m) of his or her encrypted message is sent to the authentication center.

[0009] Preferably, the number of votes n for each voter is confirmed based on specific voting requirements: the voter sends the hash value h(m) of the message to a trusted third party; the trusted third party asks the authentication center whether h(m) is registered; the authentication center returns the result, if the result is "yes", it means that the voter is a legal voter who has completed registration and has the right to vote; if the result is "no", it means that the voter has not completed registration with the authentication center or is not a legal voter.

[0010] Preferably, after the trusted third party deems the voter to be a legitimate voter, the voter is asked to send his or her encrypted message m; the voter sends the encrypted message m to the trusted third party; the trusted third party verifies whether the hash value of the encrypted message m is consistent with the previously received h(m), and if they are consistent, the voter's address is saved; the voter initiates a transaction to the candidate's address, which counts as one vote.

[0011] Preferably, the candidate discloses his or her private key to a trusted third party, which counts the number of transactions initiated by others to the candidate and finally announces the number of votes each candidate has received. The number of transactions in the candidate's account is the number of votes the candidate has received. The voting process is fully verified by the background verification system to ensure that voters cannot vote repeatedly or more than n times. After the voting is completed, the authentication center and the trusted third party can jointly query and verify h(m) and the address to audit its legitimacy.

[0012] Compared with the prior art, the present invention has the following beneficial effects:

[0013] The online voting method combined with blockchain proposed in the present invention establishes a distributed data storage environment based on blockchain technology, and the certification center issues certificates to voters to ensure the legitimacy of the voter's identity. The transaction initiated by the voter to the candidate is regarded as the voting process, and the number of transactions initiated to the candidate is counted to calculate the voting results. The whole process is transparent and traceable, and cannot be tampered with. The whole process makes full use of the characteristics of blockchain to ensure the credibility of the voting results. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0015] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit 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.

[0016] Embodiment 1

[0017] See also Figure 1 The present invention provides a technical solution: an online voting method combined with blockchain, the online voting method comprising the following steps:

[0018] The voter generates his own unique identification encrypted message m and obtains the hash value h(m) of the message according to the SHA256 hash algorithm;

[0019] Voters generate their own public and private key pairs Pub and Pri based on the non-compound encryption algorithm sm2. The private key is a random number string, and the public key is calculated from the private key based on the elliptic curve algorithm.

[0020] Embodiment 2

[0021] Based on the first embodiment, the specific implementation method is as follows:

[0022] It includes voters, certification center, trusted third-party organization, background verification control system, and blockchain service network, among which voters, trusted third-party organization, and certification center are independent and supervise each other. It is characterized by mainly including the following steps:

[0023] Preparation stage: Generate the number of times each person can vote n according to the actual voting needs, and record this option n. Then the voter generates his own unique identification encrypted message m. The identification can choose to combine the user id with the application timestamp and the ID number (or name, to protect user privacy and increase the hash value between voters) to ensure the uniqueness of user data. The hash value h(m) of the message is obtained according to the hash algorithm. The asymmetric national secret algorithm sm2 is selected to generate its own unique public-private key pair Pub / Pri. The public-private key is calculated according to the elliptic curve algorithm.

[0024] Registration stage: After registering personal information, the account and password used by voters to log in will be returned.

[0025] The password is reset at the first login, and the user changes it at the first login. Further, the voter completes the personal certificate application registration after logging in and sends the hash value h(m) of his / her encrypted message to the authentication center;

[0026] Declaration of voting rights: Before the election, the declaration of voting rights is completed through communication between voters, a trusted third party, and the certification center. The uniqueness of h(m) and whether the registration with the certification center is successful are confirmed. After the three parties reach an agreement, the credibility of the voters is guaranteed and the voting rights of the voters are confirmed.

[0027] Voting stage: Voters initiate a transaction to the candidate's address. The transaction content is not limited. It is used to simulate the voting process of voters. The number of transactions received by the candidate represents the voting result. After the voting is completed, that is, after the transaction is successfully sent, the backend verification system receives a receipt and judges, and the option pointing to the candidate is grayed out;

[0028] Furthermore, if the background verification system receives a receipt of a transaction failure, it will determine whether to retry according to different situations. If it is due to fluctuations in the blockchain network server, it can initiate a retry. If it is other errors, it can select a situation to return, and the voter can re-initiate voting and repeat the previous process;

[0029] Furthermore, the background verification system counts the number of transactions initiated by voters, that is, the number of times voters can cast votes. This step is a single process. After the voter initiates the nth vote and receives a receipt of successful transaction, the background verification system sets the voter's vote to unavailable, strictly controlling the votes.

[0030] Counting stage: The candidate discloses his private key address Pri to a trusted third party, which is the address for receiving transactions. The trusted third party counts the number of transactions initiated by others to the candidate, and the final statistical result is the number of votes received by each candidate.

[0031] Auditing stage: After the vote counting is completed, the trusted third party will disclose the hash value h(m) of the encrypted message of the legal voter and the address information table of the legal voter. The certification center will disclose the information table of the voter's name and the hash value h(m) of the encrypted message. Voters will audit the voting results based on the above two tables and their own relevant information.

[0032] According to the above-mentioned blockchain-based online voting method, the steps mainly include the following steps:

[0033] The authentication center initiates voting and establishes a voter list based on the information of voters with voting rights. The voter list must ensure that the voter's identity is unique and cannot be registered by the same person repeatedly. The voter is also provided with a corresponding login name and password for identity authentication.

[0034] The voter user logs in to the authentication center according to the corresponding login name, completes personal registration, and sends the hash value h(m) of his / her encrypted message to the authentication center;

[0035] Furthermore, after receiving the hash value h(m) of the encrypted message, the authentication center creates a statistical table of the corresponding voters and their encrypted message hash values.

[0036] The voter sends the hash value h(m) of the encrypted message to the trusted third party, which initiates verification after receiving h(m);

[0037] Furthermore, the trusted third party initiates a request to inquire whether the authentication center h(m) is registered;

[0038] The certification center returns a result. If the result is "yes", it means that the voter is a legal voter who has completed the registration and has the right to vote; if the result is "no", it means that the voter has not completed the registration at the certification center or is not a legal voter;

[0039] Furthermore, after the trusted third party deems the voter to be a legitimate voter, it requires the voter to send his or her own encrypted message m;

[0040] Furthermore, the voter sends an encrypted message m to a trusted third party;

[0041] The trusted third party verifies whether the hash value of the encrypted message m is consistent with the previously authenticated h(m). If they are consistent, the voter's address is saved.

[0042] Furthermore, the backend verification system controls the number of times voters initiate multiple transactions with the same candidate, and counts the number of transactions initiated by voters. The backend transaction system controls these two behaviors and grays out the responses;

[0043] Furthermore, by utilizing the characteristics of distributed blockchain transactions, the voting process cannot be tampered with and can be traced back to its source, which can clearly ensure that voters’ votes are authentic. There will be no votes from unknown sources, and there will be no multiple votes, thus ensuring the authenticity of the entire voting process. The source of the voter address for each vote can be traced, and the subsequent steps will be publicly displayed.

[0044] If the address of the same transaction initiator initiates transactions to multiple candidates, the number of transactions n will be controlled by the background verification system. After n transactions have been initiated, the voting option will be set to unavailable, which simplifies the subsequent statistical work and prevents the waste of blockchain resources.

[0045] According to the above steps, the significance of controlling the number of votes is to prevent voters from maliciously occupying blockchain node transactions, causing other voters' voting transactions to wait in line, and to a certain extent prevent voters from occupying the interface multiple times to attack;

[0046] The trusted third party randomly scrambles the hash value h(m) of the encrypted message of the legal voter and the correspondence between the legal voter's address information table. The purpose of randomness is to make the order correspond to the following table, and then randomly arrange them and make them public;

[0047] Furthermore, the authentication center publicly discloses the names of registered voters and the hash value h(m) of the encrypted message, and makes public the user and encryption relationship table;

[0048] Furthermore, voters can audit whether the voting results are correct and whether there is any tampering or fraud in the voting process based on the two public correspondence tables mentioned above and their own voting-related information. The entire process is transparent, fair, just and open.

[0049] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An online voting method combined with blockchain, characterized by: The online voting method comprises the following steps: The voter generates his own unique identification encrypted message m and obtains the hash value h(m) of the message according to the SHA256 hash algorithm; Voters generate their own public and private key pairs Pub and Pri based on the non-compound encryption algorithm sm2. The private key is a random number string, and the public key is calculated from the private key based on the elliptic curve algorithm.

2. According to claim 1, an online voting method combined with blockchain is characterized in that: When initiating a vote, the authentication center creates a voter list of voters with voting rights and provides their accounts with a login name for identity authentication; After the user logs in, he sends the hash value h(m) of his encrypted message to the authentication center.

3. According to claim 2, an online voting method combined with blockchain is characterized in that: Confirm the number of votes n for each voter based on specific voting requirements: the voter sends the hash value h(m) of the message to the trusted third party; the trusted third party asks the authentication center whether h(m) is registered; the authentication center returns the result. If the result is "yes", it means that the voter is a legal voter who has completed registration and has the right to vote; if the result is "no", it means that the voter has not completed registration with the authentication center or is not a legal voter.

4. The online voting method combined with blockchain according to claim 1, characterized in that: After the trusted third party deems the voter to be a legitimate voter, it will ask the voter to send his or her encrypted message m; the voter sends the encrypted message m to the trusted third party; the trusted third party verifies whether the hash value of the encrypted message m is consistent with the previously received h(m), and if they are consistent, the voter's address is saved; the voter initiates a transaction to the candidate's address, which counts as one vote.

5. The online voting method combined with blockchain according to claim 1, characterized in that: Candidates disclose their private keys to a trusted third party, which counts the number of transactions initiated to the candidate by others and finally announces the number of votes each candidate has received. The number of transactions in the candidate's account is the number of votes the candidate has received. The voting process is fully verified by the background verification system to ensure that voters cannot vote repeatedly or more than n times. After the voting is completed, the authentication center and the trusted third party can jointly query and verify h(m) and the address to audit its legitimacy.

Citation Information

Patent Citations

  • Blockchain-based electronic voting method

    CN109934988A

  • Block chain-based electronic voting method capable of verifying fairness

    CN114255034A

  • Block chain anonymous electronic voting method based on zk-SNARK

    CN116015616A