CN108809517A - Information acquisition method and device in a kind of block chain network - Google Patents

Information acquisition method and device in a kind of block chain network Download PDF

Info

Publication number
CN108809517A
CN108809517A CN201810495791.8A CN201810495791A CN108809517A CN 108809517 A CN108809517 A CN 108809517A CN 201810495791 A CN201810495791 A CN 201810495791A CN 108809517 A CN108809517 A CN 108809517A
Authority
CN
China
Prior art keywords
block
sub
information
original
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810495791.8A
Other languages
Chinese (zh)
Inventor
李夫路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taikang Insurance Group Co Ltd
Original Assignee
Taikang Insurance Group 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 Taikang Insurance Group Co Ltd filed Critical Taikang Insurance Group Co Ltd
Priority to CN201810495791.8A priority Critical patent/CN108809517A/en
Publication of CN108809517A publication Critical patent/CN108809517A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0009Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the channel coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

This application discloses the information acquisition methods and device in a kind of block chain network, wherein information to be transmitted is carried out piecemeal processing by first node, at least one block is obtained, for each block:Block is divided into N number of original sub-block, combination of two encodes N number of original sub-block successively, the original sub-block combinations coding of each two generates the first sub-block, the second sub-block and redundancy sub-block, first sub-block, the second sub-block and redundancy sub-block the first attribute information having the same, then the sub-block data after coding is sent to second node, second node splices the identical any two sub-block decoding of the first attribute information in the sub-block data received, at least one block is obtained, multiple blocks are finally spliced into complete information to be transmitted.This method and system can restore original block data in the first sub-block of acquisition, the second sub-block and redundancy sub-block under the premise of any two sub-block, therefore improve the reliability transmission efficiency that information transmits in block chain network.

Description

Information acquisition method and device in a kind of block chain network
Technical field
The present invention relates to technical field of information transmission, and more specifically, it relates to the information in a kind of block chain network to obtain Take method and device.
Background technology
In block chain network, the transmission of effective information between each node be all agreements in entire block chain network and The basis and key that mechanism is effectively realized.The information transmission in block chain network between each node, which generally uses, at present does one's best Protocol service mode, when transmission channel conditions are bad, inevitably cause information transmit reliability be difficult to ensure.
In the prior art, the mode of identical information is transmitted several times to ensure the reliability of information transmission in generally use, however This mode not only results in a large amount of wastes of the resources such as transmission bandwidth, and can be on the final time of information effectively transmitted There are certain delays, and then influence the treatment effeciency of various affairs in block chain network.
Invention content
In view of this, the present invention provides information acquisition methods and device in a kind of block chain network, to improve block The reliability and efficiency that information is transmitted in chain network.
To achieve the above object, the present invention provides the following technical solutions:
A kind of information acquisition method in block chain network, including:
Information to be transmitted is carried out piecemeal processing by first node, obtains at least one block;
First node is directed to each block:Block is divided into N number of original sub-block, N number of original sub-block is successively two-by-two Assembly coding, the first sub-block of the original sub-block combinations coding generation of each two, the second sub-block and redundancy sub-block, first sub-block, Second sub-block and redundancy sub-block the first attribute information having the same, wherein N is the even number more than 1, first sub-block and institute It is original subblock coding block to state the second sub-block, and the redundancy sub-block is that first sub-block and second sub-block progress are right by turn Exclusive or is answered to calculate gained sub-block;
Sub-block data after coding is sent to second node by first node according to Preset Transfer agreement;
Second node receives the sub-block data that the first node is sent according to the Preset Transfer agreement, and to receiving Sub-block data be decoded splicing, obtain at least one block, the decoding process includes:According to the first attribute information Identical any two sub-block decodes to obtain two original sub-blocks;
When there are at least two blocks, the block that second node obtains all decoding splicings is believed according to the second attribute Breath is spliced into the complete information to be transmitted.
Optionally, further include:
Build block chain node and block chain network.
Optionally, further include:
It is pre-configured with determining data structure form, coding mode and Data Transport Protocol.
Optionally, the second node receives the sub-block number that the first node is sent according to the Preset Transfer agreement According to, and splicing is decoded to the sub-block data received, at least one block is obtained, including:
The second node receives multiple sub-block datas that the first node is sent according to the Preset Transfer agreement;
According in the multiple sub-block datas received the first attribute information and third attribute information be decoded stitching portion Reason, obtains at least one block.
Optionally, the first attribute information and third attribute information in multiple sub-block datas that the basis receives carry out Splicing is decoded, at least one block is obtained, including:
For the identical sub-block group of each group of the first attribute information:The identical any two of the first attribute information is determined respectively The third attribute information of sub-block carries out splicing according to the third attribute information of described two sub-blocks to described two sub-blocks, A block is obtained, two sub-blocks are included at least in the sub-block group.
Optionally, the third attribute information according to described two sub-blocks carries out splicing to described two sub-blocks, A block is obtained, including:
If the third attribute information of described two sub-blocks is designated as original subblock coding block, and described two sons are in the block Attribute information removes, and two sub-blocks after removing attribute information are spliced into one according to the number in the third attribute information A block;
If the third attribute information of described two sub-blocks indicates that one of sub-block is original subblock coding block, another is Redundancy sub-block then removes described two sons attribute information in the block, and two sub-blocks after removal attribute information are carried out step-by-step Exclusive or calculate, obtain an original sub-block, by the original sub-block being calculated with before removal attribute information, be original sub-block The sub-block of encoding block is spliced into a block.
Optionally, information to be transmitted is carried out piecemeal processing by the first node, obtains at least one block, including:
Information to be transmitted is carried out piecemeal processing by first node according to default block size range, obtains at least one area Block.
A kind of information acquisition device in block chain network, including:
Piecemeal processing module obtains at least one block for information to be transmitted to be carried out piecemeal processing;
Coding module, for being directed to each block:Block is divided into N number of original sub-block, N number of original sub-block is successively Combination of two encodes, and the original sub-block combinations coding of each two generates the first sub-block, the second sub-block and redundancy sub-block, first son Block, the second sub-block and redundancy sub-block the first attribute information having the same, wherein N is the even number more than 1, first sub-block Be original subblock coding block with second sub-block, the redundancy sub-block be first sub-block and second sub-block carry out by The corresponding exclusive or in position calculates gained sub-block;
Sub-block sending module, for the sub-block data after coding to be sent to other nodes according to Preset Transfer agreement;
Sub-block reception decoder module, the sub-block data for receiving the transmission of other nodes according to Preset Transfer agreement, and it is right The sub-block data received is decoded splicing, obtains at least one block, and the decoding process includes:Belong to according to first The property identical any two sub-block of information decodes to obtain two original sub-blocks;
All decodings are spliced obtained blocks for when theres are at least two blocks by block concatenation module, according to the Two attribute informations are spliced into complete information to be transmitted.
A kind of computer readable storage medium, is stored thereon with computer program, which realizes when being executed by processor The information acquisition method in block chain network described in any of the above-described kind.
A kind of electronic equipment, including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to execute the block described in any of the above-described kind via the executable instruction is executed Information acquisition method in chain network.
It can be seen via above technical scheme that compared with prior art, the embodiment of the invention discloses a kind of block link networks Information acquisition method in network and device, wherein information to be transmitted is carried out piecemeal processing by first node according to preset rules, is obtained To at least one block, for each block:Block is divided into N number of original sub-block, N number of original sub-block group two-by-two successively Compile in collaboration with code, the original sub-block combinations coding of each two generates the first sub-block, the second sub-block and redundancy sub-block, first sub-block, the Two sub-blocks and redundancy sub-block the first attribute information having the same, then first node the sub-block data after coding is sent to second Node, second node obtain the identical any two sub-block decoding splicing of the first attribute information in the sub-block data received Multiple blocks are finally spliced into complete information to be transmitted by least one block.This method and device are due to that can obtain Original block data can be restored under the premise of any two sub-block in first sub-block, the second sub-block and redundancy sub-block, because This improves the reliability that information transmits in block chain network, and then improves information transfer efficiency in block chain network.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the information acquisition method in a kind of block chain network disclosed by the embodiments of the present invention;
Fig. 2 is that flow chart is spliced in the decoding of sub-block data disclosed by the embodiments of the present invention;
Fig. 3 is the flow chart of the information acquisition method in another block chain network disclosed by the embodiments of the present invention;
Fig. 4 is that the data structure mode disclosed by the embodiments of the present invention based on block chain technology stores claim settling of insurance transaction note Record schematic diagram;
Fig. 5 is the structural schematic diagram of the information acquisition device in a kind of block chain network disclosed by the embodiments of the present invention;
Fig. 6 is the structural schematic diagram of sub-block reception decoder module disclosed by the embodiments of the present invention;
Fig. 7 is the structural schematic diagram of the information acquisition device in another block chain network disclosed by the embodiments of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Attached drawing 1 is please referred to, Fig. 1 is the stream of the information acquisition method in a kind of block chain network disclosed by the embodiments of the present invention Cheng Tu, as shown in Figure 1, the method may include:
Step 101:Information to be transmitted is carried out piecemeal processing by first node, obtains at least one block.
Wherein, the first node can be any one node with message sending function in block chain network. Piecemeal processing is carried out to the information to be transmitted, can be carried out according to certain rule, for example, being regulation block size in rule Rule when, the first node by information to be transmitted carry out piecemeal processing, obtaining at least one block may include:First segment Information to be transmitted is carried out piecemeal processing by point according to default block size range, obtains at least one block.For the ease of transmitting, The block should not be too large, for example, the size of the block can be 1MB or so.
Step 102:For each block:Block is divided into N number of original sub-block, N number of original sub-block is successively two-by-two Assembly coding, the first sub-block of the original sub-block combinations coding generation of each two, the second sub-block and redundancy sub-block, first sub-block, Second sub-block and redundancy sub-block the first attribute information having the same.
Wherein, N is the even number more than 1, and first sub-block and second sub-block are original subblock coding block, described superfluous Minor block is that first sub-block and second sub-block progress correspond to exclusive or and calculate gained sub-block by turn.Why N needs Even number, because subsequent processes need original sub-block being combined coding two-by-two.
In the application, coding is carried out to block and uses redundancy encoding mode, the application that redundancy encoding transmits block information It can be according to the unit of the determination redundancy encoding of actual block size adaptability.For example, if the size of block is 1MB, redundancy The unit of coding can be 5kb, can specifically consider complexity and the efficiency of encoding and decoding to determine.
In one example, Chief Information Officer M byte to be transmitted carries out piecemeal to this M byte first, allows as possible after piecemeal The unit that each block is encoded as one.It is the identical original sub-block A1 and A2 of two sizes, two originals that such as block A, which is divided to, Beginning sub-block A1 and A2 progress corresponds to exclusive or (XOR) calculation processing by turn, forms third sub-block A3, is redundancy sub-block.It is each to compile For sub-block after code all there are one header, i.e., described first attribute information can include the sequence number ID and the son of information transmission The information for the original sub-block that block includes or with the relevant information of original sub-block.Identical sequence number ID is represented by redundancy encoding A data sequence, these headers ensure that reverse even if the priority for occurring sub-block sequence in message transmitting procedure Original block can be correctly restored by corresponding decoding protocol.Such as the header of sub-block A1 mainly contains sequence Number ID:000001 and original sub-block information:O1 (first among two original sub-blocks);The header of sub-block A2 includes mainly Sequence number ID:000001 and original sub-block information:O2 (second among two former data sub-blocks);The header of sub-block A3 Mainly contain sequence number ID:000001 and former data block information:2N1 (the redundancy sub-block that two atom block codings are formed).
Step 103:Sub-block data after coding is sent to second node by first node according to Preset Transfer agreement.
In block chain network, there is a specific transport protocol for being suitable for block chain network, different sections in block chain network Information transmission between point, is required for realizing by determining transport protocol.
It, can be by the good information of coded treatment after the information progress block encoding to be transmitted is disposed by first node It is sent to second node.Certainly, the first node can also carry out block encoding processing to the information to be transmitted on one side, on one side The good information of coded treatment is sent to second node, has improved information outflow efficiency.
Step 104:Second node receives the sub-block data that the first node is sent according to the Preset Transfer agreement, and Splicing is decoded to the sub-block data received, obtains at least one block, the decoding process includes:According to first The identical any two sub-block of attribute information decodes to obtain two original sub-blocks.
Second node also needs to receive the sub-block data that first node is sent according to the Preset Transfer agreement.It is receiving To after sub-block data, needs to be decoded splicing to the sub-block data received, restore original block information.It continues to use above-mentioned The example of A1, A2, A3 sub-block, because A1 sub-blocks correspond to first original sub-block, A2 sub-blocks correspond to second original sub-block, A3 Block be A1 sub-blocks and A2 sub-blocks progress correspond to the redundancy sub-block that exclusive or calculation processing obtains by turn, therefore, as long as receive A1, Any two sub-block in A2, A3 sub-block, so that it may to restore original block, so, even if in transmission process not because of network signal Stablizing causes individual sub-block datas to be lost, and nor affects on acquisition of the second node to complete information to be transmitted.
Step 105:When there are at least two blocks, second node is by all obtained blocks of decoding splicing, according to the Two attribute informations are spliced into the complete information to be transmitted.
In the case of at least two block of the second node decoded back, need to splice the block of decoded back For complete information to be transmitted.In the present embodiment, identify whether different blocks is same to be transmitted with the second attribute information Information derives from the same information to be transmitted if the second attribute-bit information of different blocks is identical.Second attribute Identification information can reside in block, can also exist in the sub-block before block restores.
In the present embodiment, the information acquisition method in the block chain network, using redundancy encoding technology to letter to be transmitted Breath carries out coded treatment, and a block is divided into two original sub-blocks, is separately encoded to form two sub-blocks, and forms one first son Block and the second sub-block carry out corresponding to the redundancy sub-block that exclusive or calculates gained by turn, therefore can obtain the first sub-block, the second son Original block data can be restored under the premise of any two sub-block in block and redundancy sub-block, therefore improves block link network The reliability that information transmits in network, and then improve information transfer efficiency in block chain network.
In above-described embodiment, the detailed process of step 104 may refer to Fig. 2, and Fig. 2 is sub-block disclosed by the embodiments of the present invention Flow chart is spliced in the decoding of data, as shown in Fig. 2, in a schematical example, the decoding splicing of chunk data can To include:
Step 201:The second node receives multiple sons that the first node is sent according to the Preset Transfer agreement Block number evidence.
Step 202:According in the multiple sub-block datas received the first attribute information and third attribute information solved Code splicing, obtains at least one block.
Specifically, being directed to the identical sub-block group of each group of the first attribute information:Determine that the first attribute information is identical respectively The third attribute information of any two sub-block, the third attribute information can be indicated for the corresponding original sub-block of sub-block and exist Original area position number in the block, or whether instruction current sub-block is redundancy sub-block.According to the third of described two sub-blocks Attribute information carries out splicing to described two sub-blocks, obtains a block, wherein two are included at least in the sub-block group Sub-block can be two, can also be 3.If there are one only, then can not be restored to block.
Wherein, the third attribute information according to described two sub-blocks carries out splicing to described two sub-blocks, obtains To a block, may include:It, will be described if the third attribute information of described two sub-blocks is designated as original subblock coding block Two sons attribute information in the block removes, and two after attribute information will be removed according to the number in the third attribute information Sub-block is spliced into a block;If the third attribute information of described two sub-blocks indicates that one of sub-block is original subblock coding Block, another is redundancy sub-block, then removes described two sons attribute information in the block, by two sons after removal attribute information Block carry out step-by-step exclusive or calculating, obtain an original sub-block, by the original sub-block being calculated with before removal attribute information, It is spliced into a block for the sub-block of original subblock coding block.
On the basis of the above disclosed embodiments of the present invention, the information that Fig. 3 is disclosed in another block chain network obtains The flow chart of method is taken, as shown in figure 3, may include:
Step 301:Build block chain node and block chain network.
, can be using base of insurance company operating agency as minimum node by taking insurance industry as an example, one or more insurance collection Group/company participates in insurance transaction block chain network structure.It, can be based on the data structure mode of block chain technology in the present embodiment To store insurance Transaction Information.Such as, one transaction input can be insure record, require compensate offer material and this The public-key cryptography of transaction handler and signature;The output of one transaction can pay for the amount of money, beneficiary to the core for the beneficiary that insures Public-key cryptography (account address) etc..Fig. 4 is that the data structure mode disclosed by the embodiments of the present invention based on block chain technology is deposited Claim settling of insurance transaction record schematic diagram is stored up, understands the above in combination with Fig. 4.
Step 302:It is pre-configured with determining data structure form, coding mode and Data Transport Protocol.
It is only first that the information configurations such as above-mentioned data structure form, coding mode, Data Transport Protocol are good, after just can guarantee The accurate smooth execution of continuous operation.
Step 303:Information to be transmitted is carried out piecemeal processing by first node, obtains at least one block.
Step 304:For each block:Block is divided into N number of original sub-block, N number of original sub-block is successively two-by-two Assembly coding, the first sub-block of the original sub-block combinations coding generation of each two, the second sub-block and redundancy sub-block, first sub-block, Second sub-block and redundancy sub-block the first attribute information having the same.
Wherein, N is the even number more than 1, and first sub-block and second sub-block are original subblock coding block, described superfluous Minor block is that first sub-block and second sub-block progress correspond to exclusive or and calculate gained sub-block by turn.
Step 305:Sub-block data after coding is sent to second node by first node according to Preset Transfer agreement.
Step 306:Second node receives the sub-block data that the first node is sent according to the Preset Transfer agreement, and Splicing is decoded to the sub-block data received, obtains at least one block, the decoding process includes:According to first The identical any two sub-block of attribute information decodes to obtain two original sub-blocks.
Step 307:When there are at least two blocks, second node is by all obtained blocks of decoding splicing, according to the Two attribute informations are spliced into the complete information to be transmitted.
In the present embodiment, block chain network has been built in advance and has been configured and has got well data structure form, coding mode sum number According to transport protocol, ensure that the transmission of the information in follow-up block chain network can be carried out accurately and effectively.In the block chain network Information acquisition method coded treatment is carried out to information to be transmitted using redundancy encoding technology, a block is divided into two original sons Block is separately encoded to form two sub-blocks, and one the first sub-block of formation and the progress of the second sub-block correspond to exclusive or and calculate gained by turn Redundancy sub-block, therefore can be under the premise of any two sub-block in obtaining the first sub-block, the second sub-block and redundancy sub-block all Original block data can be restored, therefore improves the reliability that information transmits in block chain network, and then improves block Information transfer efficiency in chain network.
For each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of combination of actions, but Be those skilled in the art should understand that, the present invention is not limited by the described action sequence because according to the present invention, certain A little steps can be performed in other orders or simultaneously.Secondly, it those skilled in the art should also know that, is retouched in specification The embodiment stated belongs to preferred embodiment, and involved action and module are not necessarily essential to the invention.
Method is described in detail in aforementioned present invention disclosed embodiment, diversified forms can be used for the method for the present invention Device realize that therefore the invention also discloses a kind of devices, and specific embodiment is given below and is described in detail.
Fig. 5 is the structural schematic diagram of the information acquisition device in a kind of block chain network disclosed by the embodiments of the present invention, ginseng As shown in Figure 5, the information acquisition device 50 in the block chain network may include:
Piecemeal processing module 501 obtains at least one block for information to be transmitted to be carried out piecemeal processing.
Piecemeal processing is carried out to the information to be transmitted, can be carried out according to certain rule, for example, being regulation in rule When the rule of block size, described that information to be transmitted is carried out piecemeal processing, obtaining at least one block may include:It will be to be passed Defeated information carries out piecemeal processing according to default block size range, obtains at least one block.For the ease of transmission, the block It should not be too large, for example, the size of the block can be 1MB or so.
Coding module 502, for being directed to each block:Block is divided into N number of original sub-block, N number of original sub-block Combination of two encodes successively, and each two original sub-block combinations coding generates the first sub-block, the second sub-block and redundancy sub-block, and described the One sub-block, the second sub-block and redundancy sub-block the first attribute information having the same.
Wherein, N is the even number more than 1, and first sub-block and second sub-block are original subblock coding block, described superfluous Minor block is that first sub-block and second sub-block progress correspond to exclusive or and calculate gained sub-block by turn.Why N needs Even number, because subsequent processes need original sub-block being combined coding two-by-two.
In the application, coding is carried out to block and uses redundancy encoding mode, the application that redundancy encoding transmits block information It can be according to the unit of the determination redundancy encoding of actual block size adaptability.For example, if the size of block is 1MB, redundancy The unit of coding can be 5kb, can specifically consider complexity and the efficiency of encoding and decoding to determine.
In one example, Chief Information Officer M byte to be transmitted carries out piecemeal to this M byte first, allows as possible after piecemeal The unit that each block is encoded as one.It is the identical original sub-block A1 and A2 of two sizes, two originals that such as block A, which is divided to, Beginning sub-block A1 and A2 progress corresponds to exclusive or (XOR) calculation processing by turn, forms third sub-block A3, is redundancy sub-block.It is each to compile For sub-block after code all there are one header, i.e., described first attribute information can include the sequence number ID and the son of information transmission The information for the original sub-block that block includes or with the relevant information of original sub-block.Identical sequence number ID is represented by redundancy encoding A data sequence, these headers ensure that reverse even if the priority for occurring sub-block sequence in message transmitting procedure Original block can be correctly restored by corresponding decoding protocol.Such as the header of sub-block A1 mainly contains sequence Number ID:000001 and original sub-block information:O1 (first among two original sub-blocks);The header of sub-block A2 includes mainly Sequence number ID:000001 and original sub-block information:O2 (second among two former data sub-blocks);The header of sub-block A3 Mainly contain sequence number ID:000001 and former data block information:2N1 (the redundancy sub-block that two atom block codings are formed).
Sub-block sending module 503, for the sub-block data after coding to be sent to other nodes according to Preset Transfer agreement.
In block chain network, there is a specific transport protocol for being suitable for block chain network, different sections in block chain network Information transmission between point, is required for realizing by determining transport protocol.
After the information to be transmitted to be carried out to block encoding and is disposed, the good information of coded treatment can be sent to it His node.It is of course also possible to block encoding processing is carried out to the information to be transmitted on one side, it is on one side that coded treatment is good Information is sent to other nodes, has improved information outflow efficiency.
Sub-block reception decoder module 504, the sub-block data for receiving the transmission of other nodes according to Preset Transfer agreement, and Splicing is decoded to the sub-block data received, obtains at least one block, the decoding process includes:According to first The identical any two sub-block of attribute information decodes to obtain two original sub-blocks.
In block chain network, each node is required for receiving the sub-block of other nodes transmission according to Preset Transfer agreement Data.After receiving sub-block data, need to be decoded splicing, reduction original block letter to the sub-block data received Breath.The example of above-mentioned A1, A2, A3 sub-block is continued to use, because A1 sub-blocks correspond to first original sub-block, A2 sub-blocks correspond to second original Beginning sub-block, A3 sub-blocks are that A1 sub-blocks and the progress of A2 sub-blocks correspond to the redundancy sub-block that exclusive or calculation processing obtains by turn, therefore, as long as Receive any two sub-block in A1, A2, A3 sub-block, so that it may to restore original block, so, even if because of net in transmission process Network jitter causes individual sub-block datas to be lost, and nor affects on the acquisition to complete information to be transmitted.
Block concatenation module 505, for when there are at least two blocks, obtained block, root to be spliced in all decodings It is spliced into complete information to be transmitted according to the second attribute information.
In the case of at least two block of decoded back, need the block of decoded back being spliced into complete to be passed Defeated information.In the present embodiment, identify whether different blocks is the same information to be transmitted with the second attribute information, if not same district Second attribute-bit information of block is identical, then it derives from the same information to be transmitted.The second attribute-bit information can be with It is present in block, can also exist in the sub-block before block restores.
In the present embodiment, the information acquisition device in the block chain network, using redundancy encoding technology to letter to be transmitted Breath carries out coded treatment, and a block is divided into two original sub-blocks, is separately encoded to form two sub-blocks, and forms one first son Block and the second sub-block carry out corresponding to the redundancy sub-block that exclusive or calculates gained by turn, therefore can obtain the first sub-block, the second son Original block data can be restored under the premise of any two sub-block in block and redundancy sub-block, therefore improves block link network The reliability that information transmits in network, and then improve information transfer efficiency in block chain network.
In above-described embodiment, a schematic structure of the sub-block reception decoder module 504 may refer to Fig. 6, and Fig. 6 is The structural schematic diagram of sub-block reception decoder module disclosed by the embodiments of the present invention, as shown in fig. 6, may include:
Sub-block reception module 601, multiple sub-block numbers for receiving the transmission of other nodes according to the Preset Transfer agreement According to.
Sub-block decoder module 602, for according to the first attribute information and third category in the multiple sub-block datas received Property information is decoded splicing, obtains at least one block.
Specifically, the sub-block decoder module 602 can be directed to the identical sub-block group of each group of the first attribute information:Respectively Determine that the third attribute information of the identical any two sub-block of the first attribute information, the third attribute information can be for referring to Show the corresponding original sub-block of sub-block in original area's position number in the block, or whether instruction current sub-block is redundancy sub-block. Splicing is carried out to described two sub-blocks according to the third attribute information of described two sub-blocks, obtains a block, wherein institute It states and includes at least two sub-blocks in sub-block group, can be two, can also be 3.If there are one only, then can not to block into Row reduction.
Wherein, the third attribute information according to described two sub-blocks carries out splicing to described two sub-blocks, obtains To a block, may include:It, will be described if the third attribute information of described two sub-blocks is designated as original subblock coding block Two sons attribute information in the block removes, and two after attribute information will be removed according to the number in the third attribute information Sub-block is spliced into a block;If the third attribute information of described two sub-blocks indicates that one of sub-block is original subblock coding Block, another is redundancy sub-block, then removes described two sons attribute information in the block, by two sons after removal attribute information Block carry out step-by-step exclusive or calculating, obtain an original sub-block, by the original sub-block being calculated with before removal attribute information, It is spliced into a block for the sub-block of original subblock coding block.
Fig. 7 is the structural schematic diagram of the information acquisition device in another block chain network disclosed by the embodiments of the present invention, As shown in fig. 7, the information acquisition device 70 in the block chain network may include:
Block chain building module 701, for building block chain node and block chain network.
The block chain building module 701 can be also used for the update and maintenance of block chain node and network.
, can be using base of insurance company operating agency as minimum node by taking insurance industry as an example, one or more insurance collection Group/company participates in insurance transaction block chain network structure.
Configuration module 702, for being pre-configured with determining data structure form, coding mode and Data Transport Protocol.
It is only first that the information configurations such as above-mentioned data structure form, coding mode, Data Transport Protocol are good, after just can guarantee The accurate smooth execution of continuous operation.
Piecemeal processing module 501 obtains at least one block for information to be transmitted to be carried out piecemeal processing.
Coding module 502, for being directed to each block:Block is divided into N number of original sub-block, N number of original sub-block Combination of two encodes successively, and each two original sub-block combinations coding generates the first sub-block, the second sub-block and redundancy sub-block, and described the One sub-block, the second sub-block and redundancy sub-block the first attribute information having the same.
Wherein, N is the even number more than 1, and first sub-block and second sub-block are original subblock coding block, described superfluous Minor block is that first sub-block and second sub-block progress correspond to exclusive or and calculate gained sub-block by turn.
Sub-block sending module 503, for the sub-block data after coding to be sent to other nodes according to Preset Transfer agreement.
Sub-block reception decoder module 504, the sub-block data for receiving the transmission of other nodes according to Preset Transfer agreement, and Splicing is decoded to the sub-block data received, obtains at least one block, the decoding process includes:According to first The identical any two sub-block of attribute information decodes to obtain two original sub-blocks.
Block concatenation module 505, for when there are at least two blocks, obtained block, root to be spliced in all decodings It is spliced into complete information to be transmitted according to the second attribute information.
In the present embodiment, block chain network has been built in advance and has been configured and has got well data structure form, coding mode sum number According to transport protocol, ensure that the transmission of the information in follow-up block chain network can be carried out accurately and effectively.In the block chain network Information acquisition device coded treatment is carried out to information to be transmitted using redundancy encoding technology, a block is divided into two original sons Block is separately encoded to form two sub-blocks, and one the first sub-block of formation and the progress of the second sub-block correspond to exclusive or and calculate gained by turn Redundancy sub-block, therefore can be under the premise of any two sub-block in obtaining the first sub-block, the second sub-block and redundancy sub-block all Original block data can be restored, therefore improves the reliability that information transmits in block chain network, and then improves block Information transfer efficiency in chain network.
The information acquisition device in any one described block chain network in above-described embodiment includes processor and deposits Reservoir, piecemeal processing module, coding module, sub-block sending module in above-described embodiment, sub-block reception decoder module, block are spelled Connection module, block chain building module, configuration module etc. are used as program module storage in memory, and storage is executed by processor Above procedure module in the memory realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program module by kernel.Kernel can be arranged one Or it is multiple, the processing of return visit data is realized by adjusting kernel parameter.
Memory may include computer-readable medium in volatile memory, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include at least one deposit Store up chip.
An embodiment of the present invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The information acquisition method in block chain network described in existing above-described embodiment.
An embodiment of the present invention provides a kind of processor, the processor is for running program, wherein described program is run The information acquisition method in block chain network described in Shi Zhihang above-described embodiments.
Further, a kind of electronic equipment, including processor and memory are present embodiments provided.Wherein memory is used for The executable instruction of the processor is stored, the processor is configured to execute above-mentioned reality via the executable instruction is executed Apply the information acquisition method in the block chain network described in example.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. the information acquisition method in a kind of block chain network, which is characterized in that including:
Information to be transmitted is carried out piecemeal processing by first node, obtains at least one block;
First node is directed to each block:Block is divided into N number of original sub-block, N number of original sub-block combination of two successively Coding, the original sub-block combinations coding of each two generate the first sub-block, the second sub-block and redundancy sub-block, first sub-block, second Sub-block and redundancy sub-block the first attribute information having the same, wherein N is even number more than 1, first sub-block and described the Two sub-blocks be original subblock coding block, the redundancy sub-block be first sub-block and second sub-block progress correspond to by turn it is different Or calculate gained sub-block;
Sub-block data after coding is sent to second node by first node according to Preset Transfer agreement;
Second node receives the sub-block data that the first node is sent, and the son to receiving according to the Preset Transfer agreement Block number obtains at least one block, the decoding process includes according to splicing is decoded:It is identical according to the first attribute information Any two sub-block decode to obtain two original sub-blocks;
When there are at least two blocks, the block that second node obtains all decoding splicings is spelled according to the second attribute information It is connected in the complete information to be transmitted.
2. the information acquisition method in block chain network according to claim 1, which is characterized in that further include:
Build block chain node and block chain network.
3. the information acquisition method in block chain network according to claim 1, which is characterized in that further include:
It is pre-configured with determining data structure form, coding mode and Data Transport Protocol.
4. the information acquisition method in block chain network according to claim 1, which is characterized in that the second node root The sub-block data that the first node is sent is received according to the Preset Transfer agreement, and the sub-block data received is decoded Splicing obtains at least one block, including:
The second node receives multiple sub-block datas that the first node is sent according to the Preset Transfer agreement;
According in the multiple sub-block datas received the first attribute information and third attribute information be decoded splicing, obtain To at least one block.
5. the information acquisition method in block chain network according to claim 4, which is characterized in that the basis receives Multiple sub-block datas in the first attribute information and third attribute information be decoded splicing, obtain at least one area Block, including:
For the identical sub-block group of each group of the first attribute information:The identical any two sub-block of the first attribute information is determined respectively Third attribute information, according to the third attribute information of described two sub-blocks to described two sub-blocks carry out splicing, obtain One block includes at least two sub-blocks in the sub-block group.
6. the information acquisition method in block chain network according to claim 5, which is characterized in that described according to described two The third attribute information of a sub-block carries out splicing to described two sub-blocks, obtains a block, including:
If the third attribute information of described two sub-blocks is designated as original subblock coding block, by described two son attributes in the block Information removes, and two sub-blocks after removing attribute information are spliced into an area according to the number in the third attribute information Block;
If the third attribute information of described two sub-blocks indicates that one of sub-block is original subblock coding block, another is redundancy Sub-block then removes described two sons attribute information in the block, and two sub-blocks after removal attribute information are carried out step-by-step exclusive or Calculate, obtain an original sub-block, by the original sub-block being calculated with before removal attribute information, be original subblock coding The sub-block of block is spliced into a block.
7. the information acquisition method in block chain network according to claim 1, which is characterized in that the first node will Information to be transmitted carries out piecemeal processing, obtains at least one block, including:
Information to be transmitted is carried out piecemeal processing by first node according to default block size range, obtains at least one block.
8. the information acquisition device in a kind of block chain network, which is characterized in that including:
Piecemeal processing module obtains at least one block for information to be transmitted to be carried out piecemeal processing;
Coding module, for being directed to each block:Block is divided into N number of original sub-block, N number of original sub-block is successively two-by-two Assembly coding, the first sub-block of the original sub-block combinations coding generation of each two, the second sub-block and redundancy sub-block, first sub-block, Second sub-block and redundancy sub-block the first attribute information having the same, wherein N is the even number more than 1, first sub-block and institute It is original subblock coding block to state the second sub-block, and the redundancy sub-block is that first sub-block and second sub-block progress are right by turn Exclusive or is answered to calculate gained sub-block;
Sub-block sending module, for the sub-block data after coding to be sent to other nodes according to Preset Transfer agreement;
Sub-block reception decoder module, the sub-block data for receiving the transmission of other nodes according to Preset Transfer agreement, and to receiving To sub-block data be decoded splicing, obtain at least one block, the decoding process includes:Believed according to the first attribute Identical any two sub-block is ceased to decode to obtain two original sub-blocks;
Block concatenation module, for when there are at least two blocks, the block that all decoding splicings are obtained to belong to according to second Property information be spliced into complete information to be transmitted.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The information acquisition method in claim 1~7 any one of them block chain network is realized when row.
10. a kind of electronic equipment, which is characterized in that including:
Processor;And
Memory, the executable instruction for storing the processor;
Wherein, the processor is configured to carry out perform claim 1~7 any one of them of requirement via the execution executable instruction Information acquisition method in block chain network.
CN201810495791.8A 2018-05-22 2018-05-22 Information acquisition method and device in a kind of block chain network Pending CN108809517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810495791.8A CN108809517A (en) 2018-05-22 2018-05-22 Information acquisition method and device in a kind of block chain network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810495791.8A CN108809517A (en) 2018-05-22 2018-05-22 Information acquisition method and device in a kind of block chain network

Publications (1)

Publication Number Publication Date
CN108809517A true CN108809517A (en) 2018-11-13

Family

ID=64091379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810495791.8A Pending CN108809517A (en) 2018-05-22 2018-05-22 Information acquisition method and device in a kind of block chain network

Country Status (1)

Country Link
CN (1) CN108809517A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071876A (en) * 2019-04-28 2019-07-30 阿里巴巴集团控股有限公司 A kind of data transmission method based on block chain, device and electronic equipment
CN110299964A (en) * 2019-06-28 2019-10-01 京东数字科技控股有限公司 Data transmission method and its device, computer can storage mediums
WO2020119656A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Satellite communication method and device
WO2020035093A3 (en) * 2019-11-13 2020-09-03 Alipay (Hangzhou) Information Technology Co., Ltd. Dynamic blockchain data storage based on error correction code
CN114157670A (en) * 2021-11-05 2022-03-08 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN117097736A (en) * 2023-10-19 2023-11-21 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009663A (en) * 2007-01-19 2007-08-01 深圳市深信服电子科技有限公司 The method for improving the data transfer speed via the redundancy
WO2007099468A1 (en) * 2006-03-03 2007-09-07 Koninklijke Philips Electronics N.V. Method and apparatus for transmitting and receiving a data block in a wireless communication system
CN101119319A (en) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 Method, transmitting/receiving device and system against lost packet in data transmission process
CN101359981A (en) * 2008-09-27 2009-02-04 腾讯科技(深圳)有限公司 Method, apparatus and system for data packet redundant encoding and decoding
CN101834898A (en) * 2010-04-29 2010-09-15 中科院成都信息技术有限公司 Method for storing network distributed codes
CN107292197A (en) * 2017-06-29 2017-10-24 北京京东尚科信息技术有限公司 Data ciphering method, decryption method, encryption device and decryption device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007099468A1 (en) * 2006-03-03 2007-09-07 Koninklijke Philips Electronics N.V. Method and apparatus for transmitting and receiving a data block in a wireless communication system
CN101009663A (en) * 2007-01-19 2007-08-01 深圳市深信服电子科技有限公司 The method for improving the data transfer speed via the redundancy
CN101119319A (en) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 Method, transmitting/receiving device and system against lost packet in data transmission process
CN101359981A (en) * 2008-09-27 2009-02-04 腾讯科技(深圳)有限公司 Method, apparatus and system for data packet redundant encoding and decoding
CN101834898A (en) * 2010-04-29 2010-09-15 中科院成都信息技术有限公司 Method for storing network distributed codes
CN107292197A (en) * 2017-06-29 2017-10-24 北京京东尚科信息技术有限公司 Data ciphering method, decryption method, encryption device and decryption device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020119656A1 (en) * 2018-12-10 2020-06-18 华为技术有限公司 Satellite communication method and device
US11902009B2 (en) 2018-12-10 2024-02-13 Huawei Technologies Co., Ltd. Satellite communication method and apparatus
CN110071876A (en) * 2019-04-28 2019-07-30 阿里巴巴集团控股有限公司 A kind of data transmission method based on block chain, device and electronic equipment
CN110299964A (en) * 2019-06-28 2019-10-01 京东数字科技控股有限公司 Data transmission method and its device, computer can storage mediums
CN110299964B (en) * 2019-06-28 2020-11-24 京东数字科技控股有限公司 Data transmission method and device, computer storage medium
WO2020035093A3 (en) * 2019-11-13 2020-09-03 Alipay (Hangzhou) Information Technology Co., Ltd. Dynamic blockchain data storage based on error correction code
KR20210058746A (en) * 2019-11-13 2021-05-24 알리페이 (항저우) 인포메이션 테크놀로지 씨오., 엘티디. Dynamic blockchain data storage based on error correction codes
US11030044B2 (en) 2019-11-13 2021-06-08 Alipay (Hangzhou) Information Technology Co., Ltd. Dynamic blockchain data storage based on error correction code
KR102430135B1 (en) 2019-11-13 2022-08-05 알리페이 (항저우) 인포메이션 테크놀로지 씨오., 엘티디. Dynamic blockchain data storage based on error correction codes
CN114157670A (en) * 2021-11-05 2022-03-08 支付宝(杭州)信息技术有限公司 Message transmission method and device
CN117097736A (en) * 2023-10-19 2023-11-21 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium
CN117097736B (en) * 2023-10-19 2024-02-13 腾讯科技(深圳)有限公司 Resource data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108809517A (en) Information acquisition method and device in a kind of block chain network
Wu Existence and construction of capacity-achieving network codes for distributed storage
CN110941859A (en) Method, apparatus, computer-readable storage medium, and computer program product for block chain formation consensus
CN109802967A (en) Block chain information method for tracing and system
CN110971560B (en) QAM signal modulation method and device and electronic equipment
CN110400217A (en) The regular changing process method and device of intelligent contract
CN108768672B (en) Data processing method, device and storage medium
CN113326165B (en) Data processing method and device based on block chain and computer readable storage medium
CN108667921A (en) A kind of banking recommendation information generation method and system based on network bypass
CN115037700A (en) Complex network data packet transmission method, system, terminal and storage medium
JPH11510982A (en) Computer assisted back signaling method in automatic repeat request method
CN109784928A (en) Information processing method and information processing unit based on block chain
CN115964728A (en) File encryption method and device based on consensus algorithm
CN101022473A (en) Method for automatic, identifying plate card configration and generating local data in exchanger
CN103684684A (en) Method and apparatus for grouping from processing end to end-to-end network connection wireless segment
CN112818057B (en) Data exchange method and device based on block chain
CN111385057A (en) Data retransmission decoding method, device and system and communication equipment
CN111291014B (en) Block chain consensus method, apparatus and storage medium
CN111225077B (en) Network distribution method, device and system for Internet of things equipment
CN112529550A (en) Anonymous transfer method and device based on block chain and electronic equipment
CN116955355A (en) Block data processing method and device and electronic equipment
WO2015049042A1 (en) Rateless decoding
CN108848096B (en) Method, device, equipment and computer readable storage medium for processing service contract
CN105988890A (en) Information backup method and device
CN111988288B (en) Key exchange method, system, equipment and storage medium based on network time delay

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181113

RJ01 Rejection of invention patent application after publication