CN111353827A - Block chain voting method, equipment and storage medium - Google Patents

Block chain voting method, equipment and storage medium Download PDF

Info

Publication number
CN111353827A
CN111353827A CN202010177602.XA CN202010177602A CN111353827A CN 111353827 A CN111353827 A CN 111353827A CN 202010177602 A CN202010177602 A CN 202010177602A CN 111353827 A CN111353827 A CN 111353827A
Authority
CN
China
Prior art keywords
voting
user
transaction
block chain
registration
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
CN202010177602.XA
Other languages
Chinese (zh)
Inventor
马登极
王志文
吴思进
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202010177602.XA priority Critical patent/CN111353827A/en
Publication of CN111353827A publication Critical patent/CN111353827A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0217Discounts or incentives, e.g. coupons or rebates involving input on products or services in exchange for incentives or rewards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • G06Q20/102Bill distribution or payments
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3276Short range or proximity payments by means of M-devices using a pictured code, e.g. barcode or QR-code, being read by the M-device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a block chain voting method, equipment and a storage medium, wherein the method comprises the following steps: generating a registration transaction and sending the registration transaction to a block chain node for execution through a voting contract, and recording registration information of a first current user registration first voting event on the block chain; generating an unsigned first voting transaction that votes for a first user; generating and propagating a voting two-dimensional code according to the first voting transaction so as to be provided for a second user end of a second user: analyzing the voting two-dimension code to obtain a first voting transaction; and signing the first voting transaction and sending the signature to a block chain node for execution through a voting contract, transferring a plurality of points from an account of the first user to an account of the second user when the voting contract meets the voting condition, and recording the voting of the second user to the first user when the transfer is successful. The invention ensures that the voter issues an incentive to each voter meeting the voting condition, and enhances the guiding effect of attracting the user to participate in the voting activity.

Description

Block chain voting method, equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method, device, and storage medium for voting in a block chain.
Background
Current cyber voting schemes usually lack guidance power for attracting users to participate in voting, and when a user wants to guide other users to vote for the user, the user usually only sends a voting link in the group and turns a red package in the group at the same time.
Disclosure of Invention
In view of the above-mentioned shortcomings or drawbacks of the prior art, it is desirable to provide a method, an apparatus, and a storage medium for blockchain voting that enhance the guidance effect of attracting users to participate in a voting campaign.
In a first aspect, the present invention provides a method for voting a block chain for a user side, including:
generating a registration transaction and sending the registration transaction to a block chain node for execution through a voting contract, and recording registration information of a first current user registration first voting event on the block chain;
generating an unsigned first voting transaction that votes for a first user;
generating and propagating a voting two-dimensional code according to the first voting transaction so as to be provided for a second user end of a second user:
analyzing the voting two-dimension code to obtain a first voting transaction;
and signing the first voting transaction and sending the signature to a block chain node for execution through a voting contract, transferring a plurality of points from an account of the first user to an account of the second user when the voting contract meets the voting condition, and recording the voting of the second user to the first user when the transfer is successful.
In a second aspect, the present invention provides another method for voting a block chain for a user terminal, including:
analyzing the voting two-dimension code to obtain a first voting transaction; the voting two-dimension code is generated by a first user end according to an unsigned first voting transaction which is voted for a first user in a first voting event registered in a voting contract on a block chain;
and signing the first voting transaction and sending the signature to a block chain node for execution through a voting contract, transferring a plurality of points from an account of the first user to an account of the current user when the voting contract meets the voting condition, and recording the voting of the current user to the first user when the transfer is successful.
In a third aspect, the present invention provides a method for voting a blockchain for a blockchain node, including:
executing a registration transaction through the voting contract, and recording registration information of a first user for registering a first voting event on the block chain;
the first voting transaction signed by the second user is executed through the voting contract, a plurality of points are transferred from the account of the first user to the account of the second user when the voting conditions are met, and the voting of the second user for the first user is recorded when the transfer is successful.
The first voting transaction signed by the second user is analyzed by the second user end to obtain the unsigned first voting transaction, then the signature is sent, and the voting two-dimensional code is generated by the first user end to be the unsigned first voting transaction voted by the first user end and then is generated and propagated.
In a fourth aspect, the present invention also provides an apparatus comprising one or more processors and a memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a method of block chain voting provided according to embodiments of the present invention.
In a fifth aspect, the present invention also provides a storage medium storing a computer program, the computer program causing a computer to execute the method for voting according to the block chain provided by the embodiments of the present invention.
According to the block chain voting method, the equipment and the storage medium provided by the embodiments of the invention, the incentive mechanisms of not meeting the voting conditions, not issuing the incentive and not issuing the incentive unsuccessfully and not counting the votes are configured in the voting contract deployed on the block chain, so that the voter issues the incentive to each voter meeting the voting conditions, and the guidance effect of attracting the user to participate in the voting event is enhanced;
the block chain voting method, the device and the storage medium provided by some embodiments of the present invention further configure the transaction hash of the registration transaction in the voting two-dimensional code when allowing the user to customize the credit amount of the incentive through the registration transaction, so that the voting user can confirm the incentive amount of the current voting before the voting, and the expected value of the incentive obtained by the current voting by the voting user can be ensured before the voting.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a block chain voting method according to an embodiment of the present invention.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1.
Fig. 3 is a flowchart of another block chain voting method according to an embodiment of the present invention.
FIG. 4 is a flow chart of a preferred embodiment of the method shown in FIG. 3.
FIG. 5 is a flow chart of a preferred embodiment of the method shown in FIG. 3.
Fig. 6 is a flowchart of another method for voting according to a block chain according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a flowchart of a block chain voting method according to an embodiment of the present invention.
As shown in fig. 1, in the present embodiment, the present invention provides a method for voting a blockchain, including:
s12: generating a registration transaction and sending the registration transaction to a block chain node for execution through a voting contract, and recording registration information of a first current user registration first voting event on the block chain;
s14: generating an unsigned first voting transaction that votes for a first user;
s16: generating and propagating a voting two-dimensional code according to the first voting transaction so as to be provided for a second user end of a second user:
analyzing the voting two-dimension code to obtain a first voting transaction;
and signing the first voting transaction and sending the signature to a block chain node for execution through a voting contract, transferring a plurality of points from an account of the first user to an account of the second user when the voting contract meets the voting condition, and recording the voting of the second user to the first user when the transfer is successful.
The method is exemplarily described below by taking an example that school a registers voting activities in a voting contract on a blockchain, teacher a registers to participate in the voting, and parents b vote for teacher a.
In step S12, when teacher a registers on the user side, the user side of a generates a registration transaction tx1 and sends it to the blockchain node.
The blockchain nodes receive, broadcast, package and execute tx1 through the voting contract, and register information of teacher A registering the voting event is recorded on the blockchain.
Preferably, the voting contract can also transfer a frozen point to the account of teacher A (for subsequent incentive issuing) when tx1 is executed, or judge whether no less than a specified number of points are prestored in the account of teacher A (when the number is less than the specified number, tx1 fails to be executed) when tx1 is executed, and the like according to a rule set by a registrant of the voting campaign, thereby ensuring subsequent incentive issuing.
In step S14, the user side of the first generates an unsigned voting transaction tx2 that votes for the first.
In step S16, the user terminal of the first generates the voting two-dimensional code according to tx2, and propagates the voting two-dimensional code through various commonly used ways.
And after the user side of the parent B receives and displays the voting two-dimensional code to the parent B, the voting two-dimensional code is analyzed in response to the operation of the parent B, unsigned tx2 is obtained, the tx2 is signed by the private key of the parent B, and the signed tx2 is sent to the block chain node.
The blockchain node receives, broadcasts, packages, and executes the signed tx2 through a voting contract, determines whether the vote of tx2 meets the voting criteria (e.g., only one vote is allowed for a user, or only one vote is allowed for a day, etc.):
otherwise, tx2 fails to execute, does not issue incentives, and does not count tickets;
if yes, then transfer some points (the specific amount can be defined by the voting contract, also can be defined by the registrant of the voting campaign, also can be defined by the self-service of A as explained in the following preferred embodiment) from the account of A to the account of B, and judge whether the transfer is successful:
if not, the incentive is failed to issue (for example, the balance of the points in the account A is insufficient), and the ticket is not counted;
if yes, the incentive is issued successfully, and the voting information of the voting of the second pair A is recorded.
Similarly, the user terminals of other users can sign the unsigned tx2 according to the private key of the respective users and send voting transactions to participate in the voting event and obtain incentives.
Compared with the traditional red packet-sending excitation mode, the excitation mode ensures that the ticket-drawing user only needs to guarantee the account point balance without sending a red packet everywhere, thereby saving time and energy; on the other hand, the voting users can obtain incentives at any time when the voting users successfully vote, and the red packet robbing is not needed, so that the attraction of the voting activities to the voting users is enhanced; on the other hand, each incentive is accurately issued to the users who really vote, and the incentive guiding efficiency is improved.
The embodiment ensures that the voter issues the incentive to each voter meeting the voting condition by configuring the incentive mechanism of not issuing the incentive and not issuing the incentive unsuccessfully and not counting the votes in the voting contract deployed on the blockchain, thereby enhancing the guiding effect of attracting the user to participate in the voting event.
FIG. 2 is a flow diagram of a preferred embodiment of the method shown in FIG. 1. As shown in fig. 2, in a preferred embodiment, step S16 includes:
s161: generating a voting two-dimensional code according to the unsigned first voting transaction and the voting website information;
s163: and spreading the voting two-dimension code.
The voting website information is used for the second user end to access the voting website displaying a plurality of advertisement information.
Specifically, in this embodiment, the voting users can deeply understand and deeply participate in the voting campaign through the voting website, the sponsor of the voting campaign can recover the campaign cost by placing advertisements on the voting website, and the advertising revenue can be divided into points and distributed to the vote users who register the voting campaign, thereby realizing virtuous circle.
In a preferred embodiment, the registration transaction is further operable to specify an amount of credit the first user authorizes the voting contract to be transferred at about the time the voting transaction was conducted to vote the first user.
In particular, in this embodiment, the user of each registered voting campaign can configure the credit amount for each voting issue at the time of registration of the voting campaign, thereby enhancing the flexibility of incentive issuing.
The preferred embodiment described above, whilst offering the advantage of increased flexibility, also leads to the problem that the voting user cannot determine at the time of the vote the expected value of the incentive that the vote can be taken.
In view of the problem, in a preferred embodiment, the voting two-dimensional code is further generated according to a transaction hash of the registration transaction, and the transaction hash is used for the second user end to query and display the credit amount.
Specifically, the second user side can also obtain transaction hash of the registration transaction when analyzing the voting two-dimensional code, so that the credit amount of an incentive to be obtained by the current voting can be inquired on the block chain according to the transaction hash, the inquired credit amount is displayed to the voting user, and if the voting user feels that the incentive is too little, the voting user can choose not to vote.
The embodiment further configures the transaction hash of the registration transaction in the voting two-dimensional code when allowing the user to self-define the credit amount of the incentive through the registration transaction, so that the voting user can confirm the incentive amount of the current voting before the voting, and the expected value of the incentive obtained by the current voting can be determined by the voting user before the voting.
Fig. 3 is a flowchart of another block chain voting method according to an embodiment of the present invention. The method illustrated in fig. 3 may be performed in conjunction with the method illustrated in fig. 1.
As shown in fig. 3, in the present embodiment, another method for voting a block chain for a user terminal is further provided, including:
s22: analyzing the voting two-dimension code to obtain a first voting transaction; the voting two-dimension code is generated by a first user end according to an unsigned first voting transaction which is voted for a first user in a first voting event registered in a voting contract on a block chain;
s24: and signing the first voting transaction and sending the signature to a block chain node for execution through a voting contract, transferring a plurality of points from an account of the first user to an account of the current user when the voting contract meets the voting condition, and recording the voting of the current user to the first user when the transfer is successful.
The voting principle of the method shown in fig. 3 can refer to the method shown in fig. 1, and is not described herein again.
FIG. 4 is a flow chart of a preferred embodiment of the method shown in FIG. 3. The method illustrated in fig. 4 may be performed in conjunction with the method illustrated in fig. 2.
As shown in fig. 4, in a preferred embodiment, step S22 includes:
s221: analyzing the voting two-dimension code to obtain unsigned first voting transaction and voting website information;
s223: and accessing the voting website displaying a plurality of advertisement information according to the voting website information.
The voting principle of the method shown in fig. 4 can refer to the method shown in fig. 2, and is not described herein again.
FIG. 5 is a flow chart of a preferred embodiment of the method shown in FIG. 3. As shown in fig. 5, in a preferred embodiment, the voting two-dimensional code is further generated based on a transaction hash of a registration transaction of the first user, the registration transaction further specifying an amount of credit the first user authorizes the voting to be contracted to the transfer at the time of executing the voting transaction for voting the first user; step S24 is preceded by:
s23: and inquiring and displaying the credit amount according to the transaction hash.
Fig. 6 is a flowchart of another method for voting according to a block chain according to an embodiment of the present invention. The method illustrated in fig. 6 may be performed in conjunction with the methods illustrated in fig. 1-5.
As shown in fig. 6, in the present embodiment, the present invention further provides a method for voting a blockchain for a blockchain node, including:
s32: executing a registration transaction through the voting contract, and recording registration information of a first user for registering a first voting event on the block chain;
s34: the first voting transaction signed by the second user is executed through the voting contract, a plurality of points are transferred from the account of the first user to the account of the second user when the voting conditions are met, and the voting of the second user for the first user is recorded when the transfer is successful.
The first voting transaction signed by the second user is analyzed by the second user end to obtain the unsigned first voting transaction, then the signature is sent, and the voting two-dimensional code is generated by the first user end to be the unsigned first voting transaction voted by the first user end and then is generated and propagated.
Preferably, the registration transaction is also for specifying an amount of credit the first user authorizes the voting contract to be transferred at about the time the voting transaction was conducted to vote the first user.
The voting principle of the method shown in fig. 6 can also refer to the methods shown in fig. 1-2, and will not be described herein again.
Fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 7, as another aspect, the present application also provides an apparatus 700 including one or more Central Processing Units (CPUs) 701 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM703, various programs and data necessary for the operation of the apparatus 700 are also stored. The CPU701, the ROM702, and the RAM703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each unit may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (11)

1. A method for voting on a block chain, the method being applicable to a user side, the method comprising:
generating a registration transaction and sending the registration transaction to a block chain node for execution through a voting contract, and recording registration information of a first current user registration first voting event on the block chain;
generating an unsigned first voting transaction that votes for the first user;
generating and propagating a voting two-dimensional code according to the first voting transaction so as to be provided for a second user end of a second user:
analyzing the voting two-dimension code to obtain the first voting transaction;
the first voting transaction is signed and sent to a blockchain node for execution through the voting contract, credits are transferred from an account of the first user to an account of the second user when voting conditions are met, and votes of the second user on the first user are recorded when the transfer is successful.
2. The method of claim 1, wherein generating and propagating a voting two-dimensional code from the first voting transaction comprises:
generating a voting two-dimensional code according to the unsigned first voting transaction and the voting website information;
propagating the voting two-dimension code;
the voting website information is used for the second user terminal to access a voting website displaying a plurality of advertisement information.
3. The method of claim 1 or claim 2, wherein the registration transaction is further configured to specify an amount of credit to be transferred by the first user to authorize the voting contract to be approximately at the time of the execution of the voting transaction in which the first user is voted.
4. The method of claim 3, wherein the voting two-dimensional code is further generated according to a transaction hash of the registration transaction, the transaction hash being used for the second user to query and display the credit amount.
5. A method for voting on a block chain, the method being applicable to a user side, the method comprising:
analyzing the voting two-dimension code to obtain a first voting transaction; the voting two-dimension code is generated by a first user end according to an unsigned first voting transaction which is voted for a first user in a first voting event registered in a voting contract on a block chain;
and signing the first voting transaction and sending the signature to a block chain node for execution through the voting contract, transferring a plurality of points from the account of the first user to the account of the current user when the voting conditions are met, and recording the voting of the current user to the first user when the transfer is successful.
6. The method of claim 5, wherein the voting two-dimensional code is generated from the unsigned first voting transaction and voting website information;
the parsing the voting two-dimensional code to obtain the first voting transaction comprises:
analyzing the voting two-dimension code to obtain the unsigned first voting transaction and the voting website information;
and accessing a voting website displaying a plurality of advertisement information according to the voting website information.
7. The method of claim 5 or 6, wherein the voting two-dimensional code is further generated from a transaction hash of a registration transaction of the first user, the registration transaction further specifying an amount of credit to be transferred by the first user to authorize the voting contract to perform a voting transaction for voting the first user;
before the signing and sending the first voting transaction to the blockchain node, the method further comprises:
and inquiring and displaying the credit amount according to the transaction hash.
8. A method for voting in a blockchain, the method being applicable to a blockchain node, the method comprising:
executing a registration transaction through the voting contract, and recording registration information of a first user for registering a first voting event on the block chain;
executing a first voting transaction signed by a second user through the voting contract, transferring a plurality of points from the account of the first user to the account of the second user when the voting conditions are met, and recording the voting of the second user to the first user when the transfer is successful; and the voting two-dimensional code is generated by the first user end and is generated and propagated after the unsigned first voting transaction is generated for the first user voting.
9. The method of claim 8, wherein the registration transaction is further configured to specify an amount of credit that the first user authorizes the voting session to be transferred approximately at the time the voting transaction was conducted to vote the first user.
10. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method recited in any of claims 1-9.
11. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-9.
CN202010177602.XA 2020-03-13 2020-03-13 Block chain voting method, equipment and storage medium Pending CN111353827A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010177602.XA CN111353827A (en) 2020-03-13 2020-03-13 Block chain voting method, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010177602.XA CN111353827A (en) 2020-03-13 2020-03-13 Block chain voting method, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111353827A true CN111353827A (en) 2020-06-30

Family

ID=71197506

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010177602.XA Pending CN111353827A (en) 2020-03-13 2020-03-13 Block chain voting method, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111353827A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784305A (en) * 2021-02-01 2021-05-11 杭州复杂美科技有限公司 Encrypted voting method, computer device, and storage medium
CN112819627A (en) * 2021-02-01 2021-05-18 杭州复杂美科技有限公司 Block chain voting method, computer device and storage medium
CN112968881A (en) * 2021-02-01 2021-06-15 杭州复杂美科技有限公司 Block chain anonymous voting method, computer device and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts
CN107294727A (en) * 2017-05-22 2017-10-24 联动优势科技有限公司 A kind of electronic voting method, terminal device and block chain network
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
CN109472915A (en) * 2018-10-18 2019-03-15 福建兑信科技有限公司 A kind of ballot system based on block chain applied to social intercourse system
CN109618190A (en) * 2018-12-07 2019-04-12 深圳市云歌人工智能技术有限公司 Based on the method, apparatus and storage medium for promoting video setting and acquisition reward
CN110543783A (en) * 2019-08-19 2019-12-06 湖南正宇软件技术开发有限公司 Voting system and implementation method, equipment and storage medium thereof
CN110555724A (en) * 2019-08-27 2019-12-10 北京艾摩瑞策科技有限公司 method and device for sending reward to users of voting platform on blockchain
CN110852735A (en) * 2019-11-06 2020-02-28 杭州复杂美科技有限公司 Help seeking method, device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170140408A1 (en) * 2015-11-16 2017-05-18 Bank Of America Corporation Transparent self-managing rewards program using blockchain and smart contracts
CN107294727A (en) * 2017-05-22 2017-10-24 联动优势科技有限公司 A kind of electronic voting method, terminal device and block chain network
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
CN109472915A (en) * 2018-10-18 2019-03-15 福建兑信科技有限公司 A kind of ballot system based on block chain applied to social intercourse system
CN109618190A (en) * 2018-12-07 2019-04-12 深圳市云歌人工智能技术有限公司 Based on the method, apparatus and storage medium for promoting video setting and acquisition reward
CN110543783A (en) * 2019-08-19 2019-12-06 湖南正宇软件技术开发有限公司 Voting system and implementation method, equipment and storage medium thereof
CN110555724A (en) * 2019-08-27 2019-12-10 北京艾摩瑞策科技有限公司 method and device for sending reward to users of voting platform on blockchain
CN110852735A (en) * 2019-11-06 2020-02-28 杭州复杂美科技有限公司 Help seeking method, device and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112784305A (en) * 2021-02-01 2021-05-11 杭州复杂美科技有限公司 Encrypted voting method, computer device, and storage medium
CN112819627A (en) * 2021-02-01 2021-05-18 杭州复杂美科技有限公司 Block chain voting method, computer device and storage medium
CN112968881A (en) * 2021-02-01 2021-06-15 杭州复杂美科技有限公司 Block chain anonymous voting method, computer device and storage medium

Similar Documents

Publication Publication Date Title
US11144942B2 (en) Information processing method, server, first terminal, and computer storage medium
US11263627B2 (en) Card voucher use system, method, device and server
US20210119785A1 (en) Decentralized protocol for maintaining cryptographically proven multi-step referral networks
CN111353827A (en) Block chain voting method, equipment and storage medium
US20140120886A1 (en) Method, device and mobile terminal utilizing barcodeimages for communication
CN106097023A (en) A kind of data processing method and device
CN112492533B (en) 5G rich media message pushing method and device based on block chain technology
CN103996132A (en) Wedding celebration information service system based on mobile internet
CN107103457A (en) Information processor and electronic billing system
CN105262814A (en) Information push method
CN107249040A (en) Verify device, storage medium, using and system
CN113409078A (en) Point issuing method, device, equipment and storage medium
CN110264275A (en) A kind of self-service advertisement distributing method, system, equipment and readable storage medium storing program for executing
CN107395670A (en) Information push method, device, equipment and computer-readable recording medium
CN108512745B (en) Information dissemination method and system, server and computer readable storage medium
CN107729124A (en) Transaction methods and device, electronic equipment
CN105323288B (en) Network data processing system and method, corresponding server and terminal
CN111127159A (en) Lottery management method, lottery management system, computing device, and medium
TW201222447A (en) Integrated method and system for redeeming bonus point
WO2022146937A1 (en) Universal advertising and rewarding platform using social media
CN111383057A (en) Advertisement putting method, device and storage medium
CN105338076A (en) Information push system
WO2016093456A1 (en) Coupon management server and method for providing coupons having short valid period
US20150193845A1 (en) Method, System and Program Product for Conditional Transfer of Gifts
CN108446926B (en) Data processing method and server

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: 20200630