CN114285552B - N-th voting method and device based on block chain - Google Patents

N-th voting method and device based on block chain Download PDF

Info

Publication number
CN114285552B
CN114285552B CN202111500085.6A CN202111500085A CN114285552B CN 114285552 B CN114285552 B CN 114285552B CN 202111500085 A CN202111500085 A CN 202111500085A CN 114285552 B CN114285552 B CN 114285552B
Authority
CN
China
Prior art keywords
voting
information
intelligent contract
project
class
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.)
Active
Application number
CN202111500085.6A
Other languages
Chinese (zh)
Other versions
CN114285552A (en
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.)
Shanghai Jiansu Network Technology Co ltd
Original Assignee
Shanghai Jiansu Network 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 Shanghai Jiansu Network Technology Co ltd filed Critical Shanghai Jiansu Network Technology Co ltd
Priority to CN202111500085.6A priority Critical patent/CN114285552B/en
Publication of CN114285552A publication Critical patent/CN114285552A/en
Application granted granted Critical
Publication of CN114285552B publication Critical patent/CN114285552B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A N-th voting method and device based on block chain comprises the following steps: receiving an intelligent contract information request for deploying voting projects, and generating factory intelligent contract information matched with the class voting by a first code executor; the second code executor obtains a project voting request of the initiator client and constructs project intelligent contract information corresponding to the project voting by utilizing the factory intelligent contract information; when the triggering condition of the voting is met, starting the project intelligent contract, receiving the voting requests of a plurality of voting party clients to generate and output the third code information, completing the voting process and improving the voting efficiency.

Description

N-th voting method and device based on block chain
Technical Field
The application relates to a block chain technology, in particular to a N-th voting method and device based on a block chain.
Background
Blockchain 2.0 as a second generation programmable blockchain, its main feature is to allow users to write more sophisticated and intelligent protocols, so-called intelligent contracts. Because of the characteristics of the blockchain, such as difficulty in tampering and data disclosure, the problematic intelligent contracts cannot be repaired in time, causing huge losses, so that strict security audit of the intelligent contracts before deployment becomes particularly important.
The currently mainstream intelligent contract security audit scheme is form verification, and through mathematical logic deduction, contract implementation is proved to be in line with expectations. The voting intelligent contract is used as a common contract application field, and the security of the voting intelligent contract is audited through form verification, which is a key precondition for guaranteeing fairness and fairness of voting business. At present, the intelligent contract development community does not have corresponding safety specifications of voting service, so that safety loopholes are easy to appear in the development of voting intelligent contracts, a set of general voting process related intelligent contract form verification method is needed, and development references and safety standards are provided for the development of voting intelligent contracts. The Hangzhou chain of interest science and technology company discloses a form verification method of voting intelligent contracts in 201911088334.8, which specifically comprises the following steps: (1) Defining a voting intelligent contract for realizing the function of voting to a designated candidate party according to a defined flow and authority;
the definition includes: data structures of candidate and voter, state variables, modifiers to examine contract owners and voting flows, common functions of voting related services; the data structure of the candidate party at least comprises two fields of a main key and a vote count, and the data structure of the voter at least comprises two fields of a main key and whether to vote or not; the state variables are an array and a map for recording information of contract owners, voting flows, candidates and voters; the public function comprises a contract owner managing candidate parties and voter information functions in a correct voting process, a contract owner managing the voting process functions in the correct voting process, any person with voting rights carrying out the voting functions on the appointed candidate parties in the correct voting process, a related party checking the voting result functions in the correct voting process, and a related party inquiring the candidate parties and the voter information functions in the correct voting process; the modifier comprises a contract owner modifier for checking whether the contract owner is and a voting flow modifier for checking whether the contract owner is in a correct voting flow, wherein the contract owner modifier is used for modifying two functions of a candidate party and a voter information function for managing the correct voting flow by the contract owner and a voting flow function for managing the correct voting flow by the contract owner; the voting process modifier acts on all functions; when in definition, sequentially defining the data structures, state variables, modifiers for checking contract owners and voting flows and public functions of voting related services of candidate parties and voters;
(2) Form verification specifications are defined for describing the functions of the voting intelligent contracts, defining the anomalies, return values, and specifications for state variables for each voting-related function in the intelligent contract. The method is realized based on a software form verification method, a safe form specification is established based on voting service design, and the safe form specification is converted into a mathematical model capable of form verification, so that the safety of the voting intelligent contract is improved.
The scheme does improve the security of the voting intelligent contract, but does not improve the voting efficiency.
A one-person-one-vote mechanism gives the same voting rights to the indifferent person and makes the relevant parties with great influence on the voting result lose the possibility of further influencing the result. A one-ticket mechanism makes the average voting cost of the wealthy as the average voting cost of a typical person unfair. Principle of voting to the nth power:
c is the total ticket number;
p i voting costs for the ith person;
n is the number of people participating in voting;
n is N times square root;
as shown in fig. 1, which is a plot of the cost paid for a single person vote. The horizontal axis represents the paid cost, and the vertical axis represents the ticket number; the three lines blue, red and green (uppermost line, second line and lowermost line) represent the cases when n=1, 2, 3, respectively, with the increasing N, the cost of a single voter wanting to acquire more votes increases in power.
Each voting event requires a developer to complete the source file of the intelligent contract that wrote the vote, and requires a long event to complete the contract file that constructs the intelligent contract, which is inefficient.
Disclosure of Invention
The application aims to provide a block chain-based N-th voting method and device with high efficiency.
A blockchain-based nth voting method, comprising:
receiving a request for deploying intelligent contract information of a voting project, generating factory intelligent contract information which is adaptive to the class voting by a first code executor, wherein the factory intelligent contract comprises first input parameter information and class voting information which are input into the factory intelligent contract and output second code information, and establishing a transmission mapping relation between the first input parameter information and the class voting information, and generating execution code information for outputting the second code information by utilizing the class voting information;
a second code executor obtains a project voting request of an initiator client, constructs project intelligent contract information corresponding to the project vote by utilizing the factory intelligent contract information, wherein the project intelligent contract information comprises second input parameter information, project voting information and output third code information, establishes a transmission mapping relation between the second input parameter information and the project voting information, and generates execution code information of the output third code information by utilizing the project voting information;
when the triggering condition of voting is met, starting the project intelligent contract, receiving voting requests of a plurality of voting party clients to generate and output the third-generation code information, and finishing the voting process.
Preferably, the voting party information in the voting information further comprises a data structure body for setting the voting party, and if the voting party needs authentication information, an authentication algorithm is set and/or registration code information is generated;
if the first input parameter information analyzed by the second code executor comprises the authentication information of the voting party, the generated project intelligent contract comprises registration code information for generating the voting party;
in the voting process, public and private key information is generated by utilizing the registration code information, and the public key information is distributed to the corresponding voting party client;
the authenticated voter client is allowed to participate in the vote. A voting algorithm is implemented in a (concrete) project contract as follows:
compared with the prior art, the method has the following advantages:
firstly, the voting items are grouped into a plurality of classes in advance, factory intelligent contracts corresponding to class voting are generated, the specific related voting items of each class generate corresponding project intelligent contracts through the factory intelligent contracts, and voting operation is started after voting triggering conditions are met: and receiving the votes of the voting party clients, and carrying out statistics and summarization on the votes meeting the conditions to finish the votes. The voting of the same type only needs to define a factory intelligent contract once, and only needs to call the factory intelligent contract to generate an item intelligent contract of a specific item later, so that the efficiency is high.
Then, class voting information can be set according to an influence dimension array, wherein the influence dimension array comprises a single-dimension array and a multi-dimension array; receiving a request for deploying intelligent contract information of a voting project, and analyzing each dimension information in the input multi-dimension data; the first code executor finds the default information corresponding to each dimension and generates the factory intelligent contract information with the class voting adaptation. The class voting set in the mode can be dynamically generated, corresponding default information is set in each dimension, and the class voting completed in the mode not only achieves the dynamic performance, but also is very high in execution efficiency.
Then, in the voting process, public and private key information is generated by utilizing the registration code information, and the public key information is distributed to the corresponding voting party client; the authenticated voter client is allowed to participate in the vote. These arrangements can promote the safety of the anti-brush sheet.
Drawings
FIG. 1 is a graph of cost of individual vote payouts;
FIG. 2 is a schematic flow diagram of a blockchain-based N-th voting method;
FIG. 3 is a diagram of an example of a blockchain-based N-th voting method;
FIG. 4 is a flow chart of an example of a blockchain-based N-party voting method.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings.
Not only are the codes/instructions included in the smart contract file for implementing the predetermined transactions that the developer desires to implement through the smart contract, but also codes for implementing other functions, such as the fact that the smart contract is generally not able to interact directly with external applications for complex types of data, it is necessary to configure decoding codes and encoding codes in the contract file of the smart contract for decoding input data from outside the smart contract, for encoding output data provided outside the smart contract, and different encoding codes and decoding codes are actually used in different smart contracts. Correspondingly, in the process of constructing the contract file of the intelligent contract, namely, in the process of obtaining the source file or the byte code file of the intelligent contract, a developer needs to completely write the source file of the intelligent contract, needs to consume a longer event to finish constructing the contract file of the intelligent contract, and has extremely low efficiency.
Taking voting as an example, a corresponding intelligent contract file is usually compiled for a voting project, the voting involves a voting configuration interface, and the input of dynamic information of a candidate party is also involved in the voting configuration interface.
The core idea of the application is as follows: the voting items are grouped into a plurality of classes in advance, factory intelligent contracts corresponding to class voting are generated, the specific related voting items of each class generate corresponding project intelligent contracts through the factory intelligent contracts, and voting operation is started after voting triggering conditions are met: and receiving the votes of the voting party clients, and carrying out statistics and summarization on the votes meeting the conditions to finish the votes. The voting of the same type only needs to define a factory intelligent contract once, and only needs to call the factory intelligent contract to generate an item intelligent contract of a specific item later, so that the efficiency is high.
The core involved in voting is efficiency and security. The efficiency comprises automatic generation of voting configuration interface templates and online compiling of dynamic information of candidate parties; security includes anti-swipe ticket security level design, voting flow logic control, background high performance process control, etc.
And setting class voting information according to the influence dimension array. The influence dimension array can be a single dimension array or a multi-dimension array.
Scheme one
The influence dimension array takes a single-dimension array as an example, and establishes factory intelligent contracts corresponding to the class voting information. Taking voting logic as an example, a single-dimensional array is established, and class voting information is established according to the single-dimensional array, so that factory intelligent contracts are set.
The voting logic includes single-threaded voting process settings for single-option votes, multiple-option votes, group votes, single-group votes, and the like. The class voting information includes a single-menu-group voting class, a multi-group single-menu-option voting class, a multi-group multi-option voting class, and the like.
Referring to fig. 2, a flowchart of a first embodiment of a block chain based N-th order voting method is shown. It comprises the following steps:
s110, receiving a request for deploying intelligent contract information of a voting project, wherein a first code executor generates factory intelligent contract information which is adaptive to the class voting, the factory intelligent contract comprises first input parameter information, class voting information and output second code information which are input into the factory intelligent contract, a transmission mapping relation between the first input parameter information and the class voting information is established, the class voting information is utilized to generate execution code information for outputting the second code information, and the class voting information further comprises attribute information, initiator information, voting party information, triggering condition information of the voting, flow information of the voting and ending condition information of the voting.
In the blockchain network, a user can initiate a factory intelligent contract information request corresponding to the class voting related to the deployment voting project through an account registered in the blockchain network or call project intelligent contract information of the factory intelligent contract deployment project voting. And, the method may involve a client side and a platform side, the platform side being performed by any device, apparatus, platform or cluster having computing/processing capabilities, e.g. by a contract development platform integrating functionality such as development and testing of smart contracts, while the client side may include a voter client, an initiator client, etc. Similarly, multiple candidate clients may be included.
The user can write the factory intelligent contract information which is adaptive to the voting, and can store the contract description information of the factory intelligent contract through a user-specific description file.
The first code executor can directly execute factory intelligent contract information written by a user, and corresponding factory intelligent contract information is generated. The relevant information can be analyzed from the description file of the user to generate corresponding factory intelligent contract information. Illustrated with a single menu set of votes. The class voting information further includes attribute information (a single menu group voting class), initiator information (a structure defining an initiator), voter information (a structure defining a voter), trigger condition information of the vote, flow information of the vote (candidate input, voting configuration interface generation, security level control, etc.), and end condition information of the vote.
The structure information defining the voter further includes a structure type, field content, etc. defining the voter data. For example, the voter data includes at least whether the voter needs authentication, whether the voter sets blacklist information, and the like.
The voting configuration interface generation comprises setting a voting configuration interface generation template, configuring interface setting of each template, outputting information of pictures, outputting information of videos and whether candidate input information is configured in the interface. The security level control includes a first level, a second level, and a third level, for example, the first level performs verification code generation of the voter; the second level further includes setting blacklist information and red list information of the voter, and the third level further includes setting a voting anti-bill mechanism setting, and the like. The information of the end condition of the voting sets the time information of the voting, the limit of the number of the votes, the condition that the voting anti-brushing mechanism does not meet, and the like.
The initiator information (defining the structure of the initiator), the voting information (defining the structure of the voting party), the triggering condition information of the voting, the flow information of the voting (candidate input, voting configuration interface generation, security level control and the like), the ending condition information of the voting and the like can be given to default values, so that factory intelligent contract information with the adaptation of the class of voting is generated, and when only the type of the factory intelligent contract is required to be input into a single menu group voting class, default first input parameter information can be transmitted into a first code executor, thereby building the factory intelligent contract. And establishing a transmission mapping relation between the first input parameter information and the class voting information, and directly establishing a transmission mapping relation between default parameters and the voting information, for example, a voting configuration interface generating template adopts a default generating template. And generating execution code information for outputting the second code information, namely, configuring the project intelligent contracts for project voting by directly utilizing the class voting information.
The contract description information input by the user may also describe at least one of the following information defined by the user:
a contract name (contract name) of the factory intelligent contract;
class voting information of contracts;
a contract version;
a data exchange format for indicating a data format of input data provided to the smart contract by a computer program external to the smart contract and output data returned to the computer program by the smart contract. For example, for the Token context described above, the corresponding data exchange formats may be defined as JSON (JavaScript Object Notation), XML (Extensible Markup Language) or other data exchange formats;
rights or rules of factory intelligence contracts: namely, initiator information (defining a structure of an initiator), voter information (defining a structure of a voter), trigger condition information of a vote, flow information of a vote (candidate input, vote configuration interface generation, security level control, etc.), end condition information of a vote, and the like.
Data structure form of the output project intelligent contract: the set second input parameter information, project voting information and output third code information.
S120, a second code executor obtains project voting requests of an initiator client, finds out adaptive class voting information, calls the factory intelligent contract information to call the request, analyzes first input parameter information from the project voting requests, inputs the input parameter information into the factory intelligent contract adaptive to the class voting, constructs project intelligent contract information corresponding to the concrete project voting, the project intelligent contract information comprises second input parameter information, project voting information and output third code information, establishes a transmission mapping relation between the second input parameter information and the project voting information, and generates execution code information of the output third code information by utilizing the project voting information.
The second code executor obtains the project voting request of the initiator client, and the user can write project intelligent contract information adapted to the project voting by himself or store the contract description information of the project intelligent contract through the special description file of the user. The second code executor receives the information to find the adapted class voting information, and the most common mode is that the initiator client directly selects the class voting information and the corresponding factory intelligent contract information, and defines the second input parameter information or adopts a default value in part.
And S130, when the triggering condition of voting is met, starting the project intelligent contract, receiving voting requests of a plurality of voting party clients to generate and output the third code information, and finishing the voting process.
The present example is described below as an application example. Referring to fig. 3 and 4, which are schematic logic flow diagrams of voting, the dotted box in fig. 3 is an in-chain environment.
Voting initiator client: deploying factory intelligent contracts and project intelligent contracts for voting, setting project information, initiating voting questions and options, setting qualified registration codes and time regulations related to voting, triggering a voting result, and the like.
Voting side client: the functions of logging in and registering to vote as a qualified voter include: logging in, participating in voting, submitting votes, viewing voting results, etc.
Intelligent contract: may be deployed on any blockchain supporting smart contracts, including factory smart contracts and project contracts. Factory intelligence contracts: project contracts are generated based on the parameters. Project contract: the core contracts of the N-th voting algorithm also comprise the functions of registration verification and triggering the publication of the counting result.
One example that may be used for implementation is: whether an open source community analyzes the Ethernet source code in the next stage or not, the task initiates voting, the lowest support block is appointed, a vote is correspondingly obtained, the task research can be started after 1000 votes are filled, an N-th voting method (N=1000) is adopted, and all users participating in the voting share the final research result.
First, the voting initiator core steps include the following procedure, which can be referred to fig. 3 or fig. 4:
1. the community party of the open source project logs in an APP (application) of the N-th voting system provided by the patent and is connected with wallet application;
2. initializing a voting project, and setting a project name, a voting problem and options.
Setting item names: subject of staged research
Setting a voting problem: and analyzing and outputting a research report aiming at the Ethernet source code.
Setting options: support.
3. Setting time parameters, registration start time, registration expiration time, voting start time and voting expiration time.
4. Setting an N-th power parameter N, wherein n=1000;
after the above steps are completed, the voting system APP calls the factory intelligent contracts of the blockchain to generate project intelligent contracts. The factory intelligence is about to select a single menu group of votes, and the first input parameter is a default value. Generating project intelligent contracts based on the factory intelligent contracts, wherein the second input parameters comprise project contract names, voting questions, voting time parameters, N values and output parameters
This project contract name: stage study topic one, voting problem: and analyzing and outputting a research report aiming at the Ethernet source code to complete the parameter configuration of the project contract.
Note that: the factory intelligence contracts and project contracts may be one-to-many relationships.
5. When the voting is completed, the voting initiator needs to trigger the project contract to generate a voting result, and the second code executor generates execution code information for outputting third code information, which further comprises completed voting and specific voting value information, incomplete voting and reason information thereof.
The voting party core step then comprises the following steps:
1. logging in an N-th voting system APP, browsing voting items through the APP, and searching the items needing voting;
2. clicking registration, wherein the registration process is only one clicking event for voting users, the actual system completes encryption of registration codes by a public key, sends the encrypted registration codes to a server, decrypts the private key of the server, checks whether the registration codes are valid, and returns registration success/failure.
Finally, executing project intelligent contracts, triggering voting, selecting supported options to vote, sending voting amount, and calling a project contract voting method in the process;
if 1 block is sent, the corresponding support ticket number is increased by 1;
if 8 blocks are sent, the corresponding number of supported tickets is increased by 2; (n=1000)
And (3) publishing results, namely counting the sum of the ticket numbers, meeting 1000 tickets, and publishing the results: voting is successful; the topic study is then conducted and after the study is completed, a study report is sent to the voter's account for review.
Failing to satisfy 1000 tickets or other conditions of failure, publish the results: the voting fails, the voting amount is returned to the voting party transmitting account, the subject is abandoned, and the voting of the next subject is carried out.
Wherein project intelligence contracts are executed, which contracts may be defined as contract access classes. I.e., also expressed as a blockchain access (Blockchain Access Object, BAO) class, is essentially a code that can access project smart contracts in the form of remote procedure calls (Remote Procedure Call, RPC) function calls, dedicated to handling data interactions of external computer programs with the smart contracts. Accordingly, a container (e.g., dock) for testing the project smart contracts may be built locally, in which a contract file is invoked through the project smart contracts, thereby completing automated testing of the smart contracts.
The security level control can be realized by setting a verification code technology for the voter, namely the voter information in the voting information further comprises a data structure body for setting the voter, and if the voter needs authentication information, an authentication algorithm is set and/or registration code information is generated; if the first input parameter information analyzed by the second code executor comprises the authentication information of the voting party, the generated project intelligent contract comprises registration code information for generating the voting party; in the voting process, public and private key information is generated by utilizing the registration code information, and the public key information is distributed to the corresponding voting party client, so that the authenticated voting party client is allowed to participate in the voting. This approach is popular and prevents the use of ticket swiping tools by individuals with ordinary skill by randomly generated verification codes. The security level control includes not only the above settings but also a platform equalization processing mode when the value of N set exceeds a certain predetermined value.
Scheme II
And setting class voting information according to the influence dimension array. The influencing dimension array may be a multi-dimensional array in addition to the one-dimensional array of scheme one.
For example, in addition to setting up voting logic, security level dimensions are included, each security level corresponding to a set of security flow controls. The voting logic further comprises single-threaded voting process settings for single-option votes, multi-option votes, group votes, single-group votes, and the like. The class voting information includes a single-menu-group voting class, a multi-group single-menu-option voting class, a multi-group multi-option voting class, and the like.
The scheme further comprises the following steps:
setting class voting information according to an influence dimension array, wherein the influence dimension array comprises a single-dimension array and a multi-dimension array; receiving a request for deploying intelligent contract information of a voting project, and analyzing each dimension information in the input multi-dimension data; the first code executor finds default information corresponding to each dimension; and generating factory intelligent contract information which is adaptive to the class voting.
For example, the user selects single or multi-thread, security level, voting type, etc., the corresponding first code executor obtains the configuration information of the user, then finds the dimension factor information, finds the default value corresponding to each dimension, and then generates the corresponding factory intelligent contract information. The processing mode is more flexible and efficient.
A blockchain-based nth voting apparatus comprising:
a first code executor: the factory intelligent contract information is used for receiving a request for deploying intelligent contract information of voting projects and generating factory intelligent contract information matched with the class voting;
a second code executor: the project intelligent contract information corresponding to the project voting is constructed by utilizing the factory intelligent contract information;
and the project intelligent contract executor is used for starting the project intelligent contract when the triggering condition of voting is met, receiving voting requests of a plurality of voting party clients to generate and output the third code information, and finishing the voting process.
A blockchain-based nth voting apparatus comprising:
public and private key generation unit: the public key information is used for generating public key information according to the registration code information of the voting party;
distribution unit: for distributing public key information to the corresponding voter client;
and a verification unit: for authenticated voter clients to be allowed to participate in the vote.
There is also provided in embodiments of the present specification a computer readable storage medium having stored thereon a computer program/instructions which, when executed in a computing device, performs the method of generating a class of smart contract files provided in any of the embodiments of the present specification.
The embodiment of the specification also provides a computing device, which comprises a memory and a processor, wherein the memory stores a computer program/instruction, and the processor executes the computer program/instruction to implement the method for generating the contract class of the intelligent contract file provided in any embodiment of the specification. In this specification, each embodiment is described in a progressive manner, and the same and similar parts in each embodiment are referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part. The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The foregoing describes specific embodiments of the present application. It is to be understood that the application is not limited to the particular embodiments described above, and that various changes or modifications may be made by those skilled in the art within the scope of the appended claims without affecting the spirit of the application. The embodiments of the application and the features of the embodiments may be combined with each other arbitrarily without conflict.

Claims (9)

1. A blockchain-based N-party voting method, comprising:
receiving a request for deploying intelligent contracts of voting projects, generating factory intelligent contract information with class voting adaptation by a first code executor, wherein the factory intelligent contract comprises first input parameter information and class voting information which are input into the factory intelligent contract and output second code information, and establishing a transmission mapping relation between the first input parameter information and the class voting information, and generating execution code information for outputting the second code information by utilizing the class voting information; a second code executor obtains a project voting request of an initiator client, constructs project intelligent contract information corresponding to the project vote by utilizing the factory intelligent contract information, wherein the project intelligent contract information comprises second input parameter information, project voting information and output third code information, establishes a transmission mapping relation between the second input parameter information and the project voting information, and generates execution code information for outputting the third code information by utilizing the project voting information; when the triggering condition of voting is met, starting the project intelligent contract, receiving voting requests of a plurality of voting party clients to generate and output the third-generation information, and finishing the voting process;
the voting party information in the voting information further comprises a data structure body for setting the voting party, and if the voting party needs authentication information, an authentication algorithm is set and/or registration code information is generated;
if the first input parameter information analyzed by the second code executor comprises the authentication information of the voting party, the generated project intelligent contract comprises registration code information for generating the voting party; in the voting process, public and private key information is generated by utilizing the registration code information, and the public key information is distributed to the corresponding voting party client;
the authenticated voter client is allowed to participate in the vote.
2. The method of claim 1, wherein constructing project intelligence contract information corresponding to the project vote using the plant intelligence contract information further comprises:
finding corresponding class voting information, calling the adapted factory intelligent contract information, analyzing first input parameter information from the project voting request, inputting the input parameter into the factory intelligent contract adapted by the class voting, and deploying the input parameter into the corresponding project intelligent contract information.
3. The method of claim 1, wherein,
setting the voting information of the class, wherein the setting mode further comprises setting mode and default mode, the setting mode further comprises setting attribute information, initiator information, voting party information, triggering condition information of the voting, flow information of the voting and information including ending condition information of the voting, and the set voting flow information further comprises template library information of a voting configuration interface;
if the received request for deploying the intelligent contract information of the voting project only contains attribute information of the class voting, starting a default mode, and directly generating factory intelligent contract information which is adaptive to the class voting according to the default mode by the first code executor.
4. The method of claim 1, wherein,
setting class voting information according to an influence dimension array, wherein the influence dimension array comprises a single-dimension array and a multi-dimension array;
receiving a request for deploying intelligent contract information of a voting project, and analyzing each dimension information in the input multi-dimension data;
the first code executor finds default information corresponding to each dimension;
and generating factory intelligent contract information which is adaptive to the class voting.
5. The method of claim 1, wherein the class voting information comprises a single-menu-group voting class, a multiple-group single-menu-option voting class, or a multiple-group multiple-option voting class.
6. A block chain based nth order voting apparatus for performing any one of claims 1 to 5 comprising:
a first code executor: the factory intelligent contract information is used for receiving a request for deploying intelligent contract information of voting projects and generating factory intelligent contract information suitable for class voting;
a second code executor: the project intelligent contract information corresponding to the project voting is constructed by utilizing the factory intelligent contract information; and the project intelligent contract executor is used for starting the project intelligent contract when the triggering condition for voting is met, receiving voting requests of a plurality of voting party clients, generating and outputting the third code information.
7. The blockchain-based N-th voting apparatus of claim 6, further comprising:
public and private key generation unit: the public key information is used for generating public key information according to the registration code information of the voting party;
distribution unit: for distributing public key information to the corresponding voter client;
and a verification unit: for authenticated voter clients to be allowed to participate in the vote.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer device performs the method of any of claims 1-5 when said computer program is executed in the computing device.
9. A computing device comprising a memory and a processor, wherein the memory has stored therein a computer program which, when executed by the processor, implements the method of any of claims 1-5.
CN202111500085.6A 2021-12-09 2021-12-09 N-th voting method and device based on block chain Active CN114285552B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111500085.6A CN114285552B (en) 2021-12-09 2021-12-09 N-th voting method and device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111500085.6A CN114285552B (en) 2021-12-09 2021-12-09 N-th voting method and device based on block chain

Publications (2)

Publication Number Publication Date
CN114285552A CN114285552A (en) 2022-04-05
CN114285552B true CN114285552B (en) 2023-08-22

Family

ID=80871572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111500085.6A Active CN114285552B (en) 2021-12-09 2021-12-09 N-th voting method and device based on block chain

Country Status (1)

Country Link
CN (1) CN114285552B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805703A (en) * 2017-04-28 2018-11-13 埃森哲环球解决方案有限公司 Right management system
CN110929295A (en) * 2019-11-08 2020-03-27 杭州趣链科技有限公司 Form verification method of voting intelligent contract
CN110933020A (en) * 2018-09-20 2020-03-27 埃森哲环球解决方案有限公司 Cryptographic logic exports submissions from execution blockchain
CN111404876A (en) * 2020-02-20 2020-07-10 江苏荣泽信息科技股份有限公司 Voting method 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020215083A1 (en) * 2019-04-19 2020-10-22 Coinbase, Inc. Systems and methods for blockchain administration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805703A (en) * 2017-04-28 2018-11-13 埃森哲环球解决方案有限公司 Right management system
CN110933020A (en) * 2018-09-20 2020-03-27 埃森哲环球解决方案有限公司 Cryptographic logic exports submissions from execution blockchain
CN110929295A (en) * 2019-11-08 2020-03-27 杭州趣链科技有限公司 Form verification method of voting intelligent contract
CN111404876A (en) * 2020-02-20 2020-07-10 江苏荣泽信息科技股份有限公司 Voting method 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

Also Published As

Publication number Publication date
CN114285552A (en) 2022-04-05

Similar Documents

Publication Publication Date Title
US11743137B2 (en) Systems, methods, and apparatuses for implementing a metadata driven rules engine on blockchain using distributed ledger technology (DLT)
US11451530B2 (en) Systems, methods, and apparatuses for implementing super community and community sidechains with consent management for distributed ledger technologies in a cloud based computing environment
US11875400B2 (en) Systems, methods, and apparatuses for dynamically assigning nodes to a group within blockchains based on transaction type and node intelligence using distributed ledger technology (DLT)
US20230342734A1 (en) Systems, methods, and apparatuses for implementing smart flow contracts using distributed ledger technologies in a cloud based computing environment
US11824970B2 (en) Systems, methods, and apparatuses for implementing user access controls in a metadata driven blockchain operating via distributed ledger technology (DLT) using granular access objects and ALFA/XACML visibility rules
Lin et al. A survey of application research based on blockchain smart contract
US11611560B2 (en) Systems, methods, and apparatuses for implementing consensus on read via a consensus on write smart contract trigger for a distributed ledger technology (DLT) platform
CN109426952B (en) Block chain structure
US11257073B2 (en) Systems, methods, and apparatuses for implementing machine learning models for smart contracts using distributed ledger technologies in a cloud based computing environment
TWI797512B (en) Agent-based turing complete transactions integrating feedback within a blockchain system
US11876910B2 (en) Systems, methods, and apparatuses for implementing a multi tenant blockchain platform for managing Einstein platform decisions using distributed ledger technology (DLT)
CN109698752B (en) Enterprise resource management system based on block chain
US20190236562A1 (en) Systems, methods, and apparatuses for implementing document interface and collaboration using quipchain in a cloud based computing environment
US20190238316A1 (en) Systems, methods, and apparatuses for implementing intelligent consensus, smart consensus, and weighted consensus models for distributed ledger technologies in a cloud based computing environment
US20190236606A1 (en) Systems, methods, and apparatuses for implementing a virtual chain model for distributed ledger technologies in a cloud based computing environment
US20190173884A1 (en) Blockchain-implemented method and system
De Pedro et al. Witnet: A decentralized oracle network protocol
CN109697606A (en) The distributed network and the ecosystem of common recognition agreement are proved based on innovative prestige
US20220383222A1 (en) Anonymous distributed consensus regarding the verification of protocols
CN114285552B (en) N-th voting method and device based on block chain
CN111062060B (en) Voting proposal life cycle management method based on intelligent contract
Grincalaitis Mastering Ethereum: Implement advanced blockchain applications using Ethereum-supported tools, services, and protocols
Meth Blockchain Primer
Wu et al. CCOM: Cost-Efficient and Collusion-Resistant Oracle Mechanism for Smart Contracts
DC Secure Voting System Using Block Chain Technology

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
GR01 Patent grant
GR01 Patent grant