CN108519985A - Two-way block chain structure, data processing method and device - Google Patents
Two-way block chain structure, data processing method and device Download PDFInfo
- Publication number
- CN108519985A CN108519985A CN201810136676.1A CN201810136676A CN108519985A CN 108519985 A CN108519985 A CN 108519985A CN 201810136676 A CN201810136676 A CN 201810136676A CN 108519985 A CN108519985 A CN 108519985A
- Authority
- CN
- China
- Prior art keywords
- block
- chain
- transaction data
- way
- data
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Technology Law (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Development Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention provides a kind of two-way block chain structure, data processing method and device, wherein two-way block chain structure includes:At least one Two-way Chain;The Two-way Chain is formed by a first block and one after rear block is linked along two opposite direction sequences, and the check value being calculated through non-reversible algorithm in back zone data in the block is stored in the first block.The scheme of the embodiment of the present invention can be realized by the block points relationship of bi-directional chaining and open the processing logic for having area's transaction data in the block in block chain based on newly-generated area's transaction data in the block.
Description
Technical field
This application involves a kind of field of computer technology more particularly to two-way block chain structure, data processing method and dresses
It sets.
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 a kind of two-way block chain structure, data processing method and device, can pass through bi-directional chaining
Block points relationship realizes to open have area's transaction data in the block in block chain based on newly-generated area's transaction data in the block
Processing logic.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, a kind of two-way block chain structure is provided, including:At least one Two-way Chain;
The Two-way Chain is formed by a first block and one after rear block is linked along two opposite direction sequences, and
The check value being calculated through non-reversible algorithm in back zone data in the block is stored in the first block.
Second aspect provides a kind of data processing method, including:
In response to including the generation for the new block for opening the transaction data for having block in block chain, to new district number in the block
Check value is calculated according to through non-reversible algorithm, and the check value of the new block is written in existing block, is formed with described
Existing block is first block, is the bi-directional chaining in rear block with new block, to identify transaction data in the existing block
It is opened;
The newly-increased number for having and opening and having in block chain in block in the block chain of the bi-directional chaining of transaction data will be formed
It is broadcasted according to block chain network.
The third aspect provides a kind of data processing equipment, including:
Check value computing module, in response to including the new block for opening the transaction data for having block in block chain
It generates, 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 the new block to be written in existing block with the existing area
Block is first block, is the bi-directional chaining in rear block with new block, is opened with identifying transaction data in the existing block;
Data broadcasting module, for that will be formed with the bi-directional chaining of transaction data in existing block in unlatching block chain
Newly-increased data in block chain are broadcasted to block chain network.
Two-way block chain structure provided by the invention, data processing method and device, the block for passing through bi-directional chaining are directed toward
Relationship can be opened based on newly-generated area's transaction data in the block and have area's transaction data in the block in block chain, to fill
Divide and realizes the processing logic for enabling and having transaction data in block using the backward chaining structure between block.
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 two-way block chain structure schematic diagram one of the embodiment of the present invention;
Fig. 4 is the two-way block chain structure schematic diagram two of the embodiment of the present invention;
Fig. 5 is the two-way block chain structure schematic diagram three of the embodiment of the present invention;
Fig. 6 is the two-way block chain structure schematic diagram four of the embodiment of the present invention;
Fig. 7 is the two-way block chain structure schematic diagram five of the embodiment of the present invention;
Fig. 8 is the data processing method flow chart one shown in the embodiment of the present invention;
Fig. 9 is the data processing method flowchart 2 shown in the embodiment of the present invention;
Figure 10 is the structural schematic diagram of the data processing equipment 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 opening existing block in block chain
Show that node establishes backward chaining, and then establish bi-directional chaining, the opportunity for establishing backward chaining is after new block generation.Reverse strand
What is connect establishes mode, before being exactly written to the data of this new block through the check value that non-reversible algorithm is calculated
Have in block, to set up one from the new block to the backward chaining of existing block, and then establishes from existing block to new
Block, and from new block again to two bi-directional chainings along opposite pointing direction of existing block.In the foundation of new block
Cheng Zhong, node can obtain transaction data in advance, in embodiments of the present invention, including opening the number of deals for having block in block chain
According to that can be a kind of form of instruction, the node in block chain can recognize that the number of deals when getting the transaction data
Processing according to middle instruction is to establish backward chaining, to after generating new block, establish backward chaining with regard to triggering, and then establish double
To the processing of link.
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
Two-way block chain structure schematic diagram one shown in inventive embodiments, including:At least one Two-way Chain (in such as Fig. 3 by Block2 and
The Two-way Chain that Block4 is constituted);
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. 3 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.
Further, can include simultaneously multiple above-mentioned two-way chain structures in a block chain, and in these Two-way Chains
Block between can be separated from each other to form mutually multiple Two-way Chains for not linking, can also pass through and share at least one block
And it interlinks together.
For example, may include at least two Two-way Chains in above-mentioned two-way block chain structure, two Two-way Chains share one formerly
Block, and be formerly stored in two Two-way Chains in block and be calculated through non-reversible algorithm in back zone data in the block respectively
Check value.
As shown in figure 4, two Two-way Chains to show share the block chain aspect graph of a first block.Two of which is empty
A wire frame respectively corresponding Two-way Chain, and the shared first block that Block2 is the two Two-way Chains, and the block head of Block2
It is middle to be had recorded respectively in rear block Block4 and in the check value of rear block Block5.
Concrete application of the structure in actual scene based on shown in Fig. 4 can be arranged such open in block chain and have
The logic of block is stored in when comprising the transaction data for opening existing block in block chain at least two new blocks;Then when
Including the whole new blocks for opening the transaction data for having block in block chain are generated, and form the multiple double of respective numbers
To after link, just determine that this has transaction data in block and is finally opened.
As shown in Figure 4, it is assumed that in rear block Block4 and in rear block Block5, record is useful for opening Block2
All Activity data, then can Block4 and block Block5 with Block2 formed backward chaining, and then formed on
After stating two Two-way Chains, just finally determine that the transaction data in Block2 is effective, transaction data is opened.
In another example may include at least two Two-way Chains in above-mentioned two-way block chain structure, two Two-way Chains share one
Block afterwards, and be stored with this in the first block in two Two-way Chains respectively and calculated through non-reversible algorithm in back zone data in the block
Obtained check value.
As shown in figure 5, sharing a block chain aspect graph in rear block for two Two-way Chains shown.Two of which is empty
A wire frame respectively corresponding Two-way Chain, and Block4 sharing in rear block for the two Two-way Chains, and formerly block Block2
With the check value in rear block Block4 is had recorded in the block head of first block Block3 respectively.
Concrete application based on structure shown in Fig. 5 in actual scene can be arranged such open in block chain and have
The logic of block is stored in when comprising the transaction data for opening multiple existing blocks in block chain in the same new block;Then
It is generated when comprising the same new block for opening the transaction data of multiple existing blocks in block chain, and forms respective numbers
Multiple bi-directional chainings after, respectively determine multiple existing block in transaction data opened.
As shown in Figure 5, it is assumed that record is useful for opening the number of deals of Block2 and Block3 in rear block Block4
According to, then can be in Block4 and Block2 formation backward chainings, and then after formation Two-way Chain, determine the number of deals in Block2
According to effective, transaction data is opened;Backward chaining is formed in Block4 and Block3, and then after formation Two-way Chain, is determined
Transaction data in Block3 is effective, and transaction data is opened.Transaction data in Block2, Block3 is identified unlatching
Afterwards, can also be according to preset processing logic, it would be possible to it is existing with the two Two-way Chains in formerly block interlink other
Area's transaction data in the block is also set as effective together.
Further, in any of the above-described kind of two-way block chain structure, can also include and first block chain in Two-way Chain
The block and/or sub-block chain connect.Such as Fig. 6 is shown on the basis of structure shown in Fig. 3, and block is connected to Block2 also chains
Block5, and the sub-block chain for including two blocks that is made of Block6 and Block7.
It, can be with after the transaction data in Block2 is identified unlatching in practical application scene, such as shown in Fig. 6
According to preset processing logic, other blocks (Block5) that will be interlinked with the first block (Block2) in the Two-way Chain
And/or area's transaction data in the block of sub-block chain (the sub-block chain being made of Block6 and Block7) is also provided with together
Effect.
Similar, in practical application scene, such as shown in Fig. 4, after the transaction data in Block2 is identified unlatching,
Can also be according to preset processing logic, other blocks that will be interlinked with the shared first block Block2 in the Two-way Chain
And/or area's transaction data in the block of sub-block chain is also set as effective together.
Similar, in practical application scene, such as shown in Fig. 5, the transaction data in Block2, Block3 is identified
, can also be according to preset processing logic after effectively, other blocks and/or sub-block that will be interlinked with Block2, Block3
Area's transaction data in the block of chain is also set as effective together.
Further, can also include being made with first block in Two-way Chain in any of the above-described kind of two-way block chain structure
For father's block, using the block and/or sub-block chain in rear block as sub-block.
Such as Fig. 7 is shown on the basis of structure shown in Fig. 3, further includes using Block2 as father's block, with Block5
As sub-block, and the block Block4 being linked in block chain and the sub-block chain being made of Block6 and Block7.It should
Before transaction data in block Block4 and/or sub-block chain in block Block6 and Block7 can be as block Block5
Issue evidence or condition data etc..
Two-way block chain structure provided in an embodiment of the present invention may be implemented by the block points relationship of bi-directional chaining
The processing logic for having area's transaction data in the block in block chain is opened based on newly-generated area's transaction data in the block.
Further, can include the first block shared, to realize at least two Two-way Chains of formation
The processing logic for having area's transaction data in the block in block chain is opened based on multiple newly-generated areas transaction data in the block.
It further, can be comprising one shared in rear block, to realize at least two endless chains of formation
The processing that multiple existing area's transaction data in the block in block chain are opened based on same newly-generated area transaction data in the block is patrolled
Volume.
Further, in the Two-way Chain of formation, can include and first block links in Two-way Chain block and/or son
Block chain, to which the real newly-generated area transaction data in the block that is now based on opens existing area's transaction data in the block in block chain
While, the synchronous processing logic opened with other areas transaction data in the block that first block links in Two-way Chain.
Embodiment two
Based on the scheme thought that backward chaining structure in above-mentioned block chain and corresponding data are handled, as shown in figure 8, it is this
Data processing method flow chart one shown in inventive embodiments, the executive agent of this method can be the processing section in block chain
Point.As shown in figure 8, the data processing method includes:
S810, in response to including the generation for the new block for opening the transaction data for having block in block chain, to new block
In data check value is calculated through non-reversible algorithm;
The check value of new block is written in existing block by S820, and it is first block, with new district to be formed to have block
Block is the bi-directional chaining in rear block, is opened with identifying transaction data in existing block.
During block chain extends and generates new block, if be stored in current new block for opening existing block
Transaction data, then after generating the new block, the sub-block for having block using new block as this is linked in block chain,
And check value is calculated through non-reversible algorithm in new district data in the block, and the check value of the new block is written to this and is had
In block, to formed with have block be first block, with new block be rear block bi-directional chaining.The bi-directional chaining is used
It is opened with identifying transaction data in existing block.
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, 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.
S830 will be formed new in the block chain of the bi-directional chaining of transaction data in block with having in unlatching block chain
Increase data to be broadcasted to block chain network.
Due in bi-directional chaining include backward chaining, and backward chaining be related to before existing block modification, therefore,
After node generates new block, new block is not only broadcasted, it is also desirable to by existing area newly-increased data in the block to block chain network
It is broadcasted, the execution of final block chain is verified and be confirmed by the common recognition mechanism of multiple nodes.
Further, in above method step, if including opening the transaction data storage for having block in block chain
In at least two new blocks, then method and step shown in Fig. 8 can also specifically be refined as method and step shown in Fig. 9, including:
S910, in response to including the generation for the new block for opening the transaction data for having block in block chain, to new block
In data check value is calculated through non-reversible algorithm;
The check value of new block is written in existing block by S920, and it is first block, with new district to be formed to have block
Block is the bi-directional chaining in rear block;
Step S910~S920 is similar to the content of above-mentioned steps S810~S820.
Specifically, above-mentioned to be stored at least two new blocks comprising the transaction data for closing existing block in block chain
In.Therefore, the bi-directional chaining formed based on existing block can be multiple.
S930 is generated when comprising the whole new blocks for opening the transaction data for having block in block chain, is formed corresponding
After multiple bi-directional chainings of quantity, determine that transaction data is finally opened in existing block.
During block chain extends and generates new block, the transaction data for opening existing block is likely located at difference
New block in, after these new blocks are all generated, verification can be calculated through non-reversible algorithm in new district data in the block
Value, and the check value of the new block is written in existing block, to be formed with existing block for first block, with each new district
Block is multiple bi-directional chainings in rear block.Multiple bi-directional chaining is opened to identify transaction data in existing block jointly
It opens.Being formed by Two-way Chain based on each new block can be as the non-abundant necessity for opening transaction data in existing block
Condition.
S940 will be formed new in the block chain of the bi-directional chaining of transaction data in block with having in unlatching block chain
Increase data to be broadcasted to block chain network.
Step S940 is identical as the content of above-mentioned steps S830.
Further, after transaction data is opened in existing block in determining block chain, it can also determine and have with this
Transaction data synchronization is opened in other blocks of block link.
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 be connected to the other assets carried out based on this batch of assets with the block also chain and merchandise
(being initially invalid state) executes a special transaction, before after meeting certain condition in a block later
The assets of designated blocks all start, while based on the assets being formed by the transaction of other underlying assets and also synchronize and being opened.On
The condition stated can, for example, some are still in the commodity of quality inspection phase, after quality inspection passes through, be somebody's turn to do by the regular hour
Commodity just have a value of sale, and based on these commodity related service (this part transaction data be stored in before
In other blocks of designated blocks link) it is also required to be opened.In addition, the form that above-mentioned condition can also be assets changes
(be initialized as invalid), when such a change occurs it is necessary to entering effective shape by special transaction data to trigger the assets
State.At the same time, (this part transaction data is stored in be linked with designated blocks before other transaction based on these assets
In other blocks) it can also synchronize and be opened.
Data processing method of the embodiment of the present invention, the block points relationship based on bi-directional chaining may be implemented based on new life
At area's transaction data in the block open the processing logic for having area's transaction data in the block in block chain.
Further, it is stored at least two new blocks when comprising the transaction data for opening existing block in block chain
When, after only being formed there are two the bi-directional chaining where new block, just final mark has area's transaction data in the block and is opened.
Further, after transaction data is opened in existing block in determining block chain, it can also determine and have with this
Transaction data synchronization is opened in other blocks of block link.
Embodiment three
As shown in Figure 10, it is the structural schematic diagram one of the data processing equipment shown in the embodiment of the present invention, which can
The server of setting in a network is thought, for executing method and step shown in embodiment two.As shown in Figure 10, at the data
Managing device includes:
Check value computing module 101, in response to including the new district for opening the transaction data for 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 102 is formed for the check value of the new block to be written in existing block to have block
It is the bi-directional chaining in rear block for first block, with new block, is opened with identifying transaction data in existing block;
Data broadcasting module 103, for that will be formed with the Two-way Chain for opening transaction data in existing block in block chain
Newly-increased data in the block chain connect are broadcasted to block chain network.
Further, above-mentioned to be stored at least two new blocks comprising the transaction data for opening existing block in block chain
In;
Correspondingly, block link module 102 is additionally operable to,
It is generated when comprising the whole new blocks for opening the transaction data for having block in block chain, forms respective numbers
After multiple bi-directional chainings, determine that transaction data is finally opened in existing block.
Further, above-mentioned block link module 102 is additionally operable to,
After transaction data is opened in existing block in determining block chain, determine have other areas that block links with this
Transaction data synchronization is opened in block.
Data processing equipment of the embodiment of the present invention, the block points relationship based on bi-directional chaining may be implemented based on new life
At area's transaction data in the block open the processing logic for having area's transaction data in the block in block chain.
Further, it is stored at least two new blocks when comprising the transaction data for opening existing block in block chain
When, after only being formed there are two the bi-directional chaining where new block, just final mark has area's transaction data in the block and is opened.
Further, after transaction data is opened in existing block in determining block chain, it can also determine and have with this
Transaction data synchronization is opened in other blocks of block link.
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. a kind of two-way block chain structure, which is characterized in that including:At least one Two-way Chain;
The Two-way Chain is formed by a first block and one after rear block is linked along two opposite direction sequences, and described
The check value being calculated through non-reversible algorithm in back zone data in the block is stored in first block.
2. two-way block chain structure according to claim 1, which is characterized in that the two-way block chain structure include to
Few two Two-way Chains, described two Two-way Chains share a first block, and are stored with this respectively in the first block
The check value that data in the block are calculated through non-reversible algorithm in back zone in two Two-way Chains.
3. two-way block chain structure according to claim 1, which is characterized in that the two-way block chain structure include to
Few two Two-way Chains, described two Two-way Chains share one in rear block, and described are stored with two respectively in rear block
The check value that the data of first block are calculated through non-reversible algorithm in a Two-way Chain is stored in the first block
The check value being calculated through non-reversible algorithm in back zone data in the block.
4. according to any two-way block chain structure in claim 1-3, which is characterized in that further include:
With the block and/or sub-block chain that first block links in the Two-way Chain.
5. a kind of data processing method, which is characterized in that including:
In response to including the generation for the new block for opening the transaction data for having block in block chain, new district data in the block are passed through
Check value is calculated in non-reversible algorithm, and the check value of the new block is written in existing block, is formed and is had with described
Block is first block, is the bi-directional chaining in rear block with new block, is opened with identifying transaction data in the existing block
It opens;
By formed have open block chain in have block in transaction data bi-directional chaining block chain in newly-increased data to
Block chain network is broadcasted.
6. according to the method described in claim 5, it is characterized in that, described include the number of deals for opening existing block in block chain
According to being stored at least two new blocks;
The method further includes:
It is generated when comprising the whole new blocks for opening the transaction data for having block in block chain, forms the multiple of respective numbers
After bi-directional chaining, determine that transaction data is finally opened in the existing block.
7. method according to claim 5 or 6, which is characterized in that the method further includes:
After transaction data is opened in existing block in determining block chain, determines and have with this in other blocks that block links
Transaction data synchronization is opened.
8. a kind of data processing equipment, which is characterized in that including:
Check value computing module, for the life in response to including the new block for opening the transaction data for having block in block chain
At check value is calculated through non-reversible algorithm to new district data in the block;
Block link module, for the check value of the new block to be written in existing block, formation is with the existing block
First block with new block is the bi-directional chaining in rear block, is opened with identifying transaction data in the existing block;
Data broadcasting module, for that will be formed with the block for opening the bi-directional chaining of transaction data in existing block in block chain
Newly-increased data in chain are broadcasted to block chain network.
9. device according to claim 8, which is characterized in that described to include the number of deals for opening existing block in block chain
According to being stored at least two new blocks;
The block link module is used for,
It is generated when comprising the whole new blocks for opening the transaction data for having block in block chain, forms the multiple of respective numbers
After bi-directional chaining, determine that transaction data is finally opened in the existing block.
10. device according to claim 8 or claim 9, which is characterized in that the block link module is additionally operable to,
After transaction data is opened in existing block in determining block chain, determines and have with this in other blocks that block links
Transaction data synchronization is opened.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810136676.1A CN108519985B (en) | 2018-02-09 | 2018-02-09 | Bidirectional block chain, data processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810136676.1A CN108519985B (en) | 2018-02-09 | 2018-02-09 | Bidirectional block chain, data processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108519985A true CN108519985A (en) | 2018-09-11 |
CN108519985B CN108519985B (en) | 2020-09-11 |
Family
ID=63433106
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810136676.1A Active CN108519985B (en) | 2018-02-09 | 2018-02-09 | Bidirectional block chain, data processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108519985B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020120054A1 (en) * | 2018-12-14 | 2020-06-18 | Siemens Aktiengesellschaft | Creation of a blockchain with blocks comprising an adjustable number of transaction blocks and multiple intermediate blocks |
CN111639080A (en) * | 2020-06-01 | 2020-09-08 | 腾讯科技(深圳)有限公司 | Data processing method and device, node equipment and storage medium |
RU2792734C2 (en) * | 2018-12-14 | 2023-03-23 | Сименс Акциенгезелльшафт | Creating a blockchain with blocks including a configurable number of transaction blocks and several intermediate blocks |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02216552A (en) * | 1989-02-17 | 1990-08-29 | Hokkaido Nippon Denki Software Kk | System for releasing data area of data base system |
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 |
CN106844477A (en) * | 2016-12-23 | 2017-06-13 | 北京众享比特科技有限公司 | To synchronous method after block catenary system, block lookup method and block chain |
CN106897352A (en) * | 2016-12-29 | 2017-06-27 | 北京瑞卓喜投科技发展有限公司 | The generation method and system of the block chain modified in expansion |
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 |
-
2018
- 2018-02-09 CN CN201810136676.1A patent/CN108519985B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH02216552A (en) * | 1989-02-17 | 1990-08-29 | Hokkaido Nippon Denki Software Kk | System for releasing data area of data base system |
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 |
CN106844477A (en) * | 2016-12-23 | 2017-06-13 | 北京众享比特科技有限公司 | To synchronous method after block catenary system, block lookup method and block chain |
CN106815330A (en) * | 2016-12-29 | 2017-06-09 | 北京瑞卓喜投科技发展有限公司 | The generation method and system of the block chain expanded along Spatial Dimension |
CN106897352A (en) * | 2016-12-29 | 2017-06-27 | 北京瑞卓喜投科技发展有限公司 | The generation method and system of the block chain modified in expansion |
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 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020120054A1 (en) * | 2018-12-14 | 2020-06-18 | Siemens Aktiengesellschaft | Creation of a blockchain with blocks comprising an adjustable number of transaction blocks and multiple intermediate blocks |
CN113439424A (en) * | 2018-12-14 | 2021-09-24 | 西门子股份公司 | Building a blockchain having blocks including an adjustable number of transaction blocks and a plurality of intermediate blocks |
RU2792734C2 (en) * | 2018-12-14 | 2023-03-23 | Сименс Акциенгезелльшафт | Creating a blockchain with blocks including a configurable number of transaction blocks and several intermediate blocks |
CN113439424B (en) * | 2018-12-14 | 2023-11-24 | 西门子股份公司 | Establishing a blockchain having blocks including an adjustable number of transaction blocks and a plurality of intermediate blocks |
CN111639080A (en) * | 2020-06-01 | 2020-09-08 | 腾讯科技(深圳)有限公司 | Data processing method and device, node equipment and storage medium |
CN111639080B (en) * | 2020-06-01 | 2021-07-27 | 腾讯科技(深圳)有限公司 | Data processing method and device, node equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108519985B (en) | 2020-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108462582A (en) | Feedback method for treating in block chain and device | |
CN110442652B (en) | Cross-chain data processing method and device based on block chain | |
JP7387781B2 (en) | Systems and methods for implementing deterministic finite automata (DFA) via blockchain | |
CN107465505B (en) | Key data processing method and device and server | |
CN110866751B (en) | Block chain parallel chain maintenance method and block chain parallel chain system | |
US20190325512A1 (en) | Using a Distributed Ledger for Tracking Debt Data | |
CN108510268A (en) | Annular block chain structure, data processing method and device | |
CN106909605B (en) | Method and system for generating block chain expanded along transverse direction | |
KR20190009958A (en) | Extendable block chain system and block chain extending method | |
CN111898360A (en) | Text similarity detection method and device based on block chain and electronic equipment | |
CN110503568A (en) | A kind of community division method, system and equipment | |
CN108519985A (en) | Two-way block chain structure, data processing method and device | |
CN112053164A (en) | Block chain-based electronic commerce data processing method and system | |
CN108470039A (en) | Data processing method and device in block chain | |
CN110599166A (en) | Method and device for acquiring transaction dependency relationship in block chain | |
CN115631039A (en) | Fund tracking method, device and equipment | |
CN108510254A (en) | The two-way block chain structure of chain type, data processing method and device | |
CN110490742B (en) | Transaction execution method and device in blockchain | |
CN114529415A (en) | Transaction verification method and device based on block chain and electronic equipment | |
CN112598510B (en) | Resource data processing method and device | |
CN110489420A (en) | A kind of data processing method and device based on block chain | |
CN108494706A (en) | Data processing method and device in block chain | |
CN115906166A (en) | Information processing method and device for sharing private data by block chain | |
CN108520410A (en) | Feedback method for treating in block chain and device | |
CN111581108B (en) | Input data acquisition method and device based on business system transaction test |
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 |