Summary of the invention
Technical problem to be solved by the present invention lies in provide acquisition methods, device, the electronics of block chain common recognition nodeEquipment and storage medium, to save the calculation power resource of upper layer block chain link point.
The present invention is to solve above-mentioned technical problem by the following technical programs:
The embodiment of the invention provides a kind of acquisition methods of block chain common recognition node, and block chain network includes bottom blockChain network and at least one upper layer block chain network, the bottom block chain network includes multiple bottom block chain link points, describedUpper layer block chain network includes multiple upper layer block chain link points, and the method is applied to upper layer block chain link point, comprising:
Block data in block chain network corresponding upper layer block chain in upper layer belonging to this node is sent to bottom regionBlock chain node, so that each bottom block chain link point is corresponding by block data deposit bottom block chain network by common recognition verifyingBottom block chain in.
It receives upper with the first account balance and/or the second account balance in block chain network in upper layer belonging to this nodeThe election data that layer block chain node issues, the election data includes: the upper layer block chain link point for issuing the election dataThe information of upper layer block chain link point in upper layer block chain network belonging to selected node;
Based on the inscribed election data received of this round, determined from the selected upper layer block chain link point of each election dataCommon recognition node, so that the common recognition node executes block packaging operation in a new round time;
Wherein, the numerical value in the first account of any upper layer block chain link point is had for characterizing the upper layer block chain link pointThe quantity of some digital cash, the numerical value in the second account of any upper layer block chain link point is for characterizing the upper layer block chain linkThe quantity of ballot paper possessed by point.
Optionally, further includes:
Receive the Transaction Information that the upper layer block chain link point in block chain network in upper layer belonging to this node issues;
Default value is determined according to the Transaction Information, and the default value is for characterizing to as the Transaction Information pairIncreased numerical value in second account of the upper layer block chain link point of the product provider answered;
The default value is sent to each upper layer block chain link point in block chain network in upper layer belonging to this node, withBe stored in each upper layer block chain link point the default value in corresponding upper layer block chain.
Optionally, described to determine that default value includes: according to the Transaction Information
The default value is determined according to the total amount of the corresponding product of the Transaction Information.
Optionally, different upper layer block chain networks corresponds to different upper layer block chains, and different upper layer block chains is depositedStorage corresponds to the Transaction Information of different type product.
The embodiment of the invention provides a kind of acquisition device of block chain common recognition node, and block chain network includes bottom blockChain network and at least one upper layer block chain network, the bottom block chain network includes multiple bottom block chain link points, describedUpper layer block chain network includes multiple upper layer block chain link points, and described device is applied to upper layer block chain link point, comprising:
Secure processing module, for by the block in block chain network corresponding upper layer block chain in upper layer belonging to this nodeData are sent to bottom block chain link point, so that the block data is stored in bottom by common recognition verifying by each bottom block chain link pointIn the corresponding bottom block chain of layer block chain network.
It knows together module, for receiving there is the first account balance and/or the in block chain network in upper layer belonging to this nodeThe election data that the upper layer block chain link point of two account balances issues, the election data include: to issue the election dataThe information of upper layer block chain link point in upper layer block chain network belonging to the selected node of block chain link point of upper layer;It is based onThe inscribed election data received of this round, common recognition node is determined from the selected upper layer block chain link point of each election data, is madeIt obtains the common recognition node and executes block packaging operation in a new round time;
Wherein, the numerical value in the first account of any upper layer block chain link point is had for characterizing the upper layer block chain link pointThe quantity of some digital cash, the numerical value in the second account of any upper layer block chain link point is for characterizing the upper layer block chain linkThe quantity of ballot paper possessed by point.
Optionally, further includes:
Ballot paper provides module, issues for receiving the upper layer block chain link point in block chain network in upper layer belonging to this nodeTransaction Information;Determine that default value, the default value are believed for characterizing to as the transaction according to the Transaction InformationCease increased numerical value in the second account of the upper layer block chain link point of corresponding product provider;The default value is sentEach upper layer block chain link point into block chain network in upper layer belonging to this node, so that each upper layer block chain link point will be described pre-If numerical value is stored in corresponding upper layer block chain.
Optionally, the ballot paper provides module and determines that default value includes: according to the Transaction Information
The ballot paper provides module, for determining the present count according to the total amount of the corresponding product of the Transaction InformationValue.
Optionally, different upper layer block chain networks corresponds to different upper layer block chains, and different upper layer block chains is depositedStorage corresponds to the Transaction Information of different type product.
The embodiment of the invention provides a kind of computer equipment, including memory, processor and storage are on a memory simultaneouslyThe computer program that can be run on a processor realizes area described in any of the above embodiments when the processor executes described programThe acquisition methods of block chain common recognition node.
The embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with executable instruction, the instructionProcessor is set to execute the acquisition methods of block chain common recognition node described in any of the above embodiments when being executed by processor.
The present invention has the advantage that compared with prior art
Using the embodiment of the present invention, the upper layer block chain link point for issuing polled data is to hold ballot paper and/or digital cashUpper layer block chain link point, comprising issuing the selected same block chain of upper layer block chain link point of election data in election dataThe information of upper layer block chain link point in network, in a round from the selected upper layer block chain link point of each election dataDetermine common recognition node, compared with the scheme for determining common recognition block chain link point in the prior art, this programme does not need consumption top regionsThe calculation power resource of block chain node.
Specific embodiment
It elaborates below to the embodiment of the present invention, the present embodiment carries out under the premise of the technical scheme of the present inventionImplement, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to following implementationExample.
The embodiment of the invention provides block chain common recognition node acquisition methods, device, electronic equipment and storage medium, underFirst just a kind of acquisition methods of block chain common recognition node provided in an embodiment of the present invention are introduced kept man of a noblewoman.
The embodiment of the present invention is preferably applied to novel block chain network, which includes bottom block chain networkWith at least one upper layer block chain network, wherein bottom block chain network includes multiple bottom block chain link points, upper layer block chainNetwork includes multiple upper layer block chain link points.This method includes block data transmission phase and security hardening stage, block dataTransmission phase is executed by upper layer block chain link point, will be in block chain network corresponding upper layer block chain in upper layer belonging to this nodeBlock data is sent to bottom block chain link point,
Fig. 1 be according to the embodiment of the present disclosure can with application block chain know together node acquisition methods and device it is exemplarySystem architecture 100.It should be noted that being only the example that can apply the system architecture of the embodiment of the present disclosure shown in Fig. 1, with sideThe technology contents those skilled in the art understand that disclosure are helped, but are not meant to that the embodiment of the present disclosure may not be usable for other and setStandby, system, environment or scene.
As shown in Figure 1, system architecture 100 may include multiple electronic equipments (101~107) according to this embodiment.ElectricitySub- equipment (101~107) can be PC (personal computer, PC), network server, database serverDeng.Each of electronic equipment (101~107) electronic equipment can have identical or different computing capability.
As an implementation, it can be in communication with each other between multiple electronic equipments, constitute block chain network, each electronicsEquipment as a block chain node in the block chain network, the identical block chain database of each block chain node maintenance (under" block chain " is referred to as in text).In addition, each block chain node can provide respectively from different services in system architecture 100The calculating equipment (such as server/server cluster, terminal device) of side and/or client communication, i.e., respectively as each serviceProvider and/or the corresponding block chain node of client, each service provider and/or client can pass through corresponding blockChain node carries out the operation such as read-write of data in block chain.
It should be understood that the number of the electronic equipment in Fig. 1 is only schematical.According to needs are realized, it can have and appointThe electronic equipment for number of anticipating.
The acquisition methods for the block chain common recognition node that the embodiment of the present disclosure provides can run on electronic equipment shown in FIG. 1In.
This method is applied in block chain network novel constructed by the disclosure, which includes bottom blockChain network and at least one upper layer block chain network, the bottom block chain network includes multiple bottom block chain link points, describedUpper layer block chain network includes multiple upper layer block chain link points.This method is held by the upper layer block chain link point in block chain networkRow illustrates the acquisition process of the common recognition node of block chain provided by the disclosure from upper layer block chain link point side.
This method is included in operation S201, obtains in block chain network corresponding upper layer block chain in upper layer belonging to this nodeBlock data.
Then, in operation S202, the block data is sent to bottom block chain link point, so that each bottom block chain linkPoint will be in the corresponding bottom block chain of block data deposit bottom block chain network by common recognition verifying.
As it can be seen that method shown in Fig. 2 is creatively constructed including bottom block chain network and at least one upper layer blockThe compound double-deck block chain network of chain network, the upper layer for any upper layer block chain network, in the upper layer block chain networkBlock data in the corresponding block chain of upper layer block chain network can be sent to bottom block chain network by block chain node,The block data in the block chain of upper layer is further stored in bottom block chain by common recognition verifying by bottom block chain link point, is madeThe legitimacy for obtaining the block data in upper layer block chain obtains the double verification of upper layer block chain network and bottom block chain network,The safety of block data obtains upper layer block chain and bottom block chain duplicate protection, further enhances seeing in many ways for block chainCard, the characteristic that can not be distorted, and since the combination that this programme passes through bottom block chain network and upper layer block chain network will showSome one-dimensional area chain networks are extended to two-dimentional block chain network, and the transaction that can greatly improve entire block chain network is handled upAmount meets demand of the transaction status of current fast development to block chain network.
In one embodiment of the present disclosure, in method shown in Fig. 2 that block chain network in upper layer belonging to this node is correspondingUpper layer block chain link point in block data be sent to bottom block chain link point and can specifically include: when this node is as knowing togetherIt is when node creates new block and is added the new block into the upper layer block chain, the new block is correspondingData are sent to bottom block chain link point.Alternatively, when this node creates new block and by the new area as node of knowing togetherWhen block is added into the upper layer block chain, the corresponding data of preset quantity block before the new block are sentTo bottom block chain link point.
According to the present embodiment, the upper layer for any upper layer block chain network, under a kind of situation, as common recognition nodeBlock chain node can create new block and the block chain is entered the corresponding upper layer block chain of upper layer block chain networkWhile end, the related data of the new block is sent to bottom block chain network, i.e., is generated in upper layer block chain newestBlock while the related data of the new block is synchronized to bottom block chain network so that in bottom block chain networkEach bottom block chain link point can deposit the related data of the newest block in the upper layer block chain after common recognition verifyingEnter in bottom block chain, which is such for each newly generated block in the block chain of upper layer.In this way, upper layer block chainIn the newest block that generates every time can synchronously be verified by each bottom block chain link point in bottom block chain network,If there are the feedbacks that problem will obtain bottom block chain network in time for the newest block, and then the upper layer block chain networkNew block can be entered to avoid the subsequent chain behind the problematic block.
In another scenario, the new area block Bing Jianggai can created as the upper layer block chain link point of common recognition nodeWhile block chain enters the end of the corresponding upper layer block chain of upper layer block chain network, the new area will be located in the block chain of upper layerThe related data of preset quantity block before block is sent to bottom block chain network, i.e., will deposit in the block chain of upper layerIt is synchronized to bottom block chain network in the related data of a period of time, irreversible block, so that in bottom block chain networkEach bottom block chain link point by common recognition verifying after can be by the dependency number of the irreversible block in the block chain of upper layerAccording in deposit bottom block chain, which is such for the irreversible block of each of upper layer block chain.In this way, upper layerBlock chain network by the block chain of upper layer after a period of time state be irreversible block be synchronized to bottom block chain, alsoIt is that the higher block of confidence level is directly synchronized to bottom block chain.
It is recognised that no matter which kind of using, the block data in the block chain of upper layer is synchronized to the side in bottom block chainFormula, what is saved in bottom block chain is only legal, the believable block data in each upper layer block chain, especially on upper layerBlock chain network is still incomplete, upper layer block chain link point quantity is smaller, leads to the legal of the block stored in the block chain of upper layerIn the case of property and safety are lower, this programme stores the block counts for confirming believable upper layer block chain in bottom block chainAccording to, help upper layer block chain network carry out trust data reinforcing and backup, using as in the block chain of upper layer block it is legal according toAccording to, facilitate safeguard upper layer block chain network stabilization.
Any upper layer block chain network is received and had in block chain network in upper layer belonging to this node in operation S203The election data for thering is the upper layer block chain link point of the first account balance and/or the second account balance to issue, the election data packetIt includes: issuing the upper layer in upper layer block chain network belonging to upper layer selected node of block chain link point of the election dataThe information of block chain node;
In operation S204, based on the inscribed election data received of this round, from the selected upper layer block of each election dataCommon recognition node is determined in chain node, so that the common recognition node executes block packaging operation in a new round time.
And the numerical value in the first account of any upper layer block chain link point is had for characterizing the upper layer block chain link pointDigital cash quantity, the numerical value in the second account of any upper layer block chain link point is for characterizing the upper layer block chain link pointThe quantity of possessed ballot paper.Upper layer block chain link point with the first account balance refers to the upper layer block for holding digital cashChain node refers to the upper layer block chain link point for holding ballot paper with the upper layer block chain link point of the second account balance, then onState in operation the source of received election data may is that the upper layer block chain link point for holding digital cash, hold ballot paperUpper layer block chain link point had not only held digital cash but also had held the upper layer block chain link point of ballot paper.Wherein digital cash is top regionsThe ideal money of exchange's circulation is carried out in block chain network, and ballot paper is that upper layer block chain link point is issued to according to certain ruleDifferent from the ideal money of digital cash.
In one embodiment of the present disclosure, common recognition mechanism used by bottom block chain is proof of work (ProofOf Work, POW) common recognition mechanism, expends a large amount of power resource of calculating as cost using each bottom block chain link point, guarantees deposit bottomThe credibility and safety of data in block chain, to provide efficient data backup for each upper layer block chain network.
Below with reference to Fig. 3 A~Fig. 3 B, method shown in Fig. 2 is described further in conjunction with specific embodiments.
Fig. 3 A diagrammatically illustrates the configuration diagram of block chain network according to an embodiment of the present disclosure.
As shown in Figure 3A, block chain network includes a bottom block chain network 301 and three upper layer block chain networks302,303,304, bottom block chain network 301 correspond to bottom block chain, three 302,303,304 points of upper layer block chain networkThree upper layer block chains that Dui Yingyu be not different, upper layer block chain network 302 correspond to the upper layer block chain of house lease platform,Upper layer block chain network 303 corresponds to the upper layer block chain of network traffic data sharing platform, and upper layer block chain network 304 is correspondingThe upper layer block chain of power resource sharing platform is calculated in computer.It include multiple upper layer block chain links in each upper layer block chain networkPoint, upper layer block chain link point of different shapes shown in figure indicate the upper layer block chain link point with different function permission.
Bottom block chain network is using proof of work common recognition mechanism.For any upper layer block chain network, using entrustingSupport equity proves the novel power of attorney improved on the basis of (Delegated Proof of Stake, DPOS) common recognition mechanismBenefit proves that (D (POS+POX)) common recognition mechanism is reached common understanding, which proves that common recognition mechanism refers to and not only allow for havingThe upper layer block chain link point of digital cash carries out common recognition election, and the upper layer block chain link point for also allowing to have ballot paper carries out common recognition choosingIt lifts, which is according to certain regular to the upper layer block chain link point granting to contribute for upper layer block chain network.For example, rightIn upper layer block chain network 302, the number in the house for rent of breaking forth is pressed to the upper layer block chain link of the provider as rental housingThe ballot paper that the information such as amount, number of days provide respective numbers proposes upper layer block chain network 303 to as network traffic dataThe upper layer block chain link point of supplier provides the choosing of respective numbers according to information such as total amount, the times of the network traffic data of sharingTicket, for upper layer block chain network 304, to the upper layer block chain link point as the provider for calculating power resource according to the calculation power of sharingThe ballot paper of the information such as total amount, the time of resource granting respective numbers.And then reach the respective common recognition machine of each upper layer block chain networkSystem, each upper layer block chain network are run according to its respective common recognition mechanism.
For any upper layer block chain network, multiple upper layer block chain link points constitute upper layer block chain network, upper layer blockChain node can participate in the beginning of the transaction between requesting party and provider by intelligent contract, carry out and terminate, top regionsBlock chain node can by intelligent contract carry out ballot paper granting, it is above-mentioned intelligence contract be usually be preset in it is in block chain, canWith the code for the execution that is triggered, meeting can be run after trigger condition in block chain node to execute corresponding operation, due toThe intelligent contract stored in block chain is difficult to be tampered, thus intelligent contract can be used for executing preset code logic, executeIt will not be intervened by arbitrary node in journey, and then execute reliable, believable operation.
Fig. 3 B diagrammatically illustrates the corresponding upper layer block chain of block chain network in upper layer according to an embodiment of the present disclosure and showsIt is intended to.
As shown in Figure 3B, which can be the corresponding block chain of any upper layer block chain network in Fig. 3 A,It is illustrated by taking the corresponding upper layer block chain of upper layer block chain network 302 as an example, has 4 blocks in the upper layer block chain at presentData structure.
After upper layer block chain network 302 determines the common recognition node of current round by D (POS+POX) common recognition mechanism, altogetherKnow node and be packaged the new block 5 of creation, after the confirmation of several common recognitions, which is being entered into upper layer block shown in Fig. 3 BWhen chain, which can be sent to bottom block chain network, each bottom block in bottom block chain networkChain node determines the common recognition node in bottom block chain network, the block 5 which will receive by POW common recognition mechanismCorresponding data are packed into new block and and the new block chain are entered bottom by common recognition verifying by each bottom block chain link pointIn layer block chain.Alternatively, when upper layer block chain network 302 determines the common recognition section of current round by D (POS+POX) common recognition mechanismAfter point, common recognition node, which is packaged, creates new block 5, after the confirmation of several common recognitions, enters on shown in Fig. 3 B by 5 chain of blockIt can will before the block 5 be that the corresponding data of block 2 of irreversible state are sent to bottom block chain when layer block chainNetwork, each bottom block chain link point in bottom block chain network determine in bottom block chain network by POW common recognition mechanismThe corresponding data of block 2 received are packed into new block and by each bottom block chain link by common recognition node, the common recognition nodePoint enters the new block chain in bottom block chain by common recognition verifying.
Similarly, each block in the corresponding upper layer block chain of upper layer block chain network 302 can be sent to bottom regionBlock chain network, each block in other corresponding upper layer block chains of upper layer block chain network can be sent to bottom block link networkNetwork, the legal data being stored in bottom block chain in all upper layer block chains.
It in turn, can be by being looked into bottom block chain for the upper layer block chain link point in any upper layer block chain networkThe cryptographic Hash of any block in the corresponding upper layer block chain of upper layer block chain network where it is ask whether to authenticate the blockIt is legal.In this way, the block of each upper layer block chain, can all become opposite irreversible state.When there is malicious node to distort blockWhen or hacker break through agglomeration node, and then block is distorted, can be by by current upper layer block when leading to bifurcatedThe cryptographic Hash of the upper layer block chain stored in chain cryptographic Hash and bottom block chain compares, and a plurality of upper layer can be confirmed with thisWhich item is only correct upper layer block chain in block chain bifurcated.
As it can be seen that the present embodiment passes through the election number of each upper layer block chain link point sending for any upper layer block chain networkAccording to common recognition node is determined, specifically, the upper layer block chain link point for issuing polled data holds ballot paper and/or digital cashUpper layer block chain link point, comprising issuing the selected same block link network of upper layer block chain link point of election data in election dataThe information of upper layer block chain link point in network, in a round from the selected upper layer block chain link point of each election data reallySurely it knows together node.Compared with the scheme for determining common recognition block chain link point in the prior art, this programme does not need consumption upper layer blockThe calculation power resource of chain node, and since this programme passes through the election of ballot paper and digital cash two ways to upper layer block chain link pointPermission is exerted one's influence, and can be effectively prevented from upper layer block chain common recognition and be gathered in a small number of upper layer block chain link points towards digital cashThe centralization trend development of collection maintains the decentralization feature of upper layer block chain network.
In embodiment of the disclosure, it can according to need the upper layer by different rules into upper layer block chain networkBlock chain node provides ballot paper, to be exerted one's influence by ballot paper to common recognition election.It preferably, can be to for upper layer block link networkThe upper layer block chain link point that network contributes provides ballot paper, gives the throwing power of the upper layer block chain link point common recognition node to contributeLimit, to motivate each block chain node in same upper layer block chain network to safeguard the normal fortune of the upper layer block chain network jointlyTurn.
Specifically, as an optional embodiment, method shown in Fig. 2 further include: receive upper layer belonging to this nodeThe Transaction Information that upper layer block chain link point in block chain network issues;Default value is determined according to the Transaction Information, it is describedDefault value is used to characterize the second account to the upper layer block chain link point as the corresponding product provider of the Transaction InformationIncreased numerical value in family;Each upper layer block chain default value being sent in block chain network in upper layer belonging to this nodeNode, so that the default value is stored in corresponding upper layer block chain by each upper layer block chain link point.
Optionally, different upper layer block chain networks corresponds to different upper layer block chains, and different upper layer block chains is depositedStorage corresponds to the Transaction Information of different type product.
Present embodiment describes the scheme that the upper layer block chain link point into upper layer block chain network provides ballot paper, transaction lettersThe information for ceasing the event traded between upper layer block chain link point, in varied situations, as the upper of product providerLayer block chain node can be full node and be also possible to light node, and the upper layer block chain link point as product purchaser can beFull node is also possible to light node;Full node is to be able to carry out block data structures packaging operation, be able to carry out data record behaviourWork, the block chain node that intelligent contract can be run, and light node can not execute block data structures packaging operation and data noteRecord operation can not run intelligent contract, but no matter full node or light node, may have the first account and the second account.It include at least one of following in the Transaction Information that upper layer block chain link point issues: the information of product, the letter of product providerBreath, the information of product purchaser.The ballot paper of default value is provided the upper layer block chain link point as product provider.HairIt, can be by the identification information and identified default value as the upper layer block chain link point of product provider when putting ballot paperIt is broadcasted together to each upper layer block chain link point, so that respectively each upper layer block chain link point with data recording capability will be as transactionThe identification information and default value of the upper layer block chain link point of object provider are corresponding to be stored in respective block chain database, withThe identification information and default value of upper layer block chain link point as product provider are uniformly had recorded in the block chain of upper layerIt is default to the increase of the second account of the upper layer block chain link point as product provider uniformly to have recorded characterization for corresponding relationshipThe information of numerical value, the information are supervised in block chain by each upper layer block chain link point jointly, and according to content above, the letterBreath can be also synchronized in bottom block chain, to guarantee the controllability and irreversibility of ballot paper distribution process.
Wherein, above-mentioned to determine that default value includes: according to institute according to the Transaction Information as an optional embodimentThe total amount for stating the corresponding product of Transaction Information determines the default value.How much measurement conducts i.e. according to the total amount of productThe number for the contribution that the upper layer block chain link point of the provider of the product makes the upper layer block chain network where it, intoIt and is the ballot paper of upper layer the point granting of block chain link and its corresponding quantity of contributing of provider as the product.
Based on above description it is found that the disclosure has the beneficial effect that:
First, the disclosure takes bottom block chain network plus the framework of layer block chain network, different upper layer block chainsNetwork corresponds to different application scenarios, and the data of corresponding upper layer block chained record different application scene, such framework is by oneThe block chain of dimension is extended to two dimension, substantially increases the transaction handling capacity of entire block chain network.
Second, each application scenarios uses an independent upper layer block chain, this framework leads to different application scenariosIt crosses different upper layers block chain to keep apart, each application scenarios is customized on this according to itself unique demandLayer block chain, will not influence the performance of the upper layer block chain of other application scenarios.
Third, the disclosure store the block data of all upper layer block chains by using bottom block chain chain, so that newly-increasedUpper layer block chain Information Security and the earth promoted, significantly reduce newly-increased upper layer block chain stage block counts in the early stageAccording to the risk that may be distorted by malice agglomeration person or hacker.
Corresponding with embodiment illustrated in fig. 2 of the present invention, the embodiment of the invention also provides a kind of block chain common recognition nodesAcquisition device.
Fig. 4 is a kind of structural schematic diagram of the acquisition device of block chain common recognition node provided in an embodiment of the present invention, such as Fig. 4Shown, block chain network includes bottom block chain network and at least one upper layer block chain network, the bottom block chain networkIncluding multiple bottom block chain link points, the upper layer block chain network includes multiple upper layer block chain link points, described device applicationIn upper layer block chain link point, comprising:
Secure processing module 401, for will be in block chain network corresponding upper layer block chain in upper layer belonging to this nodeBlock data is sent to bottom block chain link point, so that each bottom block chain link point deposits the block data by common recognition verifyingEnter in the corresponding bottom block chain of bottom block chain network.
Common recognition module 402 for receive in block chain network in upper layer belonging to this node have the first account balance and/orThe election data that the upper layer block chain link point of second account balance issues, the election data include: to issue the election dataUpper layer selected node of block chain link point belonging to upper layer block chain link point in the block chain network of upper layer information;BaseIn the inscribed election data received of this round, common recognition node is determined from the selected upper layer block chain link point of each election data,So that the common recognition node executes block packaging operation in a new round time.
Wherein, the numerical value in the first account of any upper layer block chain link point is had for characterizing the upper layer block chain link pointThe quantity of some digital cash, the numerical value in the second account of any upper layer block chain link point is for characterizing the upper layer block chain linkThe quantity of ballot paper possessed by point.
In one embodiment of the present disclosure, ballot paper provides module 403 for receiving block chain in upper layer belonging to this nodeThe Transaction Information that upper layer block chain link point in network issues;Default value, the present count are determined according to the Transaction InformationValue increases for characterizing into the second account as the upper layer block chain link point of the corresponding product provider of the Transaction InformationThe numerical value added;The default value is sent to each upper layer block chain link point in block chain network in upper layer belonging to this node,So that the default value is stored in corresponding upper layer block chain by each upper layer block chain link point.
Wherein, as an optional embodiment, ballot paper provides module 403 and determines default value according to the Transaction InformationIt include: that ballot paper provides module 403 for determining the default value according to the total amount of the corresponding product of the Transaction Information.
Using embodiment illustrated in fig. 4 of the present invention, the upper layer block chain link point for issuing polled data is to hold ballot paper and/or numberThe upper layer block chain link point of word currency, it is selected same comprising issuing the upper layer block chain link point of election data in election dataThe information of upper layer block chain link point in block chain network, from the selected upper layer block chain of each election data in a roundCommon recognition node is determined in node, compared with the scheme for determining common recognition block chain link point in the prior art, this programme does not need to consumeThe calculation power resource of upper layer block chain link point.
Based on embodiment illustrated in fig. 1 of the present invention, Fig. 5 diagrammatically illustrates block catenary system according to an embodiment of the present disclosureBlock diagram.
As shown in figure 5, the block catenary system 500 includes: bottom block chain network 510 and at least one upper layer block link networkNetwork 520.
Bottom block chain network 510 includes multiple bottom block chain link points 511, and upper layer block chain network 520 includes multipleUpper layer block chain link point 521.
Upper layer block chain link point 521 is used for will be in the corresponding upper layer block chain of upper layer block chain network 520 belonging to itBlock data is sent to bottom block chain link point 511.
Bottom block chain link point 511 is used to broadcast the block data received to each bottom block chain link point 511, so thatThe block data is stored in the corresponding bottom of bottom block chain network 510 by common recognition verifying by each bottom block chain link point 511In block chain.
It should be noted that in device section Example each module/unit/subelement etc. embodiment, the skill of solutionArt problem, the function of realization and the technical effect reached respectively with the implementation of corresponding step each in method section ExampleMode, the technical issues of solving, the function of realization and the technical effect that reaches are same or like, and details are not described herein.
It is module according to an embodiment of the present disclosure, submodule, unit, any number of or in which any more in subelementA at least partly function can be realized in a module.It is single according to the module of the embodiment of the present disclosure, submodule, unit, sonAny one or more in member can be split into multiple modules to realize.According to the module of the embodiment of the present disclosure, submodule,Any one or more in unit, subelement can at least be implemented partly as hardware circuit, such as field programmable gateArray (FPGA), programmable logic array (PLA), system on chip, the system on substrate, the system in encapsulation, dedicated integrated electricityRoad (ASIC), or can be by the hardware or firmware for any other rational method for integrate or encapsulate to circuit come realShow, or with any one in three kinds of software, hardware and firmware implementations or with wherein any several appropriately combined next realityIt is existing.Alternatively, can be at least by part according to one or more of the module of the embodiment of the present disclosure, submodule, unit, subelementGround is embodied as computer program module, when the computer program module is run, can execute corresponding function.
For example, secure processing module 401, common recognition module 402 and ballot paper provide any number of can close in module 403And it is realized in a module or any one module therein can be split into multiple modules.Alternatively, in these modulesAt least partly functions of one or more modules can be combined at least partly function of other modules, and in a moduleMiddle realization.In accordance with an embodiment of the present disclosure, secure processing module 401, common recognition module 402 and ballot paper are provided in module 403 extremelyFew one can at least be implemented partly as hardware circuit, such as field programmable gate array (FPGA), programmable logic battle array(PLA), system on chip, the system on substrate, the system in encapsulation, specific integrated circuit (ASIC) are arranged, or can be by electricityRoad carries out the hardware such as any other rational method that is integrated or encapsulating or firmware to realize, or with software, hardware and firmwareAny one in three kinds of implementations several appropriately combined is realized with wherein any.Alternatively, secure processing module 401,Common recognition module 402 and ballot paper, which provide at least one of module 403, can at least be implemented partly as computer program mouldBlock can execute corresponding function when the computer program module is run.
Fig. 6 is diagrammatically illustrated according to the computer equipment for being adapted for carrying out method as described above of the embodiment of the present disclosureBlock diagram.Computer equipment shown in Fig. 6 is only an example, should not function to the embodiment of the present disclosure and use scope bringAny restrictions.
As shown in fig. 6, include processor 601 according to the computer equipment 600 of the embodiment of the present disclosure, it can be according to storageIt is loaded into random access storage device (RAM) 603 in the program in read-only memory (ROM) 602 or from storage section 608Program and execute various movements appropriate and processing.Processor 601 for example may include general purpose microprocessor (such as CPU), refer toEnable set processor and/or related chip group and/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..ProcessingDevice 601 can also include the onboard storage device for caching purposes.Processor 601 may include for executing according to disclosure realityApply single treatment unit either multiple processing units of the different movements of the method flow of example.
In RAM 603, it is stored with equipment 600 and operates required various programs and data.Processor 601, ROM 602 withAnd RAM 603 is connected with each other by bus 604.Processor 601 is held by executing the program in ROM 602 and/or RAM 603The various operations gone according to the method flow of the embodiment of the present disclosure.It is noted that described program also can store except ROM 602In one or more memories other than RAM 603.Processor 601 can also be stored in one or more of by executionProgram in memory executes the various operations of the method flow according to the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, equipment 600 can also include input/output (I/O) interface 605, input/output(I/O) interface 605 is also connected to bus 604.Equipment 600 can also include be connected to I/O interface 605 with one in lower componentItem is multinomial: the importation 606 including keyboard, mouse etc.;Including such as cathode-ray tube (CRT), liquid crystal display (LCD)Deng and loudspeaker etc. output par, c 607;Storage section 608 including hard disk etc.;And including such as LAN card, modulatedemodulateAdjust the communications portion 609 of the network interface card of device etc..Communications portion 609 executes communication process via the network of such as internet.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as disk, CD, magneto-optic disk, semiconductorMemory etc. is mounted on as needed on driver 610, in order to be pacified as needed from the computer program read thereonIt is packed into storage section 608.
In accordance with an embodiment of the present disclosure, computer software journey may be implemented as according to the method flow of the embodiment of the present disclosureSequence.For example, embodiment of the disclosure includes a kind of computer program product comprising carry meter on a computer-readable mediumCalculation 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 from network by communications portion 609, and/or be pacified from detachable media 611Dress.When the computer program is executed by processor 601, the above-mentioned function of limiting in the system of the embodiment of the present disclosure is executed.RootAccording to embodiment of the disclosure, system as described above, unit, module, unit etc. can by computer program module comeIt realizes.
The disclosure additionally provides a kind of computer readable storage medium, which can be above-mentioned realityIt applies included in equipment/device/system described in example;Be also possible to individualism, and without be incorporated the equipment/device/In system.Above-mentioned computer readable storage medium carries one or more program, when said one or multiple program quiltsWhen execution, the method according to the embodiment of the present disclosure is realized.
In accordance with an embodiment of the present disclosure, computer readable storage medium can be non-volatile computer-readable storage mediumMatter, such as can include but is not limited to: portable computer diskette, hard disk, random access storage device (RAM), read-only memory(ROM), erasable programmable read only memory (EPROM or flash memory), portable compact disc read-only memory (CD-ROM), lightMemory device, magnetic memory device or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium canWith to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use orPerson is in connection.For example, in accordance with an embodiment of the present disclosure, computer readable storage medium may include above-describedOne or more memories other than ROM 602 and/or RAM 603 and/or ROM 602 and RAM 603.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the inventionMade any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.