CN109522456A - The node availability detection generated based on block - Google Patents

The node availability detection generated based on block Download PDF

Info

Publication number
CN109522456A
CN109522456A CN201811351342.2A CN201811351342A CN109522456A CN 109522456 A CN109522456 A CN 109522456A CN 201811351342 A CN201811351342 A CN 201811351342A CN 109522456 A CN109522456 A CN 109522456A
Authority
CN
China
Prior art keywords
ballot
node
malice
accounting nodes
private key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811351342.2A
Other languages
Chinese (zh)
Inventor
路成业
王凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Iallchain Co Ltd
Original Assignee
Iallchain 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 Iallchain Co Ltd filed Critical Iallchain Co Ltd
Priority to CN201811351342.2A priority Critical patent/CN109522456A/en
Publication of CN109522456A publication Critical patent/CN109522456A/en
Pending legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of node availability detection method generated based on block and accounting nodes, wherein, method includes: that each accounting nodes obtain alternative block and ballot incentive message of the upper period throwing by ballot node private key signature and accounting nodes private key signature, the target accounting nodes in a upper period determine that malice ballot node, control malice ballot node retract incentive message;If target accounting nodes receive breaking one's promise for malice ballot node transmission within a preset time and punish information and incentive message, restore the franchise of malice ballot node.Block generating mode is optimized as a result, improves block formation efficiency, and while ensure that the participation enthusiasm of ballot node, constrains ballot node to vote for interests malice, practicability and flexibility are stronger.

Description

The node availability detection generated based on block
Technical field
The present invention relates to block chain technical field more particularly to a kind of node availability detections generated based on block.
Background technique
The core of block chain is common recognition mechanism, for example, multiple interdependent nodes determine that a transaction is effectively transaction jointly, Common recognition mechanism determines the way of realization of block chain, determines the mode and rule of trust, to determine the difference of block chain Application scenarios.
In the related technology, common recognition mechanism includes Pow, Pos, DPos and some mixing common recognition mechanism, these common recognition mechanism Algorithm comparison it is complicated, take a long time, universal with block chain, the number of services of block chain carrying is larger, and often participates in The generation quantity of block chain needed for the quantity relative block chain for the accounting nodes that block generates is fewer, causes based on above-mentioned common recognition The efficiency that mechanism carries out the generation of block is lower, thus, need a kind of higher block generating mode of efficiency.
Summary of the invention
The present invention provides a kind of node availability detection method and accounting nodes based on block generation, and solves existing In technology, block generation is being carried out based on the more complicated common recognition mechanism of algorithm, the lower technology of block formation efficiency is caused to be asked Topic, and under the premise of solving the block formation efficiency lower technical problem, it is ensured that the participation of new block generating mode The participation enthusiasm of side, and the malice ballot of participant is avoided when playing an active part in, it ensure that new block generating mode Practicability and flexibility.
First embodiment of the invention provides a kind of node availability detection method generated based on block, comprising: each book keeping operation What the upper period ballot node of node acquisition was broadcasted to block chain network passes through ballot node private key signature and accounting nodes private key The alternative block and ballot incentive message of signature, wherein the alternative block is each accounting nodes generation including described upper one The block of period Transaction Information, the ballot node is for verifying to determine whether to throw the upper period Transaction Information Ticket;Each accounting nodes detect the multiple alternative of the corresponding different accounting nodes private key signatures of identical ballot node private key signature Whether the upper period Transaction Information in block is identical, if it is different, then broadcasting to the block chain network through overregistering section The malice ballot nodal information of point private key signature and a upper period for malice ballot node break one's promise message and described Upper period corresponding ballot incentive message;The target accounting nodes in a upper period determine the malice ballot node, with And it was broken one's promise message and a upper period corresponding ballot prize with described according to the vote ballot of the upper period of node of the malice Information is encouraged, and then judges whether malice ballot node obtained ballot incentive message corresponding with upper period, if really The fixed malice ballot node obtained corresponding ballot incentive message of the upper period, then corresponding according to the upper period Ballot incentive message sent to malice ballot node break one's promise punish information and incentive message retract control instruction;The mesh If mark accounting nodes receive described break one's promise that the malice ballot node is sent within a preset time and punish information and the prize Information is encouraged, then restores message to the ballot authorization that the block chain network broadcasts the malice ballot node, if in preset time It is inside not received by described break one's promise that the malice ballot node is sent and punishes information and the incentive message, then to the block Chain network broadcasts the ballot invalid message of the malice ballot node.
Second embodiment of the invention provides a kind of accounting nodes, comprising: module is obtained, for obtaining each accounting nodes One period ballot node broadcast to block chain network by the alternative of node private key signature and accounting nodes private key signature of voting Block and ballot incentive message, wherein the alternative block is each accounting nodes generation including the upper period transaction letter The block of breath, the ballot node is for verifying to determine whether to vote the upper period Transaction Information;At first Module is managed, for making each accounting nodes detect the corresponding different accounting nodes private key signatures of identical ballot node private key signature Multiple alternative blocks in the upper period Transaction Information it is whether identical, if it is different, then to the block chain network broadcast The upper period for malice ballot nodal information and malice ballot node by accounting nodes private key signature breaks one's promise Message and corresponding ballot incentive message of the upper period;Second processing module is saved for making the target in a upper period keep accounts Point determines that the malice is voted node, and with it is described according to the malice vote node the ballot of a upper period break one's promise message and Upper period corresponding ballot incentive message, and then judge whether the malice ballot node obtained and the upper period Corresponding ballot incentive message, however, it is determined that the malice ballot node obtained corresponding ballot incentive message of the upper period, It was then broken one's promise according to upper period corresponding ballot incentive message to malice ballot node transmission and punishes information and reward Information retracts control instruction;Broadcast module, if for making the target accounting nodes receive the evil within a preset time Described break one's promise that meaning ballot node is sent punishes information and the incentive message, then broadcasts the malice to the block chain network The ballot authorization of ballot node restores message, if being not received by the described of the malice ballot node transmission within a preset time It breaks one's promise and punishes information and the incentive message, then disappear in vain to the ballot that the block chain network broadcasts the malice ballot node Breath.
Third embodiment of the invention provides a kind of computer equipment, including memory, processor and storage are on a memory And the computer program that can be run on a processor, when the processor executes the computer program, realize such as above-mentioned implementation The node availability detection method of example description generated based on block.
Fourth embodiment of the invention provides a kind of computer readable storage medium, is stored thereon with computer program, described The node availability detection side generated based on block as described in above-described embodiment is realized when computer program is executed by processor Method.
Technical solution provided in an embodiment of the present invention can include the following benefits:
It only needs repeatedly broadcast that can reach common understanding, determines that chain enters the area of block chain based on two kinds of mechanism of time and ballot Block is no longer dependent on complicated common recognition mechanism algorithm, is optimized to block generating mode, improves block formation efficiency, This method effect that efficiency improves especially in the generation scene of alliance's chain is more prominent, and application scenarios are wider, and is based on award machine System ensures the enthusiasm of the participant of the block generating mode, and while improving enthusiasm, is avoided based on penalty mechanism Participant is since interests are ready that malice head is voted, and practicability is higher and flexibility is stronger.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein
Fig. 1 is the structural schematic diagram that block generates system according to an embodiment of the present invention;
Fig. 2 is that block according to an embodiment of the invention generates system interaction schematic diagram;
Fig. 3 is the flow chart of the node availability detection method according to an embodiment of the invention generated based on block;
Fig. 4 is the process of the node availability detection method in accordance with another embodiment of the present invention generated based on block Figure;And
Fig. 5 is the structural schematic diagram of accounting nodes according to an embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
In order to solve to mention in above-mentioned background technique since the algorithm of common recognition mechanism is complicated, cause block formation efficiency compared with Low technical problem, the present invention provides a kind of novel common recognition mechanism to improve block formation efficiency, in the common recognition mechanism, Effective block is determined based on ballot paper and Time priority both reference factors, before it ensure that block generates reliability It puts, improves block formation efficiency.
Wherein, clear for description, system is generated to the block of the embodiment of the present invention first and is described, Fig. 1 is root The structural schematic diagram that system is generated according to one embodiment of the invention block, as shown in Figure 1, the system includes multiple accounting nodes 100 and multiple ballot nodes 200, wherein accounting nodes 100 can be understood as participating in the node that block generates, usually in alliance In the generation scene of block chain, each organizer can specify the accounting nodes by which node as this alliance's block chain, Ballot node 200 can be understood as with the node for whether effectively carrying out franchise to block, in general, ballot node is according to connection The warrantholder of the organizer of alliance's block chain even.Alternatively, whether ballot node 200 is it can be appreciated that effectively carry out block Determining has node corresponding to certain authoritative mechanism.
Referring to Fig. 2, in practical implementation, referring to Fig. 2, in practical implementation, each accounting nodes generation includes The alternative block of current period Transaction Information, and the alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain network (step 1) first authenticates the validity of the block by each ballot node, is after accounting nodes generate Transaction Information Guarantee the participation enthusiasm of the ballot side of certification, is the ballot node of ballot based on rewarding in an embodiment of the present invention, with The ballot enthusiasm for improving ballot node, maintains the running of the block generation method of the embodiment of the present invention, i.e., each ballot node obtains Take alternative block, according to local node store Transaction Information Transaction Information is verified, if being verified, generate with it is standby The corresponding ballot incentive message of constituency block, and broadcast to block chain network by ballot node private key signature and accounting nodes private key The alternative block and ballot incentive message (step 2) of signature.
After being kept accounts successfully due to accounting nodes, system can distribute reward, and the bonus for node of voting is from accounting nodes It extracts, thus, in order to guarantee book keeping operation income, accounting nodes can be examined the ballot bonus for the ballot node for participating in ballot Amount, to guarantee oneself benefit, i.e., each accounting nodes screen ballot corresponding with itself accounting nodes private key signature and save Point private key signature set, wherein include ballot corresponding from different ballot nodes reward letter in ballot node private key signature set Breath screens effectively ballot node private key signature set according to ballot incentive message from ballot node private key signature set, wherein Effectively ballot node private key signature set includes effective vote node private key signature and corresponding effective ballot incentive message, by In with multiple effective ballot nodes, thus, after effectively ballot node ballot, secondly also need multiple in comprehensive examination and evaluation block Effectively ballot node ballot situation, i.e., judgement effectively ballot node private key signature set whether with preset selection condition Match, and then determines the corresponding target accounting nodes (step of target effective ballot node private key signature set of successful match first 3), that is to say, that preliminary screening goes out the effectively corresponding target accounting nodes of the ballot universally recognized block of node.
Wherein, in one embodiment of the invention, ballot can be determined based on effective ballot number of nodes of approval The universal degree of recognition of node, i.e., each accounting nodes obtain effective number of signatures in effectively ballot node private key signature set, will have Effect number of signatures is compared with preset first threshold, it is first determined the target that effective number of signatures is equal to first threshold is voted The corresponding node of node private key signature set is target accounting nodes.
In another embodiment of the present invention, as it has been described above, each effective ballot node is related organization Middle stock option side, thus, it is also based on the ballot weight of equity held quantity and determine each effective ballot node, is based on The total weight for the effective ballot node approved determines the effectively ballot universal degree of recognition of node, i.e., each accounting nodes obtain effectively ballot Effective number of signatures in node private key signature set, and the weighted value of different effectively ballot nodes, according to effective number of signature The weighted value of amount and different effectively ballot nodes calculates ballot value, and ballot value is compared with preset second threshold, first The corresponding node of target effective ballot node private key signature set for first determining that ballot value is equal to second threshold is target book keeping operation section Point.
In turn, node is voted-for according to block and generally approves the successful time, further screening more reliably block, Target accounting nodes will sign standby by target accounting nodes private key signature and target effective ballot node private key signature set Constituency block is sent to time stamp server, and time stamp server label authenticated time is stabbed and used after timestamp private key signature to block Chain network broadcasts alternative block, so that the non-targeted accounting nodes of block chain network are private according to itself corresponding effective ballot node Key signature set and selection condition verify alternative block, authenticated time stamp and timestamp private key signature, if verifying is obstructed It crosses, then to block chain network verifying broadcasts failed message (step 4).
Finally, the label authenticated time stamp and timestamp private key signature of target accounting nodes receiving time stamp server broadcast Alternative block, and timer is opened, if being not received by the authentication failed of non-targeted accounting nodes broadcast within a preset time Message, it is determined that the alternative block that target accounting nodes generate is effective block, and is remembered to block chain network broadcast effective block Enter block chain, meanwhile, corresponding incentive message (step is sent to corresponding effective ballot node according to effective ballot incentive message 5)。
The block generation method of the embodiment of the present invention as a result, is no longer dependent on the generation of random number in traditional common recognition mechanism And compare, based on the mechanism that time and voting mechanism generate as block, ensure that block generate reliability in advance under Block formation efficiency is improved, and ensures based on reward mechanism the enthusiasm of the participant of the block generating mode, practicability It is higher.
However, it is not difficult to find out that, once ballot node has reward, it is possible to and there is ballot node and is disliked to reward Meaning ballot, for example the message etc. being proved to be successful is issued without verifying to all alternative blocks, to realize The acquisition of incentive message after final block generation, in order to avoid this kind of situation, the embodiment of the present invention also proposed A kind of penalty mechanism in above-mentioned block generation method when the ballot of ballot malicious behaviors of nodes, is specifically described below.
Fig. 3 is the flow chart of the node availability detection method according to an embodiment of the invention generated based on block, As shown in figure 3, this method comprises:
Step 101, what the upper period ballot node of each accounting nodes acquisition was broadcasted to block chain network passes through ballot node The alternative block of private key signature and accounting nodes private key signature and ballot incentive message, wherein alternative block is each accounting nodes The block including upper period Transaction Information generated, ballot node is for verifying with determination upper period Transaction Information Whether vote.
Wherein, Transaction Information includes the mark such as both parties' node identification, transaction amount, tradable commodity title, exchange hour Know the information of transaction uniqueness.
It is appreciated that each accounting nodes generate the alternative block comprising corresponding period Transaction Information within a upper period, and And pretending to be in order to avoid other malicious nodes, the alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain, wherein Accounting nodes private key is only held by accounting nodes itself.Each ballot node obtains after alternative block according to the transaction being locally stored Information verifies Transaction Information, if unanimously, showing that currency transaction information is true and reliable, thus, it is verified, this When, after the completion of ballot, ballot incentive message corresponding with alternative block is generated, includes ballot amount of money award in the incentive message And alternative block active account information etc., it broadcasts to block chain network by ballot node private key signature and accounting nodes private key The alternative block and incentive message of signature, being verified at this time can be understood as voting successfully.
Certainly, exist ballot node it is not verified be alternative block stamp proof vote successfully, to seek illegal profit, In order to avoid this kind of situation, in an embodiment of the present invention, before the generation of each period block, for a upper week The ballot situation of the ballot node of phase is made whether the verifying that malice is voted.
Specifically, the upper period ballot node of each accounting nodes acquisition is broadcasted private by ballot node to block chain network Key signature and accounting nodes private key signature alternative block and ballot incentive message, in order to according to ballot node private key signature and The alternative block of accounting nodes private key signature further verifies whether related ballot node has carried out malice with ballot incentive message Ballot, wherein as described above, alternative block is the area including upper period Transaction Information that each accounting nodes generate Block, ballot node is for verifying to determine whether to vote upper period Transaction Information.
Step 102, each accounting nodes detect the corresponding different accounting nodes private key signatures of identical ballot node private key signature Multiple alternative blocks in upper period Transaction Information it is whether identical, if it is different, then to block chain network broadcast through overregistering The malice ballot nodal information of node private key signature, and a upper period for malice ballot node broke one's promise message and a upper period pair The ballot incentive message answered.
It is understandable to be, it is that the transaction in the Transaction Information and alternative block according to itself storage is believed due to ballot node What whether breath unanimously voted, thus, when ballot node throws the entirely different corresponding alternative block of Transaction Information When ticket, it is clear that belong to malice voting behavior, thus, in an embodiment of the present invention, each accounting nodes detect identical ballot node Whether the upper period Transaction Information in multiple alternative blocks of the corresponding different accounting nodes private key signatures of private key signature is identical, If it is different, then showing that the ballot node has carried out malice and voted, to the broadcast of block chain network by accounting nodes private key signature Malice ballot nodal information, wherein malice ballot nodal information includes the ID etc. of malice ballot node.
It in the present embodiment, include retracting its obtained ballot incentive message to the penalty mechanism of malice ballot node, because And after determining malice ballot node, in order to implement to punish to it, it is also necessary to it is corresponding to obtain a period on malice ballot node Ballot incentive message.Wherein, in order to which the loss for making up target accounting nodes also broadcasts malice ballot node in the present embodiment A upper period break one's promise message, wherein message of breaking one's promise is for allowing target accounting nodes to know in its node of voting there is corresponding evil Meaning ballot node.
Step 103, a upper period target accounting nodes determine malice ballot node, and with according to malice vote node The ballot of a upper period broke one's promise message and corresponding ballot incentive message of the upper period, and then judge whether malice ballot node obtains Took ballot incentive message corresponding with a upper period, however, it is determined that malice ballot node obtained corresponding ballot reward letter of the upper period Breath then sent to break one's promise and punishes information and incentive message according to corresponding ballot incentive message of the upper period to malice ballot node Retract control instruction.
Specifically, the target accounting nodes in upper period determine malice ballot node and with according to malice ballot node The ballot of upper period was broken one's promise after message and corresponding ballot incentive message of the upper period, judge malice vote node whether obtain and Upper period corresponding ballot incentive message, for example, determine whether ballot incentive message reaches malice and vote the account of node, if Determined that malice ballot node obtained corresponding ballot incentive message of the upper period, then according to corresponding ballot reward letter of the upper period Cease sent to malice ballot node break one's promise punish information and incentive message retract control instruction, wherein break one's promise and punish packet Containing specific punishment content (such as the punishment amount of money, and do not pay up to break one's promise and punish information i.e. and can lose the notice of franchise broken one's promise Information etc.).
In one embodiment of the invention, however, it is determined that malice ballot node does not obtain a period corresponding ballot prize Information is encouraged, then breaks one's promise to malice ballot node transmission and punishes information, if target accounting nodes receive malice within a preset time Information is punished in breaking one's promise for ballot node transmission, then shows that malice ballot node has received punishment, thus, it is wide to block chain network The ballot authorization for broadcasting malice ballot node restores message, if being not received by the mistake that malice ballot node is sent within a preset time Letter punishment information, then broadcast the ballot invalid message of malice ballot node to block chain network.
As a kind of possible embodiment, as shown in figure 4, the target accounting nodes in a upper period determine malice ballot section Point, comprising:
Step 201, target accounting nodes to received malice by accounting nodes private key signature vote nodal information It carries out parsing and obtains malice ballot node identification, and determining different accounting nodes corresponding from identical malice ballot node identification The report number of signatures of private key signature.
Step 202, target accounting nodes will report that number of signatures is compared with preset threshold, if knowing report number of signature Amount is more than or equal to preset threshold, it is determined that for malice ballot node.
Specifically, target accounting nodes determine whether ballot node is strictly to dislike according to the quantity that other accounting nodes are reported Meaning ballot node, i.e., target accounting nodes to institute it is received by accounting nodes private key signature malice ballot nodal information progress Parsing obtains malice ballot node identification, and determining different accounting nodes private keys corresponding from identical malice ballot node identification The report number of signatures of signature, in turn, target accounting nodes will report that number of signatures is compared with preset threshold, if knowing act Number of signatures is reported to be more than or equal to preset threshold, it is determined that be malice ballot node, at this point, preset threshold can be according to other book keeping operations The quantity of node is arranged, and usual preset threshold is the value of the half of the quantity greater than other accounting nodes.
Step 104, if target accounting nodes receive the punishment letter of breaking one's promise that malice ballot node is sent within a preset time Breath and incentive message then restore message to the ballot authorization that block chain network broadcasts malice ballot node, if within a preset time It is not received by breaking one's promise for malice ballot node transmission and punishes information and incentive message, then broadcast malice to block chain network and vote The ballot invalid message of node.
Specifically, if target accounting nodes receive breaking one's promise for malice ballot node transmission within a preset time and punish information And incentive message, then show that malice ballot node has fulfiled penal system and retracted incentive message, thus, to block The ballot authorization of chain network broadcast malice ballot node restores message, if being not received by malice ballot node within a preset time Information and incentive message are punished in breaking one's promise for sending, then the ballot invalid message of malice ballot node is broadcasted to block chain network.
In one embodiment of the invention, to block chain network broadcast malice ballot node ballot invalid message it Afterwards, voting results are generated in order to avoid the malice ballot node influences subsequent block, it is also necessary to the malice ballot node Invalidation is made in ballot.
Specifically, each accounting nodes screen current period ballot node private corresponding with itself accounting nodes private key signature Key signature set, wherein include ballot corresponding from different ballot nodes reward letter in the ballot node private key signature set Breath deletes the malice from the ballot node private key signature set according to the ballot invalid message of malice ballot node The private key signature of node of voting and corresponding ballot incentive message, acquisition filtering ballot node private key signature set are got rid of The ballot of the malice ballot node.
In turn, each accounting nodes according to the corresponding ballot incentive message of remaining ballot node from the filtering vote node Effectively ballot node private key signature set is screened in private key signature set, wherein effective ballot node private key signature set Comprising node private key signature and the corresponding effective ballot incentive message of effectively voting, and judge effective ballot node private key Whether signature set matches with preset selection condition, and then the target effective of successful match first in the determining current period The corresponding target accounting nodes of node private key signature set of voting.
It should be noted that above-mentioned preset selection condition is different, and example is as follows according to the difference of application scenarios:
In one embodiment of the invention, ballot node can be determined based on the ballot number of nodes of remaining approval Universal degree of recognition, i.e., each accounting nodes obtain the number of signatures in remaining effective ballot node private key signature set, will sign Quantity is compared with preset first threshold, it is first determined the remaining target effective that number of signatures is equal to first threshold is voted The corresponding node of node private key signature set be target accounting nodes, wherein first threshold can according to ballot number of nodes come It determines, ballot number of nodes is higher, and the quantity of first threshold is higher, and in some possible examples, first threshold is greater than throwing The quantity of the half of ticket number of nodes.
In another embodiment of the present invention, as it has been described above, each ballot node is held in related organization There is equity side, thus, it is also based on the ballot weight of equity held quantity and determine each remaining ballot node, based on recognizing Can total weight of remaining ballot node determine the ballot universal degree of recognition of node, i.e. each accounting nodes obtain effectively ballot node Number of signatures in private key signature set, and the weighted value of different effectively ballot nodes, according to effective number of signatures and not Weighted value with remaining effective ballot node calculates ballot value, for example, by the product value of the corresponding weighted value of each signature it It is worth with as ballot, for another example, using the product value of the sum of weighted value and number of signatures as ballot value, as by ballot value and pre- If second threshold be compared, it is first determined ballot value be equal to second threshold remaining target effective vote node private key label It is target accounting nodes that name, which gathers corresponding node, wherein second threshold is usually total weight according to all ballot nodes Value setting, total weighted value of all ballot nodes is higher, then second threshold is higher.
In the present embodiment, the corresponding weighted value of different remaining effective ballot nodes can be based on different characteristic informations It determines, that is, obtains characteristic information of the different remaining effective ballot nodes in block chain network, this feature information can be stock Power hold quantity or, nodal community (for example being personal node or agency node) etc., in turn, according to characteristic information determine From the corresponding weighted values of remaining different effectively ballot nodes, for example, pre-establish the corresponding relationship of characteristic information and weighted value, In turn, get remaining effective ballot node it is corresponding after, inquire the corresponding relationship, corresponding weighted value can be obtained.
Based on above description, in order to thoroughly eliminate voting mechanism, its throwing is no longer restored for the node of repeatedly malice ballot Ticket power, in one embodiment of the invention, each accounting nodes are to the broadcast of block chain network by accounting nodes private key signature Malice ballot nodal information, and mark malice ballot nodal information malice ballot cumulative frequency, when know malice ballot accumulation Number reaches preset threshold, for example reaches three times, then disappears to the ballot authorization abolishment that block chain network broadcasts malice ballot node Breath.
To sum up, the embodiment of the present invention based on block generate node availability detection method, it is only necessary to repeatedly broadcast be It may achieve common recognition, determine that chain enters the block of block chain based on two kinds of mechanism of time and ballot, be no longer dependent on complicated common recognition machine Block generating mode is optimized in algorithm processed, improves block formation efficiency, this method is especially in the generation field of alliance's chain The effect that efficiency improves in scape is more prominent, and application scenarios are wider, and the ginseng of the block generating mode is ensured based on reward mechanism Participant is avoided to be ready the throwing of malice head due to interests based on penalty mechanism and while improving enthusiasm with the enthusiasm of side Ticket, practicability is higher and flexibility is stronger.
In order to realize above-described embodiment, the invention also provides a kind of accounting nodes, Fig. 5 is an implementation according to the present invention The structural schematic diagram of the accounting nodes of example, as shown in figure 5, the accounting nodes include: to obtain module 110, first processing module 120, Second processing module 130 and broadcast module 140.
Wherein, module 110 is obtained, is broadcasted for making each accounting nodes obtain upper period ballot node to block chain network By ballot node private key signature and accounting nodes private key signature alternative block and ballot incentive message, wherein candidate area Block is the block including upper period Transaction Information that each accounting nodes generate, and ballot node is used for upper period Transaction Information It is verified to determine whether to vote.
First processing module 120, for making each accounting nodes detect the corresponding different notes of identical ballot node private key signature Whether the upper period Transaction Information in multiple alternative blocks of account node private key signature is identical, if it is different, then to block link network Malice of the network broadcast Jing Guo accounting nodes private key signature is voted nodal information, and vote upper period of node of malice breaks one's promise and disappears Ceased ballot incentive message corresponding with a upper period.
Second processing module 130, for make a upper period target accounting nodes determine malice ballot node, and with root It broke one's promise message and corresponding ballot incentive message of the upper period according to the ballot of the upper period of malice ballot node, and then judges malice Whether ballot node obtained ballot incentive message corresponding with a upper period, however, it is determined that malice ballot node obtained a upper period pair The ballot incentive message answered then broke one's promise to malice ballot node transmission according to corresponding ballot incentive message of the upper period and punishes letter Breath retracts control instruction with incentive message.
In one embodiment of the invention, Second processing module 130 is specifically used for making target accounting nodes to being received By accounting nodes private key signature malice ballot nodal information carry out parsing obtain malice ballot node identification, and determine The report number of signatures of different accounting nodes private key signatures corresponding from identical malice ballot node identification, makes target accounting nodes Report number of signatures is compared with preset threshold, if knowing, report number of signatures is more than or equal to preset threshold, it is determined that is Malice ballot node.
In one embodiment of the invention, Second processing module 130 is also used to if it is determined that malice ballot node does not obtain A period corresponding ballot incentive message is taken, then breaks one's promise to malice ballot node transmission and punishes information, make target accounting nodes If receiving breaking one's promise for malice ballot node transmission within a preset time punishes information, malice is broadcasted to block chain network and is voted The ballot authorization of node restores message, if being not received by the punishment letter of breaking one's promise that malice ballot node is sent within a preset time Breath then broadcasts the ballot invalid message of malice ballot node to block chain network.
Broadcast module 140, if for making target accounting nodes receive what malice ballot node was sent within a preset time It breaks one's promise and punishes information and incentive message, then restore message to the ballot authorization that block chain network broadcasts malice ballot node, if It is not received by breaking one's promise for malice ballot node transmission in preset time and punishes information and incentive message, then it is wide to block chain network Broadcast the ballot invalid message of malice ballot node.
It should be noted that the aforementioned explanation to the node availability detection method generated based on block, is also suitable In the accounting nodes of the embodiment of the present invention, realization principle is similar, and details are not described herein.
In order to realize above-described embodiment, the invention also provides a kind of computer equipment, including memory, processor and deposit The computer program that can be run on a memory and on a processor is stored up, it is real when the processor executes the computer program The now node availability detection method generated based on block as described in previous embodiment.
In order to realize above-described embodiment, the present invention also proposes a kind of non-transitorycomputer readable storage medium, deposits thereon Computer program is contained, can be realized when the computer program is executed by processor as described in previous embodiment based on area The node availability detection method that block generates.
In the present invention, term " first ", " second " are used for description purposes only, and are not understood to indicate or imply opposite Importance or the quantity for implicitly indicating indicated technical characteristic.Define " first " as a result, the feature of " second " can be bright Show or implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two It is a, three etc., unless otherwise specifically defined.
In the present invention unless specifically defined or limited otherwise, fisrt feature in the second feature " on " or " down " can be with It is that the first and second features directly contact or the first and second features pass through intermediary mediate contact.Moreover, fisrt feature exists Second feature " on ", " top " and " above " but fisrt feature be directly above or diagonally above the second feature, or be merely representative of First feature horizontal height is higher than second feature.Fisrt feature can be under the second feature " below ", " below " and " below " One feature is directly under or diagonally below the second feature, or is merely representative of first feature horizontal height less than second feature.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of node availability detection method generated based on block characterized by comprising
What each upper period ballot node of accounting nodes acquisition was broadcasted to block chain network passes through ballot node private key signature and note The alternative block and ballot incentive message of account node private key signature, wherein the alternative block is the packet that each accounting nodes generate Include the block of the upper period Transaction Information, the ballot node be used to verify the upper period Transaction Information with Determine whether to vote;
Each accounting nodes detect the multiple standby of the corresponding different accounting nodes private key signatures of identical ballot node private key signature Whether the upper period Transaction Information in the block of constituency is identical, if it is different, then broadcasting to the block chain network through overregistering The malice ballot nodal information of node private key signature and a upper period for malice ballot node break one's promise message and institute State a period corresponding ballot incentive message;
The target accounting nodes in a upper period determine the malice ballot node, and are voted with described according to the malice The ballot of the upper period of node was broken one's promise message and a upper period corresponding ballot incentive message, and then judged the malice throwing Whether ticket node obtained ballot incentive message corresponding with upper period, however, it is determined that described in the malice ballot node obtains Upper period corresponding ballot incentive message was then voted according to upper period corresponding ballot incentive message to the malice Node send break one's promise punish information and incentive message retract control instruction;
If the target accounting nodes receive the punishment letter of breaking one's promise that the malice ballot node is sent within a preset time Breath and the incentive message then restore message to the ballot authorization that the block chain network broadcasts the malice ballot node, if It is not received by described break one's promise that the malice ballot node is sent within a preset time and punishes information and the incentive message, then The ballot invalid message of the malice ballot node is broadcasted to the block chain network.
2. the method according to claim 1, wherein the target accounting nodes in a upper period determine the evil Meaning ballot node, comprising:
The target accounting nodes to it is received it is described by accounting nodes private key signature malice ballot nodal information carry out Parsing obtains malice ballot node identification, and determining different accounting nodes private keys corresponding from identical malice ballot node identification The report number of signatures of signature;
The report number of signatures is compared by the target accounting nodes with preset threshold, if knowing the report number of signature Amount is more than or equal to the preset threshold, it is determined that for malice ballot node.
3. the method according to claim 1, wherein it is described judge malice ballot node whether obtain with After upper period corresponding ballot incentive message, further includes:
If it is determined that the malice ballot node did not obtain corresponding ballot incentive message of the upper period, then to the malice Ballot node transmission, which is broken one's promise, punishes information;
If the target accounting nodes receive the punishment letter of breaking one's promise that the malice ballot node is sent within a preset time Breath then restores message to the ballot authorization that the block chain network broadcasts the malice ballot node, if not having within a preset time There is described break one's promise for receiving the malice ballot node transmission to punish information, then broadcasts the malice to the block chain network The ballot invalid message of ballot node.
4. the method according to claim 1, wherein broadcasting the malice ballot section to the block chain network After the ballot invalid message of point, further includes:
Each accounting nodes screen current period ballot node private key signature set corresponding with itself accounting nodes private key signature, In, it include ballot incentive message corresponding from different ballot nodes in the ballot node private key signature set, according to the evil The ballot invalid message of meaning ballot node deletes the private of the malice ballot node from the ballot node private key signature set Key signature and corresponding ballot incentive message obtain filtering ballot node private key signature set;
Each accounting nodes according to the corresponding ballot incentive message of remaining ballot node from the filtering vote node private key signature Effectively ballot node private key signature set is screened in set, wherein effective ballot node private key signature set includes effective Node private key signature of voting and corresponding effective ballot incentive message, and judge effective ballot node private key signature set Whether matched with preset selection condition, and then determines the target effective ballot node of successful match first in the current period The corresponding target accounting nodes of private key signature set.
5. the method according to claim 1, wherein further include:
Each accounting nodes broadcast the malice ballot nodal information Jing Guo accounting nodes private key signature to the block chain network, And the malice ballot cumulative frequency of malice ballot nodal information is marked, when knowing that the malice ballot cumulative frequency reaches pre- If threshold value, then message is abolished to the ballot authorization that the block chain network broadcasts the malice ballot node.
6. a kind of accounting nodes characterized by comprising
Acquisition module is saved for making each accounting nodes obtain the ballot of passing through that upper period ballot node is broadcasted to block chain network The alternative block and ballot incentive message of point private key signature and accounting nodes private key signature, wherein the alternative block is each note The block including the upper period Transaction Information that account node generates, the ballot node are used to trade to the upper period Information is verified to determine whether to vote;
First processing module, for making each accounting nodes detect the corresponding different book keeping operation sections of identical ballot node private key signature Whether the upper period Transaction Information in multiple alternative blocks of point private key signature is identical, if it is different, then to the block Chain network broadcast Jing Guo accounting nodes private key signature malice ballot nodal information and the malice vote node it is described on One period broke one's promise message and corresponding ballot incentive message of the upper period;
Second processing module, for making the target accounting nodes in a upper period determine malice ballot node, and with it is described It was broken one's promise message and corresponding ballot incentive message of the upper period according to the vote ballot of the upper period of node of the malice, into And judge whether malice ballot node obtained ballot incentive message corresponding with upper period, however, it is determined that the malice Node of voting obtained upper period corresponding ballot incentive message, then was rewarded and believed according to upper period corresponding ballot Cease sent to malice ballot node break one's promise punish information and incentive message retract control instruction;
Broadcast module, if for making the target accounting nodes receive what the malice ballot node was sent within a preset time Described break one's promise punishes information and the incentive message, then awards to the ballot that the block chain network broadcasts the malice ballot node Power restores message, if being not received by described break one's promise that the malice ballot node is sent within a preset time punishes information and institute Incentive message is stated, then broadcasts the ballot invalid message of the malice ballot node to the block chain network.
7. accounting nodes as claimed in claim 6, which is characterized in that the Second processing module is specifically used for:
Make the target accounting nodes to the received malice by accounting nodes private key signature vote nodal information into Row parsing acquisition malice ballot node identification, and determining different accounting nodes privates corresponding from identical malice ballot node identification The report number of signatures of key signature;
It is compared the target accounting nodes report number of signatures with preset threshold, if knowing the report signature Quantity is more than or equal to the preset threshold, it is determined that for malice ballot node.
8. accounting nodes as claimed in claim 6, which is characterized in that the Second processing module is also used to:
If it is determined that the malice ballot node did not obtain corresponding ballot incentive message of the upper period, then to the malice Ballot node transmission, which is broken one's promise, punishes information;
If the target accounting nodes is made to receive the punishment of breaking one's promise that the malice ballot node is sent within a preset time Information then restores message to the ballot authorization that the block chain network broadcasts the malice ballot node, if within a preset time It is not received by described break one's promise that the malice ballot node is sent and punishes information, then broadcast the evil to the block chain network The ballot invalid message of meaning ballot node.
9. a kind of computer equipment, which is characterized in that on a memory and can be in processor including memory, processor and storage The computer program of upper operation when the processor executes the computer program, is realized as described in any in claim 1-5 Based on block generate node availability detection method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It is realized when being executed by processor such as the node availability detection method as claimed in any one of claims 1 to 5 generated based on block.
CN201811351342.2A 2018-11-14 2018-11-14 The node availability detection generated based on block Pending CN109522456A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811351342.2A CN109522456A (en) 2018-11-14 2018-11-14 The node availability detection generated based on block

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811351342.2A CN109522456A (en) 2018-11-14 2018-11-14 The node availability detection generated based on block

Publications (1)

Publication Number Publication Date
CN109522456A true CN109522456A (en) 2019-03-26

Family

ID=65776385

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811351342.2A Pending CN109522456A (en) 2018-11-14 2018-11-14 The node availability detection generated based on block

Country Status (1)

Country Link
CN (1) CN109522456A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138597A (en) * 2019-04-17 2019-08-16 上海大学 Based on the block chain DPOS of credit score and node clustering common recognition mechanism improved method
CN110188137A (en) * 2019-04-19 2019-08-30 杭州电子科技大学 A kind of block chain common recognition mechanism based on sincerity
CN110400409A (en) * 2019-07-26 2019-11-01 深圳市网心科技有限公司 Thresholding voting method, system and relevant device based on BLS signature algorithm
CN111641617A (en) * 2020-05-19 2020-09-08 全链通有限公司 Processing method, device and storage medium for accounting right in block chain network
CN111783133A (en) * 2020-06-02 2020-10-16 广东科学技术职业学院 Network resource management method based on block chain technology
CN112261145A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 New block chain generation method and device
CN112822013A (en) * 2021-04-16 2021-05-18 卓尔智联(武汉)研究院有限公司 Block chain consensus method, device and storage medium
CN113206748A (en) * 2020-02-03 2021-08-03 北京百度网讯科技有限公司 Management method of alliance chain network, alliance chain network and electronic device
CN114925403A (en) * 2022-05-18 2022-08-19 易观科技股份有限公司 Block chain mixed consensus data processing method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101560A1 (en) * 2016-10-07 2018-04-12 International Business Machines Corporation Establishing overlay trust consensus for blockchain trust validation system
CN108182635A (en) * 2017-12-18 2018-06-19 深圳前海微众银行股份有限公司 Block chain common recognition method, system and computer readable storage medium
EP3364354A1 (en) * 2017-02-17 2018-08-22 Accenture Global Services Limited Hardware blockchain corrective consensus operating procedure enforcement
CN108734468A (en) * 2018-05-23 2018-11-02 众安信息技术服务有限公司 Information processing method based on block chain and Information Authentication method
CN108804706A (en) * 2018-06-20 2018-11-13 南方科技大学 A kind of block chain data processing method, device, equipment and storage medium
CN109543074A (en) * 2018-11-14 2019-03-29 全链通有限公司 The node availability detection generated based on block

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180101560A1 (en) * 2016-10-07 2018-04-12 International Business Machines Corporation Establishing overlay trust consensus for blockchain trust validation system
EP3364354A1 (en) * 2017-02-17 2018-08-22 Accenture Global Services Limited Hardware blockchain corrective consensus operating procedure enforcement
CN108182635A (en) * 2017-12-18 2018-06-19 深圳前海微众银行股份有限公司 Block chain common recognition method, system and computer readable storage medium
CN108734468A (en) * 2018-05-23 2018-11-02 众安信息技术服务有限公司 Information processing method based on block chain and Information Authentication method
CN108804706A (en) * 2018-06-20 2018-11-13 南方科技大学 A kind of block chain data processing method, device, equipment and storage medium
CN109543074A (en) * 2018-11-14 2019-03-29 全链通有限公司 The node availability detection generated based on block

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138597A (en) * 2019-04-17 2019-08-16 上海大学 Based on the block chain DPOS of credit score and node clustering common recognition mechanism improved method
CN110188137A (en) * 2019-04-19 2019-08-30 杭州电子科技大学 A kind of block chain common recognition mechanism based on sincerity
CN110400409A (en) * 2019-07-26 2019-11-01 深圳市网心科技有限公司 Thresholding voting method, system and relevant device based on BLS signature algorithm
CN113206748A (en) * 2020-02-03 2021-08-03 北京百度网讯科技有限公司 Management method of alliance chain network, alliance chain network and electronic device
CN113206748B (en) * 2020-02-03 2022-10-18 北京百度网讯科技有限公司 Management method of alliance chain network, alliance chain network and electronic device
CN111641617A (en) * 2020-05-19 2020-09-08 全链通有限公司 Processing method, device and storage medium for accounting right in block chain network
CN111641617B (en) * 2020-05-19 2022-10-21 全链通有限公司 Processing method, device and storage medium for accounting right in block chain network
CN111783133A (en) * 2020-06-02 2020-10-16 广东科学技术职业学院 Network resource management method based on block chain technology
CN112261145A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 New block chain generation method and device
CN112822013A (en) * 2021-04-16 2021-05-18 卓尔智联(武汉)研究院有限公司 Block chain consensus method, device and storage medium
CN112822013B (en) * 2021-04-16 2021-07-23 卓尔智联(武汉)研究院有限公司 Block chain consensus method, device and storage medium
CN114925403A (en) * 2022-05-18 2022-08-19 易观科技股份有限公司 Block chain mixed consensus data processing method and system

Similar Documents

Publication Publication Date Title
CN109522456A (en) The node availability detection generated based on block
CN109543075A (en) Block generation method and system
Küsters et al. Accountability: definition and relationship to verifiability
US11930113B2 (en) Blockchain hybrid consensus-based system for maintaining domain name information
Mercuri Electronic vote tabulation checks and balances
CN108876399B (en) Finite field block chain system with closed-loop authentication system
Drazen et al. Electoral manipulation via expenditure composition: theory and evidence
CN107464106A (en) The method and system merchandised between block chain main chain and side chain
CN109657486A (en) A kind of financial institution's user data sharing method and system based on block chain technology
CN109360100A (en) Transaction rapid acknowledgment method and device based on block chain technology
CN109067543A (en) Digital certificate management method, device, computer equipment and storage medium
CN108492103A (en) A kind of alliance's block chain common recognition method
CN109819022A (en) A kind of block chain common recognition method based on credit appraisal
Carboni Feedback based reputation on top of the bitcoin blockchain
CN109034813A (en) Represent node device electoral machinery, device, computer equipment and storage medium
CN110298660A (en) Node administration method based on block chain
CN108846673A (en) A kind of processing method of block data, device, equipment and storage medium
CN110610421B (en) Guarantee fund management method and device under fragment framework
Hirsch et al. Lobbyists as gatekeepers: Theory and evidence
CN108880832A (en) Block chain real name identification method and system
CN110570308A (en) block chain-based electronic warehouse receipt transaction system with incentive mechanism
CN111626722B (en) Cross-border payment method and device
Burlando et al. Legalize, tax, and deter: Optimal enforcement policies for corruptible officials
CN109543074A (en) The node availability detection generated based on block
CN116527684B (en) Multi-chain information interaction method based on 1+1+N relay consensus committee

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100191 1107c, 11 / F, Xueyuan international building, 1 Zhichun Road, Haidian District, Beijing

Applicant after: IALLCHAIN Co.,Ltd.

Address before: 100043 5158, 5 floor, 11 Shixing street, Shijingshan District, Beijing.

Applicant before: IALLCHAIN Co.,Ltd.

WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190326