Community voting method and system based on block chain
Through blockchain technology and smart contracts, distributed storage and automated management of voting data are realized in the community voting system, solving the tampering and transparency problems of traditional voting systems and improving the efficiency and credibility of voting.
Patent Information
- Application Number
- CN202510696190.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-28
- Publication Date
- 2025-09-16
Smart Images

Figure CN120658429A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a community voting method and system based on blockchain. Background Art
[0002] Community voting is a crucial component of community governance, corporate decision-making, and public affairs management. Its fairness, transparency, and credibility directly impact the legitimacy and credibility of decisions. However, traditional community voting systems typically rely on centralized servers or third-party organizations to store and manage voting data, which presents the following challenges: Data is susceptible to tampering. Traditional voting systems rely on centralized servers for data storage and management, making them vulnerable to tampering by internal personnel or external attackers, resulting in unjust voting results. The generation, storage, and statistical processes of voting data lack transparency, making it difficult for ordinary users to verify the authenticity and integrity of voting results, which can easily lead to doubts about the results. Traditional voting systems typically lack complete voting records, making the generation process of voting results difficult to trace and unable to effectively address disputes or audit needs. Centralized servers are vulnerable to hacker attacks. Once compromised, voting data can be stolen or tampered with, rendering the voting system ineffective. Traditional voting systems typically require manual intervention and management, resulting in complex and time-consuming voting processes that are difficult to meet the needs of large-scale community voting.
[0003] In order to solve the above problems, some improvement solutions based on electronic voting technology have emerged in recent years, but there are still some limitations: relying on centralized third-party institutions, it is impossible to completely avoid data tampering and trust issues; there is a lack of full-process recording and traceability capabilities for voting data; and it is impossible to effectively prevent malicious users from interfering with the voting process through technical means.
[0004] Blockchain technology, with its decentralized, tamper-proof, and transparent characteristics, offers a new approach to addressing the challenges of traditional community voting systems. It enables distributed storage of voting data and full-process recording, ensuring transparency and immutability of the voting process. Furthermore, smart contract technology can automatically enforce voting rules, improving voting efficiency and accuracy. Therefore, blockchain-based community voting solutions have significant research value and practical application implications. Summary of the Invention
[0005] The purpose of the present invention is to provide a community voting method and system based on blockchain to solve the problems raised in the above background technology.
[0006] To achieve the above objectives, the present invention provides the following technical solution: a blockchain-based community voting method, comprising the following steps:
[0007] S1. User registration and identity authentication, and identity information storage on the chain;
[0008] S2. The administrator creates and publishes a voting activity, and the system notifies users of the voting time and how to participate;
[0009] S3, voting execution and data on-chain, smart contract verification of permissions, and prevention of duplicate voting;
[0010] S4. The smart contract automatically collects the results and stores them on the blockchain.
[0011] S5. Data tracing and data auditing, generate reports for review.
[0012] Preferably, step S1 of user registration and identity authentication, and storage of identity information on the chain specifically includes the following steps:
[0013] User registration: Community users register in the system and fill in their identity information. The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain. After registration is completed, a unique blockchain address is generated for the user as their identity identifier;
[0014] Identity authentication: When a user logs in, the system verifies the user's identity information through the blockchain. The user's voting rights are controlled by smart contracts. The system supports multi-factor authentication to further improve the security of identity authentication.
[0015] Preferably, step S2 where the administrator creates and publishes a voting activity and the system notifies users of the voting time and participation method specifically includes the following steps:
[0016] Voting creation: Community administrators create voting activities and set voting rules. The metadata of voting activities is published through smart contracts and recorded on the blockchain. Administrators can set voting types and adjust voting rules as needed. All modification records are recorded on the blockchain through smart contracts.
[0017] Voting release: Voting activity information is recorded on the blockchain and can be viewed by all users. The system notifies users of the start time, end time and voting rules of the voting activity through push messages or emails.
[0018] Preferably, step S3 of voting execution and data upload to the chain, smart contract verification of authority, and prevention of duplicate voting specifically includes the following steps:
[0019] User voting: Users vote through the system during the voting period, selecting voting options and submitting them. The generation, submission, and statistical records of each vote are all recorded on the chain. The system supports multiple voting methods;
[0020] Data on-chain: Users’ voting data is uniquely identified using a hash algorithm and recorded on the blockchain. The storage and transmission of voting data are protected by encryption technology, and the system uses zero-knowledge proof technology to verify the authenticity of voting data.
[0021] Permission verification: The smart contract will automatically verify the user's voting authority based on preset rules. If a user attempts to vote repeatedly or exceeds the scope of authority, the smart contract will reject the voting request and record the abnormal behavior.
[0022] Preferably, step S4 wherein the smart contract automatically collects the results and stores them on the chain specifically includes the following steps:
[0023] Results statistics: After the voting is completed, the smart contract automatically triggers the statistics function to summarize and analyze the voting data and record the results on the blockchain. The system supports multiple statistical methods;
[0024] Result Verification: Users can verify the authenticity and integrity of voting results through the blockchain network. The system provides a visual interface for voting results and supports the generation of audit reports for review.
[0025] Step S5: Data tracing and auditing, generating a report for review, specifically includes the following steps:
[0026] Data tracing: The generation, submission, and statistical records of each vote are recorded on the blockchain. Users can view detailed voting information through the blockchain network. The system provides data tracing functions, allowing users to quickly locate specific voting records through timestamps and transaction hash values.
[0027] Data audit: The system provides data audit functions. Community administrators or third-party organizations can audit voting data through the blockchain network. The system supports the generation of audit reports, recording key data and operation logs during the audit process. The audit reports are stored on the blockchain.
[0028] A system for a blockchain-based community voting method, comprising:
[0029] User management module, used for identity registration, authentication and permission management of community users;
[0030] Voting management module, used to create, publish and execute voting activities;
[0031] The blockchain network acts as a distributed ledger to store voting data, ensuring data immutability and transparency;
[0032] Smart contract module, used to automatically execute voting rules and ensure the fairness and transparency of the voting process.
[0033] Preferably, the user management module performs user registration and identity authentication, specifically performing the following operations:
[0034] User registration: Community users register in the system and fill in their identity information. The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain. After registration is completed, a unique blockchain address is generated for the user as their identity identifier;
[0035] Identity authentication: When a user logs in, the system verifies the user's identity information through the blockchain, uses smart contracts to control the user's voting rights, and supports multi-factor authentication to improve the security of identity authentication.
[0036] Preferably, the voting management module executes the creation and release of administrator voting activities, specifically performing the following operations:
[0037] Voting creation: Community administrators create voting activities and set voting rules. The metadata of voting activities is published and recorded on the blockchain through smart contracts. Administrators can set voting types and adjust voting rules as needed. All modification records are recorded on the blockchain through smart contracts.
[0038] Voting release: Voting activity information is recorded on the blockchain and can be viewed by all users. The system notifies users of the start time, end time and voting rules of the voting activity through push messages or emails.
[0039] Preferably, the voting management module and the smart contract module execute voting and upload data to the blockchain, specifically performing the following operations:
[0040] User voting: Users vote through the system during the voting period, selecting voting options and submitting them. The generation, submission, and statistical records of each vote are all recorded on the chain. The system supports multiple voting methods;
[0041] Data on-chain: Users’ voting data is uniquely identified using a hash algorithm and recorded on the blockchain. The storage and transmission of voting data are protected by encryption technology, and the system uses zero-knowledge proof technology to verify the authenticity of voting data.
[0042] Permission verification: The smart contract will automatically verify the user's voting authority based on preset rules. If a user attempts to vote repeatedly or exceeds the scope of authority, the smart contract will reject the voting request and record the abnormal behavior.
[0043] Preferably, the smart contract module executes the smart contract to automatically collect statistics and store them on the chain, as well as to trace and audit the data. Specifically, the following operations are performed:
[0044] Results statistics: After the voting is completed, the smart contract automatically triggers the statistics function to summarize and analyze the voting data and record the results on the blockchain. The system supports multiple statistical methods;
[0045] Result Verification: Users can verify the authenticity and integrity of voting results through the blockchain network. The system provides a visual interface and audit report generation function;
[0046] Data tracing: The generation, submission, and statistical records of each vote are all recorded on the blockchain. Users can view voting details through the blockchain network, and the system provides data tracing functions;
[0047] Data audit: The system provides data audit functions. Community administrators or third-party organizations can audit voting data through the blockchain network. The system supports the generation of audit reports, recording key data and operation logs during the audit process. The audit reports are stored on the blockchain.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The blockchain-based community voting method and system proposed in this invention records all voting data (such as voting records and statistical results) on the blockchain, ensuring the openness and transparency of the voting process. Users can view voting data and results in real time through the blockchain network, enhancing their trust in the voting process and improving the transparency and credibility of voting. Voting rules (such as permission verification and result statistics) are automatically executed through smart contracts, reducing manual intervention and improving the efficiency and automation of voting. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 Flow chart of the method of the present invention. DETAILED DESCRIPTION
[0051] In order to clearly and completely describe the objectives and technical solutions of the present invention and make the advantages more clearly understood, the embodiments of the present invention are further described in detail below 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, not all of them, and are only used to explain the embodiments of the present invention, not to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0052] For example 1, please refer to Figure 1 The present invention provides a technical solution: a community voting method based on blockchain, comprising the following steps:
[0053] S1. User registration and identity authentication, and identity information is stored on the chain; the specific steps are as follows: User registration: Community users register in the system and fill in their identity information (such as name, ID number, mobile phone number, etc.). The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain to ensure the authenticity and non-tamperability of the data. After registration is completed, the system generates a unique blockchain address for the user as the user's identity in the voting system. Identity authentication: When the user logs in, the system verifies the user's identity information through the blockchain to ensure that only authorized users can participate in the voting. The user's voting rights are controlled by smart contracts, such as limiting the number of votes or voting range of each user to prevent malicious users from voting repeatedly or forging votes. The system supports multi-factor authentication (such as SMS verification code, fingerprint recognition, etc.) to further improve the security of identity authentication.
[0054] S2. The administrator creates and publishes a voting activity, and the system notifies users of the voting time and participation method; the specific steps are as follows: Voting creation: The community administrator creates a voting activity and sets voting rules (such as voting time, voting options, voting permissions, etc.).
[0055] Voting activity metadata (such as activity ID, rule description, creation time, etc.) is published through smart contracts and recorded on the blockchain, ensuring the authenticity and immutability of the data. Administrators can set the voting type (such as single choice, multiple choice, anonymous voting, etc.) and adjust voting rules as needed. For example, before voting begins, administrators can modify voting options or extend the voting time. All modification records are uploaded to the blockchain through smart contracts to ensure the transparency and traceability of the rules. Voting release: Voting activity information is recorded on the blockchain, and all users can view the detailed information of the voting activity, ensuring the transparency of the voting process. The system notifies users of the voting activity start time, end time, and voting rules via push messages or emails.
[0056] S3. Voting execution and data upload to the blockchain. Smart contracts verify permissions to prevent duplicate voting. The specific steps are as follows: User voting: Users vote through the system within the voting period, selecting voting options and submitting them. The generation, submission, and statistical records of each vote are uploaded to the blockchain, ensuring traceability of the entire voting process. The system supports multiple voting methods (such as web pages, mobile apps, and QR code scanning) to facilitate user participation. Data upload: User voting data (such as voting ID, user ID, voting options, and voting time) is uniquely identified using a hash algorithm and recorded on the blockchain. The storage and transmission of voting data is protected by encryption technology (such as the AES encryption algorithm) to prevent data theft or tampering during transmission, ensuring data security. The system uses zero-knowledge proof technology to verify the authenticity of voting data while protecting user privacy. Permission verification: The smart contract automatically verifies the user's voting authority based on pre-set rules (such as voting limits for each user and voting range restrictions). If a user attempts to vote repeatedly or exceeds their authority (for example, voting for an option that is not within their authority), the smart contract will reject the voting request and record the abnormal behavior to prevent malicious users from voting repeatedly or forging votes.
[0057] S4. The smart contract automatically tallies the results and stores them on-chain. The specific steps are as follows: Result Statistics: After the voting concludes, the smart contract automatically triggers the statistics function, aggregates and analyzes the voting data, and records the results on the blockchain. The voting result statistics process is transparent and accessible to all users. The system supports multiple statistical methods (such as statistics by option and by user group) to meet the needs of different scenarios. Result Verification: Users can verify the authenticity and integrity of voting results through the blockchain network. The system provides a visual interface for voting results, and users can view detailed voting results through a blockchain browser. The system supports the generation of audit reports on voting results for review by community administrators or third-party organizations.
[0058] S5. Data tracing and data auditing, generate reports for review. The specific steps are as follows: Data tracing: The generation, submission and statistical records of each vote are uploaded to the chain to ensure that the entire voting process is traceable. Users can view detailed information about the vote through the blockchain network, such as voting time, voting options, voting users, etc. The system provides a data tracing function, and users can quickly locate specific voting records through timestamps and transaction hash values, and view detailed information about the vote. Data auditing: The system provides a data auditing function, and community administrators or third-party agencies can audit voting data through the blockchain network. The audit process is transparent to ensure the authenticity and integrity of the voting data. The system supports the generation of audit reports, recording key data and operation logs during the audit process. The audit report includes the following: basic information about the voting activity (such as activity ID, voting rules, number of participants, etc.). Detailed data on the voting results (such as the number of votes for each option, the proportion of votes, etc.). Records of abnormal behavior (such as repeated voting attempts, permission violations, etc.). The audit report will be stored on the blockchain to ensure the immutability and traceability of the report.
[0059] In the second embodiment, based on the first embodiment, a system for the blockchain-based community voting method according to claim 5 is proposed, comprising:
[0060] The user management module is used for identity registration, authentication and permission management of community users; it specifically performs the following operations: User registration: Community users register in the system and fill in their identity information. The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain. After registration is completed, a unique blockchain address is generated for the user as an identity identifier; Identity authentication: When the user logs in, the system verifies the user's identity information through the blockchain, uses smart contracts to control the user's voting rights, and supports multi-factor authentication to improve the security of identity authentication.
[0061] The voting management module is used to create, publish and execute voting activities; it specifically performs the following operations: Voting creation: Community administrators create voting activities and set voting rules. The metadata of the voting activities is published and recorded on the blockchain through smart contracts. Administrators can set voting types and adjust voting rules according to needs. All modification records are uploaded to the chain through smart contracts; Voting release: Voting activity information is recorded on the blockchain and can be viewed by all users. The system notifies users of the start time, end time and voting rules of the voting activity through message push or email.
[0062] The blockchain network acts as a distributed ledger to store voting data, ensuring data immutability and transparency;
[0063] The smart contract module is used to automatically execute voting rules to ensure the fairness and transparency of the voting process; it specifically performs the following operations: Result statistics: After the voting is over, the smart contract automatically triggers the statistical function, summarizes and analyzes the voting data, and records the results on the blockchain. The system supports multiple statistical methods; Result verification: Users can verify the authenticity and integrity of the voting results through the blockchain network. The system provides a visual interface and audit report generation function; Data tracing: The generation, submission and statistical records of each vote are all on the chain. Users can view voting details through the blockchain network. The system provides data tracing function; Data audit: The system provides data audit function. Community administrators or third-party institutions can audit voting data through the blockchain network. The system supports the generation of audit reports, records key data and operation logs during the audit process, and audit reports are stored on the blockchain.
[0064] While 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 these embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the appended claims and their equivalents.
Claims
1. A blockchain-based community voting method, characterized by: The following steps are involved: S1. User registration and identity authentication, and identity information storage on the chain; S2. The administrator creates and publishes a voting activity, and the system notifies users of the voting time and how to participate; S3, voting execution and data on-chain, smart contract verification of permissions, and prevention of duplicate voting; S4. The smart contract automatically collects the results and stores them on the blockchain. S5. Data tracing and data auditing, generate reports for review.
2. The blockchain-based community voting method according to claim 1, characterized in that: Step S1: User registration and identity authentication. The storage of identity information on the chain specifically includes the following steps: User registration: Community users register in the system and fill in their identity information. The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain. After registration is completed, a unique blockchain address is generated for the user as their identity identifier; Identity authentication: When a user logs in, the system verifies the user's identity information through the blockchain. The user's voting rights are controlled by smart contracts. The system supports multi-factor authentication to further improve the security of identity authentication.
3. The blockchain-based community voting method according to claim 2, characterized in that: Step S2: The administrator creates and publishes a voting activity. The system notifies users of the voting time and how to participate. The specific steps include: Voting creation: Community administrators create voting activities and set voting rules. The metadata of voting activities is published through smart contracts and recorded on the blockchain. Administrators can set voting types and adjust voting rules as needed. All modification records are recorded on the blockchain through smart contracts. Voting release: Voting activity information is recorded on the blockchain and can be viewed by all users. The system notifies users of the start time, end time and voting rules of the voting activity through push messages or emails.
4. The blockchain-based community voting method according to claim 3, characterized in that: Step S3: Voting execution and data upload to the blockchain, smart contract verification of permissions, and prevention of duplicate voting specifically include the following steps: User voting: Users vote through the system during the voting period, selecting voting options and submitting them. The generation, submission, and statistical records of each vote are all recorded on the chain. The system supports multiple voting methods; Data on-chain: Users’ voting data is uniquely identified using a hash algorithm and recorded on the blockchain. The storage and transmission of voting data are protected by encryption technology, and the system uses zero-knowledge proof technology to verify the authenticity of voting data. Permission verification: The smart contract will automatically verify the user's voting authority based on preset rules. If a user attempts to vote repeatedly or exceeds the scope of authority, the smart contract will reject the voting request and record the abnormal behavior.
5. The blockchain-based community voting method according to claim 4, characterized in that: Step S4: The smart contract automatically collects the results and stores them on the chain. Specifically, it includes the following steps: Results statistics: After the voting is completed, the smart contract automatically triggers the statistics function to summarize and analyze the voting data and record the results on the blockchain. The system supports multiple statistical methods; Result Verification: Users can verify the authenticity and integrity of voting results through the blockchain network. The system provides a visual interface for voting results and supports the generation of audit reports for review. Step S5: Data tracing and auditing, generating a report for review, specifically includes the following steps: Data tracing: The generation, submission, and statistical records of each vote are recorded on the blockchain. Users can view detailed voting information through the blockchain network. The system provides data tracing functions, allowing users to quickly locate specific voting records through timestamps and transaction hash values. Data audit: The system provides data audit functions. Community administrators or third-party organizations can audit voting data through the blockchain network. The system supports the generation of audit reports, recording key data and operation logs during the audit process. The audit reports are stored on the blockchain.
6. A system for a blockchain-based community voting method according to claim 5, characterized in that: include: User management module, used for identity registration, authentication and permission management of community users; Voting management module, used to create, publish and execute voting activities; The blockchain network acts as a distributed ledger to store voting data, ensuring data immutability and transparency; Smart contract module, used to automatically execute voting rules and ensure the fairness and transparency of the voting process.
7. A system according to claim 6, characterized in that: The user management module performs user registration and identity authentication, specifically performing the following operations: User registration: Community users register in the system and fill in their identity information. The system generates a unique identifier for the user's identity information through a hash algorithm and records it on the blockchain. After registration is completed, a unique blockchain address is generated for the user as their identity identifier; Identity authentication: When a user logs in, the system verifies the user's identity information through the blockchain, uses smart contracts to control the user's voting rights, and supports multi-factor authentication to improve the security of identity authentication.
8. A system according to claim 7, characterized in that: The voting management module creates and publishes administrator voting activities, specifically performing the following operations: Voting creation: Community administrators create voting activities and set voting rules. The metadata of voting activities is published and recorded on the blockchain through smart contracts. Administrators can set voting types and adjust voting rules as needed. All modification records are recorded on the blockchain through smart contracts. Voting release: Voting activity information is recorded on the blockchain and can be viewed by all users. The system notifies users of the start time, end time and voting rules of the voting activity through push messages or emails.
9. A system according to claim 8, characterized in that: The voting management module and the smart contract module execute voting and upload data to the blockchain. Specifically, they perform the following operations: User voting: Users vote through the system during the voting period, selecting voting options and submitting them. The generation, submission, and statistical records of each vote are all recorded on the chain. The system supports multiple voting methods; Data on-chain: Users’ voting data is uniquely identified using a hash algorithm and recorded on the blockchain. The storage and transmission of voting data are protected by encryption technology, and the system uses zero-knowledge proof technology to verify the authenticity of voting data. Permission verification: The smart contract will automatically verify the user's voting authority based on preset rules. If a user attempts to vote repeatedly or exceeds the scope of authority, the smart contract will reject the voting request and record the abnormal behavior.
10. A system according to claim 9, characterized in that: The smart contract module executes the smart contract to automatically collect statistics and store them on the chain, as well as conduct data tracing and auditing. Specifically, it performs the following operations: Results statistics: After the voting is completed, the smart contract automatically triggers the statistics function to summarize and analyze the voting data and record the results on the blockchain. The system supports multiple statistical methods; Result Verification: Users can verify the authenticity and integrity of voting results through the blockchain network. The system provides a visual interface and audit report generation function; Data tracing: The generation, submission, and statistical records of each vote are all recorded on the blockchain. Users can view voting details through the blockchain network, and the system provides data tracing functions; Data audit: The system provides data audit functions. Community administrators or third-party organizations can audit voting data through the blockchain network. The system supports the generation of audit reports, recording key data and operation logs during the audit process. The audit reports are stored on the blockchain.