CN112819627A - Block chain voting method, computer device and storage medium - Google Patents

Block chain voting method, computer device and storage medium Download PDF

Info

Publication number
CN112819627A
CN112819627A CN202110138686.0A CN202110138686A CN112819627A CN 112819627 A CN112819627 A CN 112819627A CN 202110138686 A CN202110138686 A CN 202110138686A CN 112819627 A CN112819627 A CN 112819627A
Authority
CN
China
Prior art keywords
voting
address
transaction
vote
privacy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110138686.0A
Other languages
Chinese (zh)
Inventor
何正军
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202110138686.0A priority Critical patent/CN112819627A/en
Publication of CN112819627A publication Critical patent/CN112819627A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6245Protecting personal data, e.g. for financial or medical purposes

Abstract

The invention provides a block chain voting method, a computer device and a storage medium, wherein the method comprises the following steps: performing a first vote registration transaction: registering the first vote; generating total votes and storing the total votes into an account of a registrant of the first vote in the privacy voting contract; the voting currency is configured with a voting id of a first vote; recording the corresponding relation between each voting option of the first vote and each voting address on a block chain; executing a first voting coin issuing transaction, and transferring a plurality of voting coins to an account appointed by a registrant; and executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address. The voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished. The invention realizes the block chain voting scheme with the expansion compatibility meeting various service requirements.

Description

Block chain voting method, computer device and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a block chain voting method, a computer device, and a storage medium.
Background
In the current block chain voting scheme, the voting content of each vote is recorded in a block chain in a public manner, because if each voter encrypts the voting content of the voter, each voter needs to provide the decrypted voting content and a verification mode when the vote is settled, which results in a tedious voting process. Therefore, the existing block chain voting scheme is difficult to meet the service requirement of keeping the voting content secret in the voting process.
In addition, existing blockchain voting solutions are generally public voting, because a voting contract needs to verify whether a voter has the voting right, and information submitted by the voter in the voting process for verifying the voting right by the voting contract is recorded on a blockchain and is disclosed to all persons, so that the identity of the voter is difficult to hide.
For the reasons, when a current block chain developer faces a service requirement that voting content needs to be kept secret, a set of scheme may be designed, and an encrypted voting contract a is deployed on a block chain, but the scheme is difficult to expand and is compatible with the service requirement that anonymous voting is met;
therefore, when the business requirement needing anonymous voting is met, another scheme needs to be designed, and an anonymous voting contract B is deployed on the block chain;
neither contract a nor contract B is extensible and compatible to meet other business requirements (e.g., transfer voting qualification), and then a voting contract C is redeployed in the face of other business requirements;
……
disclosure of Invention
In view of the above-mentioned drawbacks and deficiencies in the prior art, it is desirable to provide a method, a computer device, and a storage medium for performing a blockchain voting that satisfy basic blockchain voting requirements and have extended compatibility that satisfies various service requirements, and further to satisfy service requirements such as security of voting contents, anonymous voting, transfer voting qualification, and the like.
In a first aspect, the present invention provides a method for voting a blockchain applicable to a blockchain node, where a privacy voting contract is configured on a blockchain, where the method includes:
performing a first vote registration transaction:
registering the first vote;
generating total voting number of ballot coins according to the total voting number appointed by the first voting registration transaction and storing the ballot coins into an account of a registrant of the first voting in the privacy voting contract; the voting currency is configured with a voting id of a first vote;
recording the corresponding relation between each voting option of the first vote and each voting address on a block chain;
executing a first voting coin issuing transaction, and transferring a plurality of voting coins to an account appointed by a registrant;
and executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address.
The voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
In a second aspect, the present invention provides a method for voting on a blockchain applicable to a user side, where the blockchain is configured with a privacy voting contract, the method including:
generating a first voting registration transaction according to the total voting number of the first vote to be registered and the corresponding relation between each voting option and each voting address;
sending the first vote registration transaction to the blockchain network for the blockchain node to perform:
registering the first vote;
generating total votes and storing the total votes into an account of a registrant of the first vote in the privacy voting contract; the voting currency is configured with a voting id of a first vote;
recording the corresponding relation between each voting option and each voting address on a block chain;
generating a first voting coin issuance transaction and transmitting to the blockchain network for the blockchain node to:
executing a first voting coin issuing transaction, and transferring a plurality of voting coins to an account appointed by a registrant;
and executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address.
The voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
In a third aspect, the present invention provides another method for voting a blockchain applicable to a user side, where a privacy voting contract is configured on the blockchain, where the method includes:
generating a first voting transaction in response to the current user voting for a first voting option of the first vote; the first voting transaction comprises a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address; the corresponding relation between each voting option of the first vote and each voting address is recorded on the block chain by the block chain link point when the first voting registration transaction of the first vote is successfully executed;
and sending the first voting transaction to a blockchain network for the blockchain node to execute, and transferring a plurality of voting coins voted by the current user to the first voting address or the first one-time address.
Wherein the voting currency is generated by the blockchain node according to the total number of votes of the first vote when the first voting registration transaction is executed;
the voting coin is configured with a voting id of a first vote;
transferring a plurality of voting coins to an account of a current user by the blockchain node when the first voting coin releasing transaction is successfully executed;
the voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
In a fourth aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method of block chain voting provided according to embodiments of the present invention.
In a fifth aspect, the present invention also provides a storage medium storing a computer program, the computer program causing a computer to execute the method for voting according to the block chain provided by the embodiments of the present invention.
According to the block chain voting method, the computer equipment and the storage medium provided by the embodiments of the invention, a voting mode that the voting coin is transferred to the voting address or the one-time address corresponding to the voting option is configured by configuring the privacy voting contract, so that the voting quality naturally has a negotiable property on one hand, and the voting scheme further has extended compatibility which is further combined with various privacy transfer schemes to meet various service requirements on the other hand;
the block chain voting method, the computer device and the storage medium provided by some embodiments of the invention further realize anonymous voting by combining a privacy transfer mechanism for transferring from a privacy address to a public address;
the block chain voting method, the computer equipment and the storage medium provided by some embodiments of the invention further realize anonymous voting and confidentiality of voting content at the same time by combining a privacy transfer mechanism of transferring from a privacy address to a one-time address;
the block chain voting method, the computer equipment and the storage medium provided by some embodiments of the invention further realize the confidentiality of the voting content by combining a privacy transfer mechanism of transferring from a public address to a disposable address;
some embodiments of the present invention provide a blockchain voting method, computer device, and storage medium that further enable transfer currency of voting qualifications by allowing voting users to transfer votes.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a block chain voting method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another block chain voting method according to an embodiment of the present invention.
Fig. 3 is a flowchart of another method for voting according to a block chain according to an embodiment of the present invention.
Fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a block chain voting method according to an embodiment of the present invention.
As shown in fig. 1, in this embodiment, the present invention provides a method for voting a blockchain applied to a blockchain node, where a privacy voting contract is configured on a blockchain, where the method includes:
s11: performing a first vote registration transaction:
s111: registering the first vote;
s113: generating total voting number of ballot coins according to the total voting number appointed by the first voting registration transaction and storing the ballot coins into an account of a registrant of the first voting in the privacy voting contract; the voting currency is configured with a voting id of a first vote;
s115: recording the corresponding relation between each voting option of the first vote and each voting address on a block chain;
s13: executing a first voting coin issuing transaction, and transferring a plurality of voting coins to an account appointed by a registrant;
s15: and executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address.
The voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
The above method is exemplified below by the user a registering a public vote V1, the user a specifying that the user B/C/D/E/F has the voting right.
First, in response to a vote registration instruction input by user a, the user side of user a generates a vote registration transaction tx1 requesting registration of vote V1.
Wherein tx1 includes the total number of votes (5) of V1 designated by user a, and the correspondence between the voting options of V1 and the voting addresses.
For example, option 1 corresponds to the voting address addr1, option 2 corresponds to the voting address addr2, option 3 corresponds to the voting address addr3, and so on.
Specifically, tx1 may specify specific addresses for the various voting addresses, e.g., addr1(TRb9 … Kg7RYK), addr2(19J7a6VE … MoJNokG4Tb), …, etc.; tx1 may also not specify the specific address of each voting address, e.g., addr1 (null), addr2 (null), …, etc., and each voting address may be assigned a specific contract address by the privacy voting contract at about the time tx1 is executed.
The user terminal of user a sends tx1 to the blockchain network.
In step S11, the blockchain node receives, broadcasts, packages, executes tx 1:
in step S111, the vote V1 is registered in the privacy voting contract, and the vote id is assigned to the vote V1;
in step S113, 5 votes VoteCoin are generated based on the total number of votes 5 specified by tx1V1And the 5 votes VoteCoinV1Storing the contract address of the user A in the privacy voting contract; wherein, the votes VotecoinV1The voting id of the voting V1 is configured for verifying whether the ballot coin and the voting correspond or not when the voting transaction is subsequently executed, so that the ballot coins of different votes cannot be mixed;
in step S115, the correspondence between each voting option and each voting address of the vote V1 submitted by tx1 is recorded in the blockchain.
After the vote V1 is registered successfully, the user terminal of user a generates a vote issuing transaction tx2, and transmits tx2 to the blockchain network.
In the step S13, in step S13,the blockchain node receives, broadcasts, packs and executes tx2, and 5 votes VoteCoinV1Respectively transferring to the addresses addr of the users B-F specified by the user AB、addrC、addrD、addrE、addrF
Specifically, each voting user in the embodiment has only 1 vote, so that only 1 voting coin is issued; in further embodiments, different numbers of votes can be configured for the voting users according to requirements, and corresponding numbers of votes can be issued.
In the embodiment, the votes of the users B-F are public votes, so that the tx2 only needs to adopt a common transfer mode; in other embodiments, tx2 may be used to transfer privacy when the user votes anonymously.
Further, in the present embodiment, the vote V1 registered by the user a is not allowed to transfer voting qualification, so the step S13 should also verify whether the user issuing the vote voted the registrant when performing the voting coin issuance transaction tx 2: if not, tx2 fails;
in another embodiment, when the voting V2 permits transfer of voting qualifications, the user receiving the ballot may transfer the voting qualifications by sending a second voting coin-out transaction, without the step S13 verifying whether the user issuing the ballot voted for the registrant when performing the voting coin-out transaction. Preferably, the contract may also verify whether the address of the payment ballot is the voting address of the first vote, when performing the second voting coin-issuing transaction: if so, the second voting coin release transaction fails to execute.
Take user B as an example to vote 1 on option 2 of the three options of vote V1:
in response to a vote instruction from user B to vote 1 on option 2 of V1, the user side of user B generates a vote transaction tx3 and sends tx3 to the blockchain network.
In step S15, the blockchain node receives, broadcasts, packages, executes tx3, and puts 1 votes VoteCoinV1And transferring to the voting address addr2 corresponding to option 2.
Similarly, users C-F vote in the same manner.
After the voting is finished, according to the votes Votecoin in the voting addresses addr1/addr2/addr3V1The number of votes V1 can be determined.
The above embodiment takes the example that the user a registers an open vote as an example, and the method shown in fig. 1 is exemplarily described, and how to satisfy the requirement of allowing or not allowing transfer of voting qualification.
The embodiment configures a voting mode of transferring the voting money to the voting address or the one-time address corresponding to the voting option by configuring the privacy voting contract, so that the voting quality naturally has a negotiable attribute on one hand, and the voting scheme further has extended compatibility with various privacy transfer schemes to meet various service requirements on the other hand; and further enables transfer currency of voting qualifications by allowing voting users to transfer the votes.
How to implement anonymous voting, voting with encrypted voting content, and voting with anonymous and encrypted voting content, respectively, will be described below.
In a preferred embodiment, the first voting coin-dispensing transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first voting address.
Specifically, in the embodiment, the voting money is issued to the voting users through the privacy transfer transaction, so that the identity of the voting users is not exposed in the process of issuing the voting money;
and voting is carried out through a private account transfer mode of transferring from a private address to a public address, so that the identity of a voting user is not exposed in the voting process.
For a specific principle of how to implement the transfer from the private address to the public address, reference may be made to application No. CN201810855508.8, which is not described herein again.
The above embodiments further enable anonymous voting by incorporating a private transfer mechanism where private addresses transfer to public addresses.
In another preferred embodiment, the first voting transaction is used to transfer the ballot coin from the public address to the first one-time address.
Specifically, the embodiment carries out voting in a privacy transfer mode of transferring from the public address to the privacy address, and guarantees that which voting option is cast by the user is not exposed in the voting process.
For a specific principle of how to implement the transfer from the public address to the private address, reference may be made to application No. CN201810855516.2, which is not described herein again.
The embodiment further realizes the confidentiality of the voting content through a privacy transfer mechanism combining public address to one-time address transfer.
In a further preferred embodiment, the first voting coin-roll transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first one-time address.
Specifically, in the embodiment, the voting money is issued to the voting users through the privacy transfer transaction, so that the identity of the voting users is not exposed in the process of issuing the voting money;
and voting is carried out by a privacy transfer mode of transferring from the privacy address to the privacy address, so that the identity of a voting user is not exposed in the voting process, and the voting option cast by the user is not exposed.
For a specific principle of how to implement the transfer from the privacy address to the privacy address, reference may be made to application No. CN201810855507.3, which is not described herein again.
The embodiment further realizes anonymous voting and confidentiality of voting content at the same time through a privacy transfer mechanism combining the privacy address with the one-time address transfer.
Fig. 2 is a flowchart of another block chain voting method according to an embodiment of the present invention. The method illustrated in fig. 2 may be performed in conjunction with the method illustrated in fig. 1.
As shown in fig. 2, in this embodiment, the present invention further provides a method for voting a blockchain applicable to a user side, where the blockchain is configured with a privacy voting contract, and the method includes:
s21: generating a first voting registration transaction according to the total voting number of the first vote to be registered and the corresponding relation between each voting option and each voting address;
s23: sending the first vote registration transaction to the blockchain network for the blockchain node to perform:
registering the first vote;
generating total votes and storing the total votes into an account of a registrant of the first vote in the privacy voting contract; the voting currency is configured with a voting id of a first vote;
recording the corresponding relation between each voting option and each voting address on a block chain;
s25: generating a first voting coin issuance transaction and transmitting to the blockchain network for the blockchain node to:
executing a first voting coin issuing transaction, and transferring a plurality of voting coins to an account appointed by a registrant;
and executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address.
The voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
In a preferred embodiment, the first voting coin-dispensing transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first voting address.
In another preferred embodiment, the first voting transaction is used to transfer the ballot coin from the public address to the first one-time address.
In a further preferred embodiment, the first voting coin-roll transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first one-time address.
The voting principle of the embodiment shown in fig. 2 can refer to the method shown in fig. 1, and is not described herein again.
Fig. 3 is a flowchart of another method for voting according to a block chain according to an embodiment of the present invention. The method illustrated in fig. 3 may be performed in conjunction with the methods illustrated in fig. 1-2.
As shown in fig. 3, in this embodiment, the present invention further provides another method for voting a blockchain applicable to a user side, where the blockchain is configured with a privacy voting contract, and the method includes:
s31: generating a first voting transaction in response to the current user voting for a first voting option of the first vote; the first voting transaction comprises a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address; the corresponding relation between each voting option of the first vote and each voting address is recorded on the block chain by the block chain link point when the first voting registration transaction of the first vote is successfully executed;
s33: and sending the first voting transaction to a blockchain network for the blockchain node to execute, and transferring a plurality of voting coins voted by the current user to the first voting address or the first one-time address.
Wherein the voting currency is generated by the blockchain node according to the total number of votes of the first vote when the first voting registration transaction is executed;
the voting coin is configured with a voting id of a first vote;
transferring a plurality of voting coins to an account of a current user by the blockchain node when the first voting coin releasing transaction is successfully executed;
the voting result of the first voting is determined according to the number of the votes in each voting address or each corresponding one-time address after the voting is finished.
In a preferred embodiment, the first voting coin-dispensing transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first voting address.
In another preferred embodiment, the first voting transaction is used to transfer the ballot coin from the public address to the first one-time address.
In a further preferred embodiment, the first voting coin-roll transaction is a privacy transfer transaction, the first voting transaction being for transferring the coins from the privacy address to the first one-time address.
The voting principle of the embodiment shown in fig. 3 can refer to the method shown in fig. 1, and is not described herein again.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each unit may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (16)

1. A method for voting in a blockchain, wherein a privacy voting contract is configured on the blockchain, and the method is applied to a blockchain node, and the method comprises:
performing a first vote registration transaction:
registering the first vote;
generating the total number of votes according to the total number of votes specified by the first voting registration transaction and storing the total number of votes into an account of a registrant of the first vote in the privacy voting contract; wherein the ballot coin is configured with a vote id of the first vote;
recording the corresponding relation between each voting option and each voting address of the first vote on a block chain;
performing a first voting coin release transaction, transferring a number of said voting coins to an account designated by said registrant;
executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to a first voting option or a first one-time address corresponding to the first voting address;
and determining the voting result of the first voting according to the number of the ballot coins in each voting address or each corresponding one-time address after the voting is finished.
2. The method of claim 1, wherein the first voting coin-dispensing transaction is a privacy transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first voting address.
3. The method of claim 1, wherein the first voting coin-dispensing transaction is a privacy transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first one-time address.
4. The method of claim 1, wherein the first voting transaction is used to transfer a ballot from a public address to the first one-time address.
5. The method according to any one of claims 1-4, further comprising:
a second voting coin release transaction is performed, transferring a number of the voting coins to a designated account.
6. The method of claim 5, wherein performing a second voting coin-dispensing transaction further comprises:
verifying whether an address of a payment ballot is the voting address of the first vote: if so, the second voting coin release transaction fails to execute.
7. A method for voting in a block chain, wherein a privacy voting contract is configured on the block chain, and the method is applicable to a user side, and the method comprises:
generating a first voting registration transaction according to the total voting number of the first vote to be registered and the corresponding relation between each voting option and each voting address;
sending the first vote registration transaction to a blockchain network for blockchain nodes to perform:
registering the first vote;
generating the total number of votes and storing the total number of votes into an account of a registrant of the first vote in the privacy voting contract; wherein the ballot coin is configured with a vote id of the first vote;
recording the corresponding relation between each voting option and each voting address on a block chain;
generating a first voting coin issuance transaction and transmitting to the blockchain network for the blockchain node to:
performing said first voting coin release transaction, transferring a number of said voting coins to an account designated by said registrant;
executing a first voting transaction, and transferring a plurality of voting coins to a first voting address corresponding to a first voting option or a first one-time address corresponding to the first voting address;
and determining the voting result of the first voting according to the number of the ballot coins in each voting address or each corresponding one-time address after the voting is finished.
8. The method of claim 7, wherein the first voting money-issuing transaction is a privacy transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first voting address.
9. The method of claim 7, wherein the first voting money-issuing transaction is a privacy transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first one-time address.
10. The method of claim 7, wherein the first voting transaction is used to transfer a ballot from a public address to the first one-time address.
11. A method for voting in a block chain, wherein a privacy voting contract is configured on the block chain, and the method is applicable to a user side, and the method comprises:
generating a first voting transaction in response to the current user voting for a first voting option of the first vote; wherein the first voting transaction comprises a first voting address corresponding to the first voting option or a first one-time address corresponding to the first voting address; the corresponding relation between each voting option and each voting address of the first vote is recorded on a block chain by a block chain link point when a first voting registration transaction of the first vote is successfully executed;
sending the first voting transaction to a blockchain network for being executed by blockchain nodes, and transferring a plurality of voting coins voted by the current user to the first voting address or the first one-time address;
wherein the ballot coin is generated by a blockchain node from a total number of votes for the first vote when performing the first vote registration transaction;
the voting currency is configured with a voting id of the first vote;
the plurality of votes are transferred to an account of a current user by the blockchain node when the first votes issuing transaction is successfully executed;
and the voting result of the first voting is determined according to the number of the ballot coins in each voting address or each corresponding one-time address after the voting is finished.
12. The method of claim 11 wherein the first voting money-issuing transaction is a privacy-transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first voting address.
13. The method of claim 11 wherein the first voting money-issuing transaction is a privacy-transfer transaction;
the first voting transaction is for transferring a ballot note from a privacy address to the first one-time address.
14. The method of claim 11, wherein the first voting transaction is used to transfer a ballot from a public address to the first one-time address.
15. A computer device, the device comprising:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-14.
16. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-14.
CN202110138686.0A 2021-02-01 2021-02-01 Block chain voting method, computer device and storage medium Pending CN112819627A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110138686.0A CN112819627A (en) 2021-02-01 2021-02-01 Block chain voting method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110138686.0A CN112819627A (en) 2021-02-01 2021-02-01 Block chain voting method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN112819627A true CN112819627A (en) 2021-05-18

Family

ID=75861319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110138686.0A Pending CN112819627A (en) 2021-02-01 2021-02-01 Block chain voting method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN112819627A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101837170B1 (en) * 2016-12-29 2018-04-19 주식회사 코인플러그 Method for providing secret electronic voting service on the basis of blockchain by using zero knowledge proof algorithm, and voting coin minter server, voting token distributor server and voting supporting server using the same
CN108961526A (en) * 2018-06-13 2018-12-07 郑州云海信息技术有限公司 A kind of ballot system based on block chain technology
CN109034801A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and can storage medium
CN109087099A (en) * 2018-07-31 2018-12-25 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and storage medium
CN109246175A (en) * 2017-07-11 2019-01-18 松下电器(美国)知识产权公司 electronic voting system and control method
JP2019021296A (en) * 2017-07-11 2019-02-07 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Electronic voting system and control method
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN111010424A (en) * 2019-11-21 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based network voting method, equipment and medium
CN111353827A (en) * 2020-03-13 2020-06-30 杭州复杂美科技有限公司 Block chain voting method, equipment and storage medium
CN111416709A (en) * 2020-03-18 2020-07-14 腾讯科技(深圳)有限公司 Voting method, device, equipment and storage medium based on block chain system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101837170B1 (en) * 2016-12-29 2018-04-19 주식회사 코인플러그 Method for providing secret electronic voting service on the basis of blockchain by using zero knowledge proof algorithm, and voting coin minter server, voting token distributor server and voting supporting server using the same
CN109246175A (en) * 2017-07-11 2019-01-18 松下电器(美国)知识产权公司 electronic voting system and control method
JP2019021296A (en) * 2017-07-11 2019-02-07 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Electronic voting system and control method
CN108961526A (en) * 2018-06-13 2018-12-07 郑州云海信息技术有限公司 A kind of ballot system based on block chain technology
CN109034801A (en) * 2018-07-31 2018-12-18 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and can storage medium
CN109087099A (en) * 2018-07-31 2018-12-25 杭州复杂美科技有限公司 A kind of privacy method of commerce and system, equipment and storage medium
CN110782255A (en) * 2019-11-06 2020-02-11 杭州复杂美科技有限公司 Delayed transaction cancellation method, apparatus and storage medium
CN111010424A (en) * 2019-11-21 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based network voting method, equipment and medium
CN111353827A (en) * 2020-03-13 2020-06-30 杭州复杂美科技有限公司 Block chain voting method, equipment and storage medium
CN111416709A (en) * 2020-03-18 2020-07-14 腾讯科技(深圳)有限公司 Voting method, device, equipment and storage medium based on block chain system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘杰良: "基于区块链技术的投票系统的设计与实现", CNKI硕士学位论文全文库, no. 2018, pages 13 - 58 *
赖恒财: "基于区块链的匿名电子投票方案研究与设计", CNKI硕士学位论文全文库, no. 2021, pages 26 - 48 *

Similar Documents

Publication Publication Date Title
US11030681B2 (en) Intermediate blockchain system for managing transactions
KR102639135B1 (en) Secure exchange of cryptographically signed records
CN109919586B (en) Multi-layer secure mobile transaction enabled platform
CN110462658A (en) For providing system and method for the digital identity record to verify the identity of user
EP4351081A2 (en) Blockchain-implemented system and method
US20130268437A1 (en) Secure ecosystem infrastructure enabling multiple types of electronic wallets in an ecosystem of issuers, service providers, and acquires of instruments
KR20110099776A (en) System, server device, method, program, and recording medium that enable facilitation of user authentication
JP6963218B2 (en) Ticket validation device, method and program
US20210192520A1 (en) Distributed credit ecosystem
CN109389390A (en) Clearing mobile terminal, system, method and program based on communication network in sales field
WO2013150041A1 (en) Online-id-handling computer system and method
US20210042748A1 (en) Blockchain-based secure resource management
CN109949120A (en) It is related to the system and method for digital identity
CN110960856B (en) Game data management system, management method and storage medium
Dib et al. A novel data exploitation framework based on blockchain
CN111260347A (en) Resource processing method, device and equipment based on block chain and storage medium
CN110766548A (en) Block chain based information processing method and device, storage medium and electronic equipment
CN109146482B (en) Block chain-based user rights and interests providing method and device
CN112600830B (en) Service data processing method and device, electronic equipment and storage medium
CN112819627A (en) Block chain voting method, computer device and storage medium
US20230259918A1 (en) Decentralized Identity on Blockchain for a Multi-sided Network
WO2018093618A1 (en) Dynamic linking of messaging groups and organisational information
KR20200013573A (en) Integrated management mobile platform for enterprises and institutions
JP6843327B1 (en) Voting system, voting program
CN104040569A (en) Collaboration computer system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination