CN109543075A - Block generation method and system - Google Patents

Block generation method and system Download PDF

Info

Publication number
CN109543075A
CN109543075A CN201811351343.7A CN201811351343A CN109543075A CN 109543075 A CN109543075 A CN 109543075A CN 201811351343 A CN201811351343 A CN 201811351343A CN 109543075 A CN109543075 A CN 109543075A
Authority
CN
China
Prior art keywords
ballot
private key
key signature
block
effective
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811351343.7A
Other languages
Chinese (zh)
Other versions
CN109543075B (en
Inventor
路成业
王凌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201811351343.7A priority Critical patent/CN109543075B/en
Publication of CN109543075A publication Critical patent/CN109543075A/en
Application granted granted Critical
Publication of CN109543075B publication Critical patent/CN109543075B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • 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)
  • Signal Processing (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention proposes a kind of block generation method and systems, wherein method includes: the alternative block of each accounting nodes broadcast private key signature;Each ballot node obtains alternative block, and alternative block and ballot incentive message by ballot node private key signature and accounting nodes private key signature are broadcasted to block chain network;Each accounting nodes screening effectively ballot node private key signature set from ballot node private key signature set according to ballot incentive message, and then determine target accounting nodes;Alternative block is sent to time stamp server by target accounting nodes;Receiving time stabs the alternative block of label the authenticated time stamp and timestamp private key signature of server broadcast, if being not received by authentication failed message, block chain then is charged to block chain network broadcast effective block, meanwhile, corresponding incentive message is sent to corresponding effective ballot node.Block generating mode is optimized as a result, and ensures the enthusiasm of the participant of the block generating mode, practicability is higher.

Description

Block generation method and system
Technical field
The present invention relates to block chain technical field more particularly to a kind of block generation methods and system.
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 block generation method and system, more complicated based on algorithm to solve in the prior art Common recognition mechanism carry out block generation, the technical problem for causing block formation efficiency lower, and solve the block formation efficiency compared with Under the premise of low technical problem, it is ensured that the participation enthusiasm of the participant of new block generating mode ensure that new area The practicability of block generating mode.
First embodiment of the invention provides a kind of block generation method, comprising: it includes current period that each accounting nodes, which generate, The alternative block of Transaction Information, and the alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain network;It is each to throw Ticket node obtains the alternative block, is verified according to the Transaction Information that local node stores to the Transaction Information, if testing Card passes through, then generates ballot incentive message corresponding with the alternative block, and to the broadcast of block chain network by node of voting The alternative block and the ballot incentive message of private key signature and the accounting nodes private key signature;Each accounting nodes screening Ballot node private key signature set corresponding with itself accounting nodes private key signature, wherein the ballot node private key signature collection It include ballot incentive message corresponding from different ballot nodes in conjunction, it is private from the ballot node according to the ballot incentive message Effectively ballot node private key signature set is screened in key signature set, wherein effective ballot node private key signature set packet Containing effective ballot node private key signature and corresponding effective ballot incentive message, and judge effective ballot node private key label Whether name set matches with preset selection condition, and then determines the target effective ballot node private key signature of successful match first Gather corresponding target accounting nodes;The target accounting nodes will have by target accounting nodes private key signature and the target The alternative block of effect ballot node private key signature set signature is sent to time stamp server, the time stamp server mark Note authenticated time stab and is used to the block chain network broadcast alternative block after timestamp private key signature, so that the block The non-targeted accounting nodes of chain network are according to itself corresponding effective ballot node private key signature set and the selection condition pair The alternative block, authenticated time stamp and the timestamp private key signature are verified, if verifying does not pass through, Xiang Suoshu Block chain network verifying broadcasts failed message;The target accounting nodes receive described in the label of the time stamp server broadcast The alternative block of authenticated time stamp and the timestamp private key signature, and timer is opened, if not having within a preset time Receive the authentication failed message of the non-targeted accounting nodes broadcast, it is determined that the institute that the target accounting nodes generate Stating alternative block is effective block, and broadcasts the effective block to the block chain network and charge to block chain, meanwhile, according to institute It states incentive message of effectively voting and sends corresponding incentive message to corresponding effective ballot node.
Second embodiment of the invention provides a kind of block generation system, including multiple accounting nodes and multiple ballot nodes, Wherein, each accounting nodes in the multiple accounting nodes, for generating the alternative block including current period Transaction Information, and The alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain network;Each ballot in the multiple ballot node Node verifies the Transaction Information according to the Transaction Information that local node stores for obtaining the alternative block, if It is verified, then generates ballot incentive message corresponding with the alternative block, and broadcast to block chain network and save by ballot The alternative block and the ballot incentive message of point private key signature and the accounting nodes private key signature;Each book keeping operation section Point is also used to screen ballot node private key signature set corresponding with itself accounting nodes private key signature, wherein the ballot section It include ballot incentive message corresponding from different ballot nodes in point private key signature set, according to the ballot incentive message from institute State screening effectively ballot node private key signature set in ballot node private key signature set, wherein effective ballot node is private Key signature set includes effectively vote node private key signature and corresponding effective ballot incentive message, and judges effective throwing Whether ticket node private key signature set matches with preset selection condition, and then determines the target effective ballot of successful match first The corresponding target accounting nodes of node private key signature set;The target accounting nodes, it is private for target accounting nodes will to be passed through The alternative block of key signature and target effective ballot node private key signature set signature is sent to time stamp server, The time stamp server label authenticated time stab and is used described standby to block chain network broadcast after timestamp private key signature Constituency block, so that the non-targeted accounting nodes of the block chain network are according to itself corresponding effective ballot node private key signature collection It closes and the selection condition verifies the alternative block, authenticated time stamp and the timestamp private key signature, if Verifying does not pass through, then to the block chain network verifying broadcasts failed message;The target accounting nodes are also used to receive described The alternative block of the label of time stamp server broadcast the authenticated time stamp and the timestamp private key signature, and open Timer, if being not received by the authentication failed message of the non-targeted accounting nodes broadcast within a preset time, really The alternative block that the fixed target accounting nodes generate is effective block, and described effectively to block chain network broadcast Block charges to block chain, meanwhile, corresponding prize is sent to corresponding effective ballot node according to effective ballot incentive message Encourage information.
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 block generation method of example description.
Fourth embodiment of the invention provides a kind of computer readable storage medium, is stored thereon with computer program, described The block generation method as described in above-described embodiment is realized when computer program is executed by processor.
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 practicability is higher.
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;And
Fig. 3 is the flow chart of block generation method 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, node page 200 of ballot can be understood as whether effectively carrying 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.
Fig. 3 is the flow chart of block generation method according to an embodiment of the invention, as shown in figure 3, this method comprises:
Step 101, each accounting nodes generate the alternative block including current period Transaction Information, and wide to block chain network Broadcast the alternative block by accounting nodes private key signature.
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.
Specifically, in current period, each accounting nodes generate the alternative block comprising current period Transaction Information, and In order to avoid pretending to be for other malicious nodes, the alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain, wherein note Account node private key is only held by accounting nodes itself.
Step 102, respectively ballot node obtains alternative block, according to the Transaction Information of local node storage to Transaction Information into Row verifying generates ballot incentive message corresponding with alternative block, and broadcast by throwing to block chain network if being verified The alternative block of ticket node private key signature and accounting nodes private key signature and ballot incentive message.
Understandable to be, for primary transaction, only one accounting nodes can rob the book keeping operation power that accounts for, thus, alternatively Only having a block in block can be used as the block that chain enters block chain, can in order to guarantee that last chain enters the block of block chain By property, in an embodiment of the present invention, it is primarily based on the certification that voting mechanism carries out the reliability of the first round to alternative block.
Wherein, in order to improve ballot node ballot enthusiasm, ballot node can require this time vote ballot reward, To feed back to its corresponding ballot reward when the block of its ballot success chain enters block chain.
Specifically, respectively ballot node tests Transaction Information according to the Transaction Information being locally stored after obtaining alternative block Card, if unanimously, showing that currency transaction information is true and reliable, thus, it is verified, at this point, being generated after the completion of ballot Ballot incentive message corresponding with alternative block includes ballot amount of money award and alternative block active account in the incentive message Information etc. broadcasts alternative block and the reward by ballot node private key signature and accounting nodes private key signature to block chain network Information, being verified at this time can be understood as voting successfully.
Step 103, each accounting nodes screen ballot node private key signature collection corresponding with itself accounting nodes private key signature It closes, wherein include ballot incentive message corresponding from different ballot nodes in ballot node private key signature set, encouraged according to ballot Encourage information screening effectively ballot node private key signature set from ballot node private key signature set, wherein effectively ballot node Private key signature set includes effectively ballot node private key signature and corresponding effective ballot incentive message, and judgement effectively ballot Whether node private key signature set matches with preset selection condition, and then determines that the target effective of successful match first is voted and save The corresponding target accounting nodes of point private key signature set.
Understandable to be, since multiple ballot nodes participate in the ballot to alternative block, each accounting nodes possess multiple It votes the ballot of node, the corresponding target book keeping operation of the universally recognized alternative block of ballot node should be filtered out according to voting results Node.Certainly, since each ballot node has required ballot reward, thus, as described above, in order to guarantee itself benefit Benefit maximizes, and accounting nodes can determine the ballot reward lesser effective ballot of total value according to the incentive message of ballot node The backup block of node signature participates in the plunder of book keeping operation power.
Specifically, each accounting nodes screen ballot node private key signature collection corresponding with itself accounting nodes private key signature It closes, which corresponds to the ballot node of the alternative block ballot generated to it, node private key of voting In signature set include ballot incentive message corresponding from different ballot nodes, according to ballot incentive message from vote node private key Effectively ballot node private key signature set is screened in signature set, wherein effectively ballot node private key signature set includes effective Node private key signature of voting and corresponding effective ballot incentive message, the quantity of private key signature set is centainly greater than at this time certainly Equal to seizing required for book keeping operation power quantity of voting, in some possible examples, corresponding throwing in the private key signature that has obtained Ticket reward is higher, but the reward of the ballot due to being arranged in the present embodiment is rewarded much smaller than book keeping operation, thus, in order to improve book keeping operation The success rate grabbed is weighed, even if some accounting nodes include and different ballots in the private key signature set currently got The corresponding ballot reward of the corresponding ballot incentive message of node is dissatisfied, but can also be no longer waiting for other ballot nodes to it The certification of backup block, but directly carry out in next step.
In turn, whether judgement effectively ballot node private key signature set matches with preset selection condition, the preset choosing It takes condition to correspond to the node that determines whether to vote generally to approve, and then determines that the target effective ballot node of successful match first is private The corresponding target accounting nodes of key signature set, that is to say, that after participating in first round of voting mechanism, the second wheel is based on time machine It makes and determines that the block in block chain can be entered by chain, i.e., successfully alternative block is more reliable for ballot first, by illegal node The probability sent after intercepting and capturing is lower.
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, it can determine that ballot node is generally recognized based on the ballot number of nodes of approval Can spend, i.e., each accounting nodes, obtain effectively ballot node private key signature set in number of signatures, by number of signatures with it is preset First threshold is compared, it is first determined number of signatures is equal to the target effective ballot node private key signature set pair of first threshold The node answered is target accounting nodes, wherein first threshold can determine that ballot number of nodes is got over according to ballot number of nodes The quantity of height, first threshold is higher, and in some possible examples, first threshold is greater than the number of the half of ballot number of nodes Amount.
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 ballot node, the throwing based on approval Total weight of ticket node determines the ballot universal degree of recognition of node, i.e., each accounting nodes obtain effectively ballot node private key signature set In number of signatures, and the weighted value of different effectively ballot node, according to effective number of signatures and different effectively ballot sections The weighted value of point calculates ballot value, for example, regarding the sum of the product value of the corresponding weighted value of each signature as ballot value, and compares Such as, it using the product value of the sum of weighted value and number of signatures as ballot value, is carried out as by ballot value and preset second threshold Compare, it is first determined the corresponding node of target effective ballot node private key signature set that ballot value is equal to second threshold is target Accounting nodes, wherein second threshold is usually total weighted value setting according to all ballot nodes, all ballot nodes Total weighted value is higher, then second threshold is higher.
In the present embodiment, the corresponding weighted value of different effectively ballot nodes can be determined based on different characteristic informations, Characteristic information of the different effectively ballot nodes in the block chain network is obtained, this feature information can be equity holding number Amount or, nodal community (for example being personal node or agency node) etc. determines have with difference according to characteristic information in turn The corresponding weighted value of effect ballot node in turn, is being got for example, pre-establishing the corresponding relationship of characteristic information and weighted value After node of effectively voting is corresponding, the corresponding relationship is inquired, corresponding weighted value can be obtained.
Step 104, target accounting nodes will be by target accounting nodes private key signature and target effective ballot node private key The alternative block of signature set signature is sent to time stamp server, and time stamp server label authenticated time stabs and uses timestamp Alternative block is broadcasted to block chain network after private key signature, so that the non-targeted accounting nodes of block chain network are corresponded to according to itself Effective ballot node private key signature set and choose condition to alternative block, authenticated time stamp and timestamp private key signature carry out Verifying, if verifying does not pass through, to block chain network verifying broadcasts failed message.
Specifically, chain is carried out based on time mechanism in the second wheel and enters block timing really in block chain, also introduced authoritative Higher time stamp server, the time of winning for entering block in block chain to the chain based on time stamp server authenticate.
The node private key specifically, target accounting nodes will vote by target accounting nodes private key signature and target effective The alternative block of signature set signature is sent to time stamp server, and time stamp server label authenticated time stabs and uses timestamp Alternative block is broadcasted to block chain network after private key signature, wherein timestamp private key signature is only held by time stamp server, It disguises oneself as time stamp server to avoid other illegality equipments.
Whether other non-targeted accounting nodes win without other alternative blocks really before verifying the time of winning at this time, The non-targeted accounting nodes of block chain network are according to itself corresponding ballot node private key signature set and choose condition to alternative Block, authenticated time stamp and timestamp private key signature are verified, and verify before the time whether itself alternative block or Other alternative blocks of person are not voted-for really wins, if not having, then it is assumed that be verified, do not pass through if so, then verifying, then to Block chain network verifying broadcasts failed message is supervised, it is ensured that chain enters hereby based on the common recognition of other multiple non-targeted accounting nodes The reliability of block in block chain.
Step 105, the label authenticated time stamp and timestamp private key of target accounting nodes receiving time stamp server broadcast The alternative block of signature, and timer is opened, if being not received by the verifying of non-targeted accounting nodes broadcast within a preset time Failed message, it is determined that the alternative block that target accounting nodes generate is effective block, and broadcasts effective district to block chain network Block charges to block chain, meanwhile, corresponding incentive message is sent to corresponding effective ballot node according to effective ballot incentive message.
Specifically, by the verifying of two-wheeled, target accounting nodes based on verification result determine block that it is generated whether at Function seizes book keeping operation power, and target accounting nodes receiving time stabs the label authenticated time stamp and timestamp private key signature of 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 then shows that two-wheeled authenticates successfully, determines that the alternative block that target accounting nodes generate is effective block, and to block link network Network broadcast effective block charges to block chain.Wherein, above-mentioned preset time is according to the quantity and calculating speed of non-targeted accounting nodes It determines, in general, non-targeted accounting nodes verifying is completed, and other illegal nodes do not come in the non-targeted accounting nodes And generate the verifying message of camouflage.
Meanwhile it is corresponding to be based on effectively ballot incentive message transmission to effective ballot node of participation effective block ballot Incentive message stores effective ballot list node corresponding with effective block, when effective block is true in some possible examples It after recognizing, is directly based upon the list and corresponding incentive message is imported to effective ballot node automatically, such as to effective ballot node Account imports corresponding amount of money etc..
In one embodiment of the invention, if the verifying for receiving non-targeted accounting nodes broadcast within a preset time is lost Lose message, it is determined that the alternative block that target accounting nodes generate is invalid block.
To sum up, the block generation method of the embodiment of the present invention,
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 practicability is higher.
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 block generation method 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, it is raw to can be realized the block as described in previous embodiment when the computer program is executed by processor At method.
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 block generation method characterized by comprising
Each accounting nodes generate the alternative block including current period Transaction Information, and broadcast to block chain network through overregistering section The alternative block of point private key signature;
Each ballot node obtains the alternative block, is tested according to the Transaction Information that local node stores the Transaction Information Card generates ballot incentive message corresponding with the alternative block, and to the broadcast of block chain network by throwing if being verified The alternative block and the ballot incentive message of ticket node private key signature and the accounting nodes private key signature;
Each accounting nodes screen ballot node private key signature set corresponding with itself accounting nodes private key signature, wherein described Include ballot incentive message corresponding from different ballot nodes in node private key signature set of voting, is rewarded and believed according to the ballot Breath screens effectively ballot node private key signature set from the ballot node private key signature set, wherein effective ballot Node private key signature set includes effectively vote node private key signature and corresponding effective ballot incentive message, and described in judgement Whether effectively ballot node private key signature set matches with preset selection condition, and then determines that the target of successful match first has The corresponding target accounting nodes of effect ballot node private key signature set;
The target accounting nodes will be by target accounting nodes private key signature and target effective ballot node private key signature The alternative block of set signature is sent to time stamp server, the time stamp server label authenticated time stamp and used time Between stab and broadcast the alternative block to the block chain network after private key signature so that the non-targeted book keeping operation of the block chain network Node according to itself corresponding effective ballot node private key signature set and the selection condition to the alternative block, described recognize Card timestamp and the timestamp private key signature are verified, if verifying does not pass through, to the block chain network verifying broadcasts Failed message;
The target accounting nodes receive the label authenticated time stamp and the timestamp of the time stamp server broadcast The alternative block of private key signature, and timer is opened, if being not received by the non-targeted book keeping operation section within a preset time The authentication failed message of point broadcast, it is determined that the alternative block that the target accounting nodes generate is effective block, And broadcast the effective block to the block chain network and charge to block chain, meanwhile, according to effective ballot incentive message to Corresponding effective ballot node sends corresponding incentive message.
2. the method according to claim 1, wherein judgement effective ballot node private key signature set Whether matched with preset selection condition, and then determines the target effective ballot node private key signature set pair of successful match first The target accounting nodes answered, comprising:
Effective number of signatures in effective ballot node private key signature set is obtained, by effective number of signatures and is preset First threshold be compared;
Determine that effective number of signatures is equal to the target effective ballot node private key signature set pair of the first threshold first The node answered is the target accounting nodes.
3. the method according to claim 1, wherein judgement effective ballot node private key signature set Whether matched with preset selection condition, and then determines the target effective ballot node private key signature set pair of successful match first The target accounting nodes answered, comprising:
Obtain effective number of signatures in effective ballot node private key signature set, and the power of different effectively ballot nodes Weight values;
Ballot value is calculated according to the weighted value of effective number of signatures and the different effectively ballot nodes;
The ballot value is compared with preset second threshold;
Determine that the ballot value is equal to the corresponding section of target effective ballot node private key signature set of the second threshold first Point is the target accounting nodes.
4. according to the method described in claim 3, it is characterized by further comprising:
Obtain characteristic information of the different effectively ballot nodes in the block chain network;
Believe according to the characteristic information is determining from different effective corresponding weighted values of ballot node and effective ballot reward The upper limit value of breath.
5. the method according to claim 1, wherein after the unlatching timer, further includes:
If receiving the authentication failed message of the non-targeted accounting nodes broadcast within a preset time, it is determined that the mesh Marking the alternative block that accounting nodes generate is invalid block.
6. a kind of block generates system, which is characterized in that including multiple accounting nodes and multiple ballot nodes, wherein
Each accounting nodes in the multiple accounting nodes, for generating the alternative block including current period Transaction Information, and The alternative block Jing Guo accounting nodes private key signature is broadcasted to block chain network;
Each ballot node in the multiple ballot node, for obtaining the alternative block, according to the friendship of local node storage Easy information verifies the Transaction Information, if being verified, generates ballot corresponding with the alternative block and rewards letter Breath, and the alternative block by ballot node private key signature and the accounting nodes private key signature is broadcasted to block chain network With the ballot incentive message;
Each accounting nodes are also used to screen ballot node private key signature collection corresponding with itself accounting nodes private key signature It closes, wherein include ballot incentive message corresponding from different ballot nodes in the ballot node private key signature set, according to institute It states ballot incentive message and screens effectively ballot node private key signature set from the ballot node private key signature set, wherein Effective ballot node private key signature set includes that effectively ballot node private key signature and corresponding effective ballot reward is believed Breath, and judges whether effective ballot node private key signature set matches with preset selection condition, and then determination is first With the corresponding target accounting nodes of successful target effective ballot node private key signature set;
The target accounting nodes, for the node private key that will vote by target accounting nodes private key signature and the target effective The alternative block of signature set signature is sent to time stamp server, and the time stamp server label authenticated time stamp is simultaneously The alternative block is broadcasted to the block chain network with after timestamp private key signature, so that the block chain network is non-targeted Accounting nodes are according to itself corresponding effective ballot node private key signature set and the selection condition to the alternative block, institute It states authenticated time stamp and the timestamp private key signature is verified, if verifying does not pass through, broadcasted to the block chain network Authentication failed message;
The target accounting nodes are also used to receive the label authenticated time stamp of time stamp server broadcast and described The alternative block of timestamp private key signature, and timer is opened, if being not received by within a preset time described non-targeted The authentication failed message of accounting nodes broadcast, it is determined that the alternative block that the target accounting nodes generate is effective Block, and broadcast the effective block to the block chain network and charge to block chain, meanwhile, according to effective ballot reward letter It ceases to corresponding effective ballot node and sends corresponding incentive message.
7. system as claimed in claim 6, which is characterized in that each accounting nodes are specifically used for:
Effective number of signatures in effective ballot node private key signature set is obtained, by effective number of signatures and is preset First threshold be compared;
Determine that effective number of signatures is equal to the target effective ballot node private key signature set pair of the first threshold first The node answered is the target accounting nodes.
8. system as claimed in claim 6, which is characterized in that each accounting nodes are specifically used for:
Obtain effective number of signatures in effective ballot node private key signature set, and the power of different effectively ballot nodes Weight values;
Ballot value is calculated according to the weighted value of effective number of signatures and the different effectively ballot nodes;
The ballot value is compared with preset second threshold;
Determine that the ballot value is equal to the corresponding section of target effective ballot node private key signature set of the second threshold first Point is the target accounting nodes.
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 Block generation method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Such as block generation method as claimed in any one of claims 1 to 5 is realized when being executed by processor.
CN201811351343.7A 2018-11-14 2018-11-14 Block generation method and system Expired - Fee Related CN109543075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811351343.7A CN109543075B (en) 2018-11-14 2018-11-14 Block generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811351343.7A CN109543075B (en) 2018-11-14 2018-11-14 Block generation method and system

Publications (2)

Publication Number Publication Date
CN109543075A true CN109543075A (en) 2019-03-29
CN109543075B CN109543075B (en) 2020-09-22

Family

ID=65847132

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811351343.7A Expired - Fee Related CN109543075B (en) 2018-11-14 2018-11-14 Block generation method and system

Country Status (1)

Country Link
CN (1) CN109543075B (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110047004A (en) * 2019-04-23 2019-07-23 重庆金窝窝网络科技有限公司 Block chain accounting nodes selection method and device
CN110300171A (en) * 2019-06-28 2019-10-01 深圳市元征科技股份有限公司 Information collecting method, system, computer readable storage medium and electronic equipment
CN110400409A (en) * 2019-07-26 2019-11-01 深圳市网心科技有限公司 Thresholding voting method, system and relevant device based on BLS signature algorithm
CN110598449A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device for performing insurance bond, storage medium and computer equipment
CN111047330A (en) * 2020-03-18 2020-04-21 杭州智块网络科技有限公司 Verification bonus awarding method and device for blocks
CN111078787A (en) * 2019-11-11 2020-04-28 重庆邮电大学 Block chain consensus method based on random number mapping
CN111130790A (en) * 2019-12-09 2020-05-08 四川星际荣威科技有限公司 Block co-recognition method based on block chain node network
CN111314436A (en) * 2020-01-20 2020-06-19 柏建华 Hierarchical block chain system and implementation method
CN111431696A (en) * 2020-03-26 2020-07-17 深圳市欧欣泰科技有限公司 Identity-based block chain sealing mechanism
CN111526045A (en) * 2020-03-25 2020-08-11 上海物融智能科技有限公司 Fault processing method and system for block chain
CN111836269A (en) * 2020-07-10 2020-10-27 全链通有限公司 Block chain-based micro base station deployment method, equipment and storage medium
CN111836268A (en) * 2020-07-10 2020-10-27 全链通有限公司 Terminal device access information processing method, device and storage medium
CN111865595A (en) * 2019-04-29 2020-10-30 普天信息技术有限公司 Block chain consensus method and device
CN111885511A (en) * 2020-07-10 2020-11-03 全链通有限公司 Method for acquiring block chain reward by micro base station, accounting node, micro base station and medium
CN111885512A (en) * 2020-07-10 2020-11-03 全链通有限公司 Method for acquiring block chain reward by micro base station, accounting node, micro base station and medium
CN112199444A (en) * 2020-10-10 2021-01-08 中国联合网络通信集团有限公司 Accounting method and server
CN112261145A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 New block chain generation method and device
CN112527908A (en) * 2020-12-22 2021-03-19 深圳壹账通智能科技有限公司 Block chain network construction method, node adding method, medium and equipment
CN112600682A (en) * 2020-12-09 2021-04-02 四川大学 Block chain consensus method and device based on delegation interest certification algorithm
CN112613601A (en) * 2020-12-24 2021-04-06 暨南大学 Neural network model updating method, device and computer storage medium
CN112804333A (en) * 2021-01-15 2021-05-14 北京百度网讯科技有限公司 Exception handling method, device and equipment for out-of-block node and storage medium
CN113206748A (en) * 2020-02-03 2021-08-03 北京百度网讯科技有限公司 Management method of alliance chain network, alliance chain network and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108235799A (en) * 2017-12-27 2018-06-29 深圳达闼科技控股有限公司 Block generation method, device, storage medium and block chain network
WO2018189656A1 (en) * 2017-04-11 2018-10-18 nChain Holdings Limited Secure re-use of private key for dynamic group of nodes
CN108804928A (en) * 2018-07-09 2018-11-13 武汉工商学院 The secure and trusted block chain and management method of data in a kind of traceability system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018189656A1 (en) * 2017-04-11 2018-10-18 nChain Holdings Limited Secure re-use of private key for dynamic group of nodes
CN108235799A (en) * 2017-12-27 2018-06-29 深圳达闼科技控股有限公司 Block generation method, device, storage medium and block chain network
CN108804928A (en) * 2018-07-09 2018-11-13 武汉工商学院 The secure and trusted block chain and management method of data in a kind of traceability system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ORIGHEART: ""区块链记账原理"", 《HTTPS://WWW.JIANSHU.COM/P/448CE760F3C5》 *
钟晓宏: ""区块链出块节点激励方案"", 《HTTPS://WWW.JIANSHU.COM/P/7C03FE85E5F4》 *

Cited By (37)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110047004B (en) * 2019-04-23 2023-04-18 重庆金窝窝网络科技有限公司 Block chain accounting node selection method and device
CN110047004A (en) * 2019-04-23 2019-07-23 重庆金窝窝网络科技有限公司 Block chain accounting nodes selection method and device
CN111865595A (en) * 2019-04-29 2020-10-30 普天信息技术有限公司 Block chain consensus method and device
CN110300171A (en) * 2019-06-28 2019-10-01 深圳市元征科技股份有限公司 Information collecting method, system, computer readable storage medium and electronic equipment
CN110300171B (en) * 2019-06-28 2022-04-15 深圳市元征科技股份有限公司 Information acquisition method, system, computer readable storage medium and electronic device
CN110400409A (en) * 2019-07-26 2019-11-01 深圳市网心科技有限公司 Thresholding voting method, system and relevant device based on BLS signature algorithm
CN110598449A (en) * 2019-09-19 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and device for performing insurance bond, storage medium and computer equipment
CN110598449B (en) * 2019-09-19 2024-04-02 腾讯科技(深圳)有限公司 Data processing method and device for performing insurance function, storage medium and computer equipment
CN111078787A (en) * 2019-11-11 2020-04-28 重庆邮电大学 Block chain consensus method based on random number mapping
CN111078787B (en) * 2019-11-11 2023-07-21 重庆邮电大学 Block chain consensus method based on random number mapping
CN111130790A (en) * 2019-12-09 2020-05-08 四川星际荣威科技有限公司 Block co-recognition method based on block chain node network
CN111130790B (en) * 2019-12-09 2022-06-10 四川星际荣威科技有限公司 Block co-recognition method based on block chain node network
CN111314436A (en) * 2020-01-20 2020-06-19 柏建华 Hierarchical block chain system and implementation method
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
CN111047330A (en) * 2020-03-18 2020-04-21 杭州智块网络科技有限公司 Verification bonus awarding method and device for blocks
CN111526045A (en) * 2020-03-25 2020-08-11 上海物融智能科技有限公司 Fault processing method and system for block chain
CN111526045B (en) * 2020-03-25 2023-05-02 莘上信息技术(上海)有限公司 Fault processing method and system for block chain
CN111431696A (en) * 2020-03-26 2020-07-17 深圳市欧欣泰科技有限公司 Identity-based block chain sealing mechanism
CN111431696B (en) * 2020-03-26 2023-10-17 深圳市欧欣泰科技有限公司 Block chain seal mechanism based on identity
CN111836269B (en) * 2020-07-10 2023-05-30 全链通有限公司 Micro base station deployment method, equipment and storage medium based on block chain
CN111836268B (en) * 2020-07-10 2023-04-28 全链通有限公司 Terminal equipment access information processing method, equipment and storage medium
CN111885511B (en) * 2020-07-10 2021-09-10 全链通有限公司 Method for acquiring block chain reward by micro base station, accounting node, micro base station and medium
CN111836268A (en) * 2020-07-10 2020-10-27 全链通有限公司 Terminal device access information processing method, device and storage medium
CN111885512A (en) * 2020-07-10 2020-11-03 全链通有限公司 Method for acquiring block chain reward by micro base station, accounting node, micro base station and medium
CN111885511A (en) * 2020-07-10 2020-11-03 全链通有限公司 Method for acquiring block chain reward by micro base station, accounting node, micro base station and medium
CN111836269A (en) * 2020-07-10 2020-10-27 全链通有限公司 Block chain-based micro base station deployment method, equipment and storage medium
CN112199444B (en) * 2020-10-10 2023-01-17 中国联合网络通信集团有限公司 Accounting method and server
CN112199444A (en) * 2020-10-10 2021-01-08 中国联合网络通信集团有限公司 Accounting method and server
CN112261145A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 New block chain generation method and device
CN112600682A (en) * 2020-12-09 2021-04-02 四川大学 Block chain consensus method and device based on delegation interest certification algorithm
WO2022134783A1 (en) * 2020-12-22 2022-06-30 深圳壹账通智能科技有限公司 Construction method for blockchain network, method for adding node, and medium and device
CN112527908A (en) * 2020-12-22 2021-03-19 深圳壹账通智能科技有限公司 Block chain network construction method, node adding method, medium and equipment
CN112613601A (en) * 2020-12-24 2021-04-06 暨南大学 Neural network model updating method, device and computer storage medium
CN112613601B (en) * 2020-12-24 2024-01-16 暨南大学 Neural network model updating method, equipment and computer storage medium
US11949797B2 (en) 2020-12-24 2024-04-02 Jinan University Neural network model update method and device, and computer storage medium
CN112804333A (en) * 2021-01-15 2021-05-14 北京百度网讯科技有限公司 Exception handling method, device and equipment for out-of-block node and storage medium

Also Published As

Publication number Publication date
CN109543075B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN109543075A (en) Block generation method and system
CN109522456A (en) The node availability detection generated based on block
CN107220130B (en) Method, device and system for realizing information consensus at nodes of block chain
Küsters et al. Accountability: definition and relationship to verifiability
CN108846673B (en) Block data processing method, device, equipment and storage medium
CN100535946C (en) Method for gaming and gaming system
CN108881163A (en) A kind of multicenter block catenary system with block issue mechanism
CN111355719B (en) Community voting method, device, equipment and storage medium based on block chain technology
CN110610421B (en) Guarantee fund management method and device under fragment framework
CN107578336A (en) Block chain bookkeeping methods based on dynamic equity
CN110298660A (en) Node administration method based on block chain
CN105162606B (en) A kind of method based on electronic legislative identity certificate entity card generation network mapping certificate
CN109246175A (en) electronic voting system and control method
CN109859024A (en) A kind of tax system common recognition method based on alliance's chain
CN111369730B (en) Voting processing method and device based on block chain
CN108880832B (en) Block chain real-name authentication method and system
CN111327610A (en) Block chain system registration method and device based on credit score and storage medium
CN109359978A (en) Intelligent contract method of commerce and system based on block chain network
CN116527684B (en) Multi-chain information interaction method based on 1+1+N relay consensus committee
CN109829690A (en) Data processing method, device and system based on block chain
Park et al. Towards secure quadratic voting
Levan et al. Drivers and Dynamics of Electoral Reform, 1999–2015
KR20210083457A (en) Electronic vote record management system based on blockchain
Chatterjee et al. Biometric authentication for UID-based smart and ubiquitous services in India
CN109543074A (en) The node availability detection generated based on block

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.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922

Termination date: 20211114