CN108520410A - Feedback method for treating in block chain and device - Google Patents

Feedback method for treating in block chain and device Download PDF

Info

Publication number
CN108520410A
CN108520410A CN201810136656.4A CN201810136656A CN108520410A CN 108520410 A CN108520410 A CN 108520410A CN 201810136656 A CN201810136656 A CN 201810136656A CN 108520410 A CN108520410 A CN 108520410A
Authority
CN
China
Prior art keywords
block
transaction data
feedback control
chain
existing
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
CN201810136656.4A
Other languages
Chinese (zh)
Other versions
CN108520410B (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.)
Beijing European Chain Technology Co Ltd
Original Assignee
Beijing European Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing European Chain Technology Co Ltd filed Critical Beijing European Chain Technology Co Ltd
Priority to CN201810136656.4A priority Critical patent/CN108520410B/en
Publication of CN108520410A publication Critical patent/CN108520410A/en
Application granted granted Critical
Publication of CN108520410B publication Critical patent/CN108520410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The embodiment of the present invention provides the feedback method for treating and device in a kind of block chain, wherein method includes:In response to including the generation for carrying out the new block of feedback control to having the transaction data of block in block chain, check value is calculated through non-reversible algorithm to new district data in the block, and the check value of the new block is written in the existing block, form the backward chaining that the existing block is directed toward from the new block;The feedback control manipulation is carried out to the transaction data of the existing block;Newly-increased data in the block chain for forming the backward chaining with feedback control manipulation are broadcasted to block chain network.The scheme of the embodiment of the present invention can be had block to the past and carried out feedback control manipulation based on the backward chaining relationship of block chain.

Description

Feedback method for treating in block chain and device
Technical field
This application involves the feedback method for treating and device in field of computer technology more particularly to a kind of block chain.
Background technology
As shown in Figure 1, the structure of the block chain of the prior art is extended in such a way that chain is unidirectional, the latter Block will calculate the cryptographic Hash (Hash) obtained based on the content of previous block and be written in the block head of latter block, to Form the logical relation between previous block.With the generation of new data, block chain along arrow direction can constantly to Preceding extension, and by the relationship of the cryptographic Hash between block, form irreversible data record chain.
In the System of Logic of above-mentioned block chain, content and trend that data advance can only be embodied and recorded.But Many variations and the presence of relationship actually are had in the generation and development of the content of data, simple record from front to back Logic will necessarily generate limitation to the development of block chain data.
Invention content
The present invention provides the feedback method for treating and device in a kind of block chain, can be based on the backward chaining of block chain Relationship forms in block chain and had the Feedback control logic that block carries out feedback operation to the past according to current block.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, the feedback method for treating in providing a kind of block chain, including:
In response to the generation of the new block comprising the transaction data progress feedback control to having block in block chain, to new Check value is calculated through non-reversible algorithm in area's data in the block, and the check value of the new block is written to the existing block In, form the backward chaining that the existing block is directed toward from the new block;
The feedback control manipulation is carried out to the transaction data of the existing block;
Newly-increased data in the block chain for forming the backward chaining with feedback control manipulation are carried out to block chain network Broadcast.
Second aspect provides the feedback processing device in a kind of block chain, including:
Validation value computing module, in response to including the transaction data progress feedback control to having block in block chain New block generation, check value is calculated through non-reversible algorithm to new district data in the block;
Block link module is formed for the check value of new block to be written in the existing block from the new district Block is directed toward the backward chaining of the existing block;
Feedback operation module carries out the feedback control manipulation for the transaction data to the existing block;
Data broadcasting module, the newly-increased data in block chain for the backward chaining with feedback control manipulation will to be formed It is broadcasted to block chain network.
Feedback method for treating and device in block chain provided by the invention can be closed based on the backward chaining of block chain System had block to the past and carries out feedback control manipulation.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can It is clearer and more comprehensible, below the special specific implementation mode for lifting the application.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are common for this field Technical staff will become clear.Attached drawing only for the purpose of illustrating preferred embodiments, and is not considered as to the application Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the block chain of the prior art;
Fig. 2 is the backward chaining structural schematic diagram of the embodiment of the present invention;
Fig. 3 is the feedback method for treating flow chart in the block chain of the embodiment of the present invention;
Fig. 4 is the two-way block chain structure schematic diagram of the embodiment of the present invention;
Fig. 5 is the annular block chain structure schematic diagram of the embodiment of the present invention;
Fig. 6 is the two-way block chain structure schematic diagram of chain type of the embodiment of the present invention;
Fig. 7 is the structural schematic diagram of the feedback processing device in the block chain shown in the embodiment of the present invention.
Specific implementation mode
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Block chain is proposed along with the generation of bit coin, therefore, in the data that description block chain is related to In, use transaction data and the such expression of account book, with the development of block chain technology, the information and data that are able to record It has been not limited to traditional transaction data, and can be used to record any information and data.Therefore, implement in invention In example, transaction data refers to an information, data or instruction etc., and account book refers to the set being made of multiple transaction data Body.
Block chain refers to the data store organisation after block chain technology secrecy being made of multiple blocks, block link network Network refers to the network for having multiple nodes for realizing block chain technology to constitute.Node in block chain network can be in internet Server or terminal device with processing block chain data function.Each node in block chain is executed to transaction data Kept accounts be linked on existing block chain (by transaction data write area block), by new block, to block chain carry out storage and The functions such as verification.
The basic principle of the embodiment of the present invention is:By referring to comprising the transaction data for closing existing block in block chain Show that node establishes backward chaining, the opportunity for establishing backward chaining is after new block generation.Mode is established in backward chaining, is exactly In existing block before the data of this new block are written to through the check value that non-reversible algorithm is calculated, to establish One is played from the new block to the backward chaining of existing block.During the foundation of new block, node can obtain transaction in advance Data, in embodiments of the present invention, including can be a kind of finger for having the transaction data of block in feedback control block chain The form of order, the node in block chain can recognize that the processing indicated in the transaction data when getting the transaction data It is to establish backward chaining, to which after generating new block, the processing of backward chaining is established with regard to triggering.
It should be noted that in the embodiment of the present invention, the link between block is the link on a kind of logical meaning, this Linking relationship is embodied by the authentication mechanism in block chain.In traditional block chain, in the block head of latter block The check value generated based on previous block is record, and is constantly extended forward based on such mechanism, to form side of link To forward block chain always.
As shown in Fig. 2, comprising the backward chaining for being directed toward block 3 by block 4 in the block chain, i.e., in the block head of block 3 The check value hash2 for including block 4 causes the content of block 3 to be changed due to the foundation of backward chaining, when using in block 4 The check value of record when being verified to block 3, due to there is Hash2 in the block head of block 3, be based on modified area Block 3 calculates the check value obtained not equal to the check value recorded in the block head of block 4, to authentication error occur.
Pass through this authentication mechanism, so that it may to identify the presence of backward chaining.It in practical applications, can be in each area The data area for filling in reversed check value is reserved in the block head of block, thus during subsequent authentication, when discovery should There are when data in region, it will be able to knowing the block, there are backward chainings, then again based on the data to the block after Each block is verified, and is found and which block to be calculated the check value obtained based on, so that it may to know complete backward chaining Relationship.
For identifying backward chaining, it can also be realized by way of block chain errata.Block chain errata The supplement that can not distort mechanism to block chain is may be considered, which can be by management block chain network Supervisory node safeguard that, it is intended that for executing some necessary modifications to block chain, these modifications are to supervise It is completed under the monitoring of node, to ensure the accuracy of block chain data.
Modification to each block in block chain can be recorded in block chain errata corresponding with block chain, Record the specific location (line number and row number of data in block number and block where modification in the block chain errata Deng), and information or data before and after modification.During verification, if there is verification not by situation, Ke Yicha Ask the errata, determine the verification not by block with the presence or absence of modification, if it is present can use modification before data Or information is verified again, if passed through, can be confirmed that the modification by what is allowed, is not maliciously tampered.Also, It in the block chain errata, can also further record, whether which is the modification of backward chaining, and is specifically which is based on The information such as the check value that a block generates, consequently facilitating identifying the logical relation of backward chaining.
The technical solution of the application is further illustrated below by multiple embodiments.
Embodiment one
Based on the scheme thought that backward chaining structure in above-mentioned block chain and corresponding data are handled, as shown in figure 3, it is this The executive agent of the feedback method for treating flow chart in block chain shown in inventive embodiments, this method can be in block chain Handle node.As shown in figure 3, the feedback method for treating in the block chain includes:
S310, in response to including the life for carrying out the new block of feedback control to having the transaction data of block in block chain At check value is calculated through non-reversible algorithm to new district data in the block.
The check value of new block is written in existing block by S320, is formed from new block and is directed toward the reversed of existing block Link;To identify new block to having the Feedback control logic of transaction data in block.
During block chain extends and generates new block, if be stored in current new block for have block into The transaction data of row feedback control calculates new district data in the block through non-reversible algorithm then after generating the new block To check value, and the check value of the new block is written to this and is had in block, to form backward chaining.The backward chaining is used It is showed and numbers different before by new district transaction data feedback control in the block with identifying transaction data in existing block According to form.
Wherein, above-mentioned non-reversible algorithm can be hash algorithm, and corresponding check value is cryptographic Hash.
Here in the so-called chain to block have block transaction data carry out feedback control can include but is not limited to as Lower control operation:
1. opening the transaction data for having block in block chain
Here so-called transaction data is effective by the i.e. finger transaction data of unlatching, subsequently can be based on the number of deals that these are opened According to the new corresponding new block of transaction data of generation.
For example, the scheme thought based on backward chaining structure in above-mentioned block chain, can form the two-way block as shown in 4 Chain structure schematic diagram, including:At least one Two-way Chain (Two-way Chain being made of Block2 and Block4 in such as Fig. 4);
The Two-way Chain is by a first block (such as Block2) and one in rear block (such as Block4) along two phase negative sides It is formed after being linked to sequence, and is formerly stored with the verification being calculated through non-reversible algorithm in back zone data in the block in block Value.For example, the non-reversible algorithm can be hash algorithm, corresponding check value is cryptographic Hash.
Wherein, so-called one first block and one refer to the areas Xian An along two opposite directions sequence links in rear block The direction that block chain normally extends from front to back is first extended based on the first block as father's block and is generated as sub-block rear Then block re-forms the backward chaining that first block is directed toward in rear block, the Block2 that is so formed in similar Fig. 4 and The chain with bi-directional chaining that Block4 is constituted.
Although theoretically the two blocks father, sub-block each other, should all be stored in the block head of the two blocks pair Check value that square area's data in the block are obtained through non-reversible algorithm and seem contradiction, still, since the link in the two directions is Logic will not be caused to obscure through what sequencing generated, i.e., it, first can not by the data warp in Block2 when generating Block4 Algorithm for inversion obtains check value, and the check value is recorded in the block head of Block4, then again by include Block2 school All data tested in the Block4 of value obtain check value through non-reversible algorithm, and the check value is recorded in the block of Block2 In head.In other words, the check value of former father's block had both been stored in Block2, while the verification of sub-block Block4 is also stored Value.
In fact, two-way chain structure can be considered as two adjacent blocks, first link is formed along the direction normally extended The direction of Block2 → Block4 (link), then link along being formed in the opposite direction with the side normally extended (Block4 → The direction of Block2 links) it is constituted afterwards.
When based on forming backward chaining, need to the areas Liang Ge the repairing in preceding block in the block with backward chaining relationship Change, so as to cause verification can not by logic, can set should proparea transaction data in the block formed when as closing State (i.e. transaction data is unavailable) is after forming backward chaining, and transaction data is just arranged, and by unlatching, (i.e. transaction data can With).Based on the logical relation that this data are opened, in the Two-way Chain of formation can also to the logical relation of above-mentioned unlatching into Row is expanded.For example, in setting Two-way Chain after first area transaction data in the block is opened, link with the first block other Area's transaction data in the block also opened by synchronization.
For example, in the process field of assets, it is understood that there may be following demand:A collection of money is sold in some designated blocks concentration Production, but the assets are initially invalid state, and after meeting certain condition, a special friendship is executed in a block later Easily, the assets of designated blocks before are all started.Above-mentioned condition can be by the regular hour, for example, for some The commodity of quality inspection phase are still in, after quality inspection passes through, which just has the value of sale.In addition, above-mentioned condition can also That the forms of assets variation (be initialized as invalid) occurs, when such a change occurs it is necessary to by special transaction data come It triggers the assets and enters effective status.
For this situation, so that it may to establish a backward chaining by a special deal data-triggered, and then by it Transaction data in preceding designated blocks carries out unlatching processing, so that the assets of block from becoming effective shape in vain before State.
Has the transaction data of block 2. closing in block chain
Here so-called transaction data is closed that refer to transaction data invalid, can not subsequently be based on these pent friendships again Easy data generate the corresponding new block of new transaction data.
For example, the scheme thought based on backward chaining structure in above-mentioned block chain, can form annular block as depicted in fig. 5 Chain structure schematic diagram, including:
At least one endless chain (endless chain being made of block Block2, Block4 and Block5 in such as Fig. 5);
The endless chain is formed by multiple blocks after same circular direction sequence link, and the head end block of endless chain is (such as Block2 the verification that the data being stored in) in the end block (such as Block5) of endless chain are calculated through non-reversible algorithm Value.For example, the non-reversible algorithm can be hash algorithm, corresponding check value is cryptographic Hash.
In fact, annular chain structure can be considered as a block chain part normally to extend (Block2 → Block4 → The block chain part of Block5) and one rear block be directed toward preceding block backward chaining block chain part (Block5 → The block chain part of Block2) it is constituted.
When based on forming backward chaining, need to the areas Liang Ge the repairing in preceding block in the block with backward chaining relationship Change, so as to cause verification can not by logic, it is possible to determine that should in proparea data invalid in the block, i.e. transaction data is closed It closes.Based on the pent logical relation of this data, in the endless chain of formation can also to the logical relation of above-mentioned closing into Row is expanded.For example, only head end area transaction data in the block is closed in setting endless chain, or all areas in setting endless chain Transaction data in the block is closed, or when going back chain in endless chain and being connected to other blocks, these other areas transaction in the block Data are also synchronized and are closed.
For example, in the process field of assets, it is understood that there may be following demand:A collection of money is sold in some designated blocks concentration Production executes a special transaction, the assets of designated blocks before after meeting certain condition in a block later All cancel.Above-mentioned condition can, for example, for some commodity with the shelf-life, passed through by the regular hour After shelf-life, the commodity are just without value.In addition, the form that above-mentioned condition can also be assets changes, when this change Change when occurring it is necessary to triggering the calcellation of the assets by special transaction data.
For this situation, so that it may to establish a backward chaining by a special deal data-triggered, by before Designated blocks in transaction data carry out calcellation processing, to abolish before block assets.
3. carrying out feedback control to other areas transaction data in the block by having block in block chain
Here have block in the so-called chain by block and feedback control is carried out to other areas transaction data in the block, that is, refer to It is not completed not instead of directly, is needed by other by establishing backward chaining between new block by the block of feedback control manipulation The transaction data content of block successively realizes that feedback, the final result of the feedback operation can open target area business in the block Data can also be to close target area business datum in the block.
For example, the scheme thought based on backward chaining structure in above-mentioned block chain, it is two-way can to form the chain type as shown in 6 Block chain structure schematic diagram, including:At least one chain type Two-way Chain in Fig. 6 Block2, Block4 and Block5 (as being made of Chain type Two-way Chain);
The chain type Two-way Chain is formed by multiple blocks after two opposite direction sequence links, and by the link in rear formation In direction (by the direction of Block5 → Block4 → Block2 in such as Fig. 6), this is each stored with successively in preceding block preceding The check value that the latter zone data in the block of block are calculated through non-reversible algorithm.For example, the non-reversible algorithm can be to breathe out Uncommon algorithm, corresponding check value are cryptographic Hash.
Wherein, so-called multiple blocks refer to first normally prolonging from front to back by block chain along two opposite direction sequence links The direction of exhibition is first generated as sub-block in rear block based on extending in preceding block as father's block, is then re-formed Block is directed toward the backward chaining in preceding block afterwards, is so formed Block2 → Block4 → Block5's in similar Fig. 6 What the link direction in rear formation for link direction and Block5 → Block4 → Block2 being previously formed was constituted has double To the chain of link.And wherein in the definition of preceding block, it is time sequencing definition when normally being generated by block always, that is, presses The link direction definition being initially formed, if Block2 and Block4 is Block5 always in preceding block in Fig. 6, Block2 is always Block4 in preceding block.
Correspondingly, by the link direction (by the direction of Block5 → Block4 → Block2 in such as Fig. 6) of rear formation, Each it is stored with the school that the latter zone data in the block in preceding block are calculated through non-reversible algorithm successively in preceding block Value is tested, is i.e. is stored with the check value of Block5 in Block4, the check value of Block4 is stored in Block2.
Although two neighboring block father, sub-block each other in theoretical upper chain type Two-way Chain, in the block head of the two blocks In should all be stored with check value that other side area data in the block are obtained through non-reversible algorithm and seem contradiction, still, due to this two The link in a direction is logic will not to be caused to obscure through what sequencing generated.For example, first by the link direction being previously formed, When generating Block4, the data in Block2 are first obtained into check value through non-reversible algorithm, and the check value is recorded in In the block head of Block4;Then by the link direction of rear formation, then the verification that will include Block2 and Block5 All data in the Block4 of value obtain check value through non-reversible algorithm, and the check value is recorded in the block head of Block2 In.In other words, the check value of former father's block had both been stored in Block2, while the check value of sub-block Block4 is also stored.
In fact, the two-way chain structure of chain type can be considered as the adjacent block of multiple sequences, first along normally extend direction ( The link direction being initially formed) link (direction of Block2 → Block4 → Block5 links) is formed, then extend along with normal Side in the opposite direction (in the link direction of rear formation) formed link (the direction chain of Block5 → Block4 → Block2 Connect) it is constituted afterwards.
When based on forming backward chaining, need to the areas Liang Ge the repairing in preceding block in the block with backward chaining relationship Change, so as to cause verification can not by logic, can set should proparea transaction data in the block formed when as closing State (i.e. transaction data is unavailable) is after forming backward chaining, and transaction data is just arranged, and by unlatching, (i.e. transaction data can With).Based on the logical relation that this data are opened, in the link direction in rear formation each preceding block due to thereafter Block formed backward chaining relationship and opened successively, and finally open chain type Two-way Chain in head end area number of deals in the block According to.The logical relation of above-mentioned unlatching can also be expanded in the chain type Two-way Chain of formation.For example, setting chain type Two-way Chain In after head end area transaction data in the block is opened, it is also synchronous with other areas transaction data in the block that the head end block links It is opened.
It is analyzed from the above process, the backward chaining of Block5 → Block4, corresponding feedback control is shown as, and is passed through Block4 opens the transaction data (backward chaining for establishing Block4 → Block2) in Block2.
For example, in the process field of assets, it is understood that there may be following demand:A collection of money is sold in some designated blocks concentration Production, but the assets are initially invalid state, and after meeting certain condition, a special friendship is executed in a block later Easily, the assets of designated blocks before are all started.Above-mentioned condition can be by the regular hour, for example, for some The commodity of quality inspection phase are still in, after quality inspection passes through, which just has the value of sale.In addition, above-mentioned condition can also That the forms of assets variation (be initialized as invalid) occurs, when such a change occurs it is necessary to by special transaction data come It triggers the assets and enters effective status.
For this situation, so that it may successively to establish multiple backward chainings by a special deal data-triggered, until The designated blocks for including the assets are linked to, and then the transaction data in designated blocks before is subjected to unlatching processing, to So that the assets of block from becoming effective status in vain before.
What needs to be explained here is that can also remember in the block of non-first and end in chain type Two-way Chain as shown in FIG. 6 Record open its previous block transaction data, only these transaction data just build after be in off state, only the block with The block of its latter link can just be opened after forming backward chaining by latter zone transaction data in the block, in the block in the area After transaction data is opened, the backward chaining relationship for establishing the block and its previous block can be continued, and then open previous area Transaction data in the block;Or these in chain type Two-way Chain positioned at non-first and end block in also can record open it is first The part transaction data of block, and had recorded in the block of end and open head end area last part transaction data in the block, so After in end, block is formed, so that it may backward chaining is formed with previous block to be transmitted successively from end region BOB(beginning of block), it is final to open Head end area transaction data in the block.It can be seen that the end block in chain type Two-way Chain is to open in entire chain type Two-way Chain Block where the last part transaction data of each block, the only block can just open preceding block successively after being created In transaction data, or by backward chaining successively to front transfer opening operation until head end block, and in chain type Two-way Chain Head end area transaction data in the block be the data finally opened.
S330 carries out feedback control manipulation to having the transaction data of block;
Based on the above-mentioned various feedback control logic enumerated, phase can be carried out to having the transaction data of block in block chain The operation processing answered.Such as:
For the Feedback control logic that the transaction data for having block is closed in block chain, can generate above-mentioned existing area Be arranged when block transaction data therein be open state, such as by specified identification information identify area part in the block or All data are available open state.After forming the backward chaining for having and closing these transaction data, this can be had area Transaction data is in off state from open state switching in block, such as identifies area part in the block by specified identification information Or all data are not available closed state.Or the mechanism that can not be verified due to modification from existing block because existing On, it directly identifies this and has the pent state of block.
For the feedback control for carrying out feedback control to other areas transaction data in the block by having block in block chain Logic can continue to generate and be somebody's turn to do after existing block forms backward chaining, according to the corresponding Feedback control logic of the backward chaining Has the backward chaining between block and other existing blocks, to form corresponding Feedback control logic, until target control Logic is completed.It can be to being modified by the existing area transaction data in the block of feedback control when forming backward chaining every time. Feedback control is carried out to other areas transaction data in the block either by having in block by having block in block chain Transaction data controls other areas transaction data in the block and is in off state from open state switching, can also be by having in block Transaction data controls other areas transaction data in the block and is switched to open state from closed state.
S340, by the newly-increased data in the block chain for forming the backward chaining with feedback control manipulation to block chain network It is broadcasted.
It is carried out before feedback control manipulation is directed to due to the backward chaining of above-mentioned formation, and to having block There is the modification of block, therefore, after node generates new block, not only to broadcast new block, it is also desirable to which existing area is in the block new Increase data to be broadcasted to block chain network, with by the common recognition mechanism of multiple nodes to the execution of final block chain verification with Confirm.
Further, show that new block is controlled by the block of backward chaining institute feedback control and feedback in order to clearer Logic processed can be recorded in the transaction data of new block by the number of the existing block of feedback control and feedback control letter Breath, such as control have the logical operation that transaction data is opened, closed in block, or control other by existing block and specify The logical operation that area's data in the block of block number are opened, closed.
Further or alternatively, area of the new block by backward chaining institute feedback control is shown in order to clearer Block and Feedback control logic can record the new block of feedback control in by the transaction data of the existing block of feedback control Number and feedback control information, as control have block in transaction data open, close logical operation;It is either logical It crosses and has the logical operation that block controls area's data unlatching in the block of other designated blocks number, closing;Or it is direct Execute the operation etc. modified to having area's transaction data in the block.
Feedback method for treating in the block chain of the embodiment of the present invention, the block points relationship based on backward chaining can be with It realizes and can have block based on the backward chaining relationship of block chain to the past and carry out feedback control manipulation.
Further, above-mentioned feedback control may include:It opens in block chain and has area's transaction data in the block, closes block Have area's transaction data in the block in chain and feedback control manipulation is carried out to other blocks by having block.
Embodiment two
As shown in fig. 7, its structural schematic diagram one for the feedback processing in the block chain shown in the embodiment of the present invention, the dress It can be the server of setting in a network to set, for executing method and step shown in embodiment two.As shown in fig. 7, the area Feedback processing device in block chain includes:
Validation value computing module 710, in response to being fed back comprising the transaction data to existing block in block chain Check value is calculated through non-reversible algorithm to new district data in the block in the generation of the new block of control;
Block link module 720 is formed and is directed toward from new block for the check value of new block to be written in existing block Has the backward chaining of block;
Feedback operation module 730, for carrying out feedback control manipulation to having the transaction data of block;
Data broadcasting module 740, for will be formed with feedback control manipulation backward chaining block chain in increase newly Data are broadcasted to block chain network.
Further, above-mentioned feedback operation module 730 is specifically used for,
Setting has transaction data in block and is switched to open state from closed state.
Further, above-mentioned feedback operation module 730 is specifically used for,
Setting has transaction data in block and is in off state from open state switching.
Further, above-mentioned feedback operation module 730 is specifically used for,
The operation that feedback control is carried out to other areas transaction data in the block by having block in block chain.
Further, include to be believed by the block number of the existing block of feedback control and feedback control in above-mentioned new block Breath.
Feedback processing device in the block chain of the embodiment of the present invention, the block points relationship based on backward chaining can be with It realizes and can have block based on the backward chaining relationship of block chain to the past and carry out feedback control manipulation.
Further, above-mentioned feedback control may include:It opens in block chain and has area's transaction data in the block, closes block Have area's transaction data in the block in chain and feedback control manipulation is carried out to other blocks by having block.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer read/write memory medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or The various media that can store program code such as person's CD.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. the feedback method for treating in a kind of block chain, which is characterized in that including:
In response to the generation of the new block comprising the transaction data progress feedback control to having block in block chain, to new block In data check value is calculated through non-reversible algorithm, and the check value of the new block is written in the existing block, Form the backward chaining that the existing block is directed toward from the new block;
The feedback control manipulation is carried out to the transaction data of the existing block;
Newly-increased data in the block chain for forming the backward chaining with feedback control manipulation are broadcasted to block chain network.
2. according to the method described in claim 1, it is characterized in that, described in the transaction data progress to the existing block Feedback control manipulation includes:
Transaction data in the existing block is set and is switched to open state from closed state.
3. according to the method described in claim 1, it is characterized in that, described in the transaction data progress to the existing block Feedback control manipulation includes:
Transaction data in the existing block is arranged to be in off state from open state switching.
4. according to the method described in claim 1, it is characterized in that, described in the transaction data progress to the existing block Feedback control manipulation includes:
The operation that feedback control is carried out to other areas transaction data in the block by having block described in block chain.
5. according to any methods of claim 1-4, which is characterized in that include by feedback control in the new block The existing block block number and feedback control information.
6. the feedback processing device in a kind of block chain, which is characterized in that including:
Validation value computing module, in response to including the new of the transaction data progress feedback control to having block in block chain Check value is calculated through non-reversible algorithm to new district data in the block in the generation of block;
Block link module, for the check value of new block to be written in the existing block, formation refers to from the new block Backward chaining to the existing block;
Feedback operation module carries out the feedback control manipulation for the transaction data to the existing block;
Data broadcasting module, the newly-increased data in block chain for that will form the backward chaining with feedback control manipulation are to area Block chain network is broadcasted.
7. device according to claim 6, which is characterized in that the feedback operation module is specifically used for,
Transaction data in the existing block is set and is switched to open state from closed state.
8. device according to claim 6, which is characterized in that the feedback operation module is specifically used for,
Transaction data in the existing block is arranged to be in off state from open state switching.
9. device according to claim 6, which is characterized in that the feedback operation module is specifically used for,
The operation that feedback control is carried out to other areas transaction data in the block by having block described in block chain.
10. according to the device described in any one of claim 6-9, which is characterized in that include to be fed back in the new block The block number and feedback control information of the existing block of control.
CN201810136656.4A 2018-02-09 2018-02-09 Feedback processing method and device in block chain Active CN108520410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810136656.4A CN108520410B (en) 2018-02-09 2018-02-09 Feedback processing method and device in block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810136656.4A CN108520410B (en) 2018-02-09 2018-02-09 Feedback processing method and device in block chain

Publications (2)

Publication Number Publication Date
CN108520410A true CN108520410A (en) 2018-09-11
CN108520410B CN108520410B (en) 2020-09-11

Family

ID=63433072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810136656.4A Active CN108520410B (en) 2018-02-09 2018-02-09 Feedback processing method and device in block chain

Country Status (1)

Country Link
CN (1) CN108520410B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404701A (en) * 2015-12-31 2016-03-16 浙江图讯科技股份有限公司 Peer-to-peer network-based heterogeneous database synchronization method
CN106341421A (en) * 2016-10-31 2017-01-18 杭州云象网络技术有限公司 Block chain technology based data exchange method
CN106446705A (en) * 2016-08-26 2017-02-22 杨鹏 Cyclic writing method and system of data on the basis of block chain
CN106534085A (en) * 2016-10-25 2017-03-22 杭州云象网络技术有限公司 Privacy protection method based on block chain technology
CN106815330A (en) * 2016-12-29 2017-06-09 北京瑞卓喜投科技发展有限公司 The generation method and system of the block chain expanded along Spatial Dimension
CN106897353A (en) * 2016-12-29 2017-06-27 北京瑞卓喜投科技发展有限公司 The generation method and system of the block chain that centre type multidimensional is expanded
CN107146087A (en) * 2017-04-11 2017-09-08 广东网金控股股份有限公司 A kind of quick common recognition bookkeeping methods and system based on block chain alliance chain
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
US20170338947A1 (en) * 2016-05-23 2017-11-23 Accenture Global Solutions Limited Rewritable blockchain
CN108462582A (en) * 2018-02-09 2018-08-28 北京欧链科技有限公司 Feedback method for treating in block chain and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105404701A (en) * 2015-12-31 2016-03-16 浙江图讯科技股份有限公司 Peer-to-peer network-based heterogeneous database synchronization method
US20170338947A1 (en) * 2016-05-23 2017-11-23 Accenture Global Solutions Limited Rewritable blockchain
CN106446705A (en) * 2016-08-26 2017-02-22 杨鹏 Cyclic writing method and system of data on the basis of block chain
CN106534085A (en) * 2016-10-25 2017-03-22 杭州云象网络技术有限公司 Privacy protection method based on block chain technology
CN106341421A (en) * 2016-10-31 2017-01-18 杭州云象网络技术有限公司 Block chain technology based data exchange method
CN106815330A (en) * 2016-12-29 2017-06-09 北京瑞卓喜投科技发展有限公司 The generation method and system of the block chain expanded along Spatial Dimension
CN106897353A (en) * 2016-12-29 2017-06-27 北京瑞卓喜投科技发展有限公司 The generation method and system of the block chain that centre type multidimensional is expanded
CN107146087A (en) * 2017-04-11 2017-09-08 广东网金控股股份有限公司 A kind of quick common recognition bookkeeping methods and system based on block chain alliance chain
CN107171829A (en) * 2017-04-24 2017-09-15 杭州趣链科技有限公司 A kind of dynamic node management method for algorithm realization of being known together based on BFT
CN108462582A (en) * 2018-02-09 2018-08-28 北京欧链科技有限公司 Feedback method for treating in block chain and device

Also Published As

Publication number Publication date
CN108520410B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN108462582A (en) Feedback method for treating in block chain and device
CN110597925B (en) Cross-chain data processing method and device based on block chain
CN108510268A (en) Annular block chain structure, data processing method and device
CN108389047B (en) Method for trading between parent chain and child chain in block chain and block chain network
TWI816647B (en) Systems and methods for implementing deterministic finite automata (dfas) via a blockchain
US20190325512A1 (en) Using a Distributed Ledger for Tracking Debt Data
CN106909605B (en) Method and system for generating block chain expanded along transverse direction
CN110765200B (en) Asset procurement method and device based on block chain and electronic equipment
CN108470039A (en) Data processing method and device in block chain
CN115631039A (en) Fund tracking method, device and equipment
CN108881387A (en) A kind of block chain common recognition system
CN110599166A (en) Method and device for acquiring transaction dependency relationship in block chain
CN108062668A (en) Quick Response Code method of payment and system based on background picture encryption identification
CN110490742B (en) Transaction execution method and device in blockchain
CN108510254A (en) The two-way block chain structure of chain type, data processing method and device
CN114529415A (en) Transaction verification method and device based on block chain and electronic equipment
CN108520410A (en) Feedback method for treating in block chain and device
CN110223075A (en) Identity identifying method, device, computer equipment and storage medium
CN108519985B (en) Bidirectional block chain, data processing method and device
CN108494706A (en) Data processing method and device in block chain
CN114024687B (en) Method for realizing NFT detachable and interchangeable through locking reissue
CN109191127A (en) A kind of method and tool of digital asset secure storage
CN111581108B (en) Input data acquisition method and device based on business system transaction test
CN111383008B (en) Block chain transfer method and device based on account model
CN113987574A (en) Block chain private transaction method, device, equipment and readable storage medium

Legal Events

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