A kind of data processing method and device based on block chainTechnical field
The present invention relates to technical field of data processing, and in particular to a kind of data processing method and dress based on block chainIt sets.
Background technique
With emerging one after another for variety show, more and more stars are known to masses.Many entertainment companies are in order to be promotedThe popularity of oneself artist or certain entertainment sites can always carry out certain stars to promote oneself popularity etc.One seniority among brothers and sisters, the star of especially nearest bigger heat.Entertainment sites can be collected such as first: star's bean vermicelli scale, star are livingJerk, star expose the data such as news, star's microblogging transfer amount, star's transmissibility, are calculated by algorithm have by oneself, undocumentedIt obtains the ranking list periodically announced about star's influence power, while mechanism can also be created for star's bean vermicelli, advertising company, video displayDeng offer data reference.
But since the announcement of star's influence power ranking list is carried out in centralization platform, related data and operating processIt is opaque, then the entertainment sites of control are possessed to the centralization platform or individual have to list result intervened withoutIt allows the ability that external staff discovers, thus affects the fairness, fairness, publicity of star's influence power list.For example, certain is brightStar brokerage firm, which can be on the list for star under it and obtain higher ranked, passes through list centralization by behind-the-scenes deal modePlatform distorts the ranking of star's influence power ranking list.Therefore, because controller's tool of centralization platform has the capability that, just it isCertain tissues or personal engage in fraud for selfish ends in the publication of ranking list create chance, and vast bean vermicelli, advertising company, movie and television play is allowed to createMake mechanism etc. and the generation process and result of star's influence power ranking list are distrusted and queried, so as to cause various disputes.In addition,The publication of entire ranking list is carried out in centralization platform, is easy for being broken through by hacker and being influenced system stability and result justTrue property.
Summary of the invention
The purpose of the present invention is to provide a kind of data processing method and device based on block chain, to solve in existingHeart platform is easy the problem of being tampered to the data in star's influence power ranking list.
To achieve the above object, technical solution of the present invention provides a kind of data processing method based on block chain, shouldData processing method based on block chain includes:
Construct block chain according to the data of pre-acquiring, wherein data include influence default identity personnel influence power becauseElement;
When detecting that user carries out ballot selection operation, the targeted default identity personnel of ballot selection operation are determined;
And the matching reward corresponding with the ballot selection operation of user in pre-stored intelligent contract, wherein intelligent contractIt is stored in block chain;
It is adjusted according to factor of the reward to the influence power for influencing default identity personnel;
Influence power is carried out to default identity personnel according to factor adjusted and arranges list, and row's list result is stored to block chainIn.
The present invention has the advantage that the influence power factor that will affect default identity personnel is stored into block chain, it can be withGuarantee that the influence power factor for influencing default identity personnel is not distorted by other people.It is first when detecting the ballot selection operation of userFirst determine the targeted object of user, matching and ballot selection operation in the intelligent contract rule being then pre-stored in block chainCorresponding reward is adjusted the influence power factor for influencing default identity personnel according to reward, finally after the adjustment againRow's list is carried out to the influence power of default identity personnel.It is all to store accordingly result after all process execution by this methodInto block chain, it to guarantee that whole flow process is open and clear, can not be tampered, evade falling criminal and engaged in fraud for selfish ends, orThe problems such as platform is broken through by hacker and influences the correctness of system stability and result.
To achieve the above object, technical solution of the present invention provides a kind of data processing equipment based on block chain, shouldData processing equipment based on block chain includes:
Construction unit, for constructing block chain according to the data of pre-acquiring, wherein data include influencing default identity personnelInfluence power factor;
Processing unit, for when detecting that user carries out ballot selection operation, determining that ballot selection operation is targetedDefault identity personnel;
And the matching reward corresponding with the ballot selection operation of user in pre-stored intelligent contract, wherein intelligent contractIt is stored in block chain;
It is adjusted according to factor of the reward to the influence power for influencing default identity personnel;
Influence power is carried out to default identity personnel according to factor adjusted and arranges list;
Storage unit is stored for that will arrange list result into block chain.
The present invention has the advantage that the influence power factor that will affect default identity personnel is stored into block chain, it can be withGuarantee that the influence power factor for influencing default identity personnel is not distorted by other people.It is first when detecting the ballot selection operation of userFirst determine the targeted object of user, matching and ballot selection operation in the intelligent contract rule being then pre-stored in block chainCorresponding reward is adjusted the influence power factor for influencing default identity personnel according to reward, finally after the adjustment againRow's list is carried out to the influence power of default identity personnel.It is all to store accordingly result after all process execution by this methodInto block chain, it to guarantee that whole flow process is open and clear, can not be tampered, evade falling criminal and engaged in fraud for selfish ends, orThe problems such as platform is broken through by hacker and influences the correctness of system stability and result.
Detailed description of the invention
Fig. 1 is a kind of data processing method flow diagram based on block chain provided in an embodiment of the present invention;
Fig. 2 is a kind of data processing equipment structural diagram based on block chain provided in an embodiment of the present invention.
Specific embodiment
The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention..
Embodiment 1
The embodiment of the present invention 1 provides a kind of data processing method flow diagram based on block chain.Specifically such as Fig. 1 instituteShow, this method may include:
Step 110, block chain is constructed according to the data of pre-acquiring.
Specifically, data include influencing the factor of the influence power of default identity personnel.Influential default identity peopleMember can be star, net red or other included beans vermicelli personnel.It is illustrated by taking star as an example in the present embodiment.It influences brightThe factor of star influence power then may include: current standings, corresponding influence power score and star ID of star's influence power etc..And when constructing block chain, as key after generating corresponding cryptographic Hash using star ID, with influence power score for value, generateOne key-value pair, and key-value pair is stored in Hash table.Its purpose is that, in the rear end of centralization platform, staff instituteOnly cryptographic Hash and the corresponding value value that can be seen, and cannot intuitively know that the corresponding star ID of this cryptographic Hash is assorted?.So thinking that black-box operation is originally difficult to, still more, corresponding data are stored in block chain, can also play can not distortThe effect of.In this way, which it is more fair just to can be entire operation process.
Step 120, when detecting that user carries out ballot selection operation, the targeted default body of ballot selection operation is determinedPart personnel.
Step 130, the matching reward corresponding with the ballot selection operation of user in pre-stored intelligent contract.
Specifically, intelligent contract is stored in block chain.Central platform shows with some form to user to be selectedInfluence power star, such as the front end of centralization platform show influence power star head portrait or photo (its centralization to be selectedThe rear end of platform is corresponding, is star ID), current influence power score, and there are mapping relations with star's head portrait or photoPolling option.
And when detection user carries out ballot selection operation, user's ballot selection operation institute is determined according to mapping relations firstFor star.
Then according to ballot selection operation, matching is opposite with the ballot selection operation of user in pre-stored intelligent contractThe reward answered, certainly, reward here can be score, or be presented as other forms reward relevant to score, and finalScore can be converted to.That is, there are the choosings of corresponding bonus point in intelligent contract rule when user selects corresponding ballot selection operation?.
Optionally, ballot selection operation may include: to be commented on (1 point) to the related news of star, star institute is addedCategory bean vermicelli circle (2 points), the live video (3 points) for watching star or purchase interact duration (4 points) etc. with star's.Certainly,Bonus point number listed above is really the example enumerated, and specific weight needs are set according to actual conditions, and is not done hereExcessive explanation.
Step 140, it is adjusted according to factor of the reward to the influence power for influencing default identity personnel.
Here the factor of the influence power of star is adjusted, practical is exactly to be adjusted to current score.Work as userWhen operating there are any one bonus point described in step 130, then corresponding score can be added on current fraction basis.It certainly, is deduction here if further including deduction operation.
And specifically adjusting process is really the method for calling star's influence power ranking list in intelligent contract rule to executeBe specifically adjusted after mode.
That is, equally defining the method and mode of star's influence power ranking list execution in intelligent contract rule.PacketThe functional based method that the creation in intelligent contract rule increases or decreases star's influence power score is included, star's influence power score is obtainedFunctional based method etc..
In actual operation, user is operated by intelligent terminal, includes multiple nodes, each node in block chainAll backup has identical data, and each intelligent terminal corresponding to user then can be understood as each section on block chainPoint.In practical operation, user carries out ballot selection operation by intelligent terminal, and the rear end of centralization platform passes through external interface tuneIt is interacted with intelligent contract rule, the factor for influencing star's influence power is adjusted.
Step 150, influence power is carried out to default identity personnel according to factor adjusted and arranges list, and will row's list result storageInto block chain.
It is also by the generation in the intelligent contract of calling that it is practical, which to carry out row's list, to star's influence power according to factor adjustedThe functional based method of star's influence power ranking list is realized.
Optionally, before user carries out ballot selection operation, need to realize one account of registration, and will in block chainCorresponding block chain account address is generated, the cryptographic Hash of the block chain account address existence anduniquess.Likewise, star is also required to infuseOne account of volume, block chain account address corresponding with star and corresponding unique Hash are equally stored in block chainValue.And user, when voting selection operation, the rear end of centralization platform can generate corresponding log information, will show in log informationShow the area of the targeted star of the corresponding cryptographic Hash in block chain account address, the ballot selection operation executed and the operation of userThe corresponding cryptographic Hash in block chain account address.In this way, operate will more disclose with it is transparent.
A kind of data processing method based on block chain provided in an embodiment of the present invention, will affect the shadow of default identity personnelThe storage of power factor is rung into block chain, it is ensured that the influence power factor for influencing default identity personnel is not distorted by other people.Work as inspectionWhen measuring the ballot selection operation of user, it is first determined the targeted object of user, the intelligence being then pre-stored in block chainMatching and the corresponding reward of ballot selection operation in contract rule, according to reward to influence to preset the influence power of identity personnel becauseElement is adjusted, and finally carries out row's list to the influence power of default identity personnel again after the adjustment.By this method, all streamAll it is to store accordingly result into block chain after Cheng Zhihang, to guarantee that whole flow process is open and clear, can not be tampered, evadeFall criminal to engage in fraud for selfish ends or the problems such as platform is broken through by hacker and influences the correctness of system stability and result.
Embodiment 2
Corresponding with embodiment 1, the embodiment of the invention also provides a kind of data processing equipment based on block chain, toolsBody is as shown in Fig. 2, the device includes: construction unit 201, processing unit 202 and storage unit.
Construction unit 201, for constructing block chain according to the data of pre-acquiring, wherein data include influencing default identity peopleThe factor of the influence power of member;
Processing unit 202, for when detecting that user carries out ballot selection operation, determining that ballot selection operation is targetedDefault identity personnel;
And the matching reward corresponding with the ballot selection operation of user in pre-stored intelligent contract, wherein intelligent contractIt is stored in block chain;
It is adjusted according to factor of the reward to the influence power for influencing default identity personnel;
Influence power is carried out to default identity personnel according to factor adjusted and arranges list;
Storage unit 203 is stored for that will arrange list result into block chain.
Optionally, in intelligent contract rule further include: the method and mode that default identity personnel influence power ranking list executes;
Processing unit 202, is specifically used for:
The method and mode for calling the default identity personnel influence power ranking list in intelligent contract to execute, according to adjustedFactor carries out influence power to default identity personnel and arranges list.
Optionally, intelligent contract rule further include: the block chain account address of user and the block chain of default identity personnelAccount address, and the block chain account address of user and the block chain account address of default identity personnel are respectively present and are corresponding to itUnique cryptographic Hash.
Optionally, ballot selection operation includes at least one of following or a variety of:
The related news of default identity personnel are commented on, the affiliated bean vermicelli circle of default identity personnel is added, viewing is presetThe live video of identity personnel or purchase interact duration with default identity personnel.
Optionally, the factor for influencing the influence power of default identity personnel includes at least: default identity personnel influence power is worked asPreceding ranking, corresponding influence power score and default identity personnel ID.
Function performed by each component has existed in data processing equipment provided in an embodiment of the present invention based on block chainIt has been described in detail in above-described embodiment 1, therefore is not described in detail here.
A kind of data processing equipment based on block chain provided in an embodiment of the present invention, will affect the shadow of default identity personnelThe storage of power factor is rung into block chain, it is ensured that the influence power factor for influencing default identity personnel is not distorted by other people.Work as inspectionWhen measuring the ballot selection operation of user, it is first determined the targeted object of user, the intelligence being then pre-stored in block chainMatching and the corresponding reward of ballot selection operation in contract rule, according to reward to influence to preset the influence power of identity personnel becauseElement is adjusted, and finally carries out row's list to the influence power of default identity personnel again after the adjustment.By this method, all streamAll it is to store accordingly result into block chain after Cheng Zhihang, to guarantee that whole flow process is open and clear, can not be tampered, evadeFall criminal to engage in fraud for selfish ends or the problems such as platform is broken through by hacker and influences the correctness of system stability and result.
Embodiment 3
In addition, being stored thereon with computer program the embodiment of the invention also provides a kind of computer readable storage mediumInstruction, the program instruction realize the method and step of above-described embodiment 1 when being executed by processor.
Although above having used general explanation and specific embodiment, the present invention is described in detail, at thisOn the basis of invention, it can be made some modifications or improvements, this will be apparent to those skilled in the art.Therefore,These modifications or improvements without departing from theon the basis of the spirit of the present invention are fallen within the scope of the claimed invention.