CN109242676A - Block dissemination method and device, electronic equipment - Google Patents

Block dissemination method and device, electronic equipment Download PDF

Info

Publication number
CN109242676A
CN109242676A CN201810848235.4A CN201810848235A CN109242676A CN 109242676 A CN109242676 A CN 109242676A CN 201810848235 A CN201810848235 A CN 201810848235A CN 109242676 A CN109242676 A CN 109242676A
Authority
CN
China
Prior art keywords
block chain
character sequence
block
random character
chain node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810848235.4A
Other languages
Chinese (zh)
Other versions
CN109242676B (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201810848235.4A priority Critical patent/CN109242676B/en
Priority to TW108101814A priority patent/TWI699728B/en
Publication of CN109242676A publication Critical patent/CN109242676A/en
Priority to PCT/CN2019/084379 priority patent/WO2020019792A1/en
Application granted granted Critical
Publication of CN109242676B publication Critical patent/CN109242676B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

This specification one or more embodiment provides a kind of block dissemination method and device, electronic equipment, is applied to block chain node;The described method includes: calling the intelligent contract for generating character string, the intelligence contract be used to generate random character sequence for block chain node;The identity information of the random character sequence and the block chain node is distributed to block chain in association, wherein publication moment of the publication moment of the random character sequence earlier than target character sequence;In the random character sequences match in the case where target character sequence, the preparation block of generation is subjected to the whole network broadcast in block chain;Wherein, when the random character sequence is verified as being matched with the target character sequence and the corresponding publication moment is that the whole network is earliest, the prepared block is registered as the newest block of the block chain.

Description

Block dissemination method and device, electronic equipment
Technical field
This specification one or more embodiment be related to block chain technical field more particularly to a kind of block dissemination method and Device, electronic equipment.
Background technique
It include large number of block chain node in block chain, common recognition mechanism between these block chain nodes for reaching Unanimously, to ensure that these block chain nodes are safeguarded unity the block chain account book of content jointly.In the related art, it generallys use PoW (Proof of Work, proof of work) algorithm is reached common understanding between these block chain nodes;Specifically, by all areas Block chain node calculates separately the solution of same mathematical problem, and the block chain node by acquiring qualified solution at first strives to obtain book keeping operation Power, by the newest block of the block chain node generation area block chain, and all block chain nodes all generate the block chain node Block record into block chain account book.
Summary of the invention
In view of this, this specification one or more embodiment provides a kind of block dissemination method and device, electronic equipment.
To achieve the above object, it is as follows to provide technical solution for this specification one or more embodiment:
According to this specification one or more embodiment in a first aspect, propose a kind of block dissemination method, it is applied to Block chain node;The described method includes:
The intelligent contract for generating character string is called, the intelligence contract be used to generate for block chain node random Character string;
The identity information of the random character sequence and the block chain node is distributed to block chain in association, wherein Publication moment of the publication moment of the random character sequence earlier than target character sequence;
In the random character sequences match in the case where target character sequence, by the preparation block of generation in area The whole network broadcast is carried out in block chain;Wherein, when the random character sequence is verified as being matched with the target character sequence and right When the publication moment answered is that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
According to the second aspect of this specification one or more embodiment, a kind of block distributing device is proposed, is applied to Block chain node;Described device includes:
Call unit, calls the intelligent contract for generating character string, and the intelligence contract is used for for block chain link Point generates random character sequence;
First release unit issues the random character sequence and the identity information of the block chain node in association To block chain, wherein publication moment of the publication moment of the random character sequence earlier than target character sequence;
Radio unit, in the random character sequences match in the case where target character sequence, by the pre- of generation Preparation area block carries out the whole network broadcast in block chain;Wherein, when the random character sequence is verified as being matched with the target word When symbol sequence and corresponding publication moment are that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
According to the third aspect of this specification one or more embodiment, a kind of electronic equipment is proposed, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize the area as described in any in above-described embodiment Block dissemination method.
Detailed description of the invention
Fig. 1 is a kind of flow chart for block dissemination method that an exemplary embodiment provides.
Fig. 2 is a kind of structural schematic diagram for block chain network that an exemplary embodiment provides.
Fig. 3 is a kind of flow diagram for determining book keeping operation power that an exemplary embodiment provides.
Fig. 4 is a kind of structural schematic diagram for equipment that an exemplary embodiment provides.
Fig. 5 is a kind of block diagram for block distributing device that an exemplary embodiment provides.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification one or more embodiment.Phase Instead, they are only some aspects phases with the one or more embodiments of as detailed in the attached claim, this specification The example of consistent device and method.
It should be understood that the sequence that might not show and describe according to this specification in other embodiments executes The step of correlation method.In some other embodiments, step included by method can than described in this specification more It is more or less.In addition, single step described in this specification, may be broken down into other embodiments multiple steps into Row description;And multiple steps described in this specification, it may also be merged into single step progress in other embodiments Description.
Fig. 1 is a kind of flow chart for block dissemination method that an exemplary embodiment provides.As shown in Figure 1, this method is answered For block chain node, may comprise steps of:
Step 102, the intelligent contract for generating character string is called, the intelligence contract is used for for block chain node Generate random character sequence.
In one embodiment, the processing logic for generating random character sequence can be previously written in intelligent contract, so that should It automatically can be that block chain node generates random character sequence based on above-mentioned processing logic after intelligent contract is called.Due to Processing logic on intelligent contract is disclosure, and entire treatment process is automatically performed by intelligent contract, there is no artificial Intervene, makes it possible to ensure that the randomness of the random character sequence of generation, avoid black-box operation or cheating.
In one embodiment, random character sequence and non-fully " random ", still can meet certain preset rules, than The value range that such as preset rules may include character quantity, character types, character, this specification are limited not to this System.For example, it is 8 bit digitals that preset rules, which can limit random character sequence, then the random character sequence that intelligent contract generates can " 45614381 " are thought, without generating " ax0642f0 ";In another example it is 5 that preset rules, which can limit random character sequence, Digital+3 letters, then the random character sequence that intelligent contract generates can be " ax0642f0 ", without formation sequence "45614381".Wherein, when random character sequence meets above-mentioned preset rules, following target character sequences is also corresponded to The preset rules, so that random character sequence is consistent with target character sequence in structure, in form, it is ensured that random character It is comparable between sequence and target character sequence.
In one embodiment, there are multiple block chain nodes in block chain, intelligent contract is the generation of different blocks chain node Random character sequence should be mutually distinguishable, to avoid more than one block chain node random character sequence and target character sequence Column match, it is ensured that the preparation block that only one block chain node generates is registered as the newest block of block chain.
Step 104, the identity information of the random character sequence and the block chain node is distributed to area in association Block chain, wherein publication moment of the publication moment of the random character sequence earlier than target character sequence.
In one embodiment, block chain node can be traded by creating in the client of block chain, to be based on the friendship Easily the identity information of the random character sequence and the block chain node is distributed in association on block chain, becomes block A data in the distributed data base of chain.
It is noted that the transaction in block chain, there are points of the transaction of narrow sense and the transaction of broad sense.The friendship of narrow sense Easily refer to the value Transfer that user issues to block chain;For example, in traditional bit coin block chain network, transaction can be with It is that initiate in block chain one of user transfers accounts.And the transaction of broad sense refers to that one that user issues to block chain has business The business datum of intention;For example, operator can build alliance's chain based on actual business demand, chain portion of alliance is relied on Affix one's name to it is some it is unrelated with value Transfer it is other types of line service (for example, event prediction, business of renting a house, vehicle scheduling business, Settlement of insurance claim business, credit services, medical services etc.), and in this kind of alliance's chain, transaction can be user and send out in alliance's chain The service message or service request that there is one of cloth business to be intended to.Transaction in this specification should be tended to be interpreted as Sensu lato transaction.
In one embodiment, since block chain uses distributed data base, so that being distributed to the random character on block chain Sequence can not be tampered, so as to realize reliable record to the corresponding random character sequence of each block chain node.
In one embodiment, this specification can be such that the book keeping operation of the newest block of block chain node contention block chain weighs, and area The book keeping operation power of other blocks on block chain it has been determined that the block chain node that can so have book keeping operation power by these be responsible for will be above-mentioned The transaction of identity information comprising random character sequence and block chain node is written in corresponding block, and is distributed to block chain. In other words, directly random character sequence and its identity information might not be associated by above-mentioned block chain node in step 104 Ground is distributed to block chain, it is also possible to implement the publication by other block chain nodes and operate, which block chain node tool this depends on The book keeping operation of standby Correlation block is weighed.
It in one embodiment, can be by the random character sequence feedback to the block chain node, by block chain node It determines the need for using the random character sequence.In one case, if it is confirmed that needing using the random character sequence, area The random character sequence and the identity information of itself can be distributed to block chain by block chain node in association.In another situation Under, if not approving the random character sequence being currently generated, block chain node can re-call the intelligent contract, by the intelligence Energy contract regenerates a random character sequence, to be updated to the corresponding random character sequence of block chain node;Certainly, If block chain is not still approved, can continue to re-call the intelligent contract, until obtaining satisfied random character sequence.
In one embodiment, the publication moment of random character sequence should be no earlier than the publication moment of target character sequence The randomness that then will lead to random character sequence leaves a question open, and for example may be in the case where obtaining target character sequence, will be identical Character string disguise as random character sequence and be distributed to block chain, and and non-real generated by above-mentioned intelligent contract.
Step 106, in the random character sequences match in the case where target character sequence, by the preparation of generation Block carries out the whole network broadcast in block chain;Wherein, when the random character sequence is verified as being matched with the target character When sequence and corresponding publication moment are that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
In one embodiment, when block chain node A is received from the preparation block of block chain node B, by by the area The corresponding random character sequence 1 of block chain node B is compared with target character sequence, that is, can determine that the random character sequence 1 is It is no to be matched with target character sequence.If block chain node A also receives the preparation block from block chain node C, and the area The corresponding random character sequence 2 of block chain node C is also matched with target character sequence, and block chain node A can compare random character The publication moment of sequence 1 and random character sequence 2, to determine the random character sequence issued earlier relatively.By the above-mentioned means, It is assumed that block chain node A determines that the corresponding random character sequence 1 of block chain node B is matched with target character sequence, and In all random character sequences for being matched with target character sequence, when the publication of the corresponding random character sequence 1 of block chain node B It carves earliest, that is, can determine that the random character sequence 1 meets and " be verified as being matched with the target character sequence and corresponding publication Moment is that the whole network is earliest ", therefore the preparation block from block chain node B can be recorded as block chain by block chain node A Newest block;Similarly, other block chain nodes can also will be remembered based on aforesaid way from the preparation block of block chain node B Record is the newest block of block chain, is equivalent to the book keeping operation power that block chain node B contention has been arrived in block chain, realizes each area Common recognition between block chain node.
In one embodiment, it is generated at random due to random character sequence by intelligent contract, so that between block chain node Calculation power of the common recognition process independent of each block chain node, even if so that block chain node has grasped the whole network 51% or more Power is calculated, the book keeping operation power in block chain still can not be controlled, the block chain node for avoiding calculation power powerful is done evil.
It in one embodiment, can be by the friendship comprising the random character sequence Yu the identity information of the block chain node It easily is distributed to block chain, so that the random character sequence and the identity information of the block chain node are distributed in association Block chain.Wherein, the serial number or other signature identifications that may include the transaction in the prepared block make to receive described The block chain node of preparation block can search the transaction according to the serial number or other signature identifications from block chain, from And the random character sequence and its publication moment are got, and the random character sequence and the publication of target character sequence are suitable Sequence, match condition etc. are verified.
In one embodiment, the target character sequence can be distributed to the block by prophesy machine (Oracle) node Chain.Since the data that prophesy machine node provides are considered absolutely reliable, thus it may insure the authenticity of the target character sequence.
In one embodiment, prophesy machine can obtain the target character sequence outside chain from object, such as the outer object of chain can If can control entity device to generate the target character sequence or the outer object of chain by computer random and successively discharge at random It is corresponded between dry bulb body, each sphere and character, thus as corresponding to the release sequence of each sphere and each sphere Character constitutes target character sequence.
In one embodiment, the target character sequence is described for generating character string by calling by prophesy machine node Intelligent contract and generate.It generates the processing logic of character string at random as built in above-mentioned intelligent contract, thus foretells machine Node can make it generate target character sequence at random by calling the intelligence contract.
In one embodiment, prophesy machine node can be by broadcasting target character sequence in the whole network, by having book keeping operation The block chain node of power is distributed in block chain.In another embodiment, prophesy machine node can be defaulted as having book keeping operation power, can Directly target character sequence to be distributed in block chain.
In one embodiment, can be issued to the block chain associated with the random character sequence freezing of assets with Card, the freezing of assets voucher show that the block chain assets for the no less than default number that the block chain node is held are in and freeze State;Wherein, when associated freezing of assets voucher is not present in the random character sequence, the random character sequence is judged to It is set to invalid information.By requiring to provide freezing of assets voucher, the block chain node setting one of book keeping operation power can be fought for participation Fixed participation threshold, excluding the block chain node of the block chain assets deficiency held, (criminal may be interim in order to do evil Some block chain nodes for being exclusively used in participating in contention book keeping operation power are created, increase the probability for hitting target character string with this), it improves The cost of doing evil of block chain node.
It in one embodiment, can be by random character sequence, the identity information of block chain node and freezing of assets voucher packet Contained in same transaction, to show the incidence relation between the freezing of assets voucher and random character sequence.In another embodiment In, the above-mentioned identity letter comprising random character sequence and block chain node can be added in the transaction locating for freezing of assets voucher The serial number of the transaction of breath, or added in the transaction of the above-mentioned identity information comprising random character sequence and block chain node The serial number of transaction locating for freezing of assets voucher, this depends on the distribution order between the two transaction, i.e., earlier released The serial number of transaction may be added in the transaction of later publication.
In one embodiment, in the random character sequences match in the case where target character sequence, the money Production freezes the corresponding block chain assets of voucher and is defrosted and gives back to the block chain node.
In one embodiment, described in the case where the random character sequence does not match the target character sequence The corresponding block chain assets of freezing of assets voucher by from the block chain node deduct, using as participate in fight for book keeping operation power at This.
In one embodiment, the block chain node can there is only a corresponding random character sequence, i.e., each areas For block chain node there is only the chance of primary contention book keeping operation power, the probability that all block chain nodes strive to keep accounts power is consistent.
In one embodiment, the block chain node may exist multiple corresponding random character sequences, each random words Symbol sequence is respectively present corresponding freezing of assets voucher;In other words, block chain node can by provide the more parts of freezings of assets with Card helps to promote the probability that the block chain node strives to keep accounts power to obtain multiple random character sequences.Wherein, described The corresponding any random character sequences match of block chain node, can be by the pre- of generation in the case where the target character sequence Preparation area block carries out the whole network broadcast in block chain;Correspondingly, when the corresponding any random character sequence quilt of the block chain node It is verified as being matched with the target character sequence and when the corresponding publication moment is that the whole network is earliest, the prepared block is registered as The newest block of the block chain.
In order to make it easy to understand, below by taking the block chain node in block chain as an example, to the block distribution scheme of this specification It is described.Fig. 2 is a kind of structural schematic diagram for block chain network that an exemplary embodiment provides;As shown in Figure 2, it is assumed that area There are block chain node 21, block chain node 22, block chain node 23 and block chain node 24 etc., the block chain nodes in block chain It can be in communication with each other between 21~24, for example may be implemented to communicate between node two-by-two shown in Fig. 2, it is also possible to which there are parts It is needed between node by then realizing communication in the conduct of other nodes, this specification is limited not to this.Implement one In example, block chain node 21~23 can be ordinary node, and block chain node 24 can be prophesy machine node, block chain node 21 ~23 transaction issued in block chain are considered insincere, and the block chain node 24 as prophesy machine node is in block chain The transaction of publication is considered absolute confidence.
Based on block chain network shown in Fig. 2, Fig. 3 is a kind of process for determining book keeping operation power that an exemplary embodiment provides Schematic diagram.It, can be by such as the either block chain node in the blocks chain networks such as above-mentioned block chain node 21~24 Mode shown in Fig. 3 fights for the book keeping operation power of newest block in block chain, which may comprise steps of:
Step 302, freezing of assets voucher is generated.
In one embodiment, by taking block chain node 21 as an example: the block chain node 21 can be to the present count that itself holds The block chain assets of volume are freezed;For example, the block chain assets that this can be preset number by block chain node 21 be transferred to it is predetermined The freezing of assets account of justice, and obtain corresponding freezing of assets voucher.
In one embodiment, block chain node 21 can issue freezing of assets voucher to block chain, so that the money Production is freezed voucher and is recorded into the block chain account book that each block chain node is safeguarded respectively, content is unified.
Step 304, random number word string is obtained.
In one embodiment, by taking block chain node 21 as an example: the block chain node 21 can call intelligent contract, the intelligence Contract has pre-defined the function logic for generating random number word string, allows the intelligence contract to be based on the function logic and gives birth to automatically At the corresponding random number word string of block chain node 21.The length of random number word string, such as random digit are constrained in intelligent contract String can be 128 digit word strings.Since intelligent contract is published on block chain, so that function logic defined in intelligent contract Camera bellows caused by human intervention is avoided to grasp so that it is guaranteed that the generation result for random number word string is objective, fair for public data Situations such as making.
It is assumed that block chain node 21 corresponds to random number word string L1.Wherein, when 21 pairs of block chain node intelligent contracts generate Random number word string it is dissatisfied when, can by repeatedly calling the intelligence contract repeatedly, until obtain the random number word string of satisfaction, Using as above-mentioned random number word string L1.Similarly, each block chain node can be obtained by calling above-mentioned intelligent contract Obtain corresponding random number word string.
In one embodiment, itself corresponding random number word string L1 can be distributed to block chain by block chain node 21, with Show the corresponding relationship between the block chain node 21 and random number word string L1, and available random number word string L1 It issues moment (being characterized by timestamp).It so, can also be with even if the corresponding random number word string L1 of different blocks chain node is identical It is compared by the difference for issuing the moment, realizes the contention and confirmation to book keeping operation power.
Step 306, number of targets word string is obtained.
In one embodiment, number of targets word string can be obtained by prophesy machine node 24, and the number of targets word string is distributed to area Block chain;Correspondingly, each block chain node can read the number of targets word string from block chain, to obtain the target number String.
In one embodiment, prophesy machine node 24 can be by calling above-mentioned intelligent contract, so that the intelligence contract can With automatic and one numeric string of random generation, for example 8 digit word strings, using as above-mentioned number of targets word string.In another implementation In example, prophesy machine node 24 can receive the incoming number of targets word string of the outer object of chain, and for example the number of targets word string can be by right outside chain As being generated by random algorithm.
Step 308, determine whether random number word string matches with number of targets word string.
In one embodiment, each block chain node can carry out itself corresponding random number word string and number of targets word string Compare, to determine whether the two matches;Wherein, when random number word string is identical as number of targets word string, it is possible to determine that for should be with Machine numeric string matches with number of targets word string.
Step 310, it when random number word string and number of targets word string match, is generated to the whole network broadcast block chain link point itself Preparation block, and receive the preparation block of other block chain node broadcasts.
In one embodiment, by taking block chain node 21 as an example: when block chain node 21 determines itself corresponding random digit When string 1 matches with number of targets word string, which can carry out the whole network broadcast for the preparation block of generation, so that area Block chain node 22~24 etc. can receive the preparation block.Wherein, block chain node 21 can generate this at any time Preparation block, for example the preparation block has been generated before step 310, or can be in confirmation random number word string 1 and target The preparation block is generated when numeric string matches, this specification is limited not to this.
By taking block chain node 22 as an example: when block chain node 22 determines itself corresponding random number word string 2 and target number When string mismatches, which can ignore itself generated prepared block, or terminates script or prepare The preparation block of implementation generates operation.Wherein, block chain node 22 can receive the preparation that above-mentioned block chain node 21 is broadcasted Block.
By taking block chain node 23 as an example: when block chain node 23 determines itself corresponding random number word string 3 and target number When string matches, which can carry out the whole network broadcast for the preparation block of generation, so that block chain node 21- 22,24 etc. the preparation block can be received.Wherein, it is wide can also to receive above-mentioned block chain node 21 for block chain node 23 The preparation block broadcast.
Step 312, it chooses newest block and block chain is written.
In one embodiment, block chain node 21~24 etc. are respectively in one block chain account book of local maintenance, each block chain Node can determine newest block respectively, and the newest block is written in the block chain account book of self maintained, thus realization pair The content maintenance of the block chain account book.
By taking block chain node 21 as an example: it is assumed that block chain node 21 receives the preparation block of the broadcast of block chain node 23;For Convenient for distinguishing, it can set that the block chain node 21 itself generates prepared block B1, block chain node 23 generates preparation Block B2.
On the one hand, block chain node 21 can test to preparation block B2, may include:
1, according to the transaction journal number for including in preparation block B2, the corresponding friendship of the transaction journal number is read from block chain Easily and its transaction content, the transaction content include the corresponding random number word string of block chain node 23, and block chain node 21 can be with Examine whether the random number word string matches with number of targets word string;If mismatching, prepared block B2 can be ignored.
2, if including the corresponding freezing of assets voucher of block chain node 23 in above-mentioned transaction content, then it is assumed that in the transaction The random number word string that appearance includes is effective;Otherwise, prepared block B2 can be ignored.Certainly, freezing of assets voucher can also be by only Vertical transaction is distributed in block chain, and its transaction journal number can be recorded in above-mentioned preparation block B2, to make It obtains block chain node 21 and obtains the corresponding freezing of assets voucher of block chain node 23 accordingly.
3, above-mentioned transaction content includes the publication moment of random number word string, and publication moment of the random number word string should be earlier than The publication moment of number of targets word string.
4, the random number word string that above-mentioned transaction content includes should be not applied to fight for the book keeping operation power of other blocks, such as The publication moment of the random number word string should be later than the publication moment of the corresponding number of targets word string of previous block.
On the other hand, block chain node 21 can publication moment to the corresponding random number word string of block chain node 21, area The publication moment of the corresponding random number word string of block chain node 23 is compared: when the corresponding random number word string of block chain node 21 When issuing publication moment of the moment earlier than the corresponding random number word string of block chain node 23, block chain node 21 can be by dark zone Block B1 is written in the block chain account book of self maintained;Conversely, then itself dimension can be written in preparation block B2 by block chain node 21 In the block chain account book of shield.
Similarly, when block chain node 22 receives preparation block B1, the block chain node of the broadcast of block chain node 21 respectively When the preparation block B2 of 23 broadcast, it can also test respectively to preparation block B1 preparation block B2 through the above way, and Sequence based on block chain node 21, the publication moment of the corresponding random number word string of block chain node 23, determination will pass through In the block chain account book for the preparation block write-in self maintained that inspection and the whole network are issued at first.
Therefore, each block chain node in block chain network can participate in respectively by mode such as shown in Fig. 3 Contention for the book keeping operation power of each block, and since all data are disclosure, can not distort, can verify that, so as to Ensure that the block that each block chain node is written into the block chain account book of self maintained has identical content, realizes to block The whole network unified management and maintenance of chain account book.
Fig. 4 is a kind of schematic configuration diagram for equipment that an exemplary embodiment provides.Referring to FIG. 4, in hardware view, it should Equipment includes processor 402, internal bus 404, network interface 406, memory 408 and nonvolatile memory 410, is gone back certainly It may include hardware required for other business.Processor 402 reads corresponding computer journey from nonvolatile memory 410 Then sequence is run into memory 408, block distributing device is formed on logic level.Certainly, other than software realization mode, Other implementations, such as the mode of logical device or software and hardware combining is not precluded in this specification one or more embodiment Etc., that is to say, that the executing subject of following process flow is not limited to each logic unit, is also possible to hardware or logic Device.
Referring to FIG. 5, in Software Implementation, which may include:
Call unit 51, calls the intelligent contract for generating character string, and the intelligence contract is used for for block chain Node generates random character sequence;
First release unit 52 sends out the random character sequence and the identity information of the block chain node in association Cloth is to block chain, wherein publication moment of the publication moment of the random character sequence earlier than target character sequence;
Radio unit 53, in the random character sequences match in the case where target character sequence, by generation Preparation block carries out the whole network broadcast in block chain;Wherein, when the random character sequence is verified as being matched with the target When character string and corresponding publication moment are that the whole network is earliest, the prepared block is registered as the new district the block Lian Block.
Optionally, first release unit 52 is specifically used for:
Transaction comprising the random character sequence and the identity information of the block chain node is distributed to block chain;
Wherein, include the serial number of the transaction in the prepared block, make the block chain for receiving the prepared block Node searches the transaction according to the serial number from block chain, to carry out to the random character sequence and its publication moment Verifying.
Optionally, the target character sequence is distributed to the block chain by prophesy machine node.
Optionally, the target character sequence is described for generating the intelligence of character string by calling by prophesy machine node Contract and generate.
Optionally, further includes:
Second release unit 54, to the block chain issue associated with the random character sequence freezing of assets with Card, the freezing of assets voucher show that the block chain assets for the no less than default number that the block chain node is held are in and freeze State;
Wherein, when associated freezing of assets voucher is not present in the random character sequence, the random character sequence It is judged as invalid information.
Optionally,
In the random character sequences match in the case where target character sequence, the freezing of assets voucher is corresponding Block chain assets be defrosted and give back to the block chain node;
In the case where the random character sequence does not match the target character sequence, the freezing of assets voucher pair The block chain assets answered are deducted from the block chain node.
Optionally, there are multiple corresponding random character sequences, each random character sequence difference for the block chain node There are corresponding freezing of assets vouchers;The radio unit 53 is specifically used for:
In the corresponding any random character sequences match of the block chain node in the case where target character sequence, The preparation block of generation is subjected to the whole network broadcast in block chain;
Wherein, when the corresponding any random character sequence of the block chain node is verified as being matched with the target character When sequence and corresponding publication moment are that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of any several equipment.
In a typical configuration, computer includes one or more processors (CPU), input/output interface, network Interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage, quantum memory, based on graphene Storage medium or other magnetic storage devices or any other non-transmission medium, can be used for storing can be accessed by a computing device Information.As defined in this article, computer-readable medium does not include temporary computer readable media (transitory media), Such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The term that this specification one or more embodiment uses be only merely for for the purpose of describing particular embodiments, and It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and the appended claims Used in the "an" of singular, " described " and "the" be also intended to including most forms, unless context understands earth's surface Show other meanings.It is also understood that term "and/or" used herein refers to and includes one or more associated list Any or all of project may combine.
It will be appreciated that though this specification one or more embodiment may using term first, second, third, etc. come Various information are described, but these information should not necessarily be limited by these terms.These terms are only used to same type of information area each other It separates.For example, the first information can also be referred to as in the case where not departing from this specification one or more scope of embodiments Two information, similarly, the second information can also be referred to as the first information.Depending on context, word as used in this is " such as Fruit " can be construed to " ... when " or " when ... " or " in response to determination ".
The foregoing is merely the preferred embodiments of this specification one or more embodiment, not to limit this theory Bright book one or more embodiment, all within the spirit and principle of this specification one or more embodiment, that is done is any Modification, equivalent replacement, improvement etc. should be included within the scope of the protection of this specification one or more embodiment.

Claims (15)

1. a kind of block dissemination method is applied to block chain node;The described method includes:
The intelligent contract for generating character string is called, the intelligence contract be used to generate random character for block chain node Sequence;
The identity information of the random character sequence and the block chain node is distributed to block chain in association, wherein described Publication moment of the publication moment of random character sequence earlier than target character sequence;
In the random character sequences match in the case where target character sequence, by the preparation block of generation in block chain Interior progress the whole network broadcast;Wherein, when the random character sequence is verified as being matched with the target character sequence and corresponding When the publication moment is that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
2. according to the method described in claim 1, described believe the random character sequence and the identity of the block chain node Manner of breathing is associatedly distributed to block chain, comprising:
Transaction comprising the random character sequence and the identity information of the block chain node is distributed to block chain;
Wherein, include the serial number of the transaction in the prepared block, make the block chain node for receiving the prepared block The transaction is searched from block chain according to the serial number, to test the random character sequence and its publication moment Card.
3. according to the method described in claim 1, the target character sequence is distributed to the block chain by prophesy machine node.
4. according to the method described in claim 3, the target character sequence is described for giving birth to by calling by prophesy machine node It is generated at the intelligent contract of character string.
5. according to the method described in claim 1, further include:
Freezing of assets voucher associated with the random character sequence, the freezing of assets credentials table are issued to the block chain The block chain assets for the no less than default number that the bright block chain node is held are in frozen state;
Wherein, when associated freezing of assets voucher is not present in the random character sequence, the random character sequence is judged to It is set to invalid information.
6. according to the method described in claim 5,
In the random character sequences match in the case where target character sequence, the corresponding area of the freezing of assets voucher Block chain assets are defrosted and give back to the block chain node;
In the case where the random character sequence does not match the target character sequence, the freezing of assets voucher is corresponding Block chain assets are deducted from the block chain node.
7. according to the method described in claim 5, there are multiple corresponding random character sequences, Mei Yisui for the block chain node Machine character string is respectively present corresponding freezing of assets voucher;It is described in the random character sequences match in the target character In the case where sequence, the preparation block of generation is subjected to the whole network broadcast in block chain, comprising:
In the corresponding any random character sequences match of the block chain node in the case where target character sequence, it will give birth to At preparation block the whole network broadcast is carried out in block chain;
Wherein, when the corresponding any random character sequence of the block chain node is verified as being matched with the target character sequence And the corresponding publication moment be the whole network it is earliest when, the prepared block is registered as the newest block of the block chain.
8. a kind of block distributing device is applied to block chain node;Described device includes:
Call unit, calls the intelligent contract for generating character string, and the intelligence contract is used for for the life of block chain node At random character sequence;
The identity information of the random character sequence and the block chain node is distributed to area by the first release unit in association Block chain, wherein publication moment of the publication moment of the random character sequence earlier than target character sequence;
Radio unit, in the random character sequences match in the case where target character sequence, by the dark zone of generation Block carries out the whole network broadcast in block chain;Wherein, when the random character sequence is verified as being matched with the target character sequence When column and corresponding publication moment are that the whole network is earliest, the prepared block is registered as the newest block of the block chain.
9. device according to claim 8, first release unit is specifically used for:
Transaction comprising the random character sequence and the identity information of the block chain node is distributed to block chain;
Wherein, include the serial number of the transaction in the prepared block, make the block chain node for receiving the prepared block The transaction is searched from block chain according to the serial number, to test the random character sequence and its publication moment Card.
10. device according to claim 8, the target character sequence is distributed to the block chain by prophesy machine node.
11. device according to claim 10, the target character sequence is as prophesy machine node by being used for described in calling It generates the intelligent contract of character string and generates.
12. device according to claim 8, further includes:
Second release unit issues freezing of assets voucher associated with the random character sequence to the block chain, described Freezing of assets voucher shows that the block chain assets for the no less than default number that the block chain node is held are in frozen state;
Wherein, when associated freezing of assets voucher is not present in the random character sequence, the random character sequence is judged to It is set to invalid information.
13. device according to claim 12,
In the random character sequences match in the case where target character sequence, the corresponding area of the freezing of assets voucher Block chain assets are defrosted and give back to the block chain node;
In the case where the random character sequence does not match the target character sequence, the freezing of assets voucher is corresponding Block chain assets are deducted from the block chain node.
14. device according to claim 12, the block chain node is each there are multiple corresponding random character sequences Random character sequence is respectively present corresponding freezing of assets voucher;The radio unit is specifically used for:
In the corresponding any random character sequences match of the block chain node in the case where target character sequence, it will give birth to At preparation block the whole network broadcast is carried out in block chain;
Wherein, when the corresponding any random character sequence of the block chain node is verified as being matched with the target character sequence And the corresponding publication moment be the whole network it is earliest when, the prepared block is registered as the newest block of the block chain.
15. a kind of electronic equipment, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is by running the executable instruction to realize such as area of any of claims 1-7 Block dissemination method.
CN201810848235.4A 2018-07-27 2018-07-27 Block issuing method and device and electronic equipment Active CN109242676B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201810848235.4A CN109242676B (en) 2018-07-27 2018-07-27 Block issuing method and device and electronic equipment
TW108101814A TWI699728B (en) 2018-07-27 2019-01-17 Block publishing method and device, and electronic equipment
PCT/CN2019/084379 WO2020019792A1 (en) 2018-07-27 2019-04-25 Block release method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810848235.4A CN109242676B (en) 2018-07-27 2018-07-27 Block issuing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109242676A true CN109242676A (en) 2019-01-18
CN109242676B CN109242676B (en) 2023-10-27

Family

ID=65073162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810848235.4A Active CN109242676B (en) 2018-07-27 2018-07-27 Block issuing method and device and electronic equipment

Country Status (3)

Country Link
CN (1) CN109242676B (en)
TW (1) TWI699728B (en)
WO (1) WO2020019792A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109847365A (en) * 2019-01-24 2019-06-07 湖南天河国云科技有限公司 A kind of anti-cheating method and system towards the application of block chain
WO2020019792A1 (en) * 2018-07-27 2020-01-30 阿里巴巴集团控股有限公司 Block release method and apparatus, and electronic device
CN112053157A (en) * 2019-06-05 2020-12-08 国际商业机器公司 Flexible transaction verification

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112651745A (en) * 2020-12-30 2021-04-13 杭州趣链科技有限公司 Credit evaluation method of financial block chain, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651332A (en) * 2016-12-29 2017-05-10 先锋支付有限公司 Block chain and method for generating new block in block chain
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
CN108270821A (en) * 2016-12-30 2018-07-10 深圳瀚德创客金融投资有限公司 For the block generation method and network node in block chain network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9608829B2 (en) * 2014-07-25 2017-03-28 Blockchain Technologies Corporation System and method for creating a multi-branched blockchain with configurable protocol rules
WO2017192837A1 (en) * 2016-05-04 2017-11-09 Silvio Micali Distributed transaction propagation and verification system
CN107438003B (en) * 2016-05-27 2022-08-09 索尼公司 Electronic device, method for electronic device, and information processing system
WO2018112948A1 (en) * 2016-12-23 2018-06-28 深圳前海达闼云端智能科技有限公司 Block generation method and device, and blockchain network
CN109242676B (en) * 2018-07-27 2023-10-27 创新先进技术有限公司 Block issuing method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107078903A (en) * 2016-12-23 2017-08-18 深圳前海达闼云端智能科技有限公司 Digging ore deposit method, device and the node device of block chain
CN106651332A (en) * 2016-12-29 2017-05-10 先锋支付有限公司 Block chain and method for generating new block in block chain
CN108270821A (en) * 2016-12-30 2018-07-10 深圳瀚德创客金融投资有限公司 For the block generation method and network node in block chain network

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020019792A1 (en) * 2018-07-27 2020-01-30 阿里巴巴集团控股有限公司 Block release method and apparatus, and electronic device
CN109847365A (en) * 2019-01-24 2019-06-07 湖南天河国云科技有限公司 A kind of anti-cheating method and system towards the application of block chain
CN109847365B (en) * 2019-01-24 2022-08-12 湖南天河国云科技有限公司 Anti-cheating method and system for block chain application
CN112053157A (en) * 2019-06-05 2020-12-08 国际商业机器公司 Flexible transaction verification
CN112053157B (en) * 2019-06-05 2024-04-12 国际商业机器公司 Flexible transaction verification

Also Published As

Publication number Publication date
TWI699728B (en) 2020-07-21
WO2020019792A1 (en) 2020-01-30
TW202008270A (en) 2020-02-16
CN109242676B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN109583887B (en) Block chain transaction method and device
Majeed et al. Blockchain for IoT-based smart cities: Recent advances, requirements, and future challenges
CN109242676A (en) Block dissemination method and device, electronic equipment
ES2840070T3 (en) Methods and apparatus for a distributed database within a network
US11836721B2 (en) Protection of information in an information exchange
Tschorsch et al. Bitcoin and beyond: A technical survey on decentralized digital currencies
CN109923536B (en) Method and apparatus for a distributed database including anonymous entries
US20200027066A1 (en) Blockchain-Based Digital Token Utilization
EP3857373A1 (en) Blockchain-based resource allocation method and apparatus
EP4105868A1 (en) Implementing logic gate functionality using a blockchain
CN109241778A (en) A kind of public transport data processing method and device based on block chain
TW202018619A (en) Blockchain-based private transactions and usage method and apparatus therefor
CN108985644A (en) Mining rights method and device, electronic equipment
CN110363527A (en) Card, monitoring and managing method and device are deposited based on block chain
CN110493148A (en) A kind of block processes, block common recognition and block synchronous method and device
WO2021220062A1 (en) Blockchain transaction
US20200175622A1 (en) Processing ledger transactions in a blockchain
CN112347184A (en) Bifurcation processing method and block link point
Zhu et al. Blockchain technology in internet of things
Shorish Blockchain state machine representation
CN111597264A (en) Block chain accounting method and device
CN110278091A (en) A kind of Internet of Things block chain common recognition method
CN109598365A (en) Event prediction method and device, electronic equipment
CN111222885B (en) Data processing request endorsement method and device, computer equipment and storage medium
CN112995167A (en) Kafka mechanism-based power utilization information acquisition method, block chain network and user side

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40003289

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant