CN109951389A - Storage method of the block chain from chain data, device, equipment and storage medium - Google Patents

Storage method of the block chain from chain data, device, equipment and storage medium Download PDF

Info

Publication number
CN109951389A
CN109951389A CN201910166063.7A CN201910166063A CN109951389A CN 109951389 A CN109951389 A CN 109951389A CN 201910166063 A CN201910166063 A CN 201910166063A CN 109951389 A CN109951389 A CN 109951389A
Authority
CN
China
Prior art keywords
chain
data
target
chain data
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910166063.7A
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.)
Fence Wall Network Technology Co Ltd
Original Assignee
Fence Wall Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fence Wall Network Technology Co Ltd filed Critical Fence Wall Network Technology Co Ltd
Priority to CN201910166063.7A priority Critical patent/CN109951389A/en
Publication of CN109951389A publication Critical patent/CN109951389A/en
Pending legal-status Critical Current

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The present invention relates to a kind of storage method of the block chain from chain data, device, equipment and storage mediums, this method comprises: receiving from chain data, and encrypted to described from chain data to obtain target from chain data, wherein it is described from chain data include in the form of from chain existing for data;According to default classifying rules, classify to the target from chain data;Update adjacent hop-information of the target from chain data, wherein updating operation includes the neighborhood information table that each node is updated according to the current state of each node;Retrieve transmission path corresponding from chain data with the target;The path that selection meets preset path condition in the transmission path carries out transmission of the target from chain data;The target is stored from chain data, and block chain main chain is written into according to the write-in policy of setting from chain data in the target.It ensure that the safety in data transmission procedure, improve the rate and quality of data transmission.

Description

Storage method of the block chain from chain data, device, equipment and storage medium
Technical field
The present invention relates to data safety technical field of memory, and in particular to a kind of storage method of the block chain from chain data, Device, equipment and storage medium.
Background technique
Block chain is a kind of a kind of chain type number for being sequentially in time combined into data block in such a way that sequence is connected Guarantee the characteristic that can not be distorted and can not forge according to structure, and in a manner of cryptography, is a kind of distributed account book.It is utilized Block chain data structure is verified and storing data, is generated using distributed node formula algorithm and more new data, utilization are close The mode that code is learned guarantees the safety of data transmission and access, programs and grasps using the intelligent contract of automation code script composition Make data, is a kind of completely new distributed basis framework and calculation paradigm.P2P network (Peer to Peer, peer-to-peer network) is i.e. Peer-to-peer computer network is a kind of Distributed Application framework for distributing task and workload between fellow, is reciprocity meter A kind of networking or latticed form that calculation machine model is formed in application layer.
Block chain network needs are safeguarded jointly by multiple nodes that P2P is connected to the network and can just be guaranteed data security that data exist The operation such as recording and storage in block chain, can just carry out after needing to be confirmed jointly by multiple nodes.Therefore, net will be generated Network delay may cause that data are asynchronous, that is, the bulk data record of the bandwidth of display network and data propagation rate common recognition There is certain delay at the time of with storage request.Bandwidth, message transmission rate, net etc. in real network can all have certain prolong Late, and a key problem of block chain technology is exactly multiterminal data backup, manufacture redundancy, to reduce loss of data risk, when When so big data payload is entered in network, number of nodes is continuously increased, and delay undoubtedly can also increase with it.
The prior art mainly applies lightning network, and the block chain that whole network data node is reached common understanding is known as main chain, will It is not known together by the whole network majority node, but local nodes are known together, the block chain to be formed or isolated data block are known as branch, a large amount of numbers According to first there is branch to do from chain processing, to which after a certain period of time, these data or cryptographic Hash are updated to main chain by unification.But it is this The risk of processing mode one side loss of data is big, and on the other hand the speed and quality from the transmission of chain data also will receive influence.
Summary of the invention
In view of this, a kind of storage method of the block chain from chain data, device, equipment and storage medium are provided, to solve The big problem of loss of data risk in the prior art, and, the problem slow from chain message transmission rate, transmission quality is low.
The present invention adopts the following technical scheme:
In a first aspect, the embodiment of the invention provides a kind of storage method of the block chain from chain data, this method comprises:
It receives from chain data, and is encrypted to described from chain data to obtain target from chain data, wherein is described from chain Data include in the form of from chain existing for data;
According to default classifying rules, classify to the target from chain data;
Update adjacent hop-information of the target from chain data, wherein updating operation includes the current shape according to each node State updates the neighborhood information table of each node;
Retrieve transmission path corresponding from chain data with the target;
The path that selection meets preset path condition in the transmission path carries out transmission of the target from chain data;
The target is stored from chain data, and block chain is written into according to the write-in policy of setting from chain data in the target Main chain.
Optionally, according to default classifying rules, classify to the target from chain data, comprising:
According to default classifying rules, the target is encoded from chain data, obtains the mesh being made of at least one frame It marks from chain data.
Optionally, at least one described frame includes one or more of I frame, P frame or B frame.
Optionally, adjacent hop-information of the target from chain data is updated, comprising:
Each node periodically sends the state message information of present node to the neighbors of itself;
If being stored with the state message information of present node in the neighborhood information table of itself, present node is updated Otherwise the neighborhood information table is added in present node by status information and arrival time.
Optionally, further includes:
Each node checks the neighborhood information table of itself according to the time rule of setting, will be more than to preset renewal time not The corresponding node of the information of update is deleted.
Optionally, the state message information includes node identification, node energy and node location, the neighborhood information Table includes neighbors mark, neighbors coordinate, neighbors energy, state and information update time.
Optionally, transmission path corresponding from chain data with the target is retrieved, comprising:
Source node and sink nodes are determined from chain data according to the target;
Source node selects any available neighbors in the neighborhood information table of itself, and can be issued to described with neighbors Seek packet, wherein the nodal information sought in packet including source node and sink nodes;
Each intermediate node will seek any available neighbors for wrapping and being forwarded in the neighborhood information table of its own, until Sink nodes seek packet described in receiving, wherein intermediate node includes whole nodes in addition to source node and sink nodes;
The forward-path that the sink nodes seek packet described in is fed back, and whole sections that the forward-path is passed through Point is marked, with determination target transmission path corresponding from chain data.
Second aspect, the embodiment of the invention provides a kind of storage device of the block chain from chain data, which includes:
Data encryption module is encrypted for receiving from chain data, and to described from chain data to obtain target from chain Data, wherein it is described from chain data include in the form of from chain existing for data;
Data categorization module, for classifying from chain data to the target according to default classifying rules;
Update module, for updating adjacent hop-information of the target from chain data, wherein updating operation includes according to each The current state of node updates the neighborhood information table of each node;
Route search module, for retrieving transmission path corresponding from chain data with the target;
Data transmission blocks, in the transmission path selection meet preset path condition path carry out target from The transmission of chain data;
Storage and backup module, for storing the target from chain data, and by the target from chain data according to setting Write-in policy be written block chain main chain.
The third aspect, the embodiment of the invention provides a kind of equipment, comprising:
Processor, and the memory being connected with the processor;
For the memory for storing computer program, the computer program is at least used to execute the embodiment of the present invention the Storage method of the block chain from chain data of one side;
The processor is for calling and executing the computer program in the memory.
Fourth aspect, the embodiment of the invention provides a kind of storage medium, the storage medium is stored with computer program, When the computer program is executed by processor, storage of the block chain from chain data such as first aspect of the embodiment of the present invention is realized Each step in method.
The invention adopts the above technical scheme, described to receive from chain data, and is encrypted to described from chain data to obtain Take target from chain data, wherein it is described from chain data include in the form of from chain existing for data, ensure that in data transmission procedure Safety;According to default classifying rules, classify to the target from chain data;Update neighbour of the target from chain data Hop-information, wherein updating operation includes the neighborhood information table that each node is updated according to the current state of each node, is utilized Adjacent hop-information real-time update neighborhood information table;Retrieve transmission path corresponding from chain data with the target;In the transmission The path that selection meets preset path condition in path carries out transmission of the target from chain data;The target is stored from chain data, And block chain main chain is written into according to the write-in policy of setting from chain data in the target.Most evidences in block chain technology The big problem of redundancy bring loss of data risk is backed up and manufactured, by way of storing from chain, ensure that data are transmitted The safety of process improves the speed and quality of data transmission.
Detailed description of the invention
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 technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart for storage method of the block chain from chain data that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram of storage device of the block chain from chain data provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structural schematic diagram for the equipment being applicable in the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the present invention is protected.
Embodiment one
Fig. 1 is a kind of flow chart for storage method of the block chain from chain data that the embodiment of the present invention one provides, this method Can storage device by block chain provided in an embodiment of the present invention from chain data execute, the device can be used software and/or The mode of hardware is realized.With reference to Fig. 1, this method can specifically include following steps:
S101, it receives from chain data, and is encrypted to described from chain data to obtain target from chain data, wherein institute State from chain data include in the form of from chain existing for data.
Wherein, from chain data can be arbitrarily in the form of from chain existing for data, that is, in the form of Linked Storage Structure The data from chain form in existing data, such as may include from chain video data and from chain audio data etc., here only It is described with from chain video data.It should be noted that further including other shapes in addition to video and audio from chain data The data of formula, here without limiting.
Specifically, receiving from chain data, wherein receive the mode from chain data and can be from cloud or server and obtain It takes, is also possible to carry out the reception of data by way of physical translation data, for example, being carried out by mobile hard disk or hard disk The reception of data.It after receiving from chain data, is encrypted to from chain data, the Encryption Algorithm of application can be the prior art In Encryption Algorithm, such as can be, DSA (Digital Signature Algorithm, Digital Signature Algorithm) or AES Encrypted data are known as target from chain data by (Advanced Encryption Standard, Advanced Encryption Standard) etc.. Further, it is also possible to which the encryption function having in application block chain technology itself is encrypted to from chain data.By to from chain number According to being encrypted, the safety in data transmission procedure ensure that.
S102, according to default classifying rules, classify to the target from chain data.
Wherein, default classifying rules can be is set according to user demand, is also possible to the default rule of default Then, user can use the default rule, can also modify to the default rule.Illustratively, default classifying rules can Being classified according to the type from the frame in chain data transmission procedure.Classify to target from chain data, is conducive to pair Improve data processing speed.
Illustratively, according to default classifying rules, classify to the target from chain data, it specifically can be by as follows Mode is realized: according to default classifying rules, being encoded to the target from chain data, is obtained the mesh being made of at least one frame It marks from chain data.Wherein, at least one described frame includes one or more of I frame, P frame or B frame.
Wherein, coding is that information from a kind of form or format is converted to another form of process, for example, with presetting Method text, number or other objects are weaved into number, or by information, data conversion at defined electric impulse signal, coding Inverse process be known as decode.Specifically, being encoded to target from chain data according to default classifying rules, obtain by least one The target of frame composition is from chain data, wherein at least one frame includes one or more of I frame, P frame or B frame.
I frame is also known as Intra pictures, and I frame is usually first of each GOP (Group of Pictures, picture group) Frame, as the reference point of random access, can treat as image by moderately compressing;P frame is to be separated by 1~2 frame behind I frame Coded frame takes P frame and I frame to join according to the difference of this frame and adjacent former frame (I frame or P frame) come distilled edition frame data The method of combined pressure contracting can reach higher compression and without apparent compression trace;B frame, when a frame is compressed into B frame, its basis Distilled edition frame is carried out in the difference of adjacent former frame, this frame and latter frame data, namely the only difference of minute book frame and before and after frames Value.
S103, the adjacent hop-information of the target from chain data is updated, wherein updating operation includes working as according to each node Preceding state updates the neighborhood information table of each node.
Specifically, wanting the neighborhood information table of each node of real-time update with more fresh target in actual application process Adjacent hop-information from chain data, in this way, being conducive to the quality of improve data transfer.Illustratively, the target is updated from chain number According to adjacent hop-information, it is current can be specifically accomplished in that each node is periodically sent to the neighbors of itself The state message information of node;If being stored with the state message information of present node in the neighborhood information table of itself, more Otherwise the neighborhood information table is added in present node by the status information of new present node and arrival time.
Each node periodically sends the state message information of present node to the neighbors of itself, by sending state Message information reports the status information of itself, wherein state message information includes node identification, node energy and node location Deng illustratively, which can be set as longer time, after other nodes receive state message information, first at itself Neighborhood information table in searched, wherein neighborhood information table includes neighbors mark, neighbors coordinate, neighbors energy Amount, state and information update time etc..If being stored with the state message letter of present node in the neighborhood information table of itself Breath, that is, having found present node in neighborhood information table, then updates status information and the arrival time of present node;Such as Fruit can not find present node in neighborhood information table, then present node is added in neighborhood information table.
In addition, each node checks the neighborhood information table of itself according to the time rule of setting, it will be more than default update The corresponding node of the information that time does not update is deleted.Specifically, the time rule of setting can be periodic time rule Then, it is also possible to acyclic time rule, can be what research staff was set according to the demand of user.Each node The neighborhood information table that itself is checked according to the time rule of setting, if there is information be more than after default renewal time not yet more Newly, then illustrate that the corresponding node of this information is dead or excessively frequent, that is, this node is in down state, then The node is deleted, with real-time update neighborhood information table.
S104, retrieval transmission path corresponding from chain data with the target.
Specifically, retrieving transmission path corresponding from chain data with target according to target from chain data, wherein target from The corresponding transmission path of chain data can be one, be also possible to it is a plurality of, retrieve here be all meet target from chain number According to the transmission path of application.In actual application process, corresponding from chain data with target transmission path is retrieved, it can be with It is realized by following means: source node and sink nodes is determined from chain data according to the target;Neighbors of the source node at itself Select any available neighbors in information table, and seek packet to described can be issued with neighbors, wherein it is described seek wrap in include The nodal information of source node and sink nodes;Each intermediate node will seek packet and be forwarded to appointing in the neighborhood information table of its own One available neighbors described seeks packet until sink nodes receive, wherein intermediate node includes in addition to source node and sink nodes Whole nodes;The forward-path that the sink nodes seek packet described in is fed back, and the forward-path is passed through complete Portion's node is marked, with determination target transmission path corresponding from chain data.
Specifically, firstly, determining source node and sink nodes from chain data according to target, wherein source node refers to, serves as letter Breath source sends the network node of raw data packets;Sink nodes refer to, the network node that data packet eventually arrives at.Secondly, source node Any enabled node is selected in the neighborhood information table of itself, wherein enabled node refers to, can receive and forwards data Movable joint point seeks packet to above-mentioned available neighbors sending.Illustratively, seeking packet can be a data packet, can store Detection data is also possible to an empty data packet, and its object is to each nodes of determination can normally receive and forward data packet, In addition, seeking the nodal information in packet including source node and sink nodes.
For whole intermediate nodes in addition to source node and sink nodes, receive seek packet after forward it to itself Neighborhood information table in any available neighbors, seek packet until sink nodes receive.In this way, showing to seek the road that packet transmits Diameter is active path, at this point, sink nodes are fed back along the forward-path for seeking packet, and whole nodes that forward-path is passed through It is marked, illustratively, the mark that setting can be added in above-mentioned whole nodes is realized.In addition, the means fed back It can be transmission confirmation message, whole nodes that forward-path passes through be marked by confirmation message, can then incite somebody to action in this way Whole forward-paths are determined as target and correspond to transmission path from chain data.Optionally, it can be answered when packet is sought in intermediate node forwarding With Greedy strategy in the prior art, this is not repeat.
Based on the above technical solution, the technical solution of the embodiment of the present invention further include: when any intermediate node without When method finds available neighbors in the neighborhood information table of itself, then upper hop node issues obstruction information, to indicate It states upper hop node and redefines available neighbors to forward and described seek packet.
Illustratively, in actual application process, for arbitrary intermediate node, it is possible to can not be saved in the adjacent of itself Available neighbors is found in point information table, at this point, being directed to this kind of node, its upper hop node is made to issue obstruction information, the resistance Plug information is used to refer to upper hop node center and determines that new available neighbors seeks packet to forward.It is passed this ensure that seeking packet Defeated validity.
S105, the path that selection meets preset path condition in the transmission path carry out biography of the target from chain data It is defeated.
Specifically, selection meets the path of preset path condition, preset path item in several determining transmission paths Part, which can be, meets condition of the power consumption values lower than setting energy consumption threshold value, and preset path condition can also be determined by other indexs, Such as transmission speed and data loss rate etc., purpose are to filter out optimal path to carry out biography of the target from chain data It is defeated.
S106, the storage target are written from chain data according to the write-in policy of setting from chain data, and by the target Block chain main chain.
Wherein, the block chain that the whole network majority node is reached common understanding is known as main chain, will not be reached altogether by the whole network majority node Know, but local nodes are reached common understanding, the block chain to be formed or isolated data block are known as branch.In a specific example, deposit Storage target can be handled from the operation before chain data by branch, unify target block chain main chain is written from chain data later, Alternatively, can also cryptographic Hash by target from chain data block chain main chain is written, wherein the write-in policy of setting can be, with Block chain main chain is written in the form of cryptographic Hash, is used only to example here.Illustratively, it can be deposited using hard-disc storage and cloud disk Storage mode stores target from chain data.Using hard-disc storage, speed is fast;It being stored using cloud disk, the data volume of storage is big, so as to Later period obtains data.It is thereby achieved that the reliable memory of data.
The invention adopts the above technical scheme, described to receive from chain data, and is encrypted to described from chain data to obtain Take target from chain data, wherein it is described from chain data include in the form of from chain existing for data, ensure that in data transmission procedure Safety;According to default classifying rules, classify to the target from chain data;Update neighbour of the target from chain data Hop-information, wherein updating operation includes the neighborhood information table that each node is updated according to the current state of each node, is utilized Adjacent hop-information real-time update neighborhood information table;Retrieve transmission path corresponding from chain data with the target;In the transmission The path that selection meets preset path condition in path carries out transmission of the target from chain data;The target is stored from chain data, And block chain main chain is written into according to the write-in policy of setting from chain data in the target.Most evidences in block chain technology The big problem of redundancy bring loss of data risk is backed up and manufactured, by way of storing from chain, ensure that data are transmitted The safety of process improves the speed and quality of data transmission.
Embodiment two
Fig. 2 is the structural schematic diagram that the present invention is a kind of storage device of the block chain from chain data that embodiment two provides, The device is adapted for carrying out a kind of storage method of the block chain from chain data that the embodiment of the present invention is supplied to.As shown in Fig. 2, should Device can specifically include:
Data encryption module 201, for receiving from chain data, and to it is described encrypted from chain data with obtain target from Chain data, wherein it is described from chain data include in the form of from chain existing for data;
Data categorization module 202, for classifying from chain data to the target according to default classifying rules;
Update module 203, for updating adjacent hop-information of the target from chain data, wherein updating operation includes basis The current state of each node updates the neighborhood information table of each node;
Route search module 204, for retrieving transmission path corresponding from chain data with the target;
Data transmission blocks 205 carry out mesh for the path that selection meets preset path condition in the transmission path Mark the transmission from chain data;
Storage and backup module 206, for storing the target from chain data, and by the target from chain data according to setting Block chain main chain is written in fixed write-in policy.
Further, data categorization module 202 is specifically used for:
According to default classifying rules, the target is encoded from chain data, obtains the mesh being made of at least one frame It marks from chain data.
Further, at least one described frame includes one or more of I frame, P frame or B frame.
Further, update module 203 is specifically used for:
Each node periodically sends the state message information of present node to the neighbors of itself;
If being stored with the state message information of present node in the neighborhood information table of itself, present node is updated Otherwise the neighborhood information table is added in present node by status information and arrival time.
Further, further include update module, check that the adjacent of itself is saved according to the time rule of setting for each node Point information table will be more than that the corresponding node of information not updated default renewal time is deleted.
Further, the state message information includes node identification, node energy and node location, the neighbors letter Breath table includes neighbors mark, neighbors coordinate, neighbors energy, state and information update time.
Further, route search module 204 is specifically used for:
Source node and sink nodes are determined from chain data according to the target;
Source node selects any available neighbors in the neighborhood information table of itself, and can be issued to described with neighbors Seek packet, wherein the nodal information sought in packet including source node and sink nodes;
Each intermediate node will seek any available neighbors for wrapping and being forwarded in the neighborhood information table of its own, until Sink nodes seek packet described in receiving, wherein intermediate node includes whole nodes in addition to source node and sink nodes;
The forward-path that the sink nodes seek packet described in is fed back, and whole sections that the forward-path is passed through Point is marked, with determination target transmission path corresponding from chain data.
Storage device of the block chain from chain data provided in an embodiment of the present invention can be performed any embodiment of that present invention and provide Storage method of the block chain from chain data, have the corresponding functional module of execution method and beneficial effect.
The embodiment of the present invention also provides a kind of equipment, referring to Fig. 3, Fig. 3 is a kind of structural schematic diagram of equipment, such as Fig. 3 Shown, which includes: processor 310, and the memory 320 being connected with processor 310;Memory 320 is for storing Computer program, the computer program are at least used to execute storage side of the block chain from chain data in the embodiment of the present invention Method;Processor 310 is for calling and executing the computer program in the memory.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium is stored with computer program, the calculating When machine program is executed by processor, realize such as each step in storage method of the block chain from chain data in the embodiment of the present invention Suddenly.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of storage method of the block chain from chain data characterized by comprising
It receives from chain data, and is encrypted to described from chain data to obtain target from chain data, wherein is described from chain data Including data existing in the form of from chain;
According to default classifying rules, classify to the target from chain data;
Update adjacent hop-information of the target from chain data, wherein update operation include according to the current state of each node more The neighborhood information table of new each node;
Retrieve transmission path corresponding from chain data with the target;
The path that selection meets preset path condition in the transmission path carries out transmission of the target from chain data;
The target is stored from chain data, and block chain master is written into according to the write-in policy of setting from chain data in the target Chain.
2. the method according to claim 1, wherein according to default classifying rules, to the target from chain data Classify, comprising:
According to default classifying rules, the target is encoded from chain data, obtain the target being made of at least one frame from Chain data.
3. according to the method described in claim 2, it is characterized in that, at least one described frame includes one in I frame, P frame or B frame It is a or multiple.
4. the method according to claim 1, wherein updating adjacent hop-information of the target from chain data, comprising:
Each node periodically sends the state message information of present node to the neighbors of itself;
If being stored with the state message information of present node in the neighborhood information table of itself, the state of present node is updated Otherwise the neighborhood information table is added in present node by information and arrival time.
5. according to the method described in claim 4, it is characterized by further comprising:
Each node checks the neighborhood information table of itself according to the time rule of setting, will be more than not update default renewal time The corresponding node of information deleted.
6. according to the method described in claim 4, it is characterized in that, the state message information includes node identification, node energy Amount and node location, the neighborhood information table include neighbors mark, neighbors coordinate, neighbors energy, state and information Renewal time.
7. the method according to claim 1, wherein retrieval transmission road corresponding from chain data with the target Diameter, comprising:
Source node and sink nodes are determined from chain data according to the target;
Source node selects any available neighbors in the neighborhood information table of itself, and seeks to described can be issued with neighbors Packet, wherein the nodal information sought in packet including source node and sink nodes;
Each intermediate node will seek any available neighbors for wrapping and being forwarded in the neighborhood information table of its own, save until converging Point seeks packet described in receiving, wherein intermediate node includes whole nodes in addition to source node and sink nodes;
Whole nodes that the forward-path that the sink nodes seek packet described in is fed back, and the forward-path is passed through into Line flag, with determination target transmission path corresponding from chain data.
8. a kind of storage device of the block chain from chain data characterized by comprising
Data encryption module is encrypted from chain data for receiving from chain data, and to described to obtain target from chain data, Wherein, it is described from chain data include in the form of from chain existing for data;
Data categorization module, for classifying from chain data to the target according to default classifying rules;
Update module, for updating adjacent hop-information of the target from chain data, wherein updating operation includes according to each node Current state update the neighborhood information table of each node;
Route search module, for retrieving transmission path corresponding from chain data with the target;
Data transmission blocks carry out target from chain number for the path that selection meets preset path condition in the transmission path According to transmission;
Storage and backup module, for storing the target from chain data, and by the target from chain data writing according to setting Enter strategy write-in block chain main chain.
9. a kind of equipment characterized by comprising
Processor, and the memory being connected with the processor;
The memory is at least used for perform claim and requires any one of 1-7 for storing computer program, the computer program The storage method of the block chain from chain data;
The processor is for calling and executing the computer program in the memory.
10. a kind of storage medium, which is characterized in that the storage medium is stored with computer program, the computer program quilt When processor executes, realize such as each step in described in any item storage methods of the block chain from chain data of claim 1-7.
CN201910166063.7A 2019-03-06 2019-03-06 Storage method of the block chain from chain data, device, equipment and storage medium Pending CN109951389A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910166063.7A CN109951389A (en) 2019-03-06 2019-03-06 Storage method of the block chain from chain data, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910166063.7A CN109951389A (en) 2019-03-06 2019-03-06 Storage method of the block chain from chain data, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109951389A true CN109951389A (en) 2019-06-28

Family

ID=67008507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910166063.7A Pending CN109951389A (en) 2019-03-06 2019-03-06 Storage method of the block chain from chain data, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109951389A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181853A (en) * 2019-12-30 2020-05-19 布比(北京)网络技术有限公司 Pure distributed data exchange method and system based on block chain
CN111641559A (en) * 2020-04-22 2020-09-08 金蝶软件(中国)有限公司 Block chain-based multi-person session data transmission method and system and computer equipment
CN111866845A (en) * 2020-07-24 2020-10-30 深圳力维智联技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN112054878A (en) * 2020-08-18 2020-12-08 中钞***产业发展有限公司杭州区块链技术研究院 Method, device and equipment for data transmission based on block chain and storage medium
CN114268633A (en) * 2021-11-01 2022-04-01 北京交通大学 Task-driven short-time block chain system and method
WO2024012310A1 (en) * 2022-07-11 2024-01-18 杭州趣链科技有限公司 Information transmission method and apparatus, and terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480559A (en) * 2017-08-25 2017-12-15 北京中星仝创科技有限公司 Safe storage system and method for a kind of block chain from chain data
CN108683655A (en) * 2018-05-08 2018-10-19 深圳万智联合科技有限公司 A kind of safe storage system of the block chain from chain data
CN109325870A (en) * 2018-10-10 2019-02-12 上海保险交易所股份有限公司 The method and system of shared private data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107480559A (en) * 2017-08-25 2017-12-15 北京中星仝创科技有限公司 Safe storage system and method for a kind of block chain from chain data
CN108683655A (en) * 2018-05-08 2018-10-19 深圳万智联合科技有限公司 A kind of safe storage system of the block chain from chain data
CN109325870A (en) * 2018-10-10 2019-02-12 上海保险交易所股份有限公司 The method and system of shared private data

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111181853A (en) * 2019-12-30 2020-05-19 布比(北京)网络技术有限公司 Pure distributed data exchange method and system based on block chain
CN111641559A (en) * 2020-04-22 2020-09-08 金蝶软件(中国)有限公司 Block chain-based multi-person session data transmission method and system and computer equipment
CN111641559B (en) * 2020-04-22 2022-02-15 金蝶软件(中国)有限公司 Block chain-based multi-person session data transmission method and system and computer equipment
CN111866845A (en) * 2020-07-24 2020-10-30 深圳力维智联技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN111866845B (en) * 2020-07-24 2022-12-13 深圳力维智联技术有限公司 Data transmission method, device, equipment and computer readable storage medium
CN112054878A (en) * 2020-08-18 2020-12-08 中钞***产业发展有限公司杭州区块链技术研究院 Method, device and equipment for data transmission based on block chain and storage medium
CN112054878B (en) * 2020-08-18 2023-10-13 中钞***产业发展有限公司杭州区块链技术研究院 Block chain-based data transmission method, device, equipment and storage medium
CN114268633A (en) * 2021-11-01 2022-04-01 北京交通大学 Task-driven short-time block chain system and method
CN114268633B (en) * 2021-11-01 2022-11-18 北京交通大学 Task-driven short-time block chain system and method
WO2024012310A1 (en) * 2022-07-11 2024-01-18 杭州趣链科技有限公司 Information transmission method and apparatus, and terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109951389A (en) Storage method of the block chain from chain data, device, equipment and storage medium
CN103457993B (en) Local cache device and the method that content caching service is provided
Yi et al. Building a network highway for big data: architecture and challenges
CN104394236B (en) Node combines the distributed collaborative caching method perceived with message status
CN101686262B (en) Multi-node collaboration based storage method for sensor network
CN103283191B (en) Information system, control device, communication means
Jiang et al. Deep Q-learning-based content caching with update strategy for fog radio access networks
CN112511325B (en) Network congestion control method, node, system and storage medium
CN104133882A (en) HDFS (Hadoop Distributed File System)-based old file processing method
CN105868231A (en) Cache data updating method and device
CN104581406A (en) Network video recording and playback system and method
CN104378229A (en) Link prediction method for opportunity network
US20220179831A1 (en) Management of content
CN104410655A (en) Named mechanism based storage system and method of distributed network
CN103781115B (en) Distributed base station buffer replacing method based on transmission cost in a kind of cellular network
CN102843420A (en) Fuzzy division based social network data distribution system
CN101969448A (en) Method, system and equipment for searching active node in P2P streaming media system
JP2016525256A (en) Method and apparatus for providing redundant data access
CN106658067B (en) The method and apparatus of caching are set
CN110392050A (en) A kind of construction method of the Use of Covert Storage Channels based on timestamp
CN101551781B (en) Method of magnetic disc cache replacement in P2P video on demand system
CN109525622A (en) The generation method of fragment resource ID, resource sharing method, device and electronic equipment
CN109600423A (en) Method of data synchronization, device, electronic equipment and storage medium
CN112672227B (en) Service processing method, device, node and storage medium based on edge node
CN104113545A (en) Streaming media system under information center network and application method thereof

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: 20190628

RJ01 Rejection of invention patent application after publication