CN108629588A - A kind of computer-readable medium reached for block chain common recognition - Google Patents

A kind of computer-readable medium reached for block chain common recognition Download PDF

Info

Publication number
CN108629588A
CN108629588A CN201810438051.0A CN201810438051A CN108629588A CN 108629588 A CN108629588 A CN 108629588A CN 201810438051 A CN201810438051 A CN 201810438051A CN 108629588 A CN108629588 A CN 108629588A
Authority
CN
China
Prior art keywords
block chain
chain node
value
common recognition
node
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.)
Granted
Application number
CN201810438051.0A
Other languages
Chinese (zh)
Other versions
CN108629588B (en
Inventor
张焱
施逸
田宝同
邓晓军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Da Pu Hui Couplet Technology Co Ltd
Original Assignee
Hefei Da Pu Hui Couplet 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 Hefei Da Pu Hui Couplet Technology Co Ltd filed Critical Hefei Da Pu Hui Couplet Technology Co Ltd
Priority to CN201810438051.0A priority Critical patent/CN108629588B/en
Publication of CN108629588A publication Critical patent/CN108629588A/en
Application granted granted Critical
Publication of CN108629588B publication Critical patent/CN108629588B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash

Abstract

A kind of computer-readable medium reached for block chain common recognition, is stored thereon with executable instruction, which makes processor execute following method when being executed by processor:The election data that the block chain node with the first account balance and/or the second account balance is sent out is received, election data includes the information for the selected block chain node of block chain node for sending out election data;Based on the inscribed election data received of this round, common recognition block chain link point is determined from the selected block chain node of each election data so that common recognition block chain link point executes block packaging operation in a new round time.Numerical value in the first account and the second account of each block chain node characterizes the quantity of the quantity and possessed ballot paper of digital cash possessed by the block chain node respectively.The advantages of invention, is:The decentralization feature of block chain network can be largely maintained under the premise of not wasting the calculation power resource of block chain node.

Description

A kind of computer-readable medium reached for block chain common recognition
Technical field
The present invention relates to Internet technical fields, more particularly, to a kind of computer reached for block chain common recognition Readable medium.
Background technology
Block chain technology is a kind of distributed book keeping operation technology can not distort with it with decentralization, believe without third party Appoint the advantages of assuring and earns widespread respect.The characteristics of due to the storage of block chain technology distribution formula and decentralization, mechanism of knowing together It is particularly important in block chain technology.What is be wherein widely known has proof of work (Proof of Work) common recognition machine System, equity prove that (Proof of Stake) common recognition mechanism and commission equity prove (Delegated Proof of Stake) altogether Knowledge mechanism.
During realizing present inventive concept, inventor has found that at least there are the following problems in the prior art:Workload Prove that common recognition mechanism needs to expend a large amount of calculation power resource, and equity proves that common recognition mechanism and commission equity prove common recognition mechanism all There are problems that a degree of centralization, the block chain node due to producing block data structures in block chain network can obtain Token reward is obtained, based in above two common recognition mechanism, initially holding the block chain node more than token can more be produced The chance of block data structures, to obtain more tokens, this results in block chain network and increasingly tends to centralization.
Invention content
In view of this, the present invention provides a kind of computer-readable medium reached for block chain common recognition, store thereon There is executable instruction, which makes processor execute following method when being executed by processor:
The election data that block chain node of the reception with the first account balance and/or the second account balance is sent out, every Election data includes:Send out the information of the selected block chain node of block chain node of the election data;Based in this round The election data received determines common recognition block chain link point from the selected block chain node of each election data so that institute is really Fixed common recognition block chain link point executes block packaging operation in a new round time.
Wherein, the numerical value in the first account of each block chain node is digital possessed by the block chain node for characterizing The quantity of currency, the numerical value in the second account of each block chain node is for characterizing ballot paper possessed by the block chain node Quantity.
Optionally, the method further includes:The Transaction Information that block chain link point is sent out is received, whether judges the Transaction Information Meet preset condition, is that then determining first numerical value, the first numerical value are used to characterize to as the corresponding product of above-mentioned Transaction Information Increased numerical value in second account of the block chain node of provider;Identified first numerical value is sent to other block chain links Point, so that first numerical value is stored in corresponding block chain database by each block chain node.
Optionally, above-mentioned to judge whether Transaction Information meets preset condition and include:Judge the corresponding product of Transaction Information Whether consumable resource is belonged to;It is then, whether to monitor the corresponding product of the Transaction Information by corresponding as the Transaction Information The block chain node use of product purchaser finishes, and is that the determining Transaction Information meets preset condition.
Optionally, consumable resource includes at least one of following:Network flow data resource, the calculation power resource of processor. And/or whether the corresponding product of above-mentioned monitoring Transaction Information is by as the corresponding product purchaser of the Transaction Information Block chain node use finish including:The transaction feedback information sent as the block chain node of product purchaser is received, Judge whether product is finished by the block chain node use according to transaction feedback information;Alternatively, acquisition product uses day Will judges whether product is used by the block chain node as product purchaser according to the usage log and finishes.
Optionally, Transaction Information includes at least the information of product, the information of product provider, product purchaser Information thrin.
Optionally, every election data further includes:Second value and/or third value.Each block chain node is sent out The election data gone out, the summation of the second value in election data are not more than the first account balance of the block chain node, election The summation of third value in data is not more than the second account balance of the block chain node.
The method further includes the weight of the weight and third value that obtain second value;It is then above-mentioned inscribed based on this round The election data received determines that common recognition block chain link point includes from the selected block chain node of each election data:Statistics is originally The summation and this round of the corresponding second value of each selected block chain node in the election data received in round The summation of the corresponding third value of each selected block chain node in the election data inside received;It is selected for each Block chain node, according to the weight and the block of the summation of the corresponding second value of block chain node and second value The weight of the summation and third value of the corresponding third value of chain node obtains the election score value of the block chain node;According to choosing Score value selected block chain link point from the high to low inscribed election data received to this round is lifted to be ranked up, it is pre- before determining If the block chain node of quantity is common recognition block chain link point so that identified common recognition block chain link point in a new round is secondary according to Preset rules execute block packaging operation successively.
Optionally, the weight of the weight and third value that obtain second value includes:Count the inscribed choosing received of this round Lift the summation of second value and the summation of third value in data;Determine the weight of second value and the weight of third value, Make satisfaction:The product of the summation of second value and the weight of second value is equal to the weight of the summation and third value of third value Product.
Optionally, the method further includes:For sending out each block chain node of election data, the 4th numerical value is determined, The summation of third value in the election data that 4th numerical value is sent out equal to the block chain node in this round, the described 4th Numerical value is used to characterize the numerical value of the reduction from the second account of the block chain node;4th numerical value is sent to other blocks Chain node, so that the 4th numerical value is stored in corresponding block chain database by each block chain node.
Optionally, the method further includes:After determining the common recognition block chain link point of predetermined quantity, for each common recognition Block chain node, generates unduplicated random number so that each common recognition block chain link point is in a new round time according to corresponding random Several sequences executes the block packaging operation of preset times successively.
Beneficial effects of the present invention:
(1) present invention can solve at least partly/mitigation/inhibits/or even avoid the prior art to reach block chain total The problem of needing meaninglessly to consume a large amount of calculation power resources of block chain link point during knowledge, and can solve at least partly Certainly/mitigation/inhibition/in addition avoid the prior art during reaching block chain common recognition generated digital cash in a small number of areas The centralization development trend assembled in block chain node, being capable of very great Cheng under the premise of not wasting the calculation power resource of block chain node The decentralization feature of block chain network is maintained on degree.
(2) present invention utilizes the characteristics that consumable resource can not be reused so that the Transaction Information of consumable resource It can not be then recorded on another bifurcated chain again after being recorded on a bifurcated chain of block chain database, so that making For product provider block chain node in order to ensure the Transaction Information of oneself is confirmed by each block chain node and is stored in area In block chain database, only selection is preserved into corresponding Transaction Information by the following bifurcated chain that can become most long-chain, due to conduct This selection of the block chain node of product provider results in block chain database making in addition to most long-chain remaining chain Greatly reduced with rate.In addition, if block chain database generates a plurality of bifurcated chain, each block chain node is gathered around based on different bifurcated chains There is the digital cash of identical quantity, and due to the characteristic that consumable resource can not be reused again, causes to provide consumable resource Block chain node will be in a disadvantageous position, therefore as the block chain link point of product provider for protect oneself interests mesh , the common recognition block chain link point for producing block data structures can strictly be monitored, in the block chain link as product provider Point selection common recognition district block chain node when, will not select those to a plurality of bifurcated chain simultaneously maintenance common recognition block chain link point.For The reason of in terms of two above, the present invention, which can improve, improves account book bifurcation problem.
Description of the drawings
Fig. 1 is diagrammatically illustrated according to the ... of the embodiment of the present invention can be known together with application block chain and reaches showing for method and apparatus Example sexual system framework;
Fig. 2 diagrammatically illustrates the flow chart that block chain common recognition according to the ... of the embodiment of the present invention reaches method;
Fig. 3 diagrammatically illustrates the block diagram that block chain common recognition according to the ... of the embodiment of the present invention reaches device;
Fig. 4 diagrammatically illustrates the block diagram that block chain common recognition according to another embodiment of the present invention reaches device;
Fig. 5 diagrammatically illustrates the box of the computer system according to the ... of the embodiment of the present invention reached for block chain common recognition Figure.
Specific implementation mode
Hereinafter, will be described with reference to the accompanying drawings the embodiment of the present invention.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present invention.In the following detailed description, it for ease of explaining, elaborates many specific thin Section is to provide the comprehensive understanding to the embodiment of the present invention.It may be evident, however, that one or more embodiments are not having these specific thin It can also be carried out in the case of section.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid Unnecessarily obscure idea of the invention.
Term as used herein is not intended to limit the present invention just for the sake of description specific embodiment.It uses herein The terms "include", "comprise" etc. show the presence of the feature, step, operation and/or component, but it is not excluded that in the presence of Or other one or more features of addition, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without should by idealization or it is excessively mechanical in a manner of explain.
It, in general should be according to this using " in A, B and C etc. at least one " such statement is similar to Field technology personnel are generally understood the meaning of the statement to make an explanation (for example, " with system at least one in A, B and C " Should include but not limited to individually with A, individually with B, individually with C, with A and B, with A and C, with B and C, and/or System etc. with A, B, C).Using " in A, B or C etc. at least one " such statement is similar to, it is general come Say be generally understood the meaning of the statement to make an explanation (for example, " having in A, B or C at least according to those skilled in the art One system " should include but not limited to individually with A, individually with B, individually with C, with A and B, with A and C, have B and C, and/or system etc. with A, B, C).It should also be understood by those skilled in the art that substantially arbitrarily indicating two or more The adversative conjunction and/or phrase of optional project shall be construed as either in specification, claims or attached drawing It gives including one of these projects, the possibility of these projects either one or two projects.For example, phrase " A or B " should It is understood to include the possibility of " A " or " B " or " A and B ".
Fig. 1 is diagrammatically illustrated according to the ... of the embodiment of the present invention can be known together with application block chain and reaches showing for method and apparatus Example sexual system framework.It should be noted that be only the example for the system architecture that can apply the embodiment of the present invention shown in Fig. 1, with The technology contents of the present invention are helped skilled in the art to understand, but are not meant to that the embodiment of the present invention may not be usable for other Equipment, system, environment or scene.
As shown in Figure 1, according to this embodiment system architecture 100 may include block chain node 101,102,103,104, 105,106,107,108 ... (being not shown in other block chain node diagrams) constitutes block link network by this multiple block chain node Network, each block chain node correspond to a block chain database, this multiple block chain link point forms one and is distributed in the whole world respectively Ground, the database storage system that can cooperate with operating, each block chain node is enjoyed orders the same power with other all block chain links Profit and obligation, each block chain node can determine that some block chain nodes are used as common recognition block chain link by certain common recognition mechanism Point, any one common recognition block chain link point are written and read operation in its corresponding block chain database, other block chain nodes It can complete to synchronize according to certain mechanism, to realize the corresponding block chain database of all block chain nodes in block chain network In data it is completely the same.
This multiple block chain node is the server for being deployed in all parts of the world respectively, and each block chain node can be service Device or server cluster, server/server cluster can be to provide the server/server cluster of various services, such as right User provides the back-stage management server (merely illustrative) supported using the website that terminal device is browsed.Back-stage management server Can the data such as user's request for receiving analyze etc. with processing, and by handling result (such as according to user's acquisition request Or webpage, information or the data etc. generated) feed back to terminal device.
It should be understood that the number of the block chain node shown in Fig. 1 is only schematical.According to needs are realized, can have There is any number of block chain node.
Fig. 2 diagrammatically illustrates the flow chart that block chain common recognition according to the ... of the embodiment of the present invention reaches method.
As shown in Fig. 2, this method is included in operation S201, receiving has the first account balance and/or the second account balance The election data that sends out of block chain node.
It needs predeclared to be that the numerical value in the first account of each block chain node is for characterizing the block chain node The quantity of possessed digital cash, the numerical value in the second account of each block chain node is for characterizing the block chain node institute The quantity for the ballot paper having.Block chain node with the first account balance refers to the block chain node for holding digital cash, tool Have the block chain node of the second account balance refer to refer to the block chain node for holding ballot paper, then operate the choosing received in S201 Lifting the source of data can be:The block chain node for holding digital cash holds the block chain node of ballot paper, had both held digital goods Coin holds the block chain node of ballot paper again.Wherein digital cash is that circulated ideal money is traded in block chain network, And ballot paper is the ideal money different from digital cash that block chain node is issued to according to certain rule.
In this operation, election data is used to characterize the block chain link point for sending out the election data and selects other block chain Node carries out the event of vote by ballot, and the every election data received includes:Send out the block chain node of the election data The information of selected block chain node.For example, block chain node A sends out an election data, which includes area The information of the selected block chain node B of block chain node A indicates that block chain node A selection block chain nodes B carries out vote It lifts.
Then, in operation S202, based on the inscribed election data received of this round, from the selected block of each election data Common recognition block chain link point is determined in chain node so that the common recognition block chain link point executes block in a new round time and is packaged behaviour Make.
As it can be seen that method shown in Fig. 2 determines common recognition block chain link point by the election data that each block chain node is sent out, Specifically, the block chain node for sending out polled data is the block chain node for holding ballot paper and/or digital cash, in election data Including the information of the selected block chain node of block chain node of election data is sent out, from each election data in a round Common recognition block chain link point is determined in selected block chain node.With the scheme phase for determining common recognition block chain link point in the prior art Than this programme need not consume the calculation power resource of block chain link point, and since this programme passes through two kinds of sides of ballot paper and digital cash Formula exerts one's influence to the election permission of block chain node, can be effectively prevented from block chain common recognition towards digital cash in a small number of areas The centralization trend development assembled in block chain node maintains the decentralization feature of block chain network.
In one embodiment of the invention, method shown in Fig. 2 further includes before operating S201:Receive block chain The Transaction Information that node is sent out;Judge whether received Transaction Information meets preset condition, is then determining first numerical value;By institute The first determining numerical value is sent to other block chain nodes, is respectively corresponded to so that first numerical value is stored in by each block chain node Block chain database in.Wherein, the first numerical value is for characterizing to the block as the corresponding product provider of Transaction Information Increased numerical value in second account of chain node.Present embodiment describes the scheme that ballot paper is provided to block chain node, transaction letters Cease the information for the event being traded between block chain node, in varied situations, the block chain as product provider Node can be that full node can also be light node, and the block chain node as product purchaser can be that full node can also It is light node;Full node is to be able to carry out block data structures packaging operation, be able to carry out data recording operation, can run intelligence The block chain node of energy contract, and light node can not execute block data structures packaging operation and data recording operation and can not transport Row intelligence contract, but no matter full node or light node, may have the first account and the second account.
The Transaction Information that block chain node is sent out includes at least one of following:The information of product, product provider Information, the information of product purchaser.When judging that Transaction Information meets preset condition, to the area as product provider Block chain node provides the ballot paper of the first numerical value.It, can be by the mark as the block chain node of product provider when providing ballot paper Know information and identified first numerical value is broadcasted together to each block chain node so that respectively each area with data recording capability Block chain node will correspond to as the identification information of the block chain node of product provider and the first numerical value and be stored in respective block In chain database, all uniformly to have recorded the mark as the block chain node of product provider in each block chain database The correspondence of information and the first numerical value uniformly has recorded characterization to second of the block chain node as product provider Account increases the information of the first numerical value, which will not be tampered on block chain database.
In one embodiment of the invention, above-mentioned to judge whether Transaction Information meets preset condition and include:It first determines whether Whether the corresponding product of Transaction Information belongs to consumable resource, when product belongs to consumable resource, then monitors transaction letter It ceases corresponding product and whether is used by the block chain node as the corresponding product purchaser of the Transaction Information and finished, if Corresponding product is used by the block chain node as product purchaser to be finished, and determines that the Transaction Information meets default item Part.
Specifically, consumable resource refers to once being used the resource that will do not existed, such as can be network flow number It is one or more according to resource, the calculation power resource of processor etc..In the present embodiment, consumable resource is directly in block chain network Block chain node between be traded, the block chain node as product provider provides merchandised consumable resource, Block chain node as product purchaser uses merchandised consumable resource, indicates that transaction is completed using finishing.I.e. In the present embodiment, for the transaction of consumable resource, when the transaction is complete, can according to the quantity and/or quality of product, Determine the first numerical value is specially how many, the block chain node to providing consumable resource provides the ballot paper of the first numerical value, to provide The block chain node participates in the permission of election common recognition block chain link point.
Comparatively, equity in the prior art proves that common recognition mechanism and commission equity prove that common recognition mechanism easy tos produce account This bifurcation problem (nothing-at-stake problem), so-called account book bifurcation problem refer in some special cases, such as Network delay, some block chain malicious behaviors of nodes for producing block data structures change block data structures chain and enter block chain data knot The reasons such as the position of structure lead to occur bifurcated in block chain database, that is, form two different chains.Although being advised in common recognition mechanism Fixed all block chain nodes should produce block data structures on most long-chain, but since which chain can become most long-chain in future With uncertainty, so currently the block chain node of production block data structures is in order to which by the benefit of oneself, having can Can simultaneously block data structures be produced on two different chains, and this decision may result in and have forever in block chain database The problem of a plurality of bifurcated exists simultaneously.And the characteristic that consumable resource can not be reused is utilized in the scheme of above-described embodiment, So that the Transaction Information of consumable resource then can not be again at another after being recorded on a bifurcated chain of block chain database It is recorded on bifurcated chain, so that the block chain node as product provider is each in order to ensure the Transaction Information of oneself Block chain node confirms and is stored in block chain database, and only selection is preserved by the following bifurcated chain that can become most long-chain Corresponding Transaction Information results in block chain database due to this selection of the block chain node as product provider In in addition to most long-chain the utilization rate of remaining chain greatly reduce.In addition, if block chain database generates a plurality of bifurcated chain, Mei Gequ Block chain node possesses the digital cash of identical quantity based on different bifurcated chains, and can not be reused again due to consumable resource Characteristic causes the block chain node for providing consumable resource that will be in a disadvantageous position, therefore as the block chain of product provider Node can strictly monitor the common recognition block chain link point for producing block data structures, make for the purpose for protecting oneself interests When selecting common recognition district block chain node for the block chain link point of product provider, those will not be selected to a plurality of bifurcated chain while being tieed up The common recognition block chain link point of shield.The reason of in terms of two above, above-described embodiment, which can improve, improves account book bifurcation problem.
In one embodiment of the invention, when determining that Transaction Information belongs to consumable resource, above-mentioned monitoring transaction letter It ceases corresponding product and whether is used to finish by the block chain node as the corresponding product purchaser of Transaction Information and at least wrap Include following two modes:The transaction feedback information sent as the block chain node of product purchaser is received, according to the transaction Feedback information judges whether product is used by the block chain node as product purchaser and finishes.Alternatively, obtaining transaction The usage log of object judges whether product has been used by the block chain node as product purchaser according to the usage log Finish.
Illustratively illustrate that above-described embodiment, block chain node A are handed over block chain node B with a specific example Easily, product is network flow data resource, and product provider is block chain node A, and product purchaser is block chain link Point B, block chain node A are full node, and block chain node B is light node, and block chain node B block chain node A to be used are provided Network flow data resource.The Transaction Information that block chain link point A is sent out is received, which includes Rule section:Transaction Network flow data resource mass parameter, quantity, price, the information of block chain node A, the information of block chain node B.It is excellent Selection of land, Transaction Information further include the digital signature of Transaction Information, and the digital signature of Transaction Information includes the first digital signature and the Two digital signature, the first digital signature are that the Rule section of private key and Transaction Information based on block chain node B generates, second Digital signature is that the Rule section of private key based on block chain node A, the first digital signature and Transaction Information generates.Receive area The public key pair that the block chain node for the Transaction Information that block chain node A is sent out passes through the public key and block chain node B of block chain node A The digital signature of Transaction Information is verified, and is verified and is illustrated that the Transaction Information is authentic and valid, since product is net Network data on flows resource, that is, consumable resource triggers the ballot paper granting intelligence contract being deployed in block chain database and is held currently It is run in the block chain node of row block data structures packaging operation, which tracks and confirm block chain link Point B is to the service condition of network flow data resource, and at the end of use, ballot paper granting intelligence contract is remembered according in Transaction Information The mass parameter and quantity of the network flow data resource of record, determine the first numerical value, and the information of block chain node A and first are counted Value is sent to each block chain node so that each block chain node by know together verify after by the information and first of block chain node A Numerical value, which corresponds to, to be preserved into respective block chain database, indicates to increase by the first numerical value into the second account of block chain node A Ballot paper.
In one embodiment of the invention, the block chain node with the first account balance and/or the second account balance The information of block chain node selected block chain node of the every election data sent out in addition to sending out the election data it Outside, further include:Second value and/or third value.Wherein, the election data sent out for each block chain node, the election The summation of second value in data is not more than the first account balance of the block chain node, the third value in the election data Summation be not more than the block chain node the second account balance.That is, the second number included in an election data Value characterizes the quantity of the digital cash in conducting an election the first launched account using this election data, this elects number The third value included in characterizes the ballot paper in conducting an election the second launched account using this election data Quantity.Each block chain node includes not only selected in the election data sent out during block chain link point is known together in election The information for the block chain node selected further includes sending out the block chain node of the election data to be used when selecting other block chains Digital cash and/or ballot paper quantity, it is seen then that only when holding digital cash and/or ballot paper, block chain node just has money Lattice send out election data, i.e. digital cash and ballot paper influences the election permission of block chain link point in terms of two.
After receiving the election data that each block chain node is sent out in this round, in order to be based on, this round is inscribed to be received The election data arrived determines common recognition block chain link point from the selected block chain node of each election data, needs first to obtain the The weight of two numerical value and the weight of third value.In an embodiment of the present invention, the weight characterization digital cash of second value exists Conduct an election shared weight under scene, and the weight of third value characterizes ballot paper weight shared under the scene that conducts an election.Then S202 is operated in Fig. 2 based on the inscribed election data received of this round, from the selected block chain node of each election data really Surely common recognition block chain link point includes:
In operation S2021, counts each selected block chain node in the inscribed election data received of this round and correspond to Second value summation and the inscribed election data received of this round in each selected block chain node corresponding the The summation of three numerical value.
In operation S2022, for each selected block chain node, according to the corresponding second value of block chain node Summation and second value the weight and corresponding third value of block chain node summation and third value weight, Obtain the election score value of the block chain node.
It is selected from the high to low inscribed election data received to this round according to election score value in operation S2023 Block chain link point is ranked up, and the block chain node of preset quantity is common recognition block chain link point before determining so that the common recognition district Block chain node executes block packaging operation according to preset rules successively in a new round time.
For example, in the inscribed election data received of this round, the election data of block chain node A is selected to have one or more Item selects the election data of block chain node B to have one or more, and the election data of block chain node C is selected to have one or more Item.For selected block chain node A, statistics selects the summation of the second value in the election data of block chain node A, i.e., The total quantity of digital cash used in the election data of statistics selection block chain node A, and statistics selection block chain node A Election data in third value summation, i.e., ballot paper used in the election data of statistics selection block chain node A is total Quantity, as all selection block chain node A election datas in second value summation be x, third value summation be y.It is right Each in selected block chain node B and C, similarly also calculates the summation and third number of corresponding second value The summation of value.
Know that the weight of second value is a, the weight of third value is b.For selected block chain node A, root According to the summation of the corresponding second value of block chain node and the weight of second value and the corresponding third of block chain node The summation of numerical value and the weight of third value can obtain the election score value L (A) of block chain node A in the following way:
L (A)=a × x+b × y
Similarly, it can calculate the election score value L's (B) and selected block chain node C of selected block chain node B Elect score value L (C).Selected block chain link in the election data received is inscribed to this round from high to low according to election score value Point is ranked up, it is assumed that ranking results are L (A) > L (C) > L (B), and expression selects block chain node A as common recognition block chain link Total weight that total weight of the election data of point is more than the election data for selecting block chain node C as common recognition block chain link point is big In select block chain node B as common recognition block chain link point election data total weight.The preceding 2 corresponding block chain links of selection Point A, C are common recognition block chain link point so that common recognition block chain link point A and C is executed in a new round time according to preset rules successively Block packaging operation, such as in a new round time, when taking turns to block chain node A and executing block packaging operation, block chain node A from Data are read in pending memory pool and will be packaged as block data structures chain by the data of verification enters block chain node A correspondences Block chain database in, and broadcast and inform other block chain nodes so that other block chain nodes are by same block data Structure synchronization ground chain enters in corresponding block chain database, realizes the unified update of block chain database.Take turns to block chain Node B executes block packaging operation similarly, repeats no more.
In the above-described embodiments, each implementation process involved in the operation S201-S202 of method shown in Fig. 2 can be by portion The election intelligence contract affixed one's name in block chain database executes.When prespecified election condition meets, round week is such as provided At the end of phase, regulation block height is when reaching etc., elects intelligent contract to be triggered and starts to execute as described in above each embodiment Receive election data, based on election data determine common recognition block chain link point operation.It should be noted that being noted above Various intelligence contracts, such as ballot paper provide intelligent contract, the intelligent contract of election, and intelligent contract is substantially the execution that can be triggered Code, be usually preset in block chain database.And the intelligent contract stored in block chain database is difficult to be tampered, thus Intelligent contract just can be used for executing preset code logic, and implementation procedure is not by block chain node intervention.Implement in this specification In example, different code logics is executed using intelligent contract, wherein different code logics can be in multiple and different operations It is executed, can also be executed by same intelligent contract by different intelligent contracts, it is without limitation.In short, intelligent contract Effect be to ensure that block chain node executes preset code logic, prevent block chain node from doing evil.
By above-described embodiment it is found that the weight of second value and the weight of third value can influence voting results, therefore This programme can elect digital cash and choosing under situation by controlling the weight of second value and the weight of third value to adjust The effect that ticket respectively can apply election results, and then the trend of centralization in entire block chain network can be adjusted And degree.In one embodiment of the invention, the weight of above-mentioned acquisition second value and the weight mode of third value can be with It is:Count the summation of second value and the summation of third value in the inscribed election data received of this round;Determine the second number The weight of value and the weight of third value, make satisfaction:The product of the summation of second value and the weight of second value is equal to third The product of the summation of numerical value and the weight of third value.
For example, when a new round time starts, holds the block chain node of digital cash and hold the block chain node of ballot paper It can common vote process.In order to enable the influence degree that digital cash and ballot paper can apply election structure is substantially Balance enables total weight of digital cash used in the inscribed all election datas received of this round and used in this example The ratio between total weight of ballot paper is 1 to 1.It is complete in this round if whole election data has used 500 digital cash altogether in this round Portion's election data has used 100 ballot papers altogether, then the weight of each digital cash is 0.5/500=0.001, shared by every ballot paper Weight is 0.5/100=0.005, i.e., the weight of second value is 0.001, and the weight of third value is 0.005.Election intelligence is closed It about receives and holds the block chain node of digital cash and hold the election data that the block chain node of ballot paper is sent out, every is elected number According to it is middle record have the information of the selected block chain node of block chain node for sending out this election data, second value and/or Third value.Intelligent contract calculates the corresponding election score value of selected each block chain node, and will be by according to election score value All block chain link points of selection are ranked up, and determine first 100 selected block chain nodes as common recognition block chain link point Block production is carried out in turn according to preset rules in next one.
After the common recognition block chain link point for determining a new round time, i.e., after election process, number can be elected by every The digital cash used in returns to the block chain node for sending out the election data.It can will be used in every election data Ballot paper is destroyed, and does not return to the block chain node for sending out the election data.Digital cash in this way used in election process can be after It is continuous to be used to be traded by block chain node, and the ballot paper used in election process cannot then do any use again.For this purpose, at this In one embodiment of invention, method shown in Fig. 2 further includes after operating S202:For sending out the one of an election data For a block chain node, when in the election data including second value, the remaining sum of the first account of the block chain node is not Change because election data is sent out, when in the election data including third value, the second account of the block chain node Remaining sum can be reduced because election data is sent out.Specifically, for sending out each block chain node of election data, the 4th is determined Numerical value, the 4th numerical value are equal to the summation of third value in the election data that is sent out in this round of the block chain node, and the 4th Numerical value is used to characterize the numerical value of the reduction from the second account of the block chain node.Identified 4th numerical value is sent to other Block chain node, so that the 4th numerical value is stored in corresponding block chain database by each block chain node.
For example, in this round, block chain node A sends out 3 election datas, the third number in the 1st article of election data altogether It is third value in the 5, the 3rd article of election data is 0 that value, which is third value in the 8, the 2nd article of election data, every election data In third value indicate the quantity of ballot paper that block chain node A is launched for this election data, i.e. this round intra block chain The summation of third value in the election data that node A is sent out is 13, i.e., launches 13 ballot papers altogether, the used i.e. nothing of this 13 ballot papers Effect, cannot be further continued for using, it is thus determined that the 4th numerical value is 13, expression reduces 13 from the second account of block chain node A, i.e., The ballot paper quantity that block chain node A holds reduces 13.In order to enable the process is more safe and reliable, by block chain node A's The 4th numerical value that mark and expression reduce certain numerical value from the second account of block chain node A is broadcasted together to each block chain link Point is stored in corresponding block chain database by each block chain node, is just had recorded in such block chain database each Each block chain node of round has used the information for reducing how many ballot paper in how many ballot paper, the second account, the record that can not be usurped Change.
In one embodiment of the invention, after determining the common recognition block chain link point of predetermined quantity, side shown in Fig. 2 Method further includes:For each common recognition block chain link point, unduplicated random number is generated so that common recognition block chain link point is in a new round Execute the block packaging operation of preset times in secondary successively according to the sequence of corresponding random number.For example, according to election score value It is to determine that preceding 100 blocks chain node is common recognition block chain link point after selected block chain node sequencing from high to low, for Each block chain node in this 100 block chain nodes generates one 1~100 unduplicated random number, and each block chain The corresponding random number of node does not repeat, according to the sequence of random number since the block chain corresponding to 1, in a new round according to Secondary progress block packaging operation.Numerical value in this example is schematic example, does not make any restrictions to the present invention.In this programme In, the new round time and described round can be adjacent two rounds, can also be two wheels of the several rounds in interval Secondary, if this round is the 1st round, a new round time can be the 2nd round, can also be the 3rd round, the 4th round ..., herein not It is limited, as long as determining the common recognition block chain link point of posterior round in first round.
Fig. 3 diagrammatically illustrates the block diagram that block chain common recognition according to the ... of the embodiment of the present invention reaches device.
As shown in figure 3, block chain common recognition reaches device 300 and includes:Receiving module 310 and common recognition module 320.
Receiving module 310 is sent out for receiving the block chain node with the first account balance and/or the second account balance Election data.
Wherein, every election data includes:Send out the selected block chain node of block chain node of the election data Information.
Common recognition module 320, for the election data received to be inscribed based on this round, from the selected block of each election data Common recognition block chain link point is determined in chain node so that identified common recognition block chain link point executes block in a new round time and is packaged Operation.
Wherein, the numerical value in the first account of each block chain node is digital possessed by the block chain node for characterizing The quantity of currency, the numerical value in the second account of each block chain node is for characterizing ballot paper possessed by the block chain node Quantity.
As it can be seen that device shown in Fig. 3 determines common recognition block chain link point by the election data that each block chain node is sent out, Specifically, the block chain node for sending out polled data is the block chain node for holding ballot paper and/or digital cash, in election data Including the information of the selected block chain node of block chain node of election data is sent out, from each election data in a round Common recognition block chain link point is determined in selected block chain node.With the scheme phase for determining common recognition block chain link point in the prior art Than this programme need not consume the calculation power resource of block chain link point, and since this programme passes through two kinds of sides of ballot paper and digital cash Formula exerts one's influence to the election permission of block chain node, can be effectively prevented from block chain common recognition towards digital cash in a small number of areas The centralization trend development assembled in block chain node maintains the decentralization feature of block chain network.
In one embodiment of the invention, election data further includes:Second value and/or third value;For each The election data that block chain node is sent out, the summation of the second value in election data are not more than the first account of the block chain node Family remaining sum, the summation of the third value in election data are not more than the second account balance of the block chain node.
Common recognition module 320 is additionally operable to obtain the weight of the weight and third value of second value, then 320 base of module of knowing together In the inscribed election data received of this round, common recognition block chain link point is determined from the selected block chain node of each election data Mode can be:Each selected block chain node corresponding second in the inscribed election data received of this round is counted to count The corresponding third value of each selected block chain node in the inscribed election data received of the summation of value and this round Summation.For each selected block chain node, counted according to the summation of the corresponding second value of block chain node and second The weight of the weight of value and the summation and third value of the corresponding third value of block chain node, obtains the block chain link The election score value of point;Selected block chain link in the election data received is inscribed to this round from high to low according to election score value Point is ranked up, and the block chain node of preset quantity is common recognition block chain link point before determining so that the common recognition block chain link point Block packaging operation is executed successively according to preset rules in a new round time.
Wherein, common recognition module 320, which obtains the weight of second value and the mode of the weight of third value, to be:Common recognition mould Block 320, for counting the summation of second value and the summation of third value in the inscribed election data received of this round;It determines The weight of second value and the weight of third value, make satisfaction:The product etc. of the summation of second value and the weight of second value In the product of the weight of the summation and third value of third value.
Further, in one embodiment of the invention, ballot paper is disposable, i.e., the choosing that each block chain node is sent out Lifting ballot paper used in data cannot be used again, need to deduct from the second account of respective block chain node, therefore, altogether Know module 320, be additionally operable to each block chain node for sending out election data, determines the 4th numerical value, the 4th numerical value is equal to should The summation of third value in the election data that block chain node is sent out in this round, the 4th numerical value is for characterizing from the block chain The numerical value of reduction in second account of node;4th numerical value is sent to other block chain nodes, so that each block chain node will 4th numerical value is stored in corresponding block chain database.
In one embodiment of the invention, common recognition module 320, is additionally operable in the common recognition block chain link for determining predetermined quantity After point, for each common recognition block chain link point, unduplicated random number is generated so that the common recognition block chain link point is new one Execute the block packaging operation of preset times in round successively according to the sequence of corresponding random number.
Fig. 4 diagrammatically illustrates the block diagram that block chain common recognition according to another embodiment of the present invention reaches device.
As shown in figure 4, block chain common recognition reaches device 400 and includes:Receiving module 310, common recognition module 320 and ballot paper hair Amplification module 330.
Receiving module 310 and common recognition module 320 are illustrated above, the part repeated repeats no more, basic herein On, receiving module 310 is additionally operable to receive the Transaction Information that block chain link point is sent out.
Ballot paper provides module 330, is then determining first to count for judging whether the Transaction Information meets preset condition Value, first numerical value are used to characterize second to the block chain node as the corresponding product provider of the Transaction Information Increased numerical value in account;First numerical value is sent to other block chain nodes, so that each block chain node is by described One numerical value is stored in corresponding block chain database.
In one embodiment of the invention, ballot paper provides module 330, for judging that the corresponding product of Transaction Information is It is no to belong to consumable resource;It is then, whether to monitor the corresponding product of Transaction Information by as the corresponding product of Transaction Information The block chain node use of purchaser finishes;It is then, to determine that Transaction Information meets preset condition.
Specifically, in one embodiment of the invention, consumable resource includes at least one of following:Network flow data Resource, the calculation power resource of processor;And/or ballot paper provides module 330, for receiving the area as product purchaser Whether the transaction feedback information that block chain node is sent, judge product by as product purchaser according to the transaction feedback information Block chain node use finish;Alternatively, obtain the usage log of the product, according to usage log judge product whether by Block chain node as the product purchaser, which uses, to be finished.
It should be noted that in device section Example each module/unit/subelement etc. embodiment, the skill of solution Art problem, the function of realization and the technique effect that reaches respectively with the implementation of each corresponding step in method section Example Mode, the technical issues of solving, the function of realization and the technique effect that reaches are same or like, and details are not described herein.
It is any number of or in which arbitrary more in module according to an embodiment of the invention, submodule, unit, subelement A at least partly function can be realized in a module.Module according to the ... of the embodiment of the present invention, submodule, unit, son are single Any one or more in member can be split into multiple modules to realize.Module according to the ... of the embodiment of the present invention, submodule, Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gate Array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, special integrated electricity Road (ASIC), or can be by the hardware or firmware for any other rational method for circuit integrate or encapsulate come real Show, or with any one in three kinds of software, hardware and firmware realization methods or with wherein arbitrary several appropriately combined next reality It is existing.Alternatively, one or more of module according to the ... of the embodiment of the present invention, submodule, unit, subelement can be at least by parts Ground is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, receiving module 310, common recognition module 320 and ballot paper provide any number of can merge in module 330 It is realized in a module or any one module therein can be split into multiple modules.Alternatively, these moulds are in the block At least partly function of one or more modules can be combined at least partly function of other modules, and in a module It realizes.According to an embodiment of the invention, receiving module 310, common recognition module 320 and ballot paper provide at least one in module 330 It is a to be at least implemented partly as hardware circuit, such as field programmable gate array (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, application-specific integrated circuit (ASIC), or can be by circuit The hardware such as any other rational method that is integrated or encapsulating or firmware are carried out to realize, or with software, hardware and firmware three Any one in kind of realization method several appropriately combined is realized with wherein arbitrary.Alternatively, receiving module 310, common recognition mould Block 320 and ballot paper, which provide at least one of module 330, can at least be implemented partly as computer program module, when When the computer program module is run, corresponding function can be executed.
Fig. 5 diagrammatically illustrates the box of the computer system according to the ... of the embodiment of the present invention reached for block chain common recognition Figure.Computer system shown in Fig. 5 is only an example, should not bring and appoint to the function and use scope of the embodiment of the present invention What is limited.
As shown in figure 5, computer system 500 according to the ... of the embodiment of the present invention includes processor 501, it can be according to storage Program in read-only memory (ROM) 502 is loaded into from storage section 508 in random access storage device (RAM) 503 Program and execute various actions appropriate and processing.Processor 501 for example may include general purpose microprocessor (such as CPU), refer to Enable set processor and/or related chip group and/or special microprocessor (for example, application-specific integrated circuit (ASIC)), etc..Processing Device 501 can also include the onboard storage device for caching purposes.Processor 501 may include for executing according to of the invention real Apply single treatment unit either multiple processing units of the different actions of the method flow of example.
In RAM 503, it is stored with system 500 and operates required various programs and data.Processor 501, ROM 502 with And RAM 503 is connected with each other by bus 504.Processor 501 is held by executing the program in ROM 502 and/or RAM 503 The various operations of capable flow according to the method for the embodiment of the present invention.It is noted that described program can also be stored in except ROM 502 In one or more memories other than RAM 503.Processor 501 can also be stored in one or more of by execution Program in memory executes the various operations of flow according to the method for the embodiment of the present invention.
According to an embodiment of the invention, system 500 can also include input/output (I/O) interface 505, input/output (I/O) interface 505 is also connected to bus 504.System 500 can also include be connected to I/O interfaces 505 with one in lower component Item is multinomial:Importation 506 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD) Deng and loud speaker etc. output par, c 507;Storage section 508 including hard disk etc.;And including such as LAN card, modulatedemodulate Adjust the communications portion 509 of the network interface card of device etc..Communications portion 509 executes communication process via the network of such as internet. Driver 510 is also according to needing to be connected to I/O interfaces 505.Detachable media 511, such as disk, CD, magneto-optic disk, semiconductor Memory etc. is mounted on driver 510, as needed in order to be pacified as needed from the computer program read thereon It is packed into storage section 508.
According to an embodiment of the invention, flow may be implemented as computer software journey according to the method for the embodiment of the present invention Sequence.For example, the embodiment of the present invention includes a kind of computer program product comprising carry meter on a computer-readable medium Calculation machine program, the computer program include the program code for method shown in execution flow chart.In such embodiments, The computer program can be downloaded and installed by communications portion 509 from network, and/or be pacified from detachable media 511 Dress.When the computer program is executed by processor 501, the above-mentioned function of being limited in the system of the embodiment of the present invention is executed.Root According to the embodiment of the present invention, system as described above, unit, module, unit etc. can by computer program module come It realizes.
The present invention also provides a kind of computer-readable medium, which can be retouched in above-described embodiment Included in the equipment/device/system stated;Can also be individualism, and without be incorporated the equipment/device/system in.On It states computer-readable medium and carries one or more program, when said one or multiple programs are performed, realize:On Block chain common recognition described in each embodiment of text reaches method.
According to an embodiment of the invention, computer-readable medium can be that computer-readable signal media or computer can Storage medium either the two is read arbitrarily to combine.Computer readable storage medium for example can be --- but it is unlimited In --- electricity, system, device or the device of magnetic, optical, electromagnetic, infrared ray or semiconductor, or the arbitrary above combination.It calculates The more specific example of machine readable storage medium storing program for executing can include but is not limited to:Being electrically connected, be portable with one or more conducting wires Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or The above-mentioned any appropriate combination of person.In the present invention, can be any include computer readable storage medium or storage program Tangible medium, the program can be commanded execution system, device either device use or it is in connection.And in this hair In bright, computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated, In carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by Instruction execution system, device either device use or program in connection.The journey for including on computer-readable medium Sequence code can transmit with any suitable medium, including but not limited to:Wirelessly, wired, optical cable, radiofrequency signal etc., or Above-mentioned any appropriate combination.
For example, according to an embodiment of the invention, computer-readable medium may include above-described ROM 502 and/or One or more memories other than RAM 503 and/or ROM 502 and RAM 503.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part for a part for one module, program segment, or code of table, above-mentioned module, program segment, or code includes one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
It will be understood by those skilled in the art that the feature described in each embodiment and/or claim of the present invention can To carry out multiple combinations or/or combination, even if such combination or combination are not expressly recited in the present invention.Particularly, exist In the case of not departing from spirit of that invention and introduction, the feature described in each embodiment of the invention and/or claim can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present invention.
The embodiment of the present invention is described above.But the purpose that these embodiments are merely to illustrate that, and It is not intended to limit the scope of the invention.Although respectively describing each embodiment above, but it is not intended that each reality Use cannot be advantageously combined by applying the measure in example.The scope of the present invention is defined by the appended.It does not take off From the scope of the present invention, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all be fallen at this Within the scope of invention.

Claims (9)

1. a kind of computer-readable medium reached for block chain common recognition, which is characterized in that it is stored thereon with executable instruction, The instruction makes processor execute following method when being executed by processor:
Receive the election data that the block chain node with the first account balance and/or the second account balance is sent out, the election Data include:Send out the information of the selected block chain node of block chain node of the election data;
Based on the inscribed election data received of this round, common recognition block is determined from the selected block chain node of each election data Chain node so that the common recognition block chain link point executes block packaging operation in a new round time;
Wherein, the numerical value in the first account of each block chain node is for characterizing digital cash possessed by the block chain node Quantity, the numerical value in the second account of each block chain node is used to characterize the number of ballot paper possessed by the block chain node Amount.
2. a kind of computer-readable medium reached for block chain common recognition according to claim 1, which is characterized in that institute The method of stating further includes:
Receive the Transaction Information that block chain link point is sent out;
Judge whether the Transaction Information meets preset condition, be then determining first numerical value, first numerical value for characterize to Increased numerical value in second account of the block chain node as the corresponding product provider of the Transaction Information;
First numerical value is sent to other block chain nodes, so that first numerical value is stored in respectively by each block chain node In corresponding block chain database.
3. a kind of computer-readable medium reached for block chain common recognition according to claim 2, which is characterized in that its In, it is described to judge whether the Transaction Information meets preset condition and include:
Judge whether the corresponding product of the Transaction Information belongs to consumable resource;
It is then, whether to monitor the corresponding product of the Transaction Information by as the corresponding product purchaser of the Transaction Information Block chain node use finish;
It is then, to determine that the Transaction Information meets preset condition.
4. a kind of computer-readable medium reached for block chain common recognition according to claim 3, which is characterized in that its In:
The consumable resource includes at least one of following:
Network flow data resource, the calculation power resource of processor;And/or
Whether the corresponding product of the Transaction Information of monitoring is by as the corresponding product purchaser of the Transaction Information Block chain node use finish including:
The transaction feedback information sent as the block chain node of the product purchaser is received, is believed according to the transaction feedback Breath judges whether the product is finished by the block chain node use;Alternatively, the usage log of the product is obtained, according to The usage log judges whether the product is used by the block chain node as the product purchaser and finishes.
5. a kind of computer-readable medium reached for block chain common recognition according to claim 2, which is characterized in that institute Transaction Information is stated including at least the information of product, the information of product provider, the information thrin of product purchaser.
6. a kind of computer-readable medium reached for block chain common recognition according to claim 1, which is characterized in that its In:
The election data further includes:
Second value and/or third value;For the election data that each block chain node is sent out, in the election data The summation of two numerical value is not more than the first account balance of the block chain node, and the summation of the third value in the election data is not More than the second account balance of the block chain node;
The method further includes:Obtain the weight of the weight and third value of second value;
It is described that the election data received is inscribed based on this round, common recognition is determined from the selected block chain node of each election data Block chain node includes:
It counts this round and each summation of the corresponding second value of selected block chain node is inscribed in the election data received, And each summation of the corresponding third value of selected block chain node is inscribed in the election data received in this round;
For each selected block chain node, according to the summation and second value of the corresponding second value of block chain node Weight and the corresponding third value of block chain node summation and third value weight, obtain the block chain node Election score value;
According to election score value, selected block chain link point is arranged from the high to low inscribed election data received to this round Sequence, the block chain node of preset quantity is common recognition block chain link point before determining so that the common recognition block chain link point is in a new round Execute block packaging operation in secondary successively according to preset rules.
7. a kind of computer-readable medium reached for block chain common recognition according to claim 6, which is characterized in that its In, the weight of the weight and third value that obtain second value includes:
Count the summation of second value and the summation of third value in the inscribed election data received of this round;
It determines the weight of second value and the weight of third value, makes satisfaction:The summation of second value and the weight of second value Product be equal to third value summation and third value weight product.
8. a kind of computer-readable medium reached for block chain common recognition according to claim 6, which is characterized in that also Including:
For sending out each block chain node of election data, determine that the 4th numerical value, the 4th numerical value are equal to the block chain link The summation of third value in the election data that point is sent out in this round, the 4th numerical value is for characterizing from the block chain node The second account in reduction numerical value;
4th numerical value is sent to other block chain nodes, so that the 4th numerical value is stored in respectively by each block chain node In corresponding block chain database.
9. a kind of computer-readable medium reached for block chain common recognition according to claim 6, which is characterized in that also Including:
After determining the common recognition block chain link point of predetermined quantity, for each common recognition block chain link point, generate it is unduplicated with Machine number so that the common recognition block chain link point executes preset times successively in a new round time according to the sequence of corresponding random number Block packaging operation.
CN201810438051.0A 2018-05-09 2018-05-09 Computer readable medium for block chain consensus achievement Active CN108629588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810438051.0A CN108629588B (en) 2018-05-09 2018-05-09 Computer readable medium for block chain consensus achievement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810438051.0A CN108629588B (en) 2018-05-09 2018-05-09 Computer readable medium for block chain consensus achievement

Publications (2)

Publication Number Publication Date
CN108629588A true CN108629588A (en) 2018-10-09
CN108629588B CN108629588B (en) 2021-06-08

Family

ID=63692327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810438051.0A Active CN108629588B (en) 2018-05-09 2018-05-09 Computer readable medium for block chain consensus achievement

Country Status (1)

Country Link
CN (1) CN108629588B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109727132A (en) * 2018-12-28 2019-05-07 合肥达朴汇联科技有限公司 Acquisition methods, device, electronic equipment and the storage medium of block chain common recognition node
CN111080287A (en) * 2018-10-18 2020-04-28 华为技术有限公司 Service data processing method, related equipment and system
WO2020133148A1 (en) * 2018-12-28 2020-07-02 合肥达朴汇联科技有限公司 Data processing method and apparatus for blockchain, and blockchain system
CN111382119A (en) * 2018-12-29 2020-07-07 华为技术有限公司 Block data archiving method and related equipment
CN113452747A (en) * 2021-05-13 2021-09-28 西安电子科技大学 Extensible and safe consensus method, system, storage medium and intelligent terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341660A (en) * 2017-05-27 2017-11-10 唐盛(北京)物联技术有限公司 A kind of block chain bottom common recognition mechanism and the block catenary system based on the common recognition mechanism

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107341660A (en) * 2017-05-27 2017-11-10 唐盛(北京)物联技术有限公司 A kind of block chain bottom common recognition mechanism and the block catenary system based on the common recognition mechanism

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111080287A (en) * 2018-10-18 2020-04-28 华为技术有限公司 Service data processing method, related equipment and system
CN111080287B (en) * 2018-10-18 2023-06-16 华为技术有限公司 Service data processing method, related equipment and system
CN109727132A (en) * 2018-12-28 2019-05-07 合肥达朴汇联科技有限公司 Acquisition methods, device, electronic equipment and the storage medium of block chain common recognition node
WO2020133148A1 (en) * 2018-12-28 2020-07-02 合肥达朴汇联科技有限公司 Data processing method and apparatus for blockchain, and blockchain system
CN111382119A (en) * 2018-12-29 2020-07-07 华为技术有限公司 Block data archiving method and related equipment
CN111382119B (en) * 2018-12-29 2023-08-22 华为技术有限公司 Block data archiving method and related equipment
CN113452747A (en) * 2021-05-13 2021-09-28 西安电子科技大学 Extensible and safe consensus method, system, storage medium and intelligent terminal

Also Published As

Publication number Publication date
CN108629588B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN108596623A (en) A kind of block chain common recognition reaches method
CN108665363A (en) A kind of block chain common recognition reaches device
CN108629588A (en) A kind of computer-readable medium reached for block chain common recognition
CN108648082A (en) A kind of computer system reached for block chain common recognition
US11483129B2 (en) Method and apparatus for reaching blockchain consensus
US20190163672A1 (en) PROOF OF LOTTERY (PoL) BLOCKCHAIN
CN110011974B (en) Accounting method and device of block chain, terminal and computer-readable storage medium
US20190303622A1 (en) Bicameral framework for fast and tamper-resistant blockchain validation
CN109194510A (en) Data processing method and device based on block chain
CN109194508A (en) Data processing method and device based on block chain
CN109360091A (en) A kind of arbitrary object choosing method and device based on block chain
CN109409885A (en) Across chain method of commerce, device and storage medium on block chain
CN110300173A (en) Decentralization date storage method, verification method, equipment and storage medium
CN109727132A (en) Acquisition methods, device, electronic equipment and the storage medium of block chain common recognition node
Jahani et al. COVID-19 vaccine distribution planning using a congested queuing system—A real case from Australia
CN106452884A (en) A data distribution method and apparatus in a block chain system
CN109816362A (en) Red packet processing method, equipment and storage medium
CN109727009A (en) Red packet processing method, equipment and storage medium
CN109117608A (en) A kind of data processing method, device and relevant device
CN109034802A (en) Equity for block chain proves creation method, equipment and readable storage medium storing program for executing
CN110109900A (en) Data auditing method, system, electronic equipment and readable storage medium storing program for executing
Lagutin et al. Secure open federation of IoT platforms through interledger technologies-the SOFIE approach
Saxena et al. Impact of LRIC pricing and demand response on generation and transmission expansion planning
Andrade et al. Scheduling software updates for connected cars with limited availability
Shivaie et al. Resilience‐based tri‐level framework for simultaneous transmission and substation expansion planning considering extreme weather‐related events

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant