A blockchain-based community governance scenario encrypted voting method and device

By adopting a blockchain-based ciphertext voting method in the community governance voting system, the problem of insufficient protection of residents' personal privacy and vote content is solved, the privacy protection of vote content and the openness and transparency of vote counting process are achieved, and residents' trust in the voting process is enhanced.

CN115082005BActive Publication Date: 2025-03-25DALIAN UNIV OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210509299.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2025-03-25
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

The existing community governance voting system has shortcomings in the protection of residents' personal privacy and vote content, which leads to residents' lack of trust in the authenticity of the voting process and privacy protection.

Method used

The blockchain-based ciphertext voting method is adopted to achieve the generation and verification of resident identity credentials, the encryption and counting of plain text ballots, ensuring the privacy protection of ballot content and the openness and transparency of the vote counting process.

Benefits of technology

It effectively maintains the security of residents' personal privacy and vote information, enhances residents' trust in the voting process, solves the problem of lack of mutual trust and privacy leakage in community governance scenarios, and ensures the openness and transparency of the vote counting process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115082005B_ABST
    Figure CN115082005B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for ciphertext voting in a community governance scenario based on blockchain. The method includes: S1, submitting certification materials to the audit end through the resident client, and the audit end performs two audits; S2, the resident client obtains voting authorization by virtue of the identity certificate, and encrypts the generated plaintext ballot, and then sends the generated ciphertext ballot to the blockchain server; S3, the blockchain server sends public information to the resident client that obtains the voting authorization, and the resident client generates verification information and sends it to the blockchain server; S4, each resident client sends a decryption key to the blockchain server, and the blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes. The present invention combines blockchain smart contracts, distributed identities, and secure multi-party computing technologies to propose a more rigorous ciphertext voting scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication and blockchain technology, and in particular to a method and device for ciphertext voting in a community governance scenario based on blockchain. Background Art

[0002] Community governance refers to the process and mechanism by which community organizations, residents, local units, profit-making organizations, non-profit organizations, etc. coordinate and cooperate based on market principles, public interests, and community identity to effectively supply community public goods, meet community needs, and optimize community order. Good community governance capabilities not only contribute to the development of the community economy, but also have positive significance for the prosperity of community culture, the beautification of the community environment, and the improvement of community security.

[0003] With the rapid development of Internet technology, network information technology has greatly enhanced the convenience of community governance. The voting decision-making process that was originally only available offline has gradually developed into an online voting method. Through WeChat groups, mini-programs and other technical means, residents can participate in community governance activities no matter where they are, and community organizations can quickly collect public opinion and make collective decisions. However, in the specific implementation of the plan, grassroots organizations found that there are widespread trust issues between residents and between residents and community organizations. Residents cannot fully believe the authenticity of online voting. However, if the online ballots are fully disclosed, the personal privacy of voters will be leaked. Therefore, the voting decision-making system used in community governance scenarios must not only make the voting process open and transparent, but also provide sufficient privacy protection for personal information, so as to ensure that the system can be truly integrated into the community governance process. Summary of the invention

[0004] The present invention provides a blockchain-based community governance scenario encrypted voting method and device. In view of the current situation that the existing community voting system does not provide sufficient protection for residents' personal privacy and the privacy of ballot content, and the system design is relatively low in security, the present invention combines blockchain smart contracts, distributed identities, and secure multi-party computing technology to propose a more rigorous encrypted voting solution.

[0005] The technical means adopted by the present invention are as follows:

[0006] A blockchain-based community governance scenario encrypted voting method, implemented based on a community voting system, wherein the community voting system includes an audit end, a resident client, and a blockchain service end;

[0007] The voting method comprises the following steps:

[0008] S1. Submit proof materials to the review end through the resident client, and the review end will conduct two reviews. After the first review is passed, the review end will generate an identity certificate corresponding to the proof material and send it to the blockchain service end. After the second review is passed, the identity certificate will be sent to the corresponding resident client. The first review is used to verify whether the resident corresponding to the proof material belongs to this community, and the second review is used to verify whether the result of the first review is passed;

[0009] S2. The resident client obtains voting authorization with the identity certificate, encrypts the generated plaintext ballot, and sends the generated ciphertext ballot to the blockchain server, which counts the received ballots;

[0010] S3, the blockchain server sends the public information to the resident client that has obtained the voting authorization, and the resident client generates verification information and sends it to the blockchain server, and the verification information is used to represent the comparison result of the resident client between the public information and its own encrypted ballot;

[0011] S4. When all resident clients that have obtained voting authorization have passed verification, each resident client sends a decryption key to the blockchain server. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

[0012] Furthermore, before the resident client in S1 submits the certification materials to the review end, the certification materials are also watermarked.

[0013] Furthermore, the resident client in S2 encrypts the plaintext ballot, including encrypting it through a symmetric encryption algorithm or an asymmetric encryption algorithm.

[0014] Furthermore, the blockchain server in S2 counts the received votes, and also includes:

[0015] The blockchain server performs periodic verification to determine whether the number of resident clients that have obtained voting authorization is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended.

[0016] Furthermore, the voting method further comprises:

[0017] S5. The plaintext ballots, the ciphertext ballots corresponding to the plaintext ballots, and the counting results are saved to the blockchain server, and the resident client checks the counting process by calling the blockchain service.

[0018] The present invention also discloses a blockchain-based community governance scenario ciphertext voting device, comprising:

[0019] An authentication unit, which is used to enable the resident client to submit proof materials to the review end, which will conduct two reviews. After the first review is passed, the review end will generate an identity certificate corresponding to the proof materials and send it to the blockchain service end. After the second review is passed, the identity certificate will be sent to the corresponding resident client;

[0020] A voting unit, which is used to enable the resident client to obtain voting authorization by virtue of the identity certificate, and after encrypting the generated plaintext ballot, send the generated ciphertext ballot to the blockchain server, and the blockchain server counts the received ballots;

[0021] A publicizing unit, which is used to enable the blockchain server to send publicizing information to the resident client that has obtained the voting authorization, and the resident client generates verification information and sends it to the blockchain server, wherein the verification information is used to represent the comparison result between the resident client and its own encrypted ballot;

[0022] The counting unit is used to enable each resident client to send a decryption key to the blockchain server after all resident clients that have obtained voting authorization have been verified. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

[0023] Furthermore, the authentication unit includes a watermark module, which is used to perform watermark processing on the proof materials before the resident client submits the proof materials to the review end.

[0024] Furthermore, the voting unit includes an encryption module, which is used to encrypt the plaintext ballot, including encryption through a symmetric encryption algorithm or an asymmetric encryption algorithm.

[0025] Furthermore, the voting unit also includes a timing verification module, which is used to determine whether the number of resident clients that have obtained voting authorization is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended.

[0026] Furthermore, the device also includes: a storage unit, which is used to save the plaintext ballots, the corresponding ciphertext ballots and the counting results to the blockchain server.

[0027] Compared with the prior art, the present invention has the following advantages:

[0028] 1. The present invention not only maintains the privacy of residents and the security of their voting information during the voting process, but also ensures the openness and transparency of the vote counting process through the interactive logic design of the resident client, the audit terminal and the blockchain server. It solves the problem of lack of mutual trust and privacy leakage in community governance scenarios.

[0029] 2. The present invention prevents residents' privacy information from being used for other purposes through watermark processing; the audit end is only responsible for the audit of the authenticity of the materials, and cannot map the identity credentials with the real identity of the residents. Therefore, residents can use their identity credentials in the voting process to ensure anonymity; the audited identity credentials will become the personal identification of the residents in the voting system, and the verifier only needs to compare the identity credentials submitted by the residents with the identity credentials in the audit service to verify the identity, and the personal privacy of the residents is fully protected during the verification process.

[0030] In the voting process, all residents send their ballots in ciphertext, thus protecting the privacy of the ballot contents. In the counting process, the blockchain counting service obtains the decryption key and the ID of the ciphertext ballot provided by the residents to obtain the plaintext ballot, and then completes the counting process according to the preset rules of the smart contract, thus ensuring the openness and accuracy of the counting results.

[0031] In the present invention, the resident identity certification materials, ciphertext ballots, decrypted ballots and counting results are uploaded to the blockchain system for archiving, and the archive is tamper-proof. Voting participants can query the on-chain data for verification at any time, ensuring that the entire voting process is traceable and verifiable. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0033] Figure 1 This is a flow chart of the encrypted voting method for community governance scenarios based on blockchain in the present invention.

[0034] Figure 2 This is a flow chart of the encrypted voting method for the community governance scenario based on blockchain in the embodiment. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.

[0036] like Figure 1As shown, the present invention provides a blockchain-based community governance scenario encrypted voting method, which is implemented based on a community voting system. The community voting system includes an audit end, a resident client, and a blockchain service end; the voting method includes the following steps:

[0037] S1. Submit proof materials to the review end through the resident client, and the review end will conduct two reviews. After the first review is passed, the review end will generate an identity certificate corresponding to the proof material and send it to the blockchain service end. After the second review is passed, the identity certificate will be sent to the corresponding resident client. The first review is used to verify whether the resident corresponding to the proof material belongs to this community, and the second review is used to verify whether the result of the first review is passed.

[0038] S2. The resident client obtains voting authorization with the identity certificate, encrypts the generated plaintext ballot, and then sends the generated ciphertext ballot to the blockchain server, which counts the received ballots.

[0039] S3. The blockchain server sends public information to the resident client that has obtained voting authorization. The resident client generates verification information and sends it to the blockchain server. The verification information is used to represent the comparison result of the resident client between the public information and its own encrypted ballot.

[0040] S4. When all resident clients that have obtained voting authorization have passed verification, each resident client sends a decryption key to the blockchain server. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

[0041] Further, the method also includes:

[0042] S5. The plaintext ballots, the ciphertext ballots corresponding to the plaintext ballots, and the counting results are saved to the blockchain server, and the resident client checks the counting process by calling the blockchain service.

[0043] The solution of the present invention is further described below through specific application examples.

[0044] like Figure 2 As shown, this embodiment is implemented based on a community voting system, which includes an audit terminal, a resident client, and a blockchain server. The blockchain server includes a blockchain voting service module, a blockchain audit service module, and a blockchain archiving service module. The audit terminal is arranged in the street office, the resident client is set at the community residents, and the blockchain server is arranged on the server.

[0045] The voting method execution consists of four stages:

[0046] Phase 1: Community Resident Identity Authentication

[0047] 1.1 Community residents take photos / scans of their personal identification materials (ID card, house ownership certificate) to form an electronic document.

[0048] 1.2 The resident end of the system will watermark the electronic document to ensure that personal identification materials will not be used for other purposes.

[0049] 1.3 Community residents upload their personal certification materials to the blockchain system’s review service.

[0050] 1.4 The subdistrict office uses the system review terminal to receive residents’ certification materials. If the resident belongs to this community, the review will be passed.

[0051] 1.5 The blockchain system audit service automatically generates distributed IDs and identity credentials.

[0052] 1.6 Community residents submit personal identification materials to the system again. If the materials have passed the review, they can obtain a unique distributed ID and an electronic identity certificate that can prove the identity of the residents.

[0053] Phase 2: Ciphertext voting phase

[0054] 2.1 Community residents use the distributed ID obtained in step 1.6 to log in to the system and obtain a list of resolutions to be voted on.

[0055] 2.2 Community residents vote on the system resident end and generate plaintext ballot B.

[0056] 2.3 The resident provides the blockchain voting service with electronic identity credentials and requests authorization to vote.

[0057] 2.4 The blockchain voting service verifies the validity of the electronic identity certificate to the audit service. If the certificate is valid, it sends the authorization certificate D to the resident with the corresponding ID.

[0058] 2.5 The resident terminal generates ciphertext ballot B using encryption key K1 based on the authorization certificate D obtained in step 2.4 and the plaintext ballot B obtained in step 2.4. _encypt (The encryption algorithm here can be a symmetric encryption algorithm, such as the AES algorithm, or an asymmetric encryption algorithm, such as the RSA algorithm. The encryption algorithm and key used for each voting behavior can be different).

[0059] 2.6 The resident sends the encrypted ballot B _encypt Sent to blockchain voting service.

[0060] 2.7 The blockchain voting service receives encrypted ballots and saves them in the blockchain.

[0061] 2.8 The blockchain voting service performs periodic verification (typical value is 5 to 10 minutes) to check whether the number of authorized IDs is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended and enters the public announcement stage.

[0062] The third stage: Public announcement

[0063] 3.1 The blockchain voting service sends a start announcement message to all authorized community residents in step 2.

[0064] 3.2 Community residents log in to the system resident terminal and submit their ciphertext ballot B _encypt Compare with all the published ballots. If your ballot exists in the published ballots, it passes the verification and the corresponding ballot number i is recorded.

[0065] 3.3 The blockchain voting service accepts verification feedback from all residents. If all residents confirm that the votes are correct, the system enters the vote counting stage.

[0066] Phase 4: Counting of votes

[0067] 4.1 The blockchain voting service sends a message to start counting votes to all authorized community residents in step 2.

[0068] 4.2 Community residents log in to the resident end of the system and send the decryption key K2 (if a symmetric encryption algorithm is used, K2=K1) and the ciphertext ballot number i recorded in step 3.2 to the blockchain voting service.

[0069] 4.3 The blockchain voting service uses the decryption key K2 and the ciphertext ballot number i to decrypt the corresponding ciphertext ballot B. _encypt_i Decrypt and obtain the plaintext ballot Bi.

[0070] 4.4 The blockchain voting service saves paired plaintext & ciphertext ballots into the blockchain system.

[0071] 4.5 The blockchain voting service automatically completes the vote counting according to the rules preset by the smart contract.

[0072] 4.6 If all ciphertext ballots are decrypted, the counting phase ends. The blockchain voting service saves the voting results to the blockchain system, and community residents can log in to check the counting results at any time.

[0073] The present invention also discloses a blockchain-based community governance scenario ciphertext voting device, comprising:

[0074] The authentication unit is used to enable the resident client to submit the certification materials to the audit end, which will conduct two audits. After the first audit is passed, the audit end will generate an identity certificate corresponding to the certification material and send it to the blockchain service end. After the second audit is passed, the identity certificate will be sent to the corresponding resident client. The authentication unit includes a watermark module, which is used to perform watermark processing on the certification materials before the resident client submits the certification materials to the audit end.

[0075] The voting unit is used to enable the resident client to obtain voting authorization by virtue of the identity certificate, and after encrypting the generated plaintext ballot, the generated ciphertext ballot is sent to the blockchain server, and the blockchain server counts the received ballots. The voting unit includes an encryption module, which is used to encrypt the plaintext ballot, including encryption by a symmetric encryption algorithm or an asymmetric encryption algorithm. The voting unit also includes a timing verification module, which is used to determine whether the number of resident clients who have obtained voting authorization is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended.

[0076] A publicizing unit, which is used to enable the blockchain server to send publicizing information to the resident client that has obtained the voting authorization, and the resident client generates verification information and sends it to the blockchain server, wherein the verification information is used to represent the comparison result between the resident client and its own encrypted ballot;

[0077] The counting unit is used to enable each resident client to send a decryption key to the blockchain server after all resident clients that have obtained voting authorization have been verified. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

[0078] Furthermore, the device also includes: a storage unit, which is used to save the plaintext ballots, the corresponding ciphertext ballots and the counting results to the blockchain server.

[0079] As for the embodiments of the present invention, since they correspond to the embodiments above, the description is relatively simple. For the relevant similarities, please refer to the description of the above embodiments, which will not be described in detail here.

[0080] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A blockchain-based community governance scenario encrypted voting method, characterized in that: It is implemented based on a community voting system, which includes an audit end, a resident client, and a blockchain service end; The voting method comprises the following steps: S1. Submit proof materials to the review end through the resident client, and the review end will conduct two reviews. After the first review is passed, the review end will generate an identity certificate corresponding to the proof material and send it to the blockchain service end. After the second review is passed, the identity certificate will be sent to the corresponding resident client. The first review is used to verify whether the resident corresponding to the proof material belongs to this community, and the second review is used to verify whether the result of the first review is passed; S2. The resident client obtains voting authorization with the identity certificate, encrypts the generated plaintext ballot, and sends the generated ciphertext ballot to the blockchain server, which counts the received ballots; S3, the blockchain server sends the public information to the resident client that has obtained the voting authorization, and the resident client generates verification information and sends it to the blockchain server, and the verification information is used to represent the comparison result of the resident client between the public information and its own encrypted ballot; S4. When all resident clients that have obtained voting authorization have passed verification, each resident client sends a decryption key to the blockchain server. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

2. According to a blockchain-based community governance scenario encrypted voting method according to claim 1, it is characterized in that: In S1, before the resident client submits the certification materials to the review end, the certification materials are also watermarked.

3. According to a blockchain-based community governance scenario encrypted voting method according to claim 1, it is characterized in that: The resident client in S2 encrypts the plaintext ballot, including encrypting through a symmetric encryption algorithm or an asymmetric encryption algorithm.

4. According to a blockchain-based community governance scenario encrypted voting method according to claim 1, it is characterized in that: The blockchain server in S2 counts the received votes, including: The blockchain server performs periodic verification to determine whether the number of resident clients that have obtained voting authorization is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended.

5. According to a blockchain-based community governance scenario encrypted voting method according to claim 1, it is characterized in that: The voting method further comprises: S5. The plaintext ballots, the ciphertext ballots corresponding to the plaintext ballots, and the counting results are saved to the blockchain server, and the resident client checks the counting process by calling the blockchain service.

6. A blockchain-based community governance scenario encrypted voting device, characterized in that: include: An authentication unit, which is used to enable the resident client to submit proof materials to the review end, which will conduct two reviews. After the first review is passed, the review end will generate an identity certificate corresponding to the proof materials and send it to the blockchain service end. After the second review is passed, the identity certificate will be sent to the corresponding resident client; A voting unit, which is used to enable the resident client to obtain voting authorization by virtue of the identity certificate, and after encrypting the generated plaintext ballot, send the generated ciphertext ballot to the blockchain server, and the blockchain server counts the received ballots; A publicizing unit, which is used to enable the blockchain server to send publicizing information to the resident client that has obtained the voting authorization, and the resident client generates verification information and sends it to the blockchain server, wherein the verification information is used to represent the comparison result between the resident client and its own encrypted ballot; The counting unit is used to enable each resident client to send a decryption key to the blockchain server after all resident clients that have obtained voting authorization have been verified. The blockchain server decrypts the ciphertext ballot according to the decryption key to obtain the plaintext ballot and count the votes.

7. According to claim 6, a blockchain-based community governance scenario encrypted voting device is characterized in that: The authentication unit includes a watermark module, which is used to perform watermark processing on the certification materials before the resident client submits the certification materials to the review end.

8. According to claim 6, a blockchain-based community governance scenario encrypted voting device is characterized in that: The voting unit includes an encryption module, which is used to encrypt the plain text ballot, including encryption through a symmetric encryption algorithm or an asymmetric encryption algorithm.

9. According to claim 6, a blockchain-based community governance scenario encrypted voting device is characterized in that: The voting unit also includes a timing verification module, which is used to determine whether the number of resident clients that have obtained voting authorization is equal to the number of ciphertext ballots received. If they are equal, the voting process is deemed to have ended.

10. According to claim 6, a blockchain-based community governance scenario encrypted voting device is characterized in that: The device also includes: a storage unit, which is used to save the plaintext ballots, the corresponding ciphertext ballots and the counting results to the blockchain server.

Citation Information

Patent Citations

  • Multidimensional dynamic identity recognition method, device and system based on block chain

    CN109768983A

  • Voting method, device and system based on blockchain

    CN110264608A