CN109858961A - Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain - Google Patents

Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain Download PDF

Info

Publication number
CN109858961A
CN109858961A CN201910054506.3A CN201910054506A CN109858961A CN 109858961 A CN109858961 A CN 109858961A CN 201910054506 A CN201910054506 A CN 201910054506A CN 109858961 A CN109858961 A CN 109858961A
Authority
CN
China
Prior art keywords
user
checking card
card
block chain
result
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
CN201910054506.3A
Other languages
Chinese (zh)
Inventor
黄珂
杜杏兰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910054506.3A priority Critical patent/CN109858961A/en
Publication of CN109858961A publication Critical patent/CN109858961A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

The present invention provides a kind of bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain, the information of checking card broadcasted in block chain network by obtaining node of checking card;According to the block chain intelligence contract for checking card information and multiple nodes of checking card are previously added, the result of checking card that node of respectively checking card corresponds to user is obtained, wherein result of checking card indicates the user in the period of respectively checking card and checks card successfully or check card the result of failure;In rewards and punishments end cycle, according to check card result and the block chain intelligence contract of each user, each user is obtained in rewards and punishments period corresponding rewards and punishments result, reward process of entirely checking card is realized based on block chain network, process data, which is pellucidly stored in block chain network, to be distorted and be forged by individual, the fairness for improving the safety for information of checking card and result of checking card prevents bonus maliciously to be occupied, to promote the activity of the user for participating in checking card.

Description

Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain
Technical field
The present invention relates to block chain technical field more particularly to a kind of bonusing method of checking card based on block chain, device, set Standby and readable storage medium storing program for executing.
Background technique
For some activities, such as body-building, study etc. for needing to adhere to for a long time, only by itself being difficult to persevere.It is existing Some users targetedly checked card group by setting up, participated in together by friend, promotion of supervising mutually, mutually drive in a manner of Adhered to.Therefore, how really to be checked card record and the transparent system of rewards and penalties be check card at present during need to solve Certainly the problem of.
The bonusing method of checking card being widely used at present depends on third party tube platform, and user's registration, is beaten at pre-payment Block and get the data generated during the entire process of reward and is grasped and managed by management platform.User needs when needing to check information Information is obtained from management platform.
However, since data are stored, managed and announced by management platform completely, once there is data mistake in management platform Accidentally or data are distorted, and user can not have found as information receiver.Therefore existing bonusing method presence of checking card A possibility that data tampering, management platform storing data is opaque, safety is not high enough.
Summary of the invention
The embodiment of the present invention provides a kind of bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain, It realizes data of checking card to check card the transparence of user to all participations, improves the safety for data of checking card, result of checking card and prize The fairness for punishing result is conducive to the activity for improving user.
The embodiment of the present invention in a first aspect, provide a kind of bonusing method of checking card based on block chain, be used for block link network In network, the block chain network includes multiple nodes of checking card, the corresponding user of node of each checking card;The described method includes:
The information of checking card that node of checking card described in acquisition is broadcasted in the block chain network;
According to the block chain intelligence contract for checking card information and the multiple node of checking card is previously added, obtain each described Node of checking card corresponds to the result of checking card of user, wherein the result of checking card is indicated checks card in the user described in the period that respectively checks card The result of success or failure of checking card;
In rewards and punishments end cycle, result of checking card according to each user and the block chain intelligence contract, Each user is obtained in the rewards and punishments period corresponding rewards and punishments result.
Optionally, in rewards and punishments end cycle, result of checking card according to each user and the block chain intelligence Energy contract obtains each user in the rewards and punishments period corresponding rewards and punishments result, comprising:
By the corresponding user identifier of result of the failure of checking card, as punishment user identifier;
According to the corresponding pre-pay amount of each punishment user identifier, determines that each punishment user identifier is corresponding and punish Fine volume;
By all total values for punishing the corresponding punishment amount of money of user identifier, as total bonus;
By the corresponding user identifier of successful result of checking card, as reward user identifier;
According to the total bonus, the corresponding amount of money award of each reward user identifier is determined.
Optionally, described that the corresponding amount of money award of each reward user identifier is determined according to the total bonus, packet It includes:
It obtains to all pre-stored first cryptographic Hash H1 of user identifier, the first cryptographic Hash H1 is useful Family identifies the cryptographic Hash of corresponding random serial number;
It obtains to the random serial number of the pre-stored user of the reward user identifier;
The random serial number of user corresponding to all reward user identifiers carries out Hash processing, obtains the second Hash Value H2;
Hash processing is carried out to the first cryptographic Hash H1 and the second cryptographic Hash H2, obtains third cryptographic Hash H3;
The difference Ci of the corresponding relatively described third cryptographic Hash H3 of the random serial number of user of each reward user identifier is obtained, Wherein, i=1 ..., N, shown N are the sum of the reward user identifier;
Obtain difference summation CM, wherein CM=C1+C2+C3+ ...+CN;
According to random accounting of the corresponding difference Ci of each reward user identifier in the difference summation CM, with And the total bonus, determine the corresponding amount of money award of each reward user identifier, wherein each reward user identifier pair The random accounting answered is the corresponding distribution of awards accounting of each reward user identifier.
Optionally, described according to the corresponding pre-pay amount of each punishment user identifier, determine each punishment user Identify the corresponding punishment amount of money, comprising:
Punishment percentage, the block chain intelligence contract are determined according to the rewards and punishments period and the block chain intelligence contract Corresponding punishment percentage of each rewards and punishments period is preset;
According to the punishment percentage and the corresponding balances of advance payments of each punishment user identifier, each punishment is obtained User identifier corresponds to the punishment of user as a result, the punishment result is included in each punishment user identifier in the rewards and punishments period The corresponding punishment amount of money.
Optionally, it before the information of checking card that node is broadcasted in the block chain network of checking card described in the acquisition, also wraps It includes:
When receiving from the terminal of user comprising user identifier, pre-payment confirmation message, the application information for time of registering, The random serial number of user is obtained to the user identifier;
Random serial number corresponding to all user identifiers carries out Hash processing, obtains the first cryptographic Hash H1;
User's registration register information is generated into registration registration block, wherein user's registration register information includes user The corresponding user identifier, the pre-payment confirmation message, the registration time and the random serial number of the user;
Block is registered into the registration and the first cryptographic Hash H1 is broadcasted to the block chain network.
Optionally, described to broadcast registration registration block and the first cryptographic Hash H1 to the block chain network Before, further includes:
The corresponding block chain of the block chain intelligence contract is added in the terminal of the corresponding user of the application information In network, so that the terminal of the user is node of checking card new in the block chain network.
Optionally, the information of checking card includes check card moment and the content of checking card of the user;
The block chain intelligence contract for checking card information according to and the multiple node of checking card is previously added obtains each The node of checking card corresponds to the result of checking card of user, comprising:
The block chain intelligence contract being previously added with the multiple node of checking card, judge each user it is described check card the moment and Reach contractual requirement when content of checking card;
If reaching the contractual requirement, obtains the user and check card and successfully check card result;
If the not up to described contractual requirement, obtains the user and check card the result of checking card of failure.
Optionally, it after the information of checking card that node is broadcasted in the block chain network of checking card described in the acquisition, also wraps It includes:
Result of checking card according to each user generation checks card and records block, and described check card is recorded block and broadcasted to institute Block chain network is stated, so that each node of checking card, which receives and stores described check card, records block.
It is optionally, described to obtain each user after the rewards and punishments period corresponding rewards and punishments result, further includes:
By each corresponding user identifier of user and each user identifier in the rewards and punishments period corresponding rewards and punishments result It generates rewards and punishments and records block;
Rewards and punishments record block is broadcasted to the block chain network, so that each node of checking card receives and stores institute State rewards and punishments record block.
The second aspect of the embodiment of the present invention provides a kind of rewarding device of checking card based on block chain, is used for block link network In network, the block chain network includes multiple nodes of checking card, the corresponding user of node of each checking card;Described device includes:
Data obtaining module, the information of checking card broadcasted in the block chain network for obtaining the node of checking card;
It checks card determination module, the block chain intelligence for checking card information according to and the multiple node of checking card is previously added Energy contract obtains the result of checking card that each node of checking card corresponds to user, wherein the result of checking card indicated in week of respectively checking card The interim user checks card successfully or checks card the result of failure;
Rewards and punishments processing module is used for result of checking card according to each user and institute in rewards and punishments end cycle Block chain intelligence contract is stated, obtains each user in the rewards and punishments period corresponding rewards and punishments result.
The third aspect of the embodiment of the present invention provides a kind of terminal, comprising: memory, processor and computer program, In the memory, the processor runs the computer program and executes first party of the present invention for the computer program storage The bonusing method of checking card based on block chain of face and the various possible designs of first aspect.
The fourth aspect of the embodiment of the present invention provides a kind of readable storage medium storing program for executing, is stored in the readable storage medium storing program for executing Computer program, when the computer program is executed by processor for realizing first aspect present invention and first aspect are various can The bonusing method of checking card based on block chain that can be designed.
A kind of bonusing method of checking card, device, equipment and readable storage medium based on block chain provided in an embodiment of the present invention Matter, in block chain network, the block chain network to include multiple nodes of checking card, the corresponding user of node of each checking card; The information of checking card broadcasted in the block chain network by node of checking card described in acquisition;According to the information and described more of checking card The block chain intelligence contract that a node of checking card is previously added obtains the result of checking card that each node of checking card corresponds to user, wherein The result of checking card is indicated checks card successfully or checks card the result of failure in the user described in the period that respectively checks card;In the rewards and punishments period At the end of, result of checking card according to each user and the block chain intelligence contract obtain each user in institute The corresponding rewards and punishments of rewards and punishments period are stated as a result, reward process of entirely checking card realizes that process data is pellucidly deposited based on block chain network Being placed in block chain network cannot be distorted and be forged by individual, improve the justice of the safety for information of checking card and result of checking card Property, prevent bonus maliciously to be occupied, to promote the activity of the user for participating in checking card.
Detailed description of the invention
Fig. 1 is a kind of bonusing method flow diagram of checking card based on block chain provided in an embodiment of the present invention;
Fig. 2 is a kind of optional flow diagram of step S103 in Fig. 1 provided in an embodiment of the present invention;
Fig. 3 is a kind of rewarding device structural schematic diagram of checking card based on block chain provided in an embodiment of the present invention;
Fig. 4 is another rewarding device structural schematic diagram of checking card based on block chain provided in an embodiment of the present invention;
Fig. 5 is a kind of hardware structural diagram of equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Description and claims of this specification and term " first " in above-mentioned attached drawing, " second ", " third " etc. are (such as Fruit presence) it is to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that making in this way Data are interchangeable under appropriate circumstances, so that the embodiment of the present invention described herein can be in addition to illustrating herein Or the sequence other than those of description is implemented.
It should be appreciated that in various embodiments of the present invention, the size of the serial number of each process is not meant to execute sequence It is successive, the execution of each process sequence should be determined by its function and internal logic, the implementation without coping with the embodiment of the present invention Journey constitutes any restriction.
It should be appreciated that in the present invention, " comprising " and " having " and their any deformation, it is intended that covering is not arranged His includes, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to clearly Those of list step or unit, but may include be not clearly listed or for these process, methods, product or equipment Intrinsic other step or units.
It should be appreciated that in the present invention, " multiple " refer to two or more.
It should be appreciated that in the present invention, " B corresponding with A ", " B corresponding with A ", " A and B are corresponding " or " B and A It is corresponding ", it indicates that B is associated with A, B can be determined according to A.It determines that B is not meant to determine B only according to A according to A, may be used also To determine B according to A and/or other information.The matching of A and B is that the similarity of A and B is greater than or equal to preset threshold value.
Depending on context, as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination " or " in response to detection ".
Technical solution of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and the same or similar concept or process may be repeated no more in some embodiments.
The mode that bonusing method is third-party platform management of checking card being widely used at present, the purpose for reward of checking card are, for example, The needs such as getting up early is checked card, movement is checked card, language learning is checked card are daily or the activity of checking card that periodically carries out.Due to user registration, It pays the fees, check card and gets the data generated during the entire process of reward and only manage platform grasp and management, it may be in safety There are hidden danger in terms of fairness, and information is in the presence of a possibility that being tampered.In particular, when managing platform data error, user There is likely to be the risks of loss for data.It is provided by the invention to be based on block in order to solve to exist in the prior art the above problem Bonusing method of checking card, device, equipment and the readable storage medium storing program for executing of chain establish the treatment process for reward of checking card in block chain network On, and using the terminal of participating user as the node of checking card in block chain network, so that information of checking card is checked card for all All be for node it is transparent, can not distort.Reward process of entirely checking card realizes that process data is transparent based on block chain network Ground, which is stored in block chain network, to be distorted and be forged by individual, and the public affairs of the safety for information of checking card and result of checking card are improved Levelling prevents bonus maliciously to be occupied, to promote the activity of the user for participating in checking card.
It is a kind of bonusing method flow diagram of checking card based on block chain provided in an embodiment of the present invention referring to Fig. 1, figure The executing subject of method shown in 1 can be software and/or hardware device, for the convenience of description, with server in following example It is illustrated and illustrates as executing subject.The present embodiment is in block chain network, the block chain network to include more A node of checking card, the corresponding user of node of each checking card.Wherein, the executing subject of the present embodiment can be any section of checking card Point is also possible to the accounting nodes belonged in same block chain network with the multiple node of checking card.For example, in node of checking card The modes such as mine are dug by competition and elect the executing subject for digging mine node as the present embodiment, or otherwise described Executing subject of the node of node or fixation that flowing is determined in multiple nodes of checking card as the present embodiment.In another example with book keeping operation In some embodiments of the node as the executing subject of the present embodiment, accounting nodes can be do not generate information of checking card, for pair Check card node check card data carry out calculation processing node.
It continuing to refer to figure 1, method shown in Fig. 1 includes step S101 to step S103, specific as follows:
S101, the information of checking card that node of checking card described in acquisition is broadcasted in the block chain network.
Node of respectively checking card in block chain network can be understood as the terminal of user, and the terminal of user is by the information of checking card of user Broadcast is to block chain network, so that other nodes can receive its information of checking card.Information of checking card is, for example, user identifier, uses Check card moment and the content of checking card at family.One kind checking card information for example: " Zhang San;2018-12-8,7:00am;Run 2.5km ". Such as the running time of terminal record user automatically forms the broadcast that information of checking card carries out block chain network with running distance.One In a little embodiments, the terminal of user is also possible to generate above-mentioned information of checking card according to the input of user, it is not limited here.
In some embodiments, in order to enable checking card Information Visibility and can not distort, server is executing step S101 It later, can also include: that result generation of checking card according to each user checks card and records block, and described check card is recorded block Broadcast is to the block chain network, so that each node of checking card, which receives and stores described check card, records block.As a result, by each use The information of checking card at family is all stored in node of respectively checking card (terminal of i.e. each user) in the form of checking card and recording block, is realized and is beaten The transparence of card information.
In some embodiments, on the basis of above-mentioned all kinds of embodiments, user can also be executed before step S101 The process of registration, and the transparence of registration register information is realized by reference block chain network in the process.It specifically, can be with It is user by the transmission registration request of respective terminal to server, server is after receiving registration request, to the end of user End pushes the page of paying dues, and user pays dues rear to server transmission application information, and this application information is for example comprising having account of paying dues Single pre-payment confirmation message.Server is received from the terminal of user comprising user identifier, pre-payment confirmation message, registration When the application information of time, the random serial number of user is obtained to the user identifier.Wherein, when server receives application information, Pre-payment confirmation message can also be verified, continue to execute following step if effectively, if verifying is invalid to The terminal at family returns to the information of registration failure.The random serial number of user is, for example, a string of random numbers that server generates.Then, it services Device random serial number corresponding to all user identifiers carries out Hash processing, obtains the first cryptographic Hash H1.With the addition of user, One cryptographic Hash H1 is constantly updated.Then, user's registration register information can be generated registration registration block by server, wherein institute Stating user's registration register information includes the corresponding user identifier of user, the pre-payment confirmation message, the registration time And the random serial number of user.Finally, server by the registration register block and the first cryptographic Hash H1 broadcast to The block chain network.Wherein it is possible to be that block and described first is registered in the registration at the preset closing of entries moment Cryptographic Hash H1 is broadcasted to the block chain network.It is total to thus, it is possible to which the packet name register information of each user is carried out block chain network It enjoys, each user can be in oneself terminal inquiry to complete, register information of accurately registering.
Wherein, it is described by the registration register block and the first cryptographic Hash H1 broadcast to the block chain network it Before, further include the chain extension process of block chain network: specifically, server from the terminal of user receive comprising user identifier, It after pre-payment confirmation message, the application information for time of registering, can be confirmed that the user registers successfully, then need newly to register Block chain network is added in the terminal of user, specifically can be the terminal of the corresponding user of the application information block is added In the corresponding block chain network of chain intelligence contract, so that the terminal of the user is new in the block chain network beats Card node.As a result, block chain network can according to number of applicants number, determine the quantity of node of checking card, and can adjust at any time It is whole.
S102 is obtained according to the block chain intelligence contract for checking card information and the multiple node of checking card is previously added Each node of checking card corresponds to the result of checking card of user.
Wherein, the result of checking card is indicated checks card successfully or checks card the knot of failure in the user described in the period that respectively checks card Fruit.
In some embodiments, for example, the information of checking card includes check card moment and the content of checking card of the user.Step Rapid S102 can specifically include: the block chain intelligence contract being previously added with the multiple node of checking card judges the institute of each user State check card the moment and check card content when reach contractual requirement;If reaching the contractual requirement, obtains the user and check card into The result of checking card of function;If the not up to described contractual requirement, obtains the user and check card the result of checking card of failure.For example, block Chain intelligence contract defines check card cut-off time and the minimum task amount for needing to complete of checking card every time, if the letter of checking card of user The time of checking card for including in breath is later than the task performance of check card cut-off time or content of checking card instruction lower than minimum task Amount, then block chain intelligence contract determines that the user checks card unsuccessfully automatically.If the terminal of the corresponding user of node of checking card is not sent out It checks card out information, then block chain intelligence contract can't detect the information of checking card of the user, and equally be judged to checking card unsuccessfully.
Result of checking card in the present embodiment can be interim as a result, being also possible to total result of checking card.Such as it beats daily Card as a result, either default total period of checking card for example arranges the result of checking card in 1 year.
S103, in rewards and punishments end cycle, result of checking card according to each user and block chain intelligence Contract obtains each user in the rewards and punishments period corresponding rewards and punishments result.
The rewards and punishments period can be it is preset in block chain intelligence contract, such as using every day as a rewards and punishments period, then Determine each user in the rewards and punishments result of every day according to daily result of checking card.In another example with 1 year for a rewards and punishments period, then According to check card situation of each user in 1 year, the rewards and punishments result of each user is determined.
It in some embodiments, after step s 103, can also include the process of block chain network information broadcast: specific Ground can be server each corresponding user identifier of user and each user identifier is corresponding in the rewards and punishments period Rewards and punishments result generates rewards and punishments and records block, then broadcasts rewards and punishments record block to the block chain network, so that each institute It states node of checking card and receives and stores the rewards and punishments record block.It is to be understood that node of respectively checking card in block chain network is all automatic Get complete rewards and punishments as a result, it is possible to achieve accurate rewards and punishments result the whole network (block chain network) notice, not only can be to quilt The user of punishment plays incentive action, moreover it is possible to play the role of encouragement to the user of reward.
On the basis of above-mentioned all kinds of embodiments, the implementation of step S103 can there are many, for example, with reference to Fig. 2, be A kind of optional flow diagram of step S103 in Fig. 1 provided in an embodiment of the present invention, method as shown in Figure 2 mainly include step Rapid S201 is specific as follows to step S205:
S201, by the corresponding user identifier of result of the failure of checking card, as punishment user identifier.
S202 determines each punishment user identifier pair according to the corresponding pre-pay amount of each punishment user identifier The punishment amount of money answered.
Each user has carried out pre-payment in registration, and after failure of checking card, server will check card unsuccessfully from these User pre-pay amount in take off and be partly or entirely included into bonus pool (for rewarding successful user of checking card), and it is real The failure user that now checks card gives transferring accounts for successful user of checking card.
In some embodiments, server determines punishment percentage according to the rewards and punishments period and the block chain intelligence contract Than the block chain intelligence contract has preset corresponding punishment percentage of each rewards and punishments period.For example, in default total period of checking card In (such as 1 year), most users check card in early period and are easy to adhere to, and later period abandonment rate of checking card is higher, then can beat default Multiple rewards and punishments periods (such as one month) are marked off in card total period, each rewards and punishments period includes at least one and checks card the period (such as one day).It is specific for example, punishment percentage in the preceding J rewards and punishments period, less than the punishment hundred in the rear Q rewards and punishments period Point than (J and Q are greater than 0 integer, and the sum of J and Q be less than or equal to preset total period of checking card).Alternatively, with rewards and punishments The timing in period is incremented by, and rewards and punishments percentage is gradually increased.Then, according to the punishment percentage and each punishment user identifier Corresponding balances of advance payments obtain each punishment user identifier and correspond to the punishment of user as a result, the punishment result is included in The corresponding punishment amount of money of each punishment user identifier in the rewards and punishments period.Such as first punishment percentage be 10%, And balances of advance payments are when being 100 yuan, obtaining the corresponding punishment amount of money of each punishment user identifier is 10 yuan, in total 60 punishment use Family mark, then the total value for obtaining the punishment amount of money is 600 yuan.
S203, by all total values for punishing the corresponding punishment amount of money of user identifier, as total bonus.
S204, by the corresponding user identifier of successful result of checking card, as reward user identifier.
S205 determines the corresponding amount of money award of each reward user identifier according to the total bonus.
Specifically, such as server is obtained to all pre-stored first cryptographic Hash H1 of user identifier, and described the One cryptographic Hash H1 is the cryptographic Hash of the corresponding random serial number of all user identifiers.Server is also obtained to the reward user identifier The pre-stored random serial number of user.The random serial number of user is just automatically generated and is stored after each user registers successfully, is introduced The random serial number of user can increase the randomness and interest of amount of money award distribution.Server again marks all reward users Know the corresponding random serial number of the user and carry out Hash processing, obtains the second cryptographic Hash H2;To the first cryptographic Hash H1 and institute It states the second cryptographic Hash H2 and carries out Hash processing, obtain third cryptographic Hash H3.After getting H3, server obtains each reward The difference Ci of the relatively described third cryptographic Hash H3 of the random serial number of the corresponding user of user identifier, wherein i=1 ..., N, shown N For the sum of the reward user identifier.C1, C2, C3 are being got ... after CN, then available difference summation CM, In, CM=C1+C2+C3+ ...+CN.According to the corresponding difference Ci of each reward user identifier in the difference summation Random accounting and the total bonus in CM determine the corresponding amount of money award of each reward user identifier, wherein each The corresponding random accounting of the reward user identifier is the corresponding distribution of awards accounting of each reward user identifier.Example Such as, ratio B1, B2, B3 ... BN, i.e. B1=C1/CM, B2=C2/CM, B3=that each C1, C2, C3 ... CN accounts for CM are obtained C3/CM ..., BN=CN/CM.Then the amount of money award of reward user identifier acquisition is determined according to ratio B1, B2, B3 ... BN In the distribution accounting of whole total bonus, to determine that reward user identifier corresponds to the prize of user's acquisition according to the value of distribution accounting Encourage the amount of money.By determining the distribution accounting of bonus with the random serial number in family and random accounting, the entertainment of distribution of awards is improved And fairness, prevent bonus maliciously to be occupied, thus promoted check card in each the activity of the user, the institute that checks card can also be promoted The liveness of associated application software.
A kind of bonusing method of checking card based on block chain provided in this embodiment is used in block chain network, the block Chain network includes multiple nodes of checking card, the corresponding user of node of each checking card;By checking card node in the area described in acquisition The information of checking card broadcasted in block chain network;According to the block chain intelligence for checking card information and the multiple node of checking card is previously added Energy contract obtains the result of checking card that each node of checking card corresponds to user, wherein the result of checking card indicated in week of respectively checking card The interim user checks card successfully or checks card the result of failure;In rewards and punishments end cycle, according to each user Result of checking card and the block chain intelligence contract obtain each user in the rewards and punishments period corresponding rewards and punishments as a result, whole A reward process of checking card realizes that process data is pellucidly stored in block chain network and cannot be usurped by individual based on block chain network Change and forge, improve the fairness of the safety for information of checking card and result of checking card, bonus is prevented maliciously to be occupied, thus Promote the activity of the user for participating in checking card.
It is a kind of rewarding device structural schematic diagram of checking card based on block chain provided in an embodiment of the present invention referring to Fig. 3, figure Structure shown in 3 is used in block chain network, and the block chain network includes multiple nodes of checking card, and node of each checking card is one corresponding User.Rewarding device 30 of checking card based on block chain shown in Fig. 3 includes:
Data obtaining module 31, the information of checking card broadcasted in the block chain network for obtaining the node of checking card.
It checks card determination module 32, the block chain for checking card information according to and the multiple node of checking card is previously added Intelligent contract obtains the result of checking card that each node of checking card corresponds to user, wherein the result of checking card, which indicates, is respectively checking card User described in period checks card successfully or checks card the result of failure.
Rewards and punishments processing module 33, in rewards and punishments end cycle, result of checking card according to each user and The block chain intelligence contract obtains each user in the rewards and punishments period corresponding rewards and punishments result.
A kind of rewarding device of checking card based on block chain provided in this embodiment is used in block chain network, the block Chain network includes multiple nodes of checking card, the corresponding user of node of each checking card;By checking card node in the area described in acquisition The information of checking card broadcasted in block chain network;According to the block chain intelligence for checking card information and the multiple node of checking card is previously added Energy contract obtains the result of checking card that each node of checking card corresponds to user, wherein the result of checking card indicated in week of respectively checking card The interim user checks card successfully or checks card the result of failure;In rewards and punishments end cycle, according to each user Result of checking card and the block chain intelligence contract obtain each user in the rewards and punishments period corresponding rewards and punishments as a result, whole A reward process of checking card realizes that process data is pellucidly stored in block chain network and cannot be usurped by individual based on block chain network Change and forge, improve the fairness of the safety for information of checking card and result of checking card, bonus is prevented maliciously to be occupied, thus Promote the activity of the user for participating in checking card.
On the basis of the above embodiments, rewards and punishments processing module 33, for by the corresponding use of result of the failure of checking card Family mark, as punishment user identifier;According to the corresponding pre-pay amount of each punishment user identifier, each punishment is determined The corresponding punishment amount of money of user identifier;It is total as bonus by all total values for punishing the corresponding punishment amount of money of user identifier Volume;By the corresponding user identifier of successful result of checking card, as reward user identifier;According to the total bonus, determine The corresponding amount of money award of each reward user identifier.
On the basis of the above embodiments, rewards and punishments processing module 33 deposits all user identifiers for obtaining in advance First cryptographic Hash H1, the first cryptographic Hash H1 of storage is the cryptographic Hash of the corresponding random serial number of all user identifiers;Acquisition pair The random serial number of the pre-stored user of the reward user identifier;To the corresponding user of all reward user identifiers with Machine serial number carries out Hash processing, obtains the second cryptographic Hash H2;The first cryptographic Hash H1 and the second cryptographic Hash H2 is carried out Hash processing, obtains third cryptographic Hash H3;Obtain the corresponding random serial number of user of each reward user identifier relatively described The difference Ci of three cryptographic Hash H3, wherein i=1 ..., N, shown N are the sum of the reward user identifier;Take difference summation CM, wherein CM=C1+C2+C3+ ...+CN;According to the corresponding difference Ci of each reward user identifier in the difference Random accounting and the total bonus in summation CM determine the corresponding amount of money award of each reward user identifier, In, the corresponding random accounting of each reward user identifier is that the corresponding distribution of awards of each reward user identifier accounts for Than.
On the basis of the above embodiments, rewards and punishments processing module 33, for according to the rewards and punishments period and the block chain Intelligent contract determines that punishment percentage, the block chain intelligence contract have preset corresponding punishment percentage of each rewards and punishments period;Root According to the punishment percentage and the corresponding balances of advance payments of each punishment user identifier, each punishment user identifier pair is obtained Using the punishment at family as a result, the punishment result is included in the corresponding punishment of each punishment user identifier in the rewards and punishments period The amount of money.
It referring to fig. 4, is another rewarding device structural schematic diagram of checking card based on block chain provided in an embodiment of the present invention, On the basis of structure shown in Fig. 3, the rewarding device 30 of checking card based on block chain shown in Fig. 4 further include:
It registers processing module 34, described checks card node in the block link network for obtaining in the data obtaining module 31 Before the information of checking card broadcasted on network, when receiving from the terminal of user comprising user identifier, pre-payment confirmation message, registration Between application information when, to the user identifier obtain the random serial number of user;Random serial number corresponding to all user identifiers into The processing of row Hash, obtains the first cryptographic Hash H1;User's registration register information is generated into registration registration block, wherein the user Registration register information includes the corresponding user identifier of user, the pre-payment confirmation message, the registration time and institute State the random serial number of user;Block is registered into the registration and the first cryptographic Hash H1 is broadcasted to the block chain network.
With continued reference to Fig. 4, in the above-described embodiments, can also include:
Block chain adjusts module 35, in the registration processing module 34 by registration registration block and described the One cryptographic Hash H1 is broadcasted to before the block chain network, and the block is added in the terminal of the corresponding user of the application information In the corresponding block chain network of chain intelligence contract, so that the terminal of the user is new in the block chain network beats Card node.
On the basis of the above embodiments, the information of checking card may include the moment and in checking card of checking card of the user Hold.It checks card determination module 32, the block chain intelligence contract for being previously added with the multiple node of checking card judges each user's It is described check card the moment and check card content when reach contractual requirement;If reaching the contractual requirement, obtains the user and check card Successful result of checking card;If the not up to described contractual requirement, obtains the user and check card the result of checking card of failure.
On the basis of the above embodiments, the data obtaining module 31, the node that is also used to check card described in acquisition is in institute After stating the information of checking card broadcasted in block chain network, result of checking card according to each user generation, which is checked card, records block, and Described check card is recorded block and broadcasted to the block chain network, so that each node of checking card receives and stores the note of checking card Record block.
On the basis of the above embodiments, rewards and punishments processing module 33 is also used to obtain each user described described After rewards and punishments period corresponding rewards and punishments result, by each corresponding user identifier of user and each user identifier in the prize It punishes period corresponding rewards and punishments result and generates rewards and punishments record block;Rewards and punishments record block is broadcasted to the block chain network, So that each node of checking card receives and stores the rewards and punishments record block.
It is a kind of hardware structural diagram of equipment provided in an embodiment of the present invention referring to Fig. 5, which includes: place Manage device 51, memory 52 and computer program;Wherein
Memory 52, for storing the computer program, which can also be flash memory (flash).The calculating Machine program is, for example, to realize application program, the functional module etc. of the above method.
Processor 51, for executing the computer program of the memory storage, to realize above-mentioned beating based on block chain Each step that server or accounting nodes execute in card bonusing method.It specifically may refer to the correlation in previous methods embodiment Description.
Optionally, memory 52 can also be integrated with processor 51 either independent.
When the memory 52 is independently of the device except processor 51, the equipment can also include:
Bus 53, for connecting the memory 52 and processor 51.
The present invention also provides a kind of readable storage medium storing program for executing, computer program is stored in the readable storage medium storing program for executing, it is described The reward of checking card based on block chain provided when computer program is executed by processor for realizing above-mentioned various embodiments Method.
Wherein, readable storage medium storing program for executing can be computer storage medium, be also possible to communication media.Communication media includes just In from a place to any medium of another place transmission computer program.Computer storage medium can be general or special Any usable medium enough accessed with computer capacity.For example, readable storage medium storing program for executing is coupled to processor, to enable a processor to Information is read from the readable storage medium storing program for executing, and information can be written to the readable storage medium storing program for executing.Certainly, readable storage medium storing program for executing can also be with It is the component part of processor.Processor and readable storage medium storing program for executing can be located at specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC) in.In addition, the ASIC can be located in user equipment.Certainly, Processor and readable storage medium storing program for executing can also be used as discrete assembly and be present in communication equipment.Readable storage medium storing program for executing can be read-only Memory (ROM), random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
The present invention also provides a kind of program product, the program product include execute instruction, this execute instruction be stored in it is readable In storage medium.At least one processor of equipment can read this from readable storage medium storing program for executing and execute instruction, at least one processing Device executes this and executes instruction so that equipment implements the bonusing method of checking card based on block chain that above-mentioned various embodiments provide.
In the embodiment of above equipment, it should be appreciated that processor can be central processing unit (English: Central Processing Unit, referred to as: CPU), it can also be other general processors, digital signal processor (English: Digital Signal Processor, referred to as: DSP), specific integrated circuit (English: Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional place Manage device etc..It can be embodied directly in hardware processor in conjunction with the step of the method disclosed in the present and execute completion or use Hardware and software module combination in reason device execute completion.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of bonusing method of checking card based on block chain, which is characterized in that be used in block chain network, the block chain network Including multiple nodes of checking card, the corresponding user of node of each checking card;The described method includes:
The information of checking card that node of checking card described in acquisition is broadcasted in the block chain network;
According to the block chain intelligence contract for checking card information and the multiple node of checking card is previously added, each described check card is obtained Node corresponds to the result of checking card of user, wherein the result of checking card is indicated checks card success in the user described in the period that respectively checks card Or the result for failure of checking card;
In rewards and punishments end cycle, result of checking card according to each user and the block chain intelligence contract are obtained Each user is in the rewards and punishments period corresponding rewards and punishments result.
2. the method according to claim 1, wherein in rewards and punishments end cycle, according to the institute of each user State check card result and the block chain intelligence contract, obtain each user in the rewards and punishments period corresponding rewards and punishments as a result, Include:
By the corresponding user identifier of result of the failure of checking card, as punishment user identifier;
According to the corresponding pre-pay amount of each punishment user identifier, the corresponding punishment gold of each punishment user identifier is determined Volume;
By all total values for punishing the corresponding punishment amount of money of user identifier, as total bonus;
By the corresponding user identifier of successful result of checking card, as reward user identifier;
According to the total bonus, the corresponding amount of money award of each reward user identifier is determined.
3. according to the method described in claim 2, determining each reward it is characterized in that, described according to the total bonus The corresponding amount of money award of user identifier, comprising:
Obtaining to all pre-stored first cryptographic Hash H1 of user identifier, the first cryptographic Hash H1 is all users mark Know the cryptographic Hash of corresponding random serial number;
It obtains to the random serial number of the pre-stored user of the reward user identifier;
The random serial number of user corresponding to all reward user identifiers carries out Hash processing, obtains the second cryptographic Hash H2;
Hash processing is carried out to the first cryptographic Hash H1 and the second cryptographic Hash H2, obtains third cryptographic Hash H3;
The difference Ci of the corresponding relatively described third cryptographic Hash H3 of the random serial number of user of each reward user identifier is obtained, In, i=1 ..., N, shown N are the sum of the reward user identifier;
Obtain difference summation CM, wherein CM=C1+C2+C3+ ...+CN;
According to each random accounting for rewarding the corresponding difference Ci of user identifier in the difference summation CM, Yi Jisuo Total bonus is stated, determines the corresponding amount of money award of each reward user identifier, wherein each reward user identifier is corresponding The random accounting is the corresponding distribution of awards accounting of each reward user identifier.
4. according to the method described in claim 2, it is characterized in that, described according to the corresponding prepayment of each punishment user identifier Take the amount of money, determine the corresponding punishment amount of money of each punishment user identifier, comprising:
Determine that punishment percentage, the block chain intelligence contract are default according to the rewards and punishments period and the block chain intelligence contract Each rewards and punishments period corresponding punishment percentage;
According to the punishment percentage and the corresponding balances of advance payments of each punishment user identifier, each punishment user is obtained The punishment of correspondence user is identified as a result, the punishment result is included in each punishment user identifier correspondence in the rewards and punishments period The punishment amount of money.
5. method according to any one of claims 1 to 4, which is characterized in that node of checking card described in the acquisition is in the area Before the information of checking card broadcasted in block chain network, further includes:
When receiving from the terminal of user comprising user identifier, pre-payment confirmation message, the application information for time of registering, to institute It states user identifier and obtains the random serial number of user;
Random serial number corresponding to all user identifiers carries out Hash processing, obtains the first cryptographic Hash H1;
User's registration register information is generated into registration registration block, wherein user's registration register information includes that user corresponds to The user identifier, the pre-payment confirmation message, the registration time and the random serial number of the user;
Block is registered into the registration and the first cryptographic Hash H1 is broadcasted to the block chain network.
6. according to the method described in claim 5, it is characterized in that, described register block and first Kazakhstan for the registration Uncommon value H1 is broadcasted to before the block chain network, further includes:
The corresponding block chain network of the block chain intelligence contract is added in the terminal of the corresponding user of the application information In, so that the terminal of the user is node of checking card new in the block chain network.
7. method according to any one of claims 1 to 4, which is characterized in that the information of checking card includes beating for the user Block moment and content of checking card;
The block chain intelligence contract for checking card information according to and the multiple node of checking card is previously added obtains each described Node of checking card corresponds to the result of checking card of user, comprising:
The block chain intelligence contract being previously added with the multiple node of checking card judges that described check card of each user and is checked card at the moment Reach contractual requirement when content;
If reaching the contractual requirement, obtains the user and check card and successfully check card result;
If the not up to described contractual requirement, obtains the user and check card the result of checking card of failure.
8. method according to any one of claims 1 to 4, which is characterized in that node of checking card described in the acquisition is in the area After the information of checking card broadcasted in block chain network, further includes:
Result of checking card according to each user generation checks card and records block, and described check card is recorded block and broadcasted to the area Block chain network, so that each node of checking card, which receives and stores described check card, records block.
9. method according to any one of claims 1 to 4, which is characterized in that described to obtain each user in the rewards and punishments After period corresponding rewards and punishments result, further includes:
Each corresponding user identifier of user and each user identifier are generated in the rewards and punishments period corresponding rewards and punishments result Rewards and punishments record block;
Rewards and punishments record block is broadcasted to the block chain network, so that each node of checking card receives and stores the prize Punish record block.
10. a kind of rewarding device of checking card based on block chain, which is characterized in that be used in block chain network, the block link network Network includes multiple nodes of checking card, the corresponding user of node of each checking card;Described device includes:
Data obtaining module, the information of checking card broadcasted in the block chain network for obtaining the node of checking card;
It checks card determination module, the block chain for checking card information according to and the multiple node of checking card is previously added intelligently closes About, the result of checking card that each node of checking card corresponds to user is obtained, wherein the result of checking card indicated in the period of respectively checking card The user checks card successfully or checks card the result of failure;
Rewards and punishments processing module is used for result of checking card according to each user and the area in rewards and punishments end cycle Block chain intelligence contract obtains each user in the rewards and punishments period corresponding rewards and punishments result.
11. a kind of equipment characterized by comprising memory, processor and computer program, the computer program are deposited Storage in the memory, the processor run the computer program perform claim require it is 1 to 9 any described based on area The bonusing method of checking card of block chain.
12. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter in the readable storage medium storing program for executing For realizing any bonusing method of checking card based on block chain of claim 1 to 9 when calculation machine program is executed by processor.
CN201910054506.3A 2019-01-21 2019-01-21 Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain Pending CN109858961A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910054506.3A CN109858961A (en) 2019-01-21 2019-01-21 Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910054506.3A CN109858961A (en) 2019-01-21 2019-01-21 Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain

Publications (1)

Publication Number Publication Date
CN109858961A true CN109858961A (en) 2019-06-07

Family

ID=66895446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910054506.3A Pending CN109858961A (en) 2019-01-21 2019-01-21 Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain

Country Status (1)

Country Link
CN (1) CN109858961A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110490590A (en) * 2019-09-27 2019-11-22 腾讯科技(深圳)有限公司 Activation record querying method, device, equipment and storage medium based on block chain
CN110599132A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
CN111013132A (en) * 2019-10-31 2020-04-17 咪咕互动娱乐有限公司 Game control method, device, computer equipment and storage medium
CN111160914A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Block chain-based co-supervision method, device and equipment
CN112287276A (en) * 2020-10-30 2021-01-29 腾讯科技(深圳)有限公司 Data processing method and related device
CN113743997A (en) * 2021-09-18 2021-12-03 中国银行股份有限公司 Online movement task execution method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130262212A1 (en) * 2012-04-02 2013-10-03 Dmitry Shevelenko Punch card loyalty program in a social networking system
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
CN108764857A (en) * 2018-06-08 2018-11-06 北京阿尔山金融科技有限公司 Check card motivational techniques and the punch card system for equipment of checking card
CN108769033A (en) * 2018-05-31 2018-11-06 北京阿尔山金融科技有限公司 Punch card system based on block chain and facility information processing method of checking card
CN109215758A (en) * 2018-11-12 2019-01-15 璧靛箍 A kind of personal health behavioural habits training system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130262212A1 (en) * 2012-04-02 2013-10-03 Dmitry Shevelenko Punch card loyalty program in a social networking system
CN107844993A (en) * 2017-11-01 2018-03-27 曾巨鹏 The block chain management system and method that a kind of body movement promotes
CN108769033A (en) * 2018-05-31 2018-11-06 北京阿尔山金融科技有限公司 Punch card system based on block chain and facility information processing method of checking card
CN108764857A (en) * 2018-06-08 2018-11-06 北京阿尔山金融科技有限公司 Check card motivational techniques and the punch card system for equipment of checking card
CN109215758A (en) * 2018-11-12 2019-01-15 璧靛箍 A kind of personal health behavioural habits training system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯海超: "学习经济学好创业:解读GymPact奖励+自虐模式", 《互联网周刊》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110599132A (en) * 2019-09-24 2019-12-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
CN110599132B (en) * 2019-09-24 2024-02-20 腾讯科技(深圳)有限公司 Method and device for generating reward data and computer readable storage medium
CN110490590A (en) * 2019-09-27 2019-11-22 腾讯科技(深圳)有限公司 Activation record querying method, device, equipment and storage medium based on block chain
CN110490590B (en) * 2019-09-27 2023-12-15 腾讯科技(深圳)有限公司 Activity record query method, device, equipment and storage medium based on block chain
CN111013132A (en) * 2019-10-31 2020-04-17 咪咕互动娱乐有限公司 Game control method, device, computer equipment and storage medium
CN111013132B (en) * 2019-10-31 2023-09-19 咪咕互动娱乐有限公司 Game control method, game control device, computer equipment and storage medium
CN111160914A (en) * 2020-04-02 2020-05-15 支付宝(杭州)信息技术有限公司 Block chain-based co-supervision method, device and equipment
CN112287276A (en) * 2020-10-30 2021-01-29 腾讯科技(深圳)有限公司 Data processing method and related device
CN113743997A (en) * 2021-09-18 2021-12-03 中国银行股份有限公司 Online movement task execution method and device

Similar Documents

Publication Publication Date Title
CN109858961A (en) Bonusing method of checking card, device, equipment and readable storage medium storing program for executing based on block chain
WO2017202336A1 (en) Method and device for preventing fraudulent behavior with respect to advertisement, and storage medium
CN108734565A (en) A kind of reference point is real-time to adjust processing method, device and processing server
CN108985818A (en) Advertisement delivery system and method based on block chain technology
CN106204108A (en) The anti-cheat method of advertisement and the anti-cheating device of advertisement
CN109376008A (en) A kind of distribution method and device of virtual resource
CN109166027A (en) A kind of loaning bill contract processing method and processing device
CN109242484A (en) A kind of common recognition motivational techniques of block chain
CA2658676A1 (en) Novel method of gathering, transferring, and auditing payment information
Baggio et al. Irrigation experiments in the lab: trust, environmental variability, and collective action
Boyen et al. Blockchain-free cryptocurrencies: A framework for truly decentralised fast transactions
CN110288335A (en) Method, system, equipment and the readable medium of credit payment suitable for medical treatment
KR20200028285A (en) Method for providing platform of sport business
CN108830584A (en) Message prompt method, device, server and storage medium
CN110163634A (en) Withdrawing method and device, electronic equipment based on block chain
CN111582864A (en) Block chain data volume certification consensus protocol
CN111737765A (en) Method and device for managing block chain resources
CN114362987A (en) Distributed voting system and method based on block chain and intelligent contract
CN111625594A (en) Countless health data bank carrier method based on block chain technology
KR102192695B1 (en) A method of operating Advertising services system based on Blockchain and a system for implementing the service environment
CN109146574A (en) Ad click cheating monitoring method and device
CN109598365A (en) Event prediction method and device, electronic equipment
CN110706111B (en) Method and device for identifying suspicious transaction account, storage medium and server
JP5427864B2 (en) GAME SYSTEM USING NETWORK AND SERVER DEVICE, COMPUTER PROGRAM, AND CONTENT MANAGEMENT METHOD APPLYING TO THE SYSTEM
CN111105234A (en) Crowd funding platform and method based on block chain

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190607

RJ01 Rejection of invention patent application after publication