CN110097678A - Voting method, device, computer equipment and storage medium based on block chain - Google Patents

Voting method, device, computer equipment and storage medium based on block chain Download PDF

Info

Publication number
CN110097678A
CN110097678A CN201910188328.3A CN201910188328A CN110097678A CN 110097678 A CN110097678 A CN 110097678A CN 201910188328 A CN201910188328 A CN 201910188328A CN 110097678 A CN110097678 A CN 110097678A
Authority
CN
China
Prior art keywords
ballot
address
voting
circulation
deadline
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
CN201910188328.3A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910188328.3A priority Critical patent/CN110097678A/en
Publication of CN110097678A publication Critical patent/CN110097678A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C13/00Voting apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2209/00Additional information or applications relating to cryptographic mechanisms or cryptographic arrangements for secret or secure communication H04L9/00
    • H04L2209/46Secure multiparty computation, e.g. millionaire problem
    • H04L2209/463Electronic voting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the invention discloses a kind of voting method based on block chain, device, computer equipment and storage mediums, if create intelligent contract corresponding with the ballot request to create by block platform chain is proved wherein the method includes receiving ballot request to create with generating multiple circulations;According to the ballot request to create, voter turnout, polling option and deadline are included at least in ballot platform setting ballot relevant information and voting rule, the ballot relevant information;Before deadline, proved according to the ballot request instruction, preset rules and the circulation that receive, ballot relevant information and voting rule record corresponding polled data;When reaching deadline, all polled datas are counted to obtain final voting results.The present invention is voted by block chain, it can be achieved that prevent malice brush ticket, and can automatic tracing voting results, keep voting process more transparent, the more believable effect of voting results.

Description

Voting method, device, computer equipment and storage medium based on block chain
Technical field
The present invention relates to network safety fileds more particularly to a kind of voting method based on block chain, device, computer to set Standby and storage medium.
Background technique
Electronic voting system, which refers to, electronically votes, and also refers to a kind of side by electronically counting poll Formula is responsible for counting ballot paper by computer, not only all saves a large amount of manpower in terms of organization work, ballot paper collection and statistics Material resources have also broken limitation of traditional ballot mode in time and region, have also been greatly expanded the range of group of participants.But There are many defective effect voting results for existing ballot mode:
1, ballot threshold is lower, is easy by brush ticket;
2, voting results are sponsor's statistics, can be manipulated by sponsor's malice;
3, it when voting results leave a question open, can not prove very well.
Summary of the invention
The embodiment of the present invention provides a kind of voting method based on block chain, device, computer equipment and storage medium, energy It is enough effectively to avoid malice brush ticket, keep voting process more transparent, it is as a result more credible.
In a first aspect, the embodiment of the invention provides a kind of voting methods based on block chain, this method comprises:
If receiving ballot request to create, intelligently closed by the way that the creation of block platform chain is corresponding with the ballot request to create About proved with generating multiple circulations;
According to the ballot request to create, in ballot platform setting ballot relevant information and voting rule, the ballot Relevant information includes at least voter turnout, polling option and deadline;
Before deadline, proved according to the ballot request instruction, preset rules and the circulation that receive, ballot Relevant information and voting rule record corresponding polled data;
When reaching deadline, all polled datas are counted to obtain final voting results.
Second aspect, the embodiment of the invention also provides a kind of balloting device based on block chain, which includes:
Creating unit, if being asked for receiving ballot request to create by the creation of block platform chain and ballot creation Corresponding intelligent contract is asked to prove to generate multiple circulations;
Setting unit, for ballot relevant information and ballot to be arranged in ballot platform according to the ballot request to create Rule, the ballot relevant information include at least voter turnout, polling option and deadline;
Recording unit, for before deadline, according to receive ballot request instruction, preset rules and described Circulation proves, ballot relevant information and voting rule record corresponding polled data;
Statistic unit, for when reaching deadline, being counted to all polled datas to obtain final ballot As a result.
The third aspect, the embodiment of the invention also provides a kind of computer equipments comprising memory and processor, it is described Computer program is stored on memory, the processor realizes the above method when executing the computer program.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage medium, the storage medium storage There is computer program, the computer program can realize the above method when being executed by a processor.
The embodiment of the invention provides a kind of voting method based on block chain, device, computer equipment and storage mediums. Wherein, which comprises if receiving ballot request to create, pass through the creation of block platform chain and the ballot request to create phase The intelligent contract answered is proved with generating multiple circulations;According to the ballot request to create, in the related letter of ballot platform setting ballot Breath and voting rule;Before deadline, demonstrate,proved according to the ballot request instruction, preset rules and the circulation that receive Bright, ballot relevant information and voting rule record corresponding polled data;When reaching deadline, to all polled datas into Row statistics is to obtain final voting results.The embodiment of the present invention is voted by block chain, it can be achieved that prevent malice brush ticket, And energy automatic tracing voting results, keep voting process more transparent, the more believable effect of voting results.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of voting method based on block chain provided in an embodiment of the present invention;
Fig. 1 a is a kind of application scenarios schematic diagram of voting method based on block chain provided in an embodiment of the present invention;
Fig. 2 is a kind of sub-process schematic diagram of voting method based on block chain provided in an embodiment of the present invention;
Fig. 3 is a kind of sub-process schematic diagram of voting method based on block chain provided in an embodiment of the present invention;
Fig. 4 is a kind of schematic block diagram of balloting device based on block chain provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic frame of the recording unit of balloting device based on block chain provided in an embodiment of the present invention Figure;
Fig. 6 is a kind of schematic frame of the statistic unit of balloting device based on block chain provided in an embodiment of the present invention Figure;
Fig. 7 is a kind of computer equipment structure composition schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
Fig. 1 and Fig. 1 a is please referred to, Fig. 1 is a kind of signal of voting method based on block chain provided by the embodiments of the present application Flow chart, Fig. 1 a are the schematic diagram of a scenario of the voting method based on block chain in the embodiment of the present application.The throwing based on block chain Ticket method is applied in block platform chain, and writes intelligent contract and publication by the realization of the management server 10 of block platform chain Circulation proves, user 20 is recorded in block chain in all polled datas that block platform chain carries out, realizes ballot not It is reversible, to effectively prevent brush ticket, realize more fair and just ballot.It below will be detailed with the angle of management server 10 Introduce each step of the voting method based on block chain in ground.
Referring to Fig. 1, Fig. 1 is a kind of exemplary flow of voting method based on block chain provided in an embodiment of the present invention Figure.As shown in Figure 1, the step of this method includes step S101~S104.
Step S101 passes through the creation of block platform chain and the ballot request to create phase if receiving ballot request to create The intelligent contract answered is proved with generating multiple circulations.
In the present embodiment, block chain is the meter such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm The new application mode of calculation machine technology, block platform chain can provide the safer and convenient and fast network information service for user. Wherein, block chain is used and is made in whole system based on consensus specification and agreement (such as a set of open and clear algorithm) All nodes can go trust environment freely safety exchange data so that the trust to " people " has been changed to machine Trust, any artificial intervention does not work.
Meanwhile once information permanent will store, by verifying and being added to block chain unless being capable of same time control Make be more than in system 51% node, be otherwise invalid, therefore the number of block chain to the modification of database on individual node It is high according to stability and reliability.Furthermore since the exchange between node follows fixed algorithm, data interaction is without letter (rules of order in block chain can voluntarily judge whether activity is effective) appointed, therefore counterparty need not pass through public identity Mode allows other side to oneself generation trust, very helpful to the accumulation of credit.
Intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract, basic Theory is that many agreement terms can be embedded into hardware and software.Intelligent contract allow in no third-party situation into Transaction that row is credible, these transaction are traceable and irreversible.Circulation proves that (token) refers to negotiable encrypted digital right benefit card Bright, in network communication, the original meaning of token refers to " token, signaling ", and each of network node transmits an order in turn Board, the node for only taking token could communicate;This token is exactly a kind of right in fact, and equity proves in other words.As into One step, the block platform chain of the application can be ether mill block platform chain.Wherein, ether mill be one open source have intelligence The public block platform chain of contract function provides the virtual machine of decentralization by its dedicated encrypted currency ether coin come process points To a contract.
Ballot relevant information and voting rule is arranged in ballot platform according to the ballot request to create in step S102, The ballot relevant information includes at least voter turnout, polling option and deadline.
In the present embodiment, after user sends ballot request to create to management server, management server can be according to throwing Relevant information in ticket request to create, in ballot platform setting ballot relevant information and voting rule, so that it is guaranteed that ballot energy Enough go on smoothly.Ballot relevant information herein may include voter turnout, polling option and by the time.Wherein, it votes Number refers to the total number of persons for participating in ballot.The option that polling option refers to for ballot personnel selection ballot.It is to throw by the time Ticket personnel are able to carry out the final time of ballot.And voting rule refers to the foundation that ballot personnel vote.For example, afternoon six Before point, 30 students of a class need to select 2 students to go to throw at this time referring to maths contest from 10 alternative students Ticket number is 30 students, and polling option is 10 students, and deadline is at 6 points in afternoon, and voting rule is from alternative 10 2 students are selected in a student.
Further, the ballot relevant information can also include ballot title etc..Certainly, ballot relevant information herein It specifically can be consistent with common voting pattern.
Step S103, before deadline, according to ballot request instruction, preset rules and the circulation received It proves, ballot relevant information and voting rule record corresponding polled data.
In the present embodiment, when ballot personnel vote on ballot platform, the polling hours can only be in cut-off Between before, platform of voting at this time can receive the ballot request instruction that ballot personnel are submitted, and be utilized according to preset rules Circulating proves to carry out corresponding voting records on block chain, wherein ballot is advised according to and for ballot relevant information with ballot Then etc..
As further embodiment, as shown in Fig. 2, the step S103 may include step S201~S204.
Step S201 proves all circulations in the preset female numeric address of deposit.
Wherein, numeric address refers to a certain place digitlization geographical location online in international digital address, can be used for Storage circulation proves.Specifically, female numeric address may include there are multiple circulations to prove, under normal circumstances, need in female number Distribution deposit big circulation enough as far as possible proves in address, to ensure being normally carried out for subsequent ballot, avoids corrupt data.Such as certain Company needs to vote in 10 people from 3 Wan Renzhong, needs to generate greater than 300011 numeric addresses, wherein 30000 at this time For subnumber word address, for being issued to ballot personnel;Wherein other 10 are target number address, for being issued to vote ?;Last 1 numeric address is female numeric address, and needing to distribute big circulation enough as far as possible at this time to female account proves, at this time Circulation proves at least to be greater than 30000.
Step S202, the subnumber word address of respective numbers is arranged according to the voter turnout, and reads from female numeric address Taking the circulation of respective numbers proves to be distributed to each subnumber word address.
Wherein, each ballot personnel are associated with a different subnumber word address;I.e. each ballot personnel can distribute There is a circulation to prove, to ensure it on the node that the polled data in block chain can be sent to its ballot, to make The statistics that must vote has uniqueness and certainty.
The target number address of respective numbers is arranged according to the polling option by step S203.
Wherein, each polling option is associated with a different target number address, and target number address is to refer to connect The address that circulation proves is received, in order to carry out statistics of voting accordingly.
Step S204 will be in subnumber word address corresponding with the ballot request instruction if receiving ballot request instruction Circulation proves to be sent in target number address corresponding with the ballot request instruction.
Wherein, when receiving ballot request instruction, then the personnel that show to vote at this time have voted, therefore need the throwing Circulation proof in subnumber word address associated by ticket personnel is sent in the corresponding target number address of its thrown option, with The region chain in ballot platform, which is controlled, convenient for management server carries out corresponding ballot statistics.
Step S104 counts all polled datas when reaching deadline to obtain final voting results.
In the present embodiment, when reaching deadline, then show that ballot at this time is over, ballot platform will not connect again Receive the ballot of ballot personnel.Management server then counts all polled datas in the chain of region at this time, to analyze To final voting results.
As further embodiment, as shown in figure 3, making the subnumber word address that circulation proves is sent before deadline For expectating address, the subnumber word address that transmission circulation proves after having spent deadline is described as unexpected numeric address Step S104 may include such as step S301~S303.
Step S301 counts all polled data amounts.
Wherein, management server can be voted with counting user in block platform chain caused by polled data amount, with It is convenient for poll statistics in more detail.
Step S302, the data volume and expected numeric address for counting unexpected numeric address repeat to send what circulation proved Number of repetition.
Wherein, the circulation that unexpected numeric address is sent prove because be after deadline, so when ballot simultaneously Not counting normal ballot, needs to count the data volume of the unexpected numeric address of the circulation proof of all transmissions.Simultaneously, it is contemplated that number Word address repeats to send to circulate and proves to belong to repeated ballot, can not be considered normal ballot at this time, therefore need to count expected numbers Word address sends the number of repetition that circulation proves.
All polled data amounts are subtracted the data volume of unexpected numeric address and are expected numeric address weight by step S303 The sum of number of repetition that recurrence send circulation to prove is to obtain final voting results.
Wherein, it in order to determine final voting results, needs all polled data amounts subtracting unexpected numeric address Data volume, it is also necessary to subtract expected numeric address and repeat to send the number of repetition that circulation proves, remaining at this time is final Voting results.
As further embodiment, the method can with the following steps are included:
Step S105 calls phase in block platform chain according to the ballot inquiry instruction if receiving ballot inquiry instruction The back end answered is checked with carrying out data.
In the present embodiment, according to block chain technology the characteristics of, each transaction is automatically same by multiple back end Step record, back end is distributed in all over the world, and therefore, each ballot can not forge.Furthermore in this scenario, often One ballot movement is exactly each process of exchange, whom can be traced has thrown ticket therefore whom reliably tracks any suspicious throwing to Ticket result.
To sum up, the embodiment of the present invention is voted by block chain, it can be achieved that preventing malice brush ticket, and energy automatic tracing is thrown Ticket is as a result, keep voting process more transparent, the more believable effect of voting results.
Those having ordinary skill in the art is understood that realize all or part of the process in above-described embodiment method, is that can lead to Computer program is crossed to instruct relevant hardware and complete, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) etc..
Referring to Fig. 4, a kind of corresponding above-mentioned voting method based on block chain, the embodiment of the present invention also propose that one kind is based on The balloting device of block chain, the device 100 include: that creating unit 101, setting unit 102, recording unit 103 and statistics are single Member 104.
The creating unit 101, if passing through the creation of block platform chain and the ballot for receiving ballot request to create Intelligent contract is proved request to create accordingly with generating multiple circulations.
In the present embodiment, block chain is the meter such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm The new application mode of calculation machine technology, block platform chain can provide the safer and convenient and fast network information service for user. Wherein, block chain is used and is made in whole system based on consensus specification and agreement (such as a set of open and clear algorithm) All nodes can go trust environment freely safety exchange data so that the trust to " people " has been changed to machine Trust, any artificial intervention does not work.
Meanwhile once information permanent will store, by verifying and being added to block chain unless being capable of same time control Make be more than in system 51% node, be otherwise invalid, therefore the number of block chain to the modification of database on individual node It is high according to stability and reliability.Furthermore since the exchange between node follows fixed algorithm, data interaction is without letter (rules of order in block chain can voluntarily judge whether activity is effective) appointed, therefore counterparty need not pass through public identity Mode allows other side to oneself generation trust, very helpful to the accumulation of credit.
Intelligent contract is a kind of computer protocol for being intended to propagate, verify or execute in a manner of information-based contract, basic Theory is that many agreement terms can be embedded into hardware and software.Intelligent contract allow in no third-party situation into Transaction that row is credible, these transaction are traceable and irreversible.Circulation proves that (token) refers to negotiable encrypted digital right benefit card Bright, in network communication, the original meaning of token refers to " token, signaling ", and each of network node transmits an order in turn Board, the node for only taking token could communicate;This token is exactly a kind of right in fact, and equity proves in other words.As into One step, the block platform chain of the application can be ether mill block platform chain.Wherein, ether mill be one open source have intelligence The public block platform chain of contract function provides the virtual machine of decentralization by its dedicated encrypted currency ether coin come process points To a contract.
The setting unit 102, for according to the ballot request to create, ballot platform setting ballot relevant information with And voting rule, the ballot relevant information include at least voter turnout, polling option and deadline.
In the present embodiment, after user sends ballot request to create to management server, management server can be according to throwing Relevant information in ticket request to create, in ballot platform setting ballot relevant information and voting rule, so that it is guaranteed that ballot energy Enough go on smoothly.Ballot relevant information herein may include voter turnout, polling option and by the time.Wherein, it votes Number refers to the total number of persons for participating in ballot.The option that polling option refers to for ballot personnel selection ballot.It is to throw by the time Ticket personnel are able to carry out the final time of ballot.And voting rule refers to the foundation that ballot personnel vote.For example, afternoon six Before point, 30 students of a class need to select 2 students to go to throw at this time referring to maths contest from 10 alternative students Ticket number is 30 students, and polling option is 10 students, and deadline is at 6 points in afternoon, and voting rule is from alternative 10 2 students are selected in a student.
Further, the ballot relevant information can also include ballot title etc..Certainly, ballot relevant information herein It specifically can be consistent with common voting pattern.
The recording unit 103, for before deadline, according to receive ballot request instruction, preset rules And the circulation proves, ballot relevant information and voting rule record corresponding polled data.
In the present embodiment, when ballot personnel vote on ballot platform, the polling hours can only be in cut-off Between before, platform of voting at this time can receive the ballot request instruction that ballot personnel are submitted, and be utilized according to preset rules Circulating proves to carry out corresponding voting records on block chain, wherein ballot is advised according to and for ballot relevant information with ballot Then etc..
As further embodiment, as shown in figure 5, the recording unit 103 may include: storage unit 201, distribution Unit 202, number setting unit 203 and transmission unit 204.
The storage unit 201, for proving all circulations in the preset female numeric address of deposit.
Wherein, numeric address refers to a certain place digitlization geographical location online in international digital address, can be used for Storage circulation proves.Specifically, female numeric address may include there are multiple circulations to prove, under normal circumstances, need in female number Distribution deposit big circulation enough as far as possible proves in address, to ensure being normally carried out for subsequent ballot, avoids corrupt data.Such as certain Company needs to vote in 10 people from 3 Wan Renzhong, needs to generate greater than 300011 numeric addresses, wherein 30000 at this time For subnumber word address, for being issued to ballot personnel;Wherein other 10 are target number address, for being issued to vote ?;Last 1 numeric address is female numeric address, and needing to distribute big circulation enough as far as possible at this time to female account proves, at this time Circulation proves at least to be greater than 30000.
The Dispatching Unit 202, for the subnumber word address of respective numbers to be arranged according to the voter turnout, and from female number The circulation that respective numbers are read in word address is proved to be distributed to each subnumber word address.
Wherein, each ballot personnel are associated with a different subnumber word address;I.e. each ballot personnel can distribute There is a circulation to prove, to ensure it on the node that the polled data in block chain can be sent to its ballot, to make The statistics that must vote has uniqueness and certainty.
The number setting unit 203, for the target number address of respective numbers to be arranged according to the polling option.
Wherein, each polling option is associated with a different target number address, and target number address is to refer to connect The address that circulation proves is received, in order to carry out statistics of voting accordingly.
The transmission unit 204, if for receiving ballot request instruction, it will subnumber corresponding with the ballot request instruction Circulation proof in word address is sent in target number address corresponding with the ballot request instruction.
Wherein, when receiving ballot request instruction, then the personnel that show to vote at this time have voted, therefore need the throwing Circulation proof in subnumber word address associated by ticket personnel is sent in the corresponding target number address of its thrown option, with The region chain in ballot platform, which is controlled, convenient for management server carries out corresponding ballot statistics.
The statistic unit 104 obtains final for being counted to all polled datas when reaching deadline Voting results.
In the present embodiment, when reaching deadline, then show that ballot at this time is over, ballot platform will not connect again Receive the ballot of ballot personnel.Management server then counts all polled datas in the chain of region at this time, to analyze To final voting results.
As further embodiment, as shown in fig. 6, making the subnumber word address that circulation proves is sent before deadline For expectating address, the subnumber word address that transmission circulation proves after having spent deadline is described as unexpected numeric address Statistic unit 104 may include: the first data statistics unit 301, the second data statistics unit 302 and computing unit 303.
The first data statistics unit 301, for counting all polled data amounts.
Wherein, management server can be voted with counting user in block platform chain caused by polled data amount, with It is convenient for poll statistics in more detail.
The second data statistics unit 302, for counting the data volume of unexpected numeric address and being expected digitally Location repeats to send the number of repetition that circulation proves.
Wherein, the circulation that unexpected numeric address is sent prove because be after deadline, so when ballot simultaneously Not counting normal ballot, needs to count the data volume of the unexpected numeric address of the circulation proof of all transmissions.Simultaneously, it is contemplated that number Word address repeats to send to circulate and proves to belong to repeated ballot, can not be considered normal ballot at this time, therefore need to count expected numbers Word address sends the number of repetition that circulation proves.
The computing unit 303, for all polled data amounts to be subtracted to the data volume of unexpected numeric address and pre- Issue word address repeats to send the sum of number of repetition of circulation proof to obtain final voting results.
Wherein, it in order to determine final voting results, needs all polled data amounts subtracting unexpected numeric address Data volume, it is also necessary to subtract expected numeric address and repeat to send the number of repetition that circulation proves, remaining at this time is final Voting results.
As further embodiment, described device be may further include the following units:
Query unit 105, if for receiving ballot inquiry instruction, according to the ballot inquiry instruction in block platform chain Corresponding back end is called to check to carry out data.
In the present embodiment, according to block chain technology the characteristics of, each transaction is automatically same by multiple back end Step record, back end is distributed in all over the world, and therefore, each ballot can not forge.Furthermore in this scenario, often One ballot movement is exactly each process of exchange, whom can be traced has thrown ticket therefore whom reliably tracks any suspicious throwing to Ticket result.
It should be noted that it is apparent to those skilled in the art that, the above-mentioned ballot based on block chain The specific implementation process of device 100 and each unit, can be with reference to the corresponding description in preceding method embodiment, for the side of description Just and succinctly, details are not described herein.
As seen from the above, in hardware realization, unit 101, setting unit 102, recording unit 103 and system created above Meter unit 104 etc. can be embedded in the form of hardware or the device reported a case to the security authorities independently of life insurance in, can also store in a software form In the memory of the balloting device based on block chain, the corresponding operation of above each unit is executed so that processor calls.It should Processor can be central processing unit (CPU), microprocessor, single-chip microcontroller etc..
The above-mentioned balloting device based on block chain can be implemented as a kind of form of computer program, and computer program can be with It is run in computer equipment as shown in Figure 7.
Fig. 7 is a kind of structure composition schematic diagram of computer equipment of the present invention.The equipment can be server, wherein clothes Business device can be independent server, be also possible to the server cluster of multiple server compositions.
Referring to Fig. 7, which includes processor 402, memory, the memory connected by system bus 401 Reservoir 404 and network interface 405, wherein memory may include non-volatile memory medium 403 and built-in storage 404.
The non-volatile memory medium 403 can storage program area 4031 and computer program 4032, the computer program 4032 are performed, and processor 402 may make to execute a kind of voting method based on block chain.
The processor 402 supports the operation of entire computer equipment 400 for providing calculating and control ability.
The built-in storage 404 provides environment for the operation of the computer program 4032 in non-volatile memory medium 403, should When computer program 4032 is executed by processor 402, processor 402 may make to execute a kind of voting method based on block chain.
The network interface 405 is used to carry out network communication with other equipment.It will be understood by those skilled in the art that in Fig. 7 The structure shown, only the block diagram of part-structure relevant to application scheme, does not constitute and is applied to application scheme The restriction of computer equipment 400 thereon, specific computer equipment 400 may include more more or fewer than as shown in the figure Component perhaps combines certain components or with different component layouts.
Wherein, the processor 402 is for running computer program 4032 stored in memory, to realize following step It is rapid: if receiving ballot request to create, by block platform chain create it is corresponding with the ballot request to create intelligence contract with Generating multiple circulations proves;According to the ballot request to create, ballot relevant information and voting rule are set in ballot platform, The ballot relevant information includes at least voter turnout, polling option and deadline;Before deadline, according to reception Ballot request instruction, preset rules and the circulation arrived prove, ballot relevant information and voting rule record are thrown accordingly Ticket data;When reaching deadline, all polled datas are counted to obtain final voting results.
In one embodiment, processor 402 also realizes following steps: if receiving ballot inquiry instruction, according to the throwing Ticket inquiry instruction calls corresponding back end to check to carry out data in block platform chain.
In one embodiment, processor 402 realize ballot request instruction, preset rules that the basis receives and When the circulation proof, ballot relevant information and voting rule record the step of corresponding polled data, it is implemented as follows step It is rapid: all circulations are proved in the preset female numeric address of deposit;The subnumber of respective numbers is set according to the voter turnout Word address, and the circulation proof of respective numbers is read from female numeric address to be distributed to each subnumber word address;According to described The target number address of polling option setting respective numbers;It, will be with the ballot request instruction phase if receiving ballot request instruction Circulation proof in the subnumber word address answered is sent in target number address corresponding with the ballot request instruction.
In one embodiment, subnumber word address that circulation proves will be sent before deadline as expectating address, incited somebody to action Subnumber word address that circulation proves is sent after deadline as unexpected numeric address, processor 402 is described in the realization When counted to all polled datas to obtain the step of final voting results, be implemented as follows step: statistics is all Polled data amount;The data volume and expected numeric address for counting unexpected numeric address repeat to send the repetition that circulation proves Number;All polled data amounts are subtracted into the data volume of unexpected numeric address and expected numeric address repeats to send circulation card The sum of bright number of repetition is to obtain final voting results.
It should be appreciated that in the embodiment of the present application, processor 402 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or Person's processor is also possible to any conventional processor etc..
Those of ordinary skill in the art will appreciate that be realize above-described embodiment method in all or part of the process, It is that relevant hardware can be instructed to complete by computer program.The computer program can be stored in a storage medium, The storage medium is computer readable storage medium.The computer program is held by least one processor in the computer system Row, to realize the process step of the embodiment of the above method.
Therefore, the present invention also provides a kind of storage mediums.The storage medium can be computer readable storage medium.This is deposited Storage media is stored with computer program, which makes processor execute following steps when being executed by processor: if receiving To ballot request to create, intelligent contract corresponding with the ballot request to create is created to generate multiple streams by block platform chain It is logical to prove;According to the ballot request to create, in ballot platform setting ballot relevant information and voting rule, the ballot phase It closes information and includes at least voter turnout, polling option and deadline;Before deadline, asked according to the ballot received Instruction, preset rules and circulation proof, ballot relevant information and voting rule is asked to record corresponding polled data;When reaching When to deadline, all polled datas are counted to obtain final voting results.
In one embodiment, if the processor, which also executes the following steps:, receives ballot inquiry instruction, according to the throwing Ticket inquiry instruction calls corresponding back end to check to carry out data in block platform chain.
In one embodiment, the processor realizes the ballot that the basis receives in the execution computer program Request instruction, preset rules and the circulation prove, ballot relevant information and voting rule record corresponding polled data When step, it is implemented as follows step: all circulations are proved in the preset female numeric address of deposit;According to the voter The subnumber word address of number setting respective numbers, and the circulation proof of reading respective numbers is each to be distributed to from female numeric address Subnumber word address;The target number address of respective numbers is set according to the polling option;It, will if receiving ballot request instruction Circulation proof in subnumber word address corresponding with the ballot request instruction is sent to target corresponding with the ballot request instruction In numeric address.
In one embodiment, subnumber word address that circulation proves will be sent before deadline as expectating address, incited somebody to action Subnumber word address that circulation proves is sent after deadline as unexpected numeric address, the processor is described in the execution Computer program and when realizing the step of described pair of all polled datas are counted to obtain final voting results, it is also real Existing following steps: all polled data amounts are counted;Data volume and the expected numeric address for counting unexpected numeric address are heavy The number of repetition that recurrence send circulation to prove;All polled data amounts are subtracted to the data volume and expected numbers of unexpected numeric address Word address repeats to send the sum of number of repetition of circulation proof to obtain final voting results.
The storage medium can be USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), magnetic disk Or the various computer readable storage mediums that can store program code such as CD.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary.For example, the division of each unit, only Only a kind of logical function partition, there may be another division manner in actual implementation.Such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.This hair Unit in bright embodiment device can be combined, divided and deleted according to actual needs.In addition, in each implementation of the present invention Each functional unit in example can integrate in one processing unit, is also possible to each unit and physically exists alone, can also be with It is that two or more units are integrated in one unit.
If the integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product, It can store in one storage medium.Based on this understanding, technical solution of the present invention is substantially in other words to existing skill The all or part of part or the technical solution that art contributes can be embodied in the form of software products, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a People's computer, terminal or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of voting method based on block chain, which is characterized in that the described method includes:
If receiving ballot request to create, by block platform chain create it is corresponding with the ballot request to create intelligence contract with Generating multiple circulations proves;
It is related in ballot platform setting ballot relevant information and voting rule, the ballot according to the ballot request to create Information includes at least voter turnout, polling option and deadline;
Before deadline, proved according to the ballot request instruction, preset rules and the circulation that receive, ballot correlation Information and voting rule record corresponding polled data;
When reaching deadline, all polled datas are counted to obtain final voting results.
2. the method as described in claim 1, which is characterized in that the method also includes:
If receiving ballot inquiry instruction, according to the ballot inquiry instruction block platform chain call corresponding back end with Data are carried out to check.
3. the method as described in claim 1, which is characterized in that the block platform chain is ether mill block platform chain, described Ballot relevant information further includes ballot title.
4. the method as described in claim 1, which is characterized in that ballot request instruction that the basis receives, preset rules And the step of circulation proves, ballot relevant information and voting rule record corresponding polled data, comprising:
All circulations are proved in the preset female numeric address of deposit;
The subnumber word address of respective numbers is set according to the voter turnout, and reads the stream of respective numbers from female numeric address It is logical to prove to be distributed to each subnumber word address;
The target number address of respective numbers is set according to the polling option;
If receiving ballot request instruction, send the circulation proof in subnumber word address corresponding with the ballot request instruction to In target number address corresponding with the ballot request instruction.
5. the method as described in claim 1, which is characterized in that the subnumber word address of circulation proof will be sent before deadline As expectating address, the subnumber word address of circulation proof will be sent after deadline will have been spent as unexpected numeric address, institute State the step of being counted to all polled datas to obtain final voting results, comprising:
Count all polled data amounts;
The data volume and expected numeric address for counting unexpected numeric address repeat to send the number of repetition that circulation proves;
All polled data amounts are subtracted into the data volume of unexpected numeric address and expected numeric address repeats to send circulation card The sum of bright number of repetition is to obtain final voting results.
6. a kind of balloting device based on block chain, which is characterized in that described device includes:
Creating unit, if passing through the creation of block platform chain and the ballot request to create phase for receiving ballot request to create The intelligent contract answered is proved with generating multiple circulations;
Setting unit, for ballot relevant information and voting rule to be arranged in ballot platform according to the ballot request to create, The ballot relevant information includes at least voter turnout, polling option and deadline;
Recording unit is used for before deadline, according to ballot request instruction, preset rules and the circulation received It proves, ballot relevant information and voting rule record corresponding polled data;
Statistic unit, for when reaching deadline, being counted to all polled datas to obtain final voting results.
7. device as claimed in claim 6, which is characterized in that described device further include:
Query unit, if calling phase in block platform chain according to the ballot inquiry instruction for receiving ballot inquiry instruction The back end answered is checked with carrying out data.
8. device as claimed in claim 6, which is characterized in that the recording unit, comprising:
Storage unit, for proving all circulations in the preset female numeric address of deposit;
Dispatching Unit for the subnumber word address of respective numbers to be arranged according to the voter turnout, and is read from female numeric address Taking the circulation of respective numbers proves to be distributed to each subnumber word address;
Number setting unit, for the target number address of respective numbers to be arranged according to the polling option;
Transmission unit, if for receiving ballot request instruction, it will be in subnumber word address corresponding with the ballot request instruction Circulation proves to be sent in target number address corresponding with the ballot request instruction.
9. a kind of computer equipment, which is characterized in that the computer equipment includes memory and processor, on the memory It is stored with computer program, the processor is realized as described in any one of claim 1-5 when executing the computer program Method.
10. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with computer program, the meter Calculation machine program makes the processor execute method according to any one of claims 1 to 5 when being executed by processor.
CN201910188328.3A 2019-03-13 2019-03-13 Voting method, device, computer equipment and storage medium based on block chain Pending CN110097678A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910188328.3A CN110097678A (en) 2019-03-13 2019-03-13 Voting method, device, computer equipment and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910188328.3A CN110097678A (en) 2019-03-13 2019-03-13 Voting method, device, computer equipment and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN110097678A true CN110097678A (en) 2019-08-06

Family

ID=67443899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910188328.3A Pending CN110097678A (en) 2019-03-13 2019-03-13 Voting method, device, computer equipment and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN110097678A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110647715A (en) * 2019-11-01 2020-01-03 数字钱包(北京)科技有限公司 Ranking list voting processing method and device
CN110855443A (en) * 2019-10-29 2020-02-28 上海唯链信息科技有限公司 Voting method and device based on block chain and zero knowledge proof
CN111010424A (en) * 2019-11-21 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based network voting method, equipment and medium
CN111355719A (en) * 2020-02-25 2020-06-30 深圳市万物云科技有限公司 Community voting method, device, equipment and storage medium based on block chain technology
CN112597538A (en) * 2020-12-28 2021-04-02 上海万向区块链股份公司 Verifiable voting method and system based on block chain
CN113037827A (en) * 2021-03-02 2021-06-25 上海旺链信息科技有限公司 Voting method based on block chain, self-organization management method and computer equipment
CN114973495A (en) * 2022-06-28 2022-08-30 北京字跳网络技术有限公司 Voting processing method, system, device, electronic equipment and storage medium
CN115459998A (en) * 2022-06-07 2022-12-09 赵万侠 Voting system, method and platform for avoiding abnormal trend based on block chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107294727A (en) * 2017-05-22 2017-10-24 联动优势科技有限公司 A kind of electronic voting method, terminal device and block chain network
US20170330174A1 (en) * 2016-05-11 2017-11-16 Nasdaq, Inc. Application framework using blockchain-based asset ownership
CN107835076A (en) * 2016-09-15 2018-03-23 埃森哲环球解决方案有限公司 Method and system for secure communication and its polymerization of token
CN108597090A (en) * 2018-04-20 2018-09-28 济南浪潮高新科技投资发展有限公司 A kind of voting method based on block chain, apparatus and system
CN108846942A (en) * 2018-06-29 2018-11-20 青岛大学 Electronic voting method and system based on ether mill block chain
CN109243045A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 A kind of voting method, device, computer equipment and computer readable storage medium
CN109274505A (en) * 2018-11-22 2019-01-25 浙江工商大学 A kind of anonymous electronic voting method based on block chain technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170330174A1 (en) * 2016-05-11 2017-11-16 Nasdaq, Inc. Application framework using blockchain-based asset ownership
CN107835076A (en) * 2016-09-15 2018-03-23 埃森哲环球解决方案有限公司 Method and system for secure communication and its polymerization of token
CN107294727A (en) * 2017-05-22 2017-10-24 联动优势科技有限公司 A kind of electronic voting method, terminal device and block chain network
CN108597090A (en) * 2018-04-20 2018-09-28 济南浪潮高新科技投资发展有限公司 A kind of voting method based on block chain, apparatus and system
CN109243045A (en) * 2018-06-28 2019-01-18 平安科技(深圳)有限公司 A kind of voting method, device, computer equipment and computer readable storage medium
CN108846942A (en) * 2018-06-29 2018-11-20 青岛大学 Electronic voting method and system based on ether mill block chain
CN109274505A (en) * 2018-11-22 2019-01-25 浙江工商大学 A kind of anonymous electronic voting method based on block chain technology

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110855443A (en) * 2019-10-29 2020-02-28 上海唯链信息科技有限公司 Voting method and device based on block chain and zero knowledge proof
CN110855443B (en) * 2019-10-29 2022-07-01 上海唯链信息科技有限公司 Voting method and device based on block chain and zero knowledge proof
CN110647715A (en) * 2019-11-01 2020-01-03 数字钱包(北京)科技有限公司 Ranking list voting processing method and device
CN111010424A (en) * 2019-11-21 2020-04-14 山东爱城市网信息技术有限公司 Block chain-based network voting method, equipment and medium
CN111355719A (en) * 2020-02-25 2020-06-30 深圳市万物云科技有限公司 Community voting method, device, equipment and storage medium based on block chain technology
CN111355719B (en) * 2020-02-25 2022-02-11 深圳市万物云科技有限公司 Community voting method, device, equipment and storage medium based on block chain technology
CN112597538A (en) * 2020-12-28 2021-04-02 上海万向区块链股份公司 Verifiable voting method and system based on block chain
CN112597538B (en) * 2020-12-28 2022-07-15 上海万向区块链股份公司 Verifiable voting method and system based on block chain
CN113037827A (en) * 2021-03-02 2021-06-25 上海旺链信息科技有限公司 Voting method based on block chain, self-organization management method and computer equipment
CN115459998A (en) * 2022-06-07 2022-12-09 赵万侠 Voting system, method and platform for avoiding abnormal trend based on block chain
CN115459998B (en) * 2022-06-07 2024-01-12 涟源市云马科技电子商务有限公司 Voting system and method for avoiding abnormal trend influence based on block chain
CN114973495A (en) * 2022-06-28 2022-08-30 北京字跳网络技术有限公司 Voting processing method, system, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110097678A (en) Voting method, device, computer equipment and storage medium based on block chain
CN108537667B (en) Financial asset anti-money laundering control method and device based on block chain and storage medium
CN108717630A (en) One kind going out block method and its realizes system
CN110602217B (en) Block chain-based alliance management method, device, equipment and storage medium
TW202013272A (en) A method and apparatus for allocating virtual resources
CN104200536A (en) Attendance-checking system and attendance-checking method based on wechat platform
CN109389399A (en) Lottery industry method, apparatus, computer equipment and storage medium based on block chain
CN108597090A (en) A kind of voting method based on block chain, apparatus and system
CN110300171B (en) Information acquisition method, system, computer readable storage medium and electronic device
CN111369730B (en) Voting processing method and device based on block chain
CN109102358A (en) A kind of Information Authentication method, server and storage medium
CN109685336A (en) Collection task distribution method, device, computer equipment and storage medium
CN110147390A (en) A kind of ballot statistical method, device, storage medium and server
CN109949038A (en) Block chain administers method, apparatus, equipment and the readable storage medium storing program for executing of ballot
CN109784857A (en) Data processing method, device and system based on block chain
CN107784075A (en) Data processing method, device and computer equipment based on connected transaction
CN108366176A (en) A kind of charging method of terminal applies, apparatus and system
US20220239668A1 (en) Blockchain-based message processing method and apparatus, device, and storage medium
CN115688110A (en) Financial Internet of things platform equipment early warning method and device
CN108647991A (en) Electric power data management method, platform and equipment
CN110321730A (en) A kind of method, block chain node and the storage medium of operation data processing
Schmidt et al. Designing pandemic-resilient voting systems
CN108833133A (en) Network configuration management method, apparatus and storage medium based on system for cloud computing
Kaudare et al. Implementing electronic voting system with blockchain technology
CN110310103A (en) A kind of resource raises method and block chain node device

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190806