A method, device and electronic device for community voting governance based on blockchain
Through blockchain technology and smart contracts, it solves the problems of low efficiency, insufficient security and difficulty in ensuring fairness in community voting governance, achieves an efficient, safe and transparent voting process, and promotes the healthy development and democratic governance of the community. .
Patent Information
- Application Number
- CN202410395911.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-04-02
AI Technical Summary
The traditional centralized voting governance method has problems in the community such as low efficiency, insufficient security and difficulty in ensuring fairness, especially as the community scale expands and democratic awareness increases.
Adopting a community voting governance method based on blockchain technology, through steps such as user registration, voting weight generation, token distribution, voting process management and result calculation, it ensures the transparency, security and fairness of voting, while providing the security of personal information. Privacy protection.
It improves voting efficiency, ensures security and fairness, promotes the healthy development and democratic governance of the community, and reduces the possibility of human intervention and fraud through the non-tampering characteristics of the blockchain and the automated execution of smart contracts.
Smart Images

Figure CN118298542B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method, device and electronic device for community voting governance based on blockchain technology. Background Art
[0002] A community is a large collective with interconnected lives formed by a number of social groups or social organizations gathered in a certain field. It is the most basic content of a social organism and a microcosm of the macro-society. Community governance is a process and mechanism based on market principles, public interests and community identity, involving the coordination and cooperation of community organizations, residents, local units, profit-making organizations and non-profit organizations. It aims to effectively supply community public goods, meet community needs and optimize community order. Good community governance capabilities have positive significance for the development of the community economy, the prosperity of community culture, the beautification of the community environment and the improvement of community security.
[0003] Voting is an important part of community governance. It can help community residents express their opinions and needs and participate in the decision-making of community affairs. With the continuous expansion of community scale and the improvement of democratic awareness, the traditional centralized voting governance method can no longer meet the needs of community members for fairness, transparency and efficiency. At the same time, centralized institutions may have problems such as abuse of power and corruption, which further weakens the credibility and effectiveness of voting governance.
[0004] Blockchain technology, with its unique characteristics of decentralization, openness, transparency, and immutability, provides a new solution for community voting governance. However, the current blockchain-based community voting governance method still faces many challenges, such as low voting efficiency, insufficient security, and difficulty in ensuring fairness.
[0005] Therefore, the present invention proposes a community voting governance method based on blockchain, which aims to solve the above problems, improve voting efficiency, ensure security, ensure fairness, and provide sufficient privacy protection for personal information while ensuring the openness and transparency of the voting process, so as to promote the healthy development and democratic governance of the community. Summary of the invention
[0006] Based on this, it is necessary to provide a community voting governance method, device and electronic equipment based on blockchain to improve voting efficiency, ensure security, ensure fairness, and promote the healthy development and democratic governance of the community.
[0007] A community voting governance method based on blockchain, comprising the following steps:
[0008] S10, receiving the registration information of the community user and encrypting it and storing it on the blockchain, and generating the voting weight of the community user based on the registration information;
[0009] S20. Receive the target proposal initiated by the proposal initiator, which is used to achieve community governance.
[0010] Generate a pending voting event based on the target proposal, wherein the pending voting event sets voting options of support and opposition;
[0011] S30, creating a distribution function of a token contract for the event to be voted on based on the voting contract, and allocating target tokens to the community users according to the preset total token amount set for the event to be voted on and the voting weight;
[0012] S40, sending the event to be voted to the community users, so that the community users can vote on the event to be voted and obtain the voting results. In this process, the target token is added to the token set corresponding to the voting result, and the proportion of votes in the voting options supporting and opposing the target proposal is determined according to the tokens in the token set to obtain the actual support rate and the actual opposition rate;
[0013] S50, receiving the voting result, and calculating the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result;
[0014] S60. Set a check node according to the voting duration, set a support rate threshold, obtain the positive and negative deviation range of the support rate threshold during the voting process, compare the actual support rate with the pre-set support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated.
[0015] Furthermore, it also includes S00, a community user registers as a user in the blockchain and obtains a corresponding certificate, a public-private key pair and a wallet address, wherein the public-private key pair is used for encryption, decryption and digital signature.
[0016] Furthermore, the registration information includes community real estate information, and the real estate information includes one or more of building area, apartment type, and floor.
[0017] Furthermore, after adding the target token to the token set corresponding to the voting result, it also includes: calling the destruction function of the token contract to destroy the target token owned by the community user for the target proposal.
[0018] Furthermore, the calculation formula of the voting deviation is as follows:
[0019]
[0020] Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote, and R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens.
[0021] Furthermore, the method for obtaining the positive and negative deviation range includes the following steps:
[0022] During the voting process, the relationship between the actual support rate and time is continuously detected;
[0023] Get the average value of the data time process and establish the standard normal distribution curve;
[0024] The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
[0025] The present invention also provides a community voting governance based on blockchain, including:
[0026] Registration unit, used for community users to become users in the blockchain and obtain corresponding certificates, public and private key pairs and wallet addresses. The public and private key pairs are used for encryption, decryption and digital signature;
[0027] A weight generating unit receives registration information of community users and encrypts and stores it on the blockchain, and generates voting weights of community users based on the registration information, wherein the registration information includes community real estate information, and the real estate information includes one or more of building area, apartment type, and floor;
[0028] The proposal unit receives a target proposal initiated by a proposal initiator, wherein the target proposal is used to implement community governance, generates a pending voting event based on the target proposal, and sets voting options of support and opposition for the pending voting event;
[0029] A token generation unit, which creates a distribution function of a token contract for the event to be voted on based on the voting contract, and allocates target tokens to the community users according to a preset total token amount set for the event to be voted on and the voting weight;
[0030] The voting unit sends the event to be voted to the community user, so that the community user can vote on the event to be voted and obtain the voting result. In this process, the target token is added to the token set corresponding to the voting result, and the destruction function of the token contract is called to destroy the target token owned by the community user for the target proposal. According to the tokens in the token set, the proportion of votes in the voting options for and against the target proposal is determined to obtain the actual support rate and the actual opposition rate;
[0031] A determination unit receives the voting result and calculates the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result.
[0032] The checking unit sets the checking node according to the voting duration, sets the support rate threshold, obtains the positive and negative deviation range of the support rate threshold during the voting process, compares the actual support rate with the pre-set support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated.
[0033] Furthermore, the calculation formula of the voting deviation is as follows:
[0034]
[0035] Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote, and R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens.
[0036] Furthermore, the method for obtaining the positive and negative deviation range includes the following steps:
[0037] During the voting process, the relationship between the actual support rate and time is continuously detected;
[0038] Get the average value of the data time process and establish the standard normal distribution curve;
[0039] The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
[0040] The present invention also provides an electronic device, comprising:
[0041] processor;
[0042] a memory for storing processor-executable instructions;
[0043] Among them, when the executable instructions are running, any of the above-mentioned blockchain-based community voting governance methods is executed.
[0044] One or more technical solutions provided in the present invention bring the following beneficial technical effects:
[0045] The present invention provides a community voting governance method based on blockchain. Based on blockchain and smart contract technology, it solves the problems of poor transparency and weak credibility of community voting governance, improves voting efficiency, ensures security, ensures fairness, and promotes the healthy development and democratic governance of the community. The characteristics of blockchain that cannot be tampered with and can be traced are used to ensure that voting data is authentic and reliable; through smart contracts, the voting process can be automatically executed to ensure that voting is carried out according to preset rules, which can reduce the possibility of human intervention and fraud, achieve decentralization, and ensure the fairness and security of voting.
[0046] The technical solution disclosed in the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:
[0048] FIG1 shows a flow chart of a community voting governance method based on blockchain provided in an embodiment of the present application;
[0049] Figure 2 A schematic diagram of the structure of a community voting and governance device based on blockchain provided in an embodiment of the present application is shown;
[0050] Figure 3 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown.
[0051] In the figure:
[0052] 2-Community voting and governance device based on blockchain; 20-Registration unit; 21-Weight production unit; 22-Proposal unit; 23-Token generation unit; 24-Voting unit; 25-Judgment unit; 26-Inspection unit; 3-Electronic device; 31-Processor; 32-Memory; 33-Bus. DETAILED DESCRIPTION
[0053] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with embodiments and drawings. The exemplary embodiments of the present invention and their description are only used to explain the present invention and are not intended to limit the present invention.
[0054] The terms used herein are only used to describe specific embodiments and are not intended to limit the exemplary embodiments of the present invention. As used herein, the singular forms "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates the opposite meaning. It should also be understood that the terms "include", "comprise", "include", and / or "comprising" when used herein specify the existence of the claimed features, integers, steps, operations, units and / or components, and do not exclude the existence or increase of one or more other features, quantities, steps, operations, units, components and / or their combinations.
[0055] In order to facilitate understanding of the present invention, the present invention will be described more fully below. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present invention more thorough and comprehensive.
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0057] The following will describe the implementation methods of the present invention in detail with the help of drawings and examples, so that the implementation process of how the present invention uses technical means to solve technical problems and achieve technical effects can be fully understood and implemented accordingly.
[0058] First, some terms in the embodiments of the present application are explained to facilitate understanding by those skilled in the art.
[0059] 1. Blockchain: Blockchain is a linked list of recorded data that grows in chronological order. These recorded data are stored in a structure called "block" and protected by cryptography to ensure its integrity and authenticity. Each block contains the hash value of the previous block, forming a continuous and tamper-proof data chain. Blockchain technology allows participants in the network to reach a consensus and exchange data securely without a centralized third party.
[0060] The blockchain technology stack can be divided into three main layers: blockchain underlying platform, platform product service layer and application service layer. The blockchain underlying platform is the cornerstone of building a blockchain system. It includes management modules (processing identity information and permissions), basic service modules (verifying business requests, reaching consensus and recording data) and smart contract modules (responsible for contract registration, triggering and execution). The platform product service layer provides developers with the basic framework and capabilities for building blockchain applications, while the application service layer provides specific business applications based on blockchain technology.
[0061] In the blockchain network, according to the degree of openness of access rights, it can be divided into three types: public blockchain, private blockchain and consortium blockchain. The public blockchain is completely open, and anyone can participate in the access and data writing of the network without any authorization. The private blockchain is highly controlled, and the access and writing rights are only controlled by specific institutions or organizations. External users need permission to join. The consortium blockchain is between the public and private chains. It only allows specific organizations or institutions to join the network and jointly maintain the operation of the blockchain and the security of the data. These organizations usually form an alliance to jointly formulate network rules and management strategies.
[0062] 2. Smart contract: It is a computerized protocol based on blockchain technology that can automatically execute the terms of the contract when predetermined conditions are met. These computer programs have the characteristics of event-driven, value transfer and automatic execution, making the contract performance process more efficient, transparent and trustworthy. Smart contracts are stored on the blockchain, which means they are public, transparent and tamper-proof. Once the predefined conditions of the contract are met, the contract code will be automatically executed without any human intervention. The results of the contract execution will be recorded on the blockchain and cannot be changed. This powerful solution prevents fraud by providing an unchangeable, decentralized and transparent protocol that all parties can trust. Unlike traditional contracts, smart contracts are programmed to eliminate the need for intermediaries such as banks, lawyers or notaries, reduce transaction costs and time costs, and improve transaction efficiency. They can also automatically complete the workflow and trigger the next action when the conditions are met. That is, smart contracts can execute the terms of a contract through code deployed on a shared ledger for execution when certain conditions are met. In the embodiment of this application, voting contracts, token contracts, etc. are all smart contracts.
[0063] 3. Decentralized voting: This is a voting method that uses blockchain technology. It executes and manages voting operations by deploying a special voting contract on the blockchain. The characteristic of this voting method is that it stipulates specific voting participants, usually those who hold specific tokens. These objects are represented by corresponding addresses and are given corresponding voting rights. Importantly, the weight of the vote is often directly related to the number of tokens held by the participant. The more tokens held, the greater the voting weight. Participants can vote in a decentralized manner through the blockchain network, which means that they can express their voting intentions directly and securely without relying on any centralized institution or third party to process and verify the voting results. In addition, due to the open and transparent nature of the blockchain, all voting records will be recorded on the chain in real time for anyone to view, thereby ensuring the fairness and transparency of the voting process.
[0064] The embodiments of the present application provide a community voting governance method, device and electronic device based on blockchain, which can improve voting efficiency, ensure security, ensure fairness, realize decentralized voting, and promote the healthy development and democratic governance of the community. Other advantages, objectives and features of the present application will be partially reflected in the following description.
[0065] First, please refer to Figure 1. The community voting governance method based on blockchain provided by this application includes:
[0066] S00. Community users register as users in the blockchain and obtain corresponding certificates, public-private key pairs and wallet addresses. The public-private key pairs are used for encryption, decryption and digital signature.
[0067] In this step, community users register on the blockchain and obtain on-chain identities. Specifically, users register as block users in the blockchain system and obtain corresponding certificates, public and private key pairs (used for encryption and decryption, digital signatures) and wallet addresses (mapped to accounts). Each block user constitutes a network node of the blockchain, and all operations are completed by calling smart contracts. Among them, asymmetric encryption algorithms can be used to create public and private key pairs for community users. Specifically, we can use Rivest-Sommer-Adleman algorithm (RSA algorithm) or elliptic curve cryptography algorithm (ECC) to generate these key pairs. These algorithms are widely used in cryptography and are known for their high strength and security. In addition, we can also use specialized tools to simplify the process of creating key pairs. For example, OpenSSL is a very practical choice. OpenSSL is not only a full-featured secure socket layer cryptographic library, it also integrates many mainstream cryptographic algorithms, provides convenient functions for key and certificate management, and supports the transport security layer (SSL) protocol. Through OpenSSL, users can easily generate public and private key pairs for community users, and can test or apply them to other scenarios as needed.
[0068] S10. The registration information of the community user is received and encrypted and stored on the blockchain, and the voting weight of the community user is generated based on the registration information.
[0069] In this step, in order to ensure that the identity of the user participating in the vote is authentic and that he is a community owner, it is necessary to collect and record the detailed information of the owner, such as the name, gender, date of birth, nationality, ID number and issuing authority of the community user. Specifically, the above information can be adjusted according to the different situations of the specific community. The above information is only used as an implementation method, and does not mean that this scheme is limited to the above information. In a specific implementation case, the registration information further includes community real estate information, and the real estate information includes one or more of the building number, unit number, building area, apartment type, and floor. Real estate information is crucial to confirming the identity of the owner and the voting qualification. This information not only helps to confirm the owner's living status, but also serves as a reference for the voting weight. When generating the voting weight, it is necessary to comprehensively consider the registration information of the community owner to ensure that the distribution of the weight is both fair and reasonable. If necessary, the contribution degree can be introduced to increase the voting weight of the community user. In this way, the voting rights of community users can be more accurately protected, the enthusiasm of community users to participate in voting can be improved, and the fairness and transparency of the voting process can be guaranteed.
[0070] S20. Receive a target proposal initiated by a proposal initiator, where the target proposal is used to implement community governance, and generate a pending voting event based on the target proposal. The pending voting event sets voting options of support and opposition.
[0071] In this step, it is understandable that in community life, various community governance events related to the rights and interests of owners will be encountered, such as new facilities, garbage disposal, etc., and solving such events often requires keeping the event handling open, fair and just; therefore, in this solution, blockchain technology is used to realize event proposals, proposal voting, management node review, and voting by all owners (owner nodes of blockchain). By utilizing the characteristics of blockchain, this solution perfectly realizes this concept and can effectively solve the practical problems that owners need to solve. Since the core of voting management lies in processing and controlling the voting process, it is also necessary to deploy a special voting contract on the blockchain. This voting contract will be responsible for creating and managing target proposals, ensuring the smooth progress of voting activities, and maintaining the integrity and credibility of voting results. In this way, blockchain technology provides a decentralized, transparent and efficient solution for voting management.
[0072] In a specific implementation case, this step provides management for target proposals. Target proposals are created by proposal initiators, who can be property or institutions or individuals with relevant community governance authority. After the target proposal is reviewed and approved, it will be used as a proposal for community users to vote on. Target proposals are intended to clarify the specific goals or topics of community governance. Proposal initiators need to clearly explain the theme, background, purpose and expected effect of the proposal. After creating the target proposal, it is necessary to further fill in the detailed information of the proposal, which may include the specific content of the proposal, implementation plan, required resources, expected costs and possible impacts. This information should be detailed and accurate so that community members can fully understand the content of the proposal and make voting decisions. Based on the received target proposals, the event to be voted on is automatically generated. This step uses preset rules and algorithms to screen and evaluate the proposals to determine whether they meet the requirements and standards of community governance. Proposals that meet the requirements will be converted into events to be voted on and given a unique event identifier. The event to be voted on sets support and opposition voting options for community users to vote on their wishes.
[0073] S30. Create a distribution function of a token contract for the event to be voted on based on the voting contract, and allocate target tokens to the community users according to the preset total token amount set for the event to be voted on and the voting weight.
[0074] In this step, the target token is allocated to the community users based on the voting weight, after the target proposals that the community users participate in are determined and the on-chain identity is identified. In blockchain technology, voting management mainly relies on tokens. Specifically, the number of tokens is usually used as the basis for determining the voting weight, and the voting operation is completed by accumulating tokens to a specific set of tokens representing the voting results. In order to implement this blockchain-based voting management mechanism, it is first necessary to deploy a token contract on the blockchain network to ensure the correct issuance and management of tokens. Subsequently, the corresponding tokens must be allocated to those who are eligible to participate in the target proposal.
[0075] In an embodiment of the present invention, the voting contract will create a token contract, which will disable the transfer function, making the target token non-transferable and only used to represent the voting rights of the community user in the target proposal. After the token contract is created, the voting contract will call the distribution function of the token contract to distribute the target token to the corresponding community users. The target token received by each community user is: Assuming that the initial preset total token amount is T 预, The target number of tokens allocated to community users is T 目 =T 预 *W, where W represents the voting weight of the community users. It should be noted that these voting tokens are designed specifically for blockchain governance voting and are not used for daily transactions or circulation in the blockchain. This specificity ensures the independence and security of the voting process.
[0076] S40, sending the event to be voted to the community users, so that the community users can vote on the event to be voted and obtain the voting results. In this process, the target token is added to the token set corresponding to the voting result, and the proportion of votes in the voting options supporting and opposing the target proposal is determined according to the tokens in the token set to obtain the actual support rate and the actual opposition rate;
[0077] In this step, after the event to be voted is generated, it will be sent to the community users with voting rights. Community users can participate in voting through identity authentication and respond to the event to be voted according to their own wishes and judgment. Voting behavior is usually completed by clicking the support or opposition button, and the record is uploaded to the chain. The blockchain system synchronizes the chain record to the participating nodes to realize the distributed ledger record and cannot be tampered with. In order to ensure the accuracy of voting management, after obtaining the voting data of the community user, the legitimacy of the voting data is verified. For example, after receiving the event to be voted, based on the community user and the total tokens owned by the community user, before obtaining the identification result of the community user's voting rights for the target proposal, the voting data is hashed to obtain the first hash value; based on the public key of the community user, the first signature information in the voting data is decrypted to obtain the corresponding first decryption value; the public key is stored when the community user registers on the chain; when the first hash value is consistent with the first decryption value, it is determined that the legitimacy of the voting data has passed. After the community user votes, the support or opposition of the respective voting target tokens are obtained, and the corresponding target token contract address can be queried. When the first hash value is consistent with the first decrypted value, it is determined that the legitimacy verification of the voting data has passed. After adding the target token to the token set corresponding to the voting result, the destruction function of the token contract is called to destroy the target token owned by the community user for the target proposal.
[0078] Based on the number of tokens in the token set, the system can calculate the proportion of votes in the support and opposition options. This is usually obtained by counting the number of tokens corresponding to each option and then dividing it by the total number of tokens. For example, if there are 100 tokens in the support option and 50 tokens in the opposition option, and the total number of tokens is 150, then the actual support rate is 100 / 150, which is about 66.67%, and the actual opposition rate is 50 / 150, which is about 33.33%. These actual support and opposition rates not only reflect the attitude of community users towards the proposal, but also serve as an important basis for subsequent decision-making.
[0079] S50, receiving the voting result, and calculating the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result.
[0080] In this step, the reception and processing of voting results is a crucial part of the community governance proposal voting system based on blockchain technology. Once the community users have completed the voting, the system will receive and integrate these voting results. The voting results are usually stored in a digital form, recording the support or opposition of each user or each token to the proposal. At this time, the voting deviation will be calculated according to the preset formula.
[0081] In an embodiment of the present invention, the calculation formula of voting deviation is as follows:
[0082]
[0083] Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote. The actual support rate directly reflects the degree of support for the proposal by community users. If the actual support rate is high, it means that the proposal has been recognized by most users. R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens. The voting rate reflects the degree of participation of community users. A high voting rate means that more users participated in the voting process, thereby increasing the representativeness and credibility of the voting results.
[0084] In an embodiment of the present invention, it is assumed that in a target proposal, when the actual support rate S is 85% and the voting rate R is 80%, the voting deviation is 0.72 (two decimal places) as a positive value, and when the actual support rate S is 52% and the voting rate R is 80%, the voting deviation is -0.03 (two decimal places) as a negative value. According to the calculated voting deviation, the system can determine whether the target proposal is passed. If the voting deviation is a positive value, it means that the proposal has received sufficient support and participation, so it is judged to be passed. On the contrary, if the voting deviation is a negative value, it indicates that the proposal has not received sufficient support or participation, so it needs to be returned for modification. The target proposal is returned to the proposal initiator. If the proposal initiator chooses to modify, the process of initiating voting is re-entered. If the proposal initiator does not modify it at this time, the vote for the target proposal is automatically cancelled. Regardless of whether the proposal is passed or not, the voting results need to be synchronized to all nodes of the blockchain to ensure the immutability and distributed storage of the data. By synchronizing to the blockchain, all community members can view and verify the voting results, which increases transparency and credibility.
[0085] S60. Set a check node according to the voting duration, set a support rate threshold, obtain the positive and negative deviation range of the support rate threshold during the voting process, compare the actual support rate with the pre-set support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated.
[0086] In this step, the check node is a specific time point preset in the voting process to evaluate the progress and results of the vote. The setting of these nodes can be determined according to the expected duration of the vote, the importance and the activity of community members. When reaching each check node, the system will suspend voting and calculate and analyze the actual support rate. The support rate threshold is a key indicator set in the voting process to determine whether the proposal has received sufficient support. This threshold is usually determined based on community governance rules, historical voting data, and the importance and urgency of the current proposal. In addition to the threshold, the positive and negative deviation range can also be set to allow for certain fluctuations and uncertainties. In an embodiment of the present invention, the positive and negative deviation range is a supplement to the support rate threshold, which takes into account the uncertainty and possible fluctuations in the voting process. The positive deviation indicates that the support rate can be slightly higher than the threshold and still be considered valid, while the negative deviation represents that when the support rate is lower than the support rate threshold to a certain extent, the vote may no longer have the value of continuing. In this way, the judgment interval of the data is more in line with objective laws, and the control of the voting nodes is achieved. The average value of the change and the positive and negative deviation range determined according to the standard normal distribution law can be calculated according to the process data of the actual support rate, and the change trend of the process data of the actual support rate over time can be determined according to the migration over time. Specifically, the method for obtaining the positive and negative deviation range includes the following steps:
[0087] During the voting process, the relationship between the actual support rate and time is continuously detected;
[0088] Get the average value of the data time process and establish the standard normal distribution curve;
[0089] The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
[0090] At each checkpoint, the system calculates the actual support rate and compares it with the pre-set support rate threshold and its positive and negative deviation range. The actual support rate is obtained by counting and analyzing the proportion of tokens supporting the option in the number of tokens currently voted. If the actual support rate is less than the negative deviation range of the support rate threshold, it means that even taking into account possible fluctuations, the support rate of the proposal is far lower than expected. In this case, it may no longer make sense to continue voting, so the system will trigger the voting termination mechanism and end the voting early. It is understandable that through inspection and checkpointing, a voting rate threshold can also be set. Generally, for the final result, the voting rate must be more than half to be credible.
[0091] The establishment of this mechanism can save voting time and avoid continuing voting when it is unnecessary. By terminating the vote early when a proposal clearly lacks support, it can save community members' time and energy and avoid wasting resources. In addition, this also enables the community to turn to other more important or more urgent matters more quickly, improving overall governance efficiency.
[0092] The present application also provides a community voting governance device 2 based on blockchain, such as Figure 2 As shown, including:
[0093] The registration unit 20 is used for community users to become users in the blockchain and obtain corresponding certificates, public-private key pairs and wallet addresses. The public-private key pairs are used for encryption, decryption and digital signature.
[0094] The weight generating unit 21 receives the registration information of the community user, encrypts it and stores it on the blockchain, and generates the voting weight of the community user based on the registration information, wherein the registration information includes the community real estate information, and the real estate information includes one or more of the building area, apartment type and floor.
[0095] The proposal unit 22 receives a target proposal initiated by a proposal initiator, wherein the target proposal is used to implement community governance, and generates a pending voting event based on the target proposal, wherein the pending voting event sets voting options of support and opposition.
[0096] The token generation unit 23 creates a distribution function of the token contract for the event to be voted on based on the voting contract, and allocates target tokens to the community users according to the preset total token amount set for the event to be voted on and the voting weight.
[0097] The voting unit 24 sends the event to be voted to the community user, so that the community user can vote on the event to be voted and obtain the voting result. In this process, the target token is added to the token set corresponding to the voting result, and the destruction function of the token contract is called to destroy the target token owned by the community user for the target proposal. According to the tokens in the token set, the proportion of votes in the voting options supporting and opposing the target proposal is determined to obtain the actual support rate and the actual opposition rate.
[0098] The determination unit 25 receives the voting result and calculates the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result. The calculation formula of the voting deviation is as follows:
[0099]
[0100] Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote, and R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens.
[0101] The checking unit 26 sets a checking node according to the voting duration, sets a support rate threshold, obtains a positive and negative deviation range of the support rate threshold during the voting process, compares the actual support rate with a preset support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated, wherein the method for obtaining the positive and negative deviation range includes the following steps:
[0102] During the voting process, the relationship between the actual support rate and time is continuously detected;
[0103] Get the average value of the data time process and establish the standard normal distribution curve;
[0104] The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
[0105] The blockchain-based community voting governance device provided in the embodiment of the present application has the same technical features as the blockchain-based community voting governance method provided in the above embodiment, so it can also solve the same technical problems and achieve the same technical effects. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the device described above can refer to the corresponding process in the above method embodiment, and will not be repeated here.
[0106] See also Figure 3 , Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, wherein the electronic device 3 includes a processor 31 , a memory 32 and a bus 33 .
[0107] The memory 32 stores machine-readable instructions executable by the processor 31. When the electronic device 3 is running, the processor 31 communicates with the memory 32 through the bus 33. When the machine-readable instructions are executed by the processor 31, the method shown in Figure 1 above can be executed. The specific implementation method can be found in the method embodiment, which will not be repeated here.
[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0109] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0110] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0111] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0112] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0113] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.
[0114] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A community voting governance method based on blockchain, characterized in that: The following steps are involved: S10, receiving the registration information of the community user and encrypting it and storing it on the blockchain, and generating the voting weight of the community user based on the registration information; S20. Receive a target proposal initiated by a proposal initiator, where the target proposal is used to implement community governance, and generate a pending voting event based on the target proposal. The pending voting event sets voting options of support and opposition; S30, creating a distribution function of a token contract for the event to be voted on based on the voting contract, and allocating target tokens to the community users according to the preset total token amount set for the event to be voted on and the voting weight; S40, sending the event to be voted to the community users, so that the community users can vote on the event to be voted and obtain the voting results. In this process, the target token is added to the token set corresponding to the voting result, and the proportion of votes in the voting options supporting and opposing the target proposal is determined according to the tokens in the token set to obtain the actual support rate and the actual opposition rate; S50, receiving the voting result, and calculating the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result; S60. Set a check node according to the voting duration, set a support rate threshold, obtain the positive and negative deviation range of the support rate threshold during the voting process, compare the actual support rate with the pre-set support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated.
2. The community voting governance method based on blockchain according to claim 1 is characterized in that: It also includes S00, where community users register as users in the blockchain and obtain corresponding certificates, public-private key pairs, and wallet addresses, where the public-private key pairs are used for encryption, decryption, and digital signatures.
3. The community voting governance method based on blockchain according to claim 2 is characterized in that: The registration information includes community real estate information, and the real estate information includes one or more of building area, apartment type, and floor.
4. The community voting governance method based on blockchain as claimed in claim 1, characterized in that: After adding the target token to the token set corresponding to the voting result, the method further includes: calling the destruction function of the token contract to destroy the target token owned by the community user for the target proposal.
5. The community voting governance method based on blockchain according to claim 1 is characterized in that: The calculation formula of the voting bias is as follows: Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote, and R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens.
6. The community voting governance method based on blockchain according to claim 1 is characterized in that: The method for obtaining the positive and negative deviation range includes the following steps: During the voting process, the relationship between the actual support rate and time is continuously detected; Get the average value of the data time process and establish the standard normal distribution curve; The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
7. A community voting governance device based on blockchain, characterized in that: include: Registration unit, used for community users to become users in the blockchain and obtain corresponding certificates, public and private key pairs and wallet addresses. The public and private key pairs are used for encryption, decryption and digital signature; A weight generating unit receives registration information of community users and encrypts and stores it on the blockchain, and generates voting weights of community users based on the registration information, wherein the registration information includes community real estate information, and the real estate information includes one or more of building area, apartment type, and floor; The proposal unit receives a target proposal initiated by a proposal initiator, wherein the target proposal is used to implement community governance, generates a pending voting event based on the target proposal, and sets voting options of support and opposition for the pending voting event; A token generation unit, which creates a distribution function of a token contract for the event to be voted on based on the voting contract, and allocates target tokens to the community users according to a preset total token amount set for the event to be voted on and the voting weight; The voting unit sends the event to be voted to the community user, so that the community user can vote on the event to be voted and obtain the voting result. In this process, the target token is added to the token set corresponding to the voting result, and the destruction function of the token contract is called to destroy the target token owned by the community user for the target proposal. According to the tokens in the token set, the proportion of votes in the voting options for and against the target proposal is determined to obtain the actual support rate and the actual opposition rate; A determination unit receives the voting result and calculates the voting deviation according to a preset formula. If the voting deviation is a positive value, the target proposal is determined to be passed. Otherwise, the target proposal is returned for modification, or the voting result is synchronized to all nodes of the blockchain to complete the notification push of the voting result. The checking unit sets the checking node according to the voting duration, sets the support rate threshold, obtains the positive and negative deviation range of the support rate threshold during the voting process, compares the actual support rate with the pre-set support rate threshold, and if the actual support rate is less than the negative deviation range of the support rate threshold, the voting is terminated.
8. The blockchain-based community voting and governance device according to claim 7, characterized in that: The calculation formula of the voting bias is as follows: Wherein B represents the voting bias, S represents the actual support rate, that is, the ratio of the number of tokens supporting the proposal in the actual vote to the total number of tokens participating in the vote, and R represents the voting rate, that is, the ratio of the number of tokens actually participating in the vote to the total number of preset tokens.
9. The community voting and governance device based on blockchain according to claim 7, characterized in that: The method for obtaining the positive and negative deviation range includes the following steps: During the voting process, the relationship between the actual support rate and time is continuously detected; Get the average value of the data time process and establish the standard normal distribution curve; The positive and negative deviation ranges of the data process are determined based on the mean value and the standard normal distribution law curve.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; Wherein, when the executable instruction is executed, the method according to any one of claims 1 to 6 is executed.
Citation Information
Patent Citations
Block chain voting governance method, device and equipment and readable storage medium
CN109949038A
Voting proposal life cycle management method based on smart contract
CN111062060A
