CN110032545A - File memory method, system and electronic equipment based on block chain - Google Patents
File memory method, system and electronic equipment based on block chain Download PDFInfo
- Publication number
- CN110032545A CN110032545A CN201910238716.8A CN201910238716A CN110032545A CN 110032545 A CN110032545 A CN 110032545A CN 201910238716 A CN201910238716 A CN 201910238716A CN 110032545 A CN110032545 A CN 110032545A
- Authority
- CN
- China
- Prior art keywords
- file
- storage
- stored
- node
- network
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 86
- 238000003860 storage Methods 0.000 claims abstract description 313
- 238000004891 communication Methods 0.000 claims description 8
- 238000004364 calculation method Methods 0.000 claims description 6
- 230000005055 memory storage Effects 0.000 claims 1
- 230000000116 mitigating effect Effects 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 157
- 238000005516 engineering process Methods 0.000 description 27
- 238000010586 diagram Methods 0.000 description 21
- 238000012544 monitoring process Methods 0.000 description 18
- 230000008569 process Effects 0.000 description 11
- 238000012550 audit Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000007246 mechanism Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 238000011084 recovery Methods 0.000 description 4
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000000151 deposition Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000007792 addition Methods 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000006798 recombination Effects 0.000 description 2
- 238000005215 recombination Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 239000006185 dispersion Substances 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000007789 sealing Methods 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/182—Distributed file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Storage Device Security (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
This application discloses file memory method, system and electronic equipments based on block chain.This document storage method includes that the file management nodes of block chain network send file to be stored to the storage management node of file storage network, so that the file to be stored is divided into multiple data blocks by the storage management node, the multiple data block is stored respectively in multiple memory nodes of the file storage network, and generates storage index of the file to be stored in file storage network;The file management nodes receive the storage index from the storage management node, and storage index is stored in the block chain network.The storage pressure for mitigating block chain network through the above way, improves the operational efficiency of block chain network.
Description
Technical field
This application involves block chain technical fields, more particularly to file memory method, system and electricity based on block chain
Sub- equipment.
Background technique
Block chain technology is the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
New application technology set.From the point of view of data Angle, block chain is sequentially in time by data block in such a way that sequence is connected
A kind of linked data structure being combined into, the data structure guarantee that it can not distort and can not forge by cryptography mode.
From the technical point of view, block chain technology incorporates a variety of different technologies, by constructing block chain network, so that in network
Each node allows to obtain a complete data block copy, and is calculated based on common recognition mechanism and competition to maintain based on area
The update of the data block of block chain.The end to end network constituted is linked up by multinode as a result, and realizes going for data storage and management
It centralization and goes to trust.
Currently, the types of applications based on block chain is more and more, and based on the storage security of block chain, more and more areas
It can select for Miscellaneous Documents to be stored in block chain network in the application of block chain, but the increase of the quantity of documents with generation and deposit,
Cause the storage burden of block chain network increasing, seriously affects the operational efficiency of block chain network.
Summary of the invention
The application is mainly solving the technical problems that provide a kind of file memory method based on block chain, system and electronics
Equipment, this document storage method can be improved the storage pressure for mitigating block chain network.
To solve the above-mentioned problems, the application first aspect provides a kind of file memory method based on block chain, institute
Stating file memory method includes:
The file management nodes of block chain network send file to be stored to the storage management node of file storage network, with
Make the storage management node that the file to be stored is divided into multiple data blocks, the multiple data block is stored respectively in
In multiple memory nodes of the file storage network, and generate the file to be stored depositing in file storage network
Storage index;
The file management nodes receive the storage index from the storage management node, and the storage is indexed
It is stored in the block chain network.
To solve the above-mentioned problems, the application second aspect provides another file memory method based on block chain,
The file memory method includes:
The storage management node that file stores network receives the text to be stored of the file management nodes from block chain network
Part;
The file to be stored received is divided into multiple data blocks by the storage management node, and will be the multiple
Data block is stored respectively in multiple memory nodes of the file storage network;
The storage management node is based on the multiple data block and generates the file to be stored in file storage net
Storage index in network, and storage index is fed back into the file management nodes, so that the file management nodes will
The storage index is stored in the block chain network.
To solve the above-mentioned problems, the application third aspect provides a kind of electronic equipment, which includes mutual
The block chain network and file of communication store network, wherein file management nodes are included at least in the block chain network, it is described
File, which stores, includes at least storage management node in network;
The file management nodes are used to execute the correspondence step in above-mentioned file memory method, the storage management section
Point is for executing the correspondence step in above-mentioned file memory method.
To solve the above-mentioned problems, the application fourth aspect provides a kind of document storage system based on block chain, should
Document storage system includes:
Network is stored including the block chain network being in communication with each other and file, wherein is included at least in the block chain network
File management nodes, the file, which stores, includes at least storage management node in network;
The file management nodes are used to execute the correspondence step in above-mentioned file memory method, the storage management section
Point is for executing the correspondence step in above-mentioned file memory method.
In above scheme, the file memory method based on block chain by the equipment of user's interdependent node by file to be stored with
The formal distribution formula of multiple data blocks is stored in file storage network, while storage index being stored in block chain network.
So that could be obtained by block chain network after user need to carry out the operations such as authentication, transaction common recognition by block chain network
Storage index is mentioned with obtaining all or part of the content of file to be stored from file storage network based on block chain technology
The high storage security of file to be stored;The operation burden for alleviating block chain network, ensure that the operation of block chain network
Speed and stability.
Detailed description of the invention
Fig. 1 is the configuration diagram of the application block platform chain architecture;
Fig. 2 is the structural schematic diagram of the block of the block chain used in the examples of the application one;
Fig. 3 is the structural schematic diagram of document storage system one embodiment of the application based on block chain;
Fig. 4 is the flow diagram of file memory method first embodiment of the application based on block chain;
Fig. 5 is the flow diagram of an embodiment of step S11 in Fig. 4;
Fig. 6 is the flow diagram of file memory method second embodiment of the application based on block chain;
Fig. 7 is the flow diagram of file memory method 3rd embodiment of the application based on block chain;
Fig. 8 is the structural schematic diagram of webpage tamper resistant systems one embodiment of the application based on block chain;
Fig. 9 is the flow diagram of web page files storage method embodiment of the application based on block chain;
Figure 10 is the flow diagram of webpage integrity assurance one embodiment of the application based on block chain;
Figure 11 is the structural schematic diagram of one embodiment of the application electronic equipment;
Figure 12 is the structural schematic diagram of one embodiment of the application storage medium.
Specific embodiment
With reference to the accompanying drawings of the specification, the scheme of the embodiment of the present application is described in detail.
In being described below, for illustration and not for limitation, propose such as specific system structure, interface, technology it
The detail of class, so as to provide a thorough understanding of the present application.
The terms " system " and " network " are often used interchangeably herein.The terms "and/or", only
It is a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, can indicates: individually
There are A, exist simultaneously A and B, these three situations of individualism B.In addition, character "/" herein, typicallys represent forward-backward correlation pair
As if a kind of relationship of "or".
Block chain technology is the novel distributed data organizer of one kind risen with the digital encryptions such as bit coin currency
Method and operation mode.Its biggest characteristic is that: decentralization, this enables data to realize distributed collective's maintenance, be greatly improved
Data operation, management, maintenance efficiency;It is based on a set of common recognition mechanism between common recognition node, safeguards entire area jointly by competing to calculate
Block chain, any node failure, remaining node remain to work normally.The block chain for carrying asymmetric encryption techniques simultaneously has Gao An
Quan Xing, trackability can effectively prevent leaking data or illegally distort.The application proposition is deposited using block chain technology and distribution
The storage of file to be stored is realized in the combination of storage technology, and file to be stored can be all types of files of ordinary user's upload
(such as video file, audio file, text file) is also possible to the financial associated documents of financial institution's upload (such as text of auditing
Part, accounting file etc.), it is also possible to the various information text that all kinds of unit mechanisms are issued by own LAN to external wide area network
Part (such as passing through the web page files of its website orientation, the pushing files issued by its public platform) etc..
Block chain network in present specification storage system for ease of understanding, the block chain technology that first the application is used
It is illustrated.In a concrete application, electronic equipment run the block chain technology with become the block chain network node,
The block platform chain architecture is as shown in Figure 1, include represent layer, application layer, service layer and the block chain core of block chain
Supporting module.
Wherein, represent layer is for system function to be shown, and then realizes user's interaction, and each document body can pass through
System client logs in the interface access application layer that corresponding represent layer is shown and to obtain information resources, including register interface, behaviour
Make execution interface, query interface, application management interface, administrator interfaces etc..Application layer is for showing the specific of block chain network
Function is the important link of file storage, can be divided into user management, permission control, directory management etc. by the difference of function.Clothes
Business layer is used to that application related functions effectively to be integrated and be managed by distributed server, such as user's registration, user
Identity Management, encryption and decryption service, distributed account book service, intelligent bond service, data management service etc..
Block chain core support module includes data Layer, network layer, common recognition layer and contract layer.Wherein, data Layer is for sealing
Fill bottom data block and the technologies such as relevant data encryption and timestamp.Also, (such as using irreversible encryption algorithm
SHA256 algorithm) file data calculate at least once (as twice), generate unique block chain ID, i.e. Hash (Hash)
Value.Specifically, which can be the privately owned chain of block, and to guarantee that the block chain is not full disclosure, the member only registered is saved
Point just may have access to.
Network layer encapsulates P2P networking mode, message propagation protocol and data authentication mechanism of block chain network system etc.
Element is made each node status equity and is interconnected with flat topological structure and mutually, possesses distribution, autonomy, opening
It the characteristics such as can free in and out.Each node can participate in verification and the accounting procedure of block data in block chain network, only when
After block data passes through the whole network major part node verification, block chain can be just charged to.This decentralization design of block chain guarantees text
Number of packages evidence can not be distorted, can not be forged.
Common recognition layer, encapsulates the method that common recognition is rapidly completed in the topological network of decision-making power high degree of dispersion, to participate in area
The common recognition mechanism of block chain network.
Contract layer is packaged with the contract code of data storage scheme and access strategy, automatic to execute when the condition in contract code is triggered
Respective transaction, while can provide that corresponding access conditions accesses to corresponding data by treaty content.
Block chain network is collected with a kind of mode of decentralization, be packaged and safeguard protection file to be stored, and to
The relevant information of storage file is anchored on block chain.Specifically, block chain network can use block alliance chain or block chain
The network of privately owned chain is realized.The node of block chain network constantly converts the responsibility undertaken in network system, never
Only one node control whole network system, i.e., will not only one accounting nodes keep accounts.Each node is
A part in network system.The node timing of the block chain such as role of transformation in each minute, can permanently control without node
Any a part of network system.
In one embodiment, the block encapsulation of the data Layer of block chain core support module can be as shown in Figure 2.The block chain
Block include block head 21 (Header) and block body 22 (Body).The block body 22 is stored at least one pair of execution business
Relevant data carry out the cryptographic Hash that setting Hash operation obtains.The block head 21 can be packaged with current version number 211, previous
Block address 212, the target cryptographic Hash 213 of current block, the solution random number of current block PoW (proof of work) common recognition process
214, the information such as Merkle root 215 (Merkle-root) and timestamp 216.Wherein, current version number 211, for indicating
The relevant release note of software and agreement;The previous block address 212, alternatively referred to as previous block cryptographic Hash, just by the value
Each block can be joined end to end and constitute block chain;The solution random number 214 is that record decrypts answering for the block correlation mathematical problem
The value of case;The Merkle root 215 is calculated by data cryptographic Hash all in block body 22, for examining related data to be
It is no to be present in the block;The timestamp 216 is used to record the time of the block 20 generation.It is understood that the block
Structure can be adjusted according to the difference of the block chain technology of use, such as common recognition process does not use Pow common recognition mechanism, then does not deposit
In above-mentioned solution random number.
In a concrete application, which can be made of block layered (Block).Root is mesh
It records block (Directory Block).These blocks constitute a miniature chain, store compressed reference on chain
(reference).In order to avoid data scale is excessive, the reference in catalogue block (Directory Block) is recording areas
The cryptographic Hash of block (Entry Block).
Catalogue block corresponds to the first layer of this system, is the area for recording the record block integrality (hash value) and proving
Block.Catalogue block be all record blocks as defined in Servers-all be grouped together construction and generate.Therefore, each
Server is owned by all record blocks, all catalogue blocks and all records (Entry).
The second layering for recording block (Entry Block) this corresponding system, is record Entry integrality (hash value)
The block of proof.It may require that record block in the application for finding record, it can be from a digital fingerprint search to all possible phases
The records such as storage, processing, the shared, access of the data of pass.Record block includes the cryptographic Hash of electronical record.Electronical record
Cryptographic Hash demonstrates the presence of data simultaneously and finds the key of record in distributed hash table (DHT) network.
Record block (Entry Block) contains whole Entry related with a chain ID.If some Entry is
If being associated with some record block (Entry Block), then it is considered that this Entry and being not present.Such design
It can allow application program easily falsfication, easily identify which Entry is true and reliable.
Referring to Fig. 3, Fig. 3 is the structural schematic diagram of document storage system one embodiment of the application based on block chain.Such as
Shown in Fig. 3, the document storage system 30 of the present embodiment includes the block chain network 31 that can be in communication with each other and file storage network 32;
It wherein, include file management nodes 311, accounting nodes 312 and user node 313 in block chain network 31.
In the present embodiment, file management nodes 311 are the device end corresponding to file to be stored, file management nodes
311 have to block chain network 31 and upload file to be stored, are edited to file to be stored, the operating rights such as additions and deletions, wait deposit
Storage file is submitted from file management nodes 311 to block chain network 31, with the document storage system 30 based on the present embodiment
Carry out file storage.Accounting nodes 312 can carry out the book keeping operation of block chain network 31, and each accounting nodes 312 are to remember with competition
The node of account ability, by file management nodes 311 in block chain network 31 interactive operation and relevant information keep accounts
Operation.Further, also reusable is the accounting nodes 312 in block chain network 31 to the file management nodes 311 of the present embodiment, is held
The relevant book keeping operation operation of row.User node 313 is ordinary user's node 313, and user node 313 can pass through file management nodes
It obtains to be submitted by file management nodes 311 by block chain network 31 after 311 certification and be stored in file storage network 32
File to be stored.
In the present embodiment, file management nodes 311 are carried out according to different concrete application scenes according to practical application
Setting.For example, file management nodes 311 are enterprise's section that economic activity occurs under the application scenarios of audit document storage
Point, correspondingly, file to be stored is enterprise in needs such as financial report, the financial statements for occurring to generate therewith when economic activity
Audited to audit document;In the application scenarios, file management nodes 311 can also be auditing bodies node, accordingly to
Storage file is the audit text such as audit commenting report, auditor's comments, audit working paper for passing through audit operation and generating
Part.If in the application scenarios of Homepage Publishing, it usually needs storage backup is carried out to the web page files of publication, at this point, file pipe
Reason node 311 is to correspond to the management of webpage system for having the permissions such as web page editing, update and confirmation publication, accordingly wait store
File is the web page files issued.It is understood that above two application scenarios are only that the file based on the present embodiment is deposited
The concrete application of method for storing is illustrated, and corresponding file management nodes can be arranged according to actual application demand in practical applications
311, it is not limited solely to above two application scenarios.
It further, further include user management node 314 in the block chain network 31 of the present embodiment, for file management section
Point 311, user node 313 and accounting nodes 312 carry out identity registration, manage file management nodes 311,313 and of user node
The various businesses functions such as identity information, the data sharing strategy of accounting nodes 312.In the present embodiment, user management node 314 can
It is set as corresponding certificate authority (Certificate Authority), file management nodes 311,313 and of user node
Accounting nodes 312 initiate registration request when block chain network 31 is added, to certificate authority, and certificate authority is based on note
Volume, which requests to provide to corresponding node, can show that the digital certificate of the node identity information, wherein data certificate may include to
The public key and private key of node distribution.After the node of application for registration gets the public key and private key of distribution, private key is stored in certainly
Body is local, by public key broadcasts to block chain network 31.
Above-mentioned file management nodes 311, user node 313, accounting nodes 312 and user management node 314 specifically can be with
For any electronic equipment, such as server, mobile phone, computer, tablet computer etc., in an embodiment, which is area
Block chain server, user management node 314 are the application server with traffic handing capacity, and can be used as based on block link network
The deposit system of network 31.It is understood that above-mentioned file management nodes 311, user node 313, accounting nodes 312 and user
It can be in communication with each other between management node 314, file management nodes 311, user node 313 and user management section in the present embodiment
Point 314 is used as block chain node, for example, the light weight accounting nodes 312 of block chain.In addition, the differentiation of above-mentioned node is basis
Determined by the identity informations of the Node registers, thus the corresponding main body of above-mentioned node require it is complete on block platform chain in advance
At registration, (in an application, which is the privately owned chain of block or block alliance chain, and story first completes body on block platform chain
Part registration), and corresponding public key and private key are obtained, after determining that its identity is credible, allow to carry out the following phase for being related to file and storing
Pass business.
Fig. 3 is further regarded to, the file storage network 32 of the present embodiment includes storage management node 321 and several storages
Node 322.Storage management node 321 is used to carry out the interaction of information and data with block chain network 31, in addition, storage management section
Point 321 can execute preset file storage operations to file to be stored, to complete the storage of file to be stored.File stores network
Each memory node 322 in 32 is used equally for storage file to be stored.In the present embodiment, storage management node 321 and storage
322 reusable of node, user can be selected in several memory nodes 322 according to actual needs a memory node 322 as
Storage management node 321;For example, selecting the communication efficiency highest with file management nodes 311 from several memory nodes 322
One memory node 322 of (for example, with the communication path of file management nodes 311 is most short, traffic rate is most high) is as depositing
Store up management node 321.
Further, block chain network 31 can be disposed in the local area network where enterprise units in the present embodiment, correspondingly, literary
Part management node 311, user node 313, accounting nodes 312 and user management node 314 are in the local area network of enterprise units
Electronic equipment.For example, block chain network 31 can be disposed in the local area network of certain enterprise units, correspondingly, file management nodes
311 can be the corresponding node of important department (such as financial accounting department, Homepage Publishing department) of the enterprise units, user node 313
It can be the node of other departments of enterprises.In addition, file storage network 32 can be disposed in identical local area network, this eight-legged essay
Part storage system 30 is using the enterprise as the internal file storage system 30 of core, correspondingly, the file of storage is not easy to be looked forward to
Portion's other users out of trade obtain, in addition, having high requirement to equipment such as the servers of enterprise.In other embodiments, literary
Part storage network 32 also can be disposed in wide area network;At this point, can be arranged between block chain network 31 and file storage network 32
Isolating device, to improve the safety of block chain network 31.
Referring to Fig. 4, Fig. 4 is the flow diagram of file memory method first embodiment of the application based on block chain.
The file memory method of the present embodiment can be applied to document storage system shown in Fig. 3, as shown in figure 4, the file of the present embodiment
Storage method may include following steps:
In step s 11, the file management nodes of block chain network are sent to the storage management node of file storage network
File to be stored.
File management nodes are the device end corresponding to file to be stored, and user is being obtained by file management nodes
After file to be stored, file to be stored is sent to the storage management node of the storage network of the file except block chain network.With
Afterwards, storage management node can carry out associated storage operation to file to be stored and store net storing file to be stored to file
In network.
Wherein, for example interspace file system (InterPlanetary of distributed file system can be used in storage management node
File System, IPFS) distributed storage mode, file to be stored is stored respectively in not in the form of multiple data blocks
Same memory node.Specifically, file to be stored is divided into multiple data blocks by storage management node, the multiple data being divided into
Block is stored respectively in multiple memory nodes into file storage network;File to be stored is generated according to multiple data blocks of division
Storage index in file storage network, and the storage of generation index is sent back into file management nodes.In the present embodiment, often
A memory node, which can choose, stores its interested file content, such as: user can be specified in advance by storage management node
The file content or memory node of specific memory node storage specific structure or unstructured data can be according to files to be stored
File content sensitivity carry out selective storage.
The storage generated in the present embodiment by storage management node, which is indexed, constitutes each of file to be stored for being directed toward
Memory node of the data block in file storage network is which storage is knowable each data block be stored in based on storage index
In node, and then obtain required data block respectively from multiple memory nodes.
The storage index of the present embodiment is that storage management node is generated based on the content of each data block marked off.Tool
Body, storage management node is carried out Hash calculation to each data block respectively, is obtained based on the content for marking off multiple data blocks
Data block cryptographic Hash corresponding to each data block.Further, each data block when storage management node is according to division data block
Stripe sequence by obtained data block cryptographic Hash form a cryptographic Hash array (each data block cryptographic Hash in cryptographic Hash array
Correspond respectively to the data block marked off, data block cryptographic Hash puts in order the group for being each data block in file to be stored
At sequence).Further, storage management node carries out Hash calculation to the cryptographic Hash array and obtains final hash value, final Hash
Value can be understood to correspond to the file cryptographic Hash of file to be stored.Storage management node can be based on cryptographic Hash array as a result,
Storage index is generated with the file cryptographic Hash of file to be stored.
Wherein, storage management node, can be based on each data block when executing above-mentioned storage operation to file to be stored
Data block cryptographic Hash deletes the identical data block of content in multiple data blocks, so that the identical data block of content will not be repeated and deposit
Storage, but store in index and still remain with corresponding data block cryptographic Hash;It can reduce the storage pressure of file storage network as a result,
Power, and guaranteed complete file content can be obtained when obtaining file to be stored.
Storage management node can be drawn when carrying out data block division to file to be stored by certain data block capacity
Point, for example, settable maximum capacity 256KB, i.e., press its content order for file to be stored, every 256KB divides a data
Block, until file to be stored is divided completely, therefore the size of the last one data block may small 256KB.
Since each data block cryptographic Hash is that the content based on respective data blocks obtains, and file cryptographic Hash is inherently
It is also based on what the content of file to be stored obtained;Therefore the storage index obtained based on data block cryptographic Hash and file cryptographic Hash
It is the index that data block addressing is carried out based on file content.It, can be based on storage index when user needs to obtain file to be stored
In file cryptographic Hash and data block cryptographic Hash get corresponding data block, and then obtain file to be stored.
The storage operation that above-mentioned storage management node executes combines the storage mode of IPFS, by file to be stored with multiple numbers
Different memory nodes are stored respectively according to the form of block.But it is understood that in other embodiments, storage management node
Other distributed document storage modes can be used to realize to the storage to file to be stored.
Document storage system shown in Fig. 3 is further regarded to, in one embodiment, file management nodes may include file
Submit node and file distribution node.Wherein, file submit node correspond to file to be stored main equipment, for obtain or
File to be stored is formed, and sends file to be stored to file distribution node;File distribution node can be regarded as respective file and mention
The equipment for handing over node to be confirmed stores network for receiving the file to be stored for submitting node from file, and with file
Storage management node carries out information data interaction, and file to be stored is stored in the storage of the file except block chain network to realize
In network.In the present embodiment, file is submitted can carry out two-way body between node and file sending node by block chain network
Part certification.As shown in figure 5, step S11 may include following steps:
In step S111, the file of block chain network submits node to carry out that corresponding number is calculated to file to be stored
Word fingerprint;Digital finger-print is stored in block chain network, and sends file to be stored to file distribution node.
In the present embodiment, file submits node when sending file to be stored to file distribution node, to file to be stored
Hash calculation is carried out, obtains the digital finger-print corresponding to file to be stored, and utilize its own private key encryption digital finger-print.Into
One step, file submit node that encrypted digital finger-print is uploaded to block chain network;Other sections in block chain network as a result,
Point can get the digital finger-print that the private key encryption of node is submitted by file, and then submit the identity of node to carry out file
Certification, while the authenticity of file to be stored can also be authenticated.
In step S112, file distribution node obtains digital finger-print, judges that file submission node is using digital finger-print
It is no to pass through authentication.
In the present embodiment, file distribution node is arranged to the function section for submitting the identity of node to be authenticated file
Point, to ensure that file submits the identity reality of node and the accuracy of file to be stored.Specifically, file distribution node is from area
The public key that digital finger-print and file after file submits the private key encryption of node submit node, judgement are obtained in block chain network
Submit whether the public key of node can decrypt encrypted digital finger-print using file, if so, determination refers to for encrypting number
The private key of line and the public key of decryption digital finger-print correspond to the node of common identity, that is, can determine that file submits node to pass through identity
Certification.
Further, file distribution node can confirm the digital finger-print after decryption, whether to judge file to be stored
It is modified in transmission process.Specifically, file submit node can to it is received from file submit node wait store
File carries out Hash calculation and obtains a cryptographic Hash, and the cryptographic Hash being calculated is compared with the digital finger-print that decryption obtains,
Judge whether the two is identical, if so, determining that file to be stored is not modified, otherwise, it is determined that file to be stored is modified.This
In embodiment, if file distribution node determines that file submits node by authentication, and file to be stored is not modified, then after
It is continuous to execute step 113;Otherwise, terminate process, while its judging result feedback back into file is submitted node by file distribution node.
In step S113, file distribution node to file storage network storage management node transmit and receive wait deposit
Store up file.
Further, file to be stored can be sent to the storage management node of file storage network by file distribution node,
So that storage management node executes the storage recorded in above-mentioned steps S11 to file to be stored and operates.
In step s 12, file management nodes receive the storage index from storage management node, by storage index storage
In block chain network.
The file management nodes of block chain network, i.e., will storage after receiving the storage index of storage management node transmission
Index is stored in block chain network, that is, completes the Stored Procedure to file to be stored.Further, based on shown in above-mentioned Fig. 5
Step S111 to step S113 step process, the received file to be stored of storage management node is from file distribution node
, i.e., the information exchange node between block chain network and file storage network is the file distribution node and text of block chain network
The storage management node of part storage network;The corresponding storage index that storage management node generates as a result, is also to be sent to file
Publisher node, in other words, storage index are received and stored by file distribution node into block chain network.
The side that the file memory method of the present embodiment stores the file to be stored generated in block chain network in a distributed manner
Formula is stored in the storage network of the file except block chain network, and then reaches the amount of storage reduced in block chain network, mitigates area
The purpose of the operation burden of block chain network, that is, ensure that the speed of service and stability of block chain network.
Further, referring to Fig. 6, Fig. 6 is the process of file memory method second embodiment of the application based on block chain
Schematic diagram.The file memory method of the present embodiment is similarly applied to document storage system shown in Fig. 3, and the present embodiment is to be based on
Fig. 4 is extended to file memory method first embodiment shown in fig. 5, as shown in fig. 6, the file storage side of the present embodiment
It may also include the steps of: after method step S12 shown in Fig. 4
In step s 13, when file management nodes receive file access pattern corresponding with file to be stored instruction, based on text
Part restores instruction and sends storage index to the storage management node of file storage network.
In the present embodiment, when needing to obtain the file to be stored having been stored in file storage network, that is, it can trigger
Corresponding file access pattern instruction.File management nodes get file access pattern instruction after, can response file restore instruction and from
Storage index corresponding with file to be stored is obtained in block chain network, and then storage index is sent to file storage network
Storage management node.
Storage management node receive storage index after, can response file acquisition instruction, according to storage index in wrap
The data block cryptographic Hash contained obtains corresponding data block from corresponding memory node, and the data block got sends back into file
Management node.
The present embodiment file management nodes include that file submits node and file distribution node, receive file access pattern as a result,
The specific node of instruction can be different under different application scenarios, and file access pattern instruction can submit node to receive by file, then
It is sent to file distribution node, is sent from file distribution node and is instructed based on file access pattern to the storage management of file storage network
Node sends storage index;In addition, file distribution node directly can also be sent to for file access pattern instruction, by file distribution node
It sends and instructs the storage management node to file storage network to send storage index based on file access pattern.
In step S14, file management nodes receive multiple data blocks from storage management node, utilize multiple data
Block recombinates to obtain file to be stored.
It, can be according to each data block after file management nodes receive multiple data blocks of storage management node transmission
The sequence of cryptographic Hash recombinates multiple data blocks, and then restores file to be stored.In the present embodiment, receives and come from storage tube
The multiple data blocks for managing node are file distribution node;Received by file distribution node from the multiple of storage management node
Data block recombinates to obtain file to be stored using multiple data blocks.
In other embodiments, since file to be stored is to carry out distributed storage with multiple data blocks after dividing
's;Therefore, the partial content in file to be stored can also be only obtained when obtaining file to be stored.Specifically, user can pass through
The data block cryptographic Hash for wanting the partial content obtained retrieves this partial content, and storage management node can be only as a result,
It obtains and sends the data block for corresponding to this partial content that user specifies to file distribution node, as a result, file distribution node
What is obtained after recombinating to the data block of this partial content is the partial content for the file to be stored that user specifies.
The present embodiment combination block chain technology and for example interspace file system of distributed file system, by file to be stored with
The formal distribution formula of multiple data blocks is stored in file storage network, while storage index being stored in block chain network.
So that could be obtained by block chain network after user need to carry out the operations such as authentication, transaction common recognition by block chain network
Storage index is mentioned with obtaining all or part of the content of file to be stored from file storage network based on block chain technology
The high storage security of file to be stored.
Further, referring to Fig. 7, Fig. 7 is the process of file memory method 3rd embodiment of the application based on block chain
Schematic diagram.The file memory method of the present embodiment is similarly applied to document storage system shown in Fig. 3, and the present embodiment is to be based on
Fig. 4 is extended to file memory method first embodiment shown in fig. 5, as shown in fig. 7, the file storage side of the present embodiment
It may also include the steps of: after method step S12 shown in Fig. 4
In step S15, when file management nodes determine that file to be stored is updated, updated text to be stored is obtained
Part sends updated file to be stored to storage management node.
The present embodiment completes above-mentioned Fig. 4 to file memory method first embodiment shown in fig. 5, completes file to be stored
Storage after, user can still modify to file to be stored by file management nodes, the updates such as editor operation again, in turn
Form updated file to be stored.
The file management nodes of the present embodiment may include that above-mentioned file submits node and file distribution node, i.e. user is logical
Crossing file submits node to form updated file to be stored, and updated file to be stored is sent to file distribution node.
Further, updated file to be stored is sent to the storage management node of file storage network by file distribution node, so that
Storage management node is based on updated file to be stored and executes storage operation, completes file Stored Procedure.
In the present embodiment, storage management node receives updated file to be stored, the file to be stored after may be updated
It is stored, and updates corresponding storage index.Specifically, storage management node is by same data block division mode to update
File to be stored afterwards carries out data block division, and calculates the data block cryptographic Hash of each data block, thus can pass through data
Between block cryptographic Hash comparison (comparison between data block cryptographic Hash being calculated including this and this be calculated
The comparison of the data block cryptographic Hash recorded in data block cryptographic Hash and storage index) it is parsed from updated file to be stored
Duplicate contents in the file content of update relative to original file to be stored, and the file content of update, Jin Erke
Content identical with original file to be stored in updated file to be stored is deleted, and by updated wait deposit
The duplicate contents for storing up the update part of file are deleted, and are stored to partial content remaining after deletion, and are based on this
Partial content is calculated corresponding data block cryptographic Hash and is updated to storage index, obtains updated storage index.
In step s 16, file management nodes receive the updated storage index from storage management node, will update
Storage index afterwards is stored in block chain network.
File management nodes can receive the updated storage index sent by storage management node, and then will correspond to
The updated storage index of updated file to be stored is stored in block chain network.It is received in the present embodiment updated
The node of storage index is file distribution node.
The file memory method of the present embodiment is operated based on above-mentioned storage, can only internally after file to be stored is updated
Hold different parts to be stored, and the data block cryptographic Hash being calculated based on this partial content updates storage index;Without
The part of identical content can be carried out repeating storage, improve file memory rate, while also can reduce file storage network
Store pressure.
It is understood that file memory method second embodiment shown in fig. 6 is to obtain stored file to be stored
Embodiment of the method, file memory method 3rd embodiment shown in Fig. 7 is the embodiment of the method to the file to be stored of update.
In other words, Fig. 6 and file memory method second embodiment shown in Fig. 7 and 3rd embodiment are based on different file demands
The different embodiments proposed in the case where (obtain file to be stored or update file to be stored), do not conflict between the two,
An execution can be selected according to actual needs.
Further, referring to Fig. 8, Fig. 8 is the structure of webpage tamper resistant systems one embodiment of the application based on block chain
Schematic diagram.The webpage tamper resistant systems 40 of the present embodiment are as shown in 8 figures comprising the block chain network 41 and text that can be in communication with each other
Part stores network 42.Wherein, the block chain network 41 of the present embodiment and file storage network 42 can respectively with file shown in Fig. 3
Block chain network 31 and file the storage network 32 of storage system are identical.
In conjunction with webpage related system equipment it is found that file management nodes 411 are to correspond to the enterprise for carrying out web page files publication
The webpage content management system 411 of industry unit, and file management nodes 411 include that file submits node 411a and file distribution section
Point 411b.It is the webpage content management control clothes corresponded in webpage content management system 411 that file, which submits node 411a, as a result,
Be engaged in device 411a, and file distribution node 411b is the Homepage Publishing server 411b corresponded in webpage content management system 411.
In addition, the webpage tamper resistant systems 40 of the present embodiment further include monitoring node 43, wherein monitoring node 43 corresponds to
The server in station 43 for carrying out Homepage Publishing, specifically, configuring corresponding monitoring modular in server in station 43.Station services
The web page files that device 43 is used to issue it are monitored.In one embodiment, server in station 43 may also include webpage
Synchronous service module, attack protection module and web monitor module;Wherein, synchronizing web pages service module is for receiving management of webpage clothes
The legal web page files that business device is sent, update the web page contents on server in station 43;Attack protection module is mainly to webpage
Access is protected;Web monitor module is used to configure the website of server where all web page monitoreds, and to choosing
The program directory selected in the website after website is configured.
Based on above-mentioned webpage tamper resistant systems 40, when carrying out web page files publication, user passes through in block chain network 41
Webpage content management control server 411a formed the page web page files;Further, webpage content management control service
The web page files of the page are sent to Homepage Publishing server 411b by device 411a.Homepage Publishing server 411b receives webpage
After file, the correlation step of the publication process of corresponding web page files is on the one hand executed based on web page files;On the other hand it executes
The correlation step of the Stored Procedure of the original document of web page files stores its original text while issuing to web page files
Part.
After completing the publication of web page files and the storage of its original document, the server in station 43 configured with monitoring modular is
It can be monitored to whether the web page files of publication are tampered.When monitoring node 43 monitors that web page files are tampered, to net
Page publisher server 411b sends corresponding file access pattern instruction, to report that web page files are tampered.Homepage Publishing server
After 411b receives file access pattern instruction, corresponding file acquisition instruction is sent to storage management node, so that storage management section
Point obtains the multiple data blocks for corresponding to original document from file storage network 42.Homepage Publishing server 411b is i.e. acceptable
Multiple data blocks corresponding to original document from storage management node are recombinated, and then obtain corresponding web page files
Original document;It, can be based on the original document again after Homepage Publishing server 411b restores the original document of web page files
Carry out the publication of web page files.
Further, the block chain network 41 of the present embodiment is arranged in local area network, and file storage network 42 is arranged in wide area
In net, wherein settable isolating device 47 between block chain network 41 and file storage network 42.In addition, the net of the present embodiment
In page tamper resistant systems, interchanger 45 and firewall 46 are additionally provided between block chain network 41 and file storage network 42;Extensively
The user of domain net can access to web page files by the user terminal 49 in wide area network, user terminal 49 and server in station 43 it
Between be also equipped with firewall 46.
The present embodiment organically combines web page distribution system and document storage system shown in Fig. 3, to the net of publication
The original document of page file is stored, and realizes the carrying out safety backup of original document.Monitoring node 43 is disposed in conjunction with block chain technology,
Enable monitoring node 43 that the realization of block chain technology is combined to carry out distorting monitoring to announced web page files, based on block chain technology
The characteristics of can not distorting, improves monitoring precision and real-time that whether webpage is tampered.
Referring to Fig. 9, Fig. 9 is the flow diagram of web page files storage method embodiment of the application based on block chain.
The web page files storage method of the present embodiment is applied to webpage tamper resistant systems shown in Fig. 8, as shown in figure 9, the present embodiment
Web page files storage method may include following steps:
In the step s 21, the file of block chain network submits node to send the web page files to be formed to file distribution node,
And the original document mark of web page files is calculated in the content based on web page files, and original document mark is stored in block chain
Network.
It is webpage content management control server that the file of block chain network, which submits node, and file distribution node is net
Page publisher server.User executed by the webpage content management control server in block chain network the editor of webpage, audit,
It the work such as signs and issues, forms the web page files of the page.In Homepage Publishing process, webpage content management control server is not born
It blames the web page files formed to issue outward, therefore, webpage content management control server is sent to Homepage Publishing server
The web page files of formation.
Further, the content of the webpage content management control server also web page files based on formation calculates in the present embodiment
File identification of the web page files when not issuing is obtained, this document is enabled to be identified as original document mark, original document mark is deposited
It is stored in block chain network.Specifically, the content based on the web page files that do not issue, which carries out Hash calculation, obtains the number of web page files
Word fingerprint identifies the digital finger-print as the original document for corresponding to web page files, digital finger-print is stored in block link network
Network.
In step S22, file distribution node receives the web page files that node is submitted from file, the webpage that will do not issued
File sends original document as its original document, to the storage management node of file storage network.
After Homepage Publishing server receives web page files, corresponding publication catalogue on the one hand is generated based on web page files,
And web page files and publication catalogue are sent to server in station, so that server in station can complete net based on the web page files
The external publication work of page file.On the other hand, Homepage Publishing server is using the web page files that do not issue as its original document,
The original document is sent to the storage management node of file storage network.
In one embodiment, Homepage Publishing server is sending web page files to server in station and storage management node
It before, can also be based on block chain network to the identity of both sides between webpage content management control server and Homepage Publishing server
Authenticated, when both sides determine other side by authentication after, Homepage Publishing server just execute to server in station with
The process of storage management node transmission web page files.
Further, storage management node can hold original document after the original document based on the web page files received
The corresponding storage operation of row.The storage operation that storage management node executes in the present embodiment can be deposited with file shown in fig. 4 to fig. 6
The storage operation recorded in method for storing is identical, and details are not described herein again.
In step S23, file distribution node receives the storage index from storage management node, by storage index storage
In block chain network.
Storage index is stored in by Homepage Publishing server after receiving the storage index of storage management node transmission
In block chain network, that is, complete the Stored Procedure to the original document of web page files.
The web page files storage method embodiment of the present embodiment is by above-mentioned Fig. 4 to file memory method first shown in Fig. 7
Webpage tamper resistant systems of the embodiment to 3rd embodiment as shown in connection with fig. 8, realize and combine while carrying out Homepage Publishing
Block chain technology and distributed storage technology enable the safety in the form of multiple data blocks of the original document of web page files higher
Storage backup.
Further, referring to Fig. 10, Figure 10 is the stream of webpage integrity assurance one embodiment of the application based on block chain
Journey schematic diagram.The webpage integrity assurance of the present embodiment can be applied to webpage tamper resistant systems shown in Fig. 8, specifically, this reality
It is executed after the web page files storage method embodiment that the webpage integrity assurance for applying example can be shown in Fig. 9, for publication
Web page files carry out anti-tamper monitoring and recovery.As shown in Figure 10, the webpage integrity assurance of the present embodiment may include walking as follows
It is rapid:
In step S31, when the web page files that the file management nodes of block chain network determine that it is issued are tampered, to
The storage management node that file stores network sends the file acquisition instruction for corresponding to the original document of web page files.
After the storage of the publication and its original document of completing web page files, the server in station configured with monitoring modular is made
For the monitoring node of web page files, it is monitored to whether the web page files of publication are tampered.When monitoring node monitors webpage
When file is tampered, corresponding file access pattern instruction is sent to Homepage Publishing server, to report that web page files are tampered.Webpage
Publisher server receives the web page files that file access pattern instruction can determine that it is issued and is tampered.
Further, Homepage Publishing server sends corresponding file acquisition instruction to storage management node, so that storage tube
It manages node and obtains the multiple data blocks for corresponding to original document from file storage network.Specifically, Homepage Publishing server is rung
It answers file access pattern to instruct, obtains corresponding storage index from block chain network based on the file identification information of web page files.It deposits
Storage index has been directed toward the multiple data blocks for constituting original document.Homepage Publishing server can store network to file as a result,
Storage management node sends corresponding storage index and file acquisition instruction.In one embodiment, storage index and file obtain
Instruction fetch can be packaged into a packet and be sent, and also can be used as individual information command and sent.
It will be appreciated that respective site information is carried when web page files are issued by a certain server in station,
Even if the content of web page files is tampered, but its site information be it is relatively fixed constant, therefore, in the present embodiment by webpage text
The site information of part can be determined specifically as file identification information with enabling Homepage Publishing server be based on file identification information
It is which web page files is tampered, and then obtains the storage index of the original document of the web page files.
Storage management node can corresponding document acquisition instruction, according to storage index from multiple depositing in file storage network
The multiple data blocks for obtaining at node and corresponding to original document are stored up, and send the multiple data obtained to Homepage Publishing server
Block.
Server in station specifically includes following content to whether web page files are tampered to be monitored in the present embodiment:
Server in station is in real time or periodic obtain (can pass through crawler by the file content of the web page files of its publication
The web page contents acquiring technology such as technology, the present embodiment are not particularly limited), the net after publication is calculated based on this document content
The file publishing of page file identifies, and obtains from block chain network and correspond to original text of the identical web page files before publication
Part mark;Further, file publishing mark and original document mark are compared, judge whether the two is consistent.If the two one
It causes, then can determine that web page files are not tampered with, server in station then continues to be monitored web page files;If the two is inconsistent,
It then can determine that the web page files of publication may be tampered, server in station sends file access pattern to Homepage Publishing server and refers to
It enables.
In one embodiment, Homepage Publishing server can also be to after receiving the instruction of the file access pattern from server in station
Server in station sends corresponding prompt information, and then server in station is enabled to show that the prompt is believed on the page of web page files
Breath, so that prompt accesses the user of the web page files before completing web page files and restoring.In addition, Homepage Publishing server can also
The access path of web page files is blocked, so that preventing visit of the user to web page files before completing web page files and restoring
It asks.
In step s 32, file management nodes receive multiple data blocks from storage management node, and utilize multiple numbers
It recombinates to obtain original document according to block.
Homepage Publishing server can receive multiple data blocks from storage management node, and then using multiple data blocks
The original document for being recombinated and being backed up.It will be appreciated that the content of the original document restored at this time with issue before
The content of web page files is identical.In the present embodiment, recombination form and figure of the Homepage Publishing server to original document in step S32
The file management nodes of step S14 shown in 6 are identical to the recombination form of file to be stored, and for details, reference can be made to saying for step S14
Bright, details are not described herein again.
In step S33, file management nodes are based on original document and carry out Homepage Publishing again.
Homepage Publishing server restore web page files original document after, can based on the original document after recovery again into
Row Homepage Publishing can reach the purpose of instauration net page file since the file content for carrying out Homepage Publishing twice is identical.
The present embodiment organically combines block chain technology, distributed storage technology and Homepage Publishing technology, in turn
Realization monitors web page files in real time, and whether its content of accurate judgement is tampered, and quickly carries out the purpose of webpage recovery;It enables
The process of Homepage Publishing has mark that can follow, and improves the safety of Homepage Publishing, and it is accurate to promote the monitoring whether web page files are tampered
Property, and then enhance the working performance of entire Homepage Publishing and tamper resistant systems.
Further, Figure 11 is please referred to, Figure 11 is the structural schematic diagram of one embodiment of the application electronic equipment.Such as Figure 11 institute
Show, the electronic equipment 110 of the present embodiment can submit node 311a/411a, file distribution for Fig. 3 or file shown in fig. 8
Node 311b/411b, user node 313 or accounting nodes 312, and or monitoring node shown in fig. 8 43.Electronic equipment 110
It can be specially to submit node 311a/411a, file distribution node 311b/411b, user node 313, accounting nodes 312 with file
Or the terminals such as the corresponding computer of monitoring node 43, mobile phone, tablet computer, server.The electronic equipment 110 of the present embodiment is file
When submitting node 311a/411a, file distribution node 311b/411b, user node 313 or accounting nodes 312, wherein being deployed with
Block platform chain architecture as shown in Figure 1 can be added in block chain network as the node in block chain network.
Further, the electronic equipment 110 of the present embodiment may include the processor 1101 by being located inside electronic equipment 110
With memory 1102, processor 1101 is connected with memory 1102 by bus.The memory 1102 is stored with processor 1101
Executable computer instruction, processor 1101 execute the computer instruction to realize above-mentioned Fig. 4 to shown in Fig. 7 based on block
Any one or more embodiments in the file memory method first embodiment and 3rd embodiment of chain and shown in Fig. 9
Web page files storage method embodiment based on block chain, and or the webpage integrity assurance reality shown in Fig. 10 based on block chain
Apply example.
Further, Figure 12 is please referred to, Figure 12 is the structural schematic diagram of one embodiment of the application storage medium.Such as Figure 12 institute
Show, the computer instruction 1201 that can be performed is stored in the storage medium 120 in the present embodiment, the computer instruction 1201
It is performed and can be realized above-mentioned Fig. 4 to the file memory method first embodiment and third implementation shown in Fig. 7 based on block chain
Any one or more embodiments and the web page files storage method embodiment shown in Fig. 9 based on block chain in example, again
Or the webpage integrity assurance embodiment shown in Fig. 10 based on block chain.
In the present embodiment, which can be the memory module of intelligent terminal, flash memory device (such as movement
Hard disk, USB flash disk etc.), network cloud disk, application memory platform or server etc. have the medium of store function.In addition, the storage medium
120 can also be the storage device or accounting nodes 312, text of 313 counterpart terminal of above-mentioned Fig. 3 or user node shown in fig. 8
The corresponding server of part management node 311/411;Fig. 3 or file shown in fig. 8 storage network 32 in any one deposit
Store up node;It again or is memory 1102 shown in Figure 11.
Above scheme can realize it is following the utility model has the advantages that
(1) it establishes complete web page operation authentication, page monitoring, real-time recovery, block the whole processes such as early warning integrated
Safe web page protection system enhances safety from webpage source of generation.
(2) each block chain node is owned by the Hash backup of the original web page of identical web page files, even if individual sections
Data corruption event occurs for point, will not influence whole system webpage and restore and update.
(3) webpage it is any it is small distort the great variety that can all lead to its corresponding cryptographic Hash, and by block chain peer-to-peer network
Network real-time monitoring comes out, automatic execute issues blocking and alarm, and then guarantee that the web page contents issued every time are genuine and believable.
(4) cryptographic Hash of each of webpage more new version can be stored and be associated with corresponding web page management operator, into
One step operates web page editing and carries out security protection.
(5) original web page of web page files, which is once generated and issued, deposits card in it on block chain, then can not distort and is each
Holding the operations such as update, additions and deletions, publication all can have mark that can follow.
(6) extensive using the realization second grade of intelligent contract, automatic webpage in real time when detecting that webpage is doubtful and being maliciously tampered
It is multiple.
(7) digital finger-print of the original web page of card web page files is deposited using block chain, and utilizes IPFS distributed text
Part system stores web page contents;Both the high-grade demand of safe web page protection had been met, it is ensured that webpage can not be distorted, another fixed
Degree reduces storage resource and broadband consumes, and whole system safety, performance, response speed etc. is finally made to reach satisfactory
Level.
In above description, for illustration and not for limitation, propose such as specific system structure, interface, technology it
The detail of class, so as to provide a thorough understanding of the present application.However, it will be clear to one skilled in the art that there is no these specific
The application also may be implemented in the other embodiment of details.In other situations, omit to well-known device, circuit with
And the detailed description of method, so as not to obscure the description of the present application with unnecessary details.
Claims (10)
1. a kind of file memory method based on block chain characterized by comprising
The file management nodes of block chain network send file to be stored to the storage management node of file storage network, so that institute
It states storage management node and the file to be stored is divided into multiple data blocks, the multiple data block is stored respectively in described
File stores in multiple memory nodes of network, and generates storage rope of the file to be stored in file storage network
Draw;
The file management nodes receive the storage index from the storage management node, and the storage is indexed and is stored
In the block chain network.
2. file memory method according to claim 1, which is characterized in that
The file management nodes include that file submits node and file distribution node;
The file management nodes of the block chain network send file to be stored, packet to the storage management node of file storage network
It includes:
The file of block chain network submits node to carry out that corresponding digital finger-print is calculated to file to be stored;It will be described
Digital finger-print is stored in the block chain network, and sends the file to be stored to the file distribution node;
The file distribution node obtains the digital finger-print, judges whether the file submits node using the digital finger-print
Authentication can be passed through;If so, to file storage network storage management node transmit and receive described in text to be stored
Part.
3. file memory method according to claim 2, which is characterized in that
The file submits node that the digital finger-print is stored in the block chain network, comprising:
The file submits node to encrypt the digital finger-print using own private key, and the encrypted digital finger-print is stored in
In the block chain network;
The file distribution node obtains the digital finger-print, judges whether the file submits node using the digital finger-print
Authentication can be passed through, comprising:
The file distribution node obtains the encrypted digital finger-print and the file submits the public key of node, judges to utilize
The file submits whether the public key of node can decrypt the encrypted digital finger-print;If so, determining that the file mentions
Node is handed over to pass through authentication.
4. file memory method according to claim 1, which is characterized in that
The file memory method further include:
When the file management nodes determine that the file to be stored is updated, updated file to be stored, Xiang Suoshu are obtained
Storage management node sends the updated file to be stored, so that the storage management node will be described updated wait deposit
It is stored in the file storage network in storage file wait store update file, and updates the storage index, after obtaining update
Storage index;
The file management nodes receive the updated storage index from the storage management node, by the update
Storage index afterwards is stored in the block chain network.
5. file memory method according to claim 1, which is characterized in that
The file memory method further include:
It is extensive based on the file when file management nodes receive file access pattern corresponding with file to be stored instruction
The storage management node to file storage network is instructed to send the storage index again, so that the storage management node base
It is extracted respectively and the file to be stored pair from multiple memory nodes of file storage network in the storage index
The multiple data blocks answered;
The file management nodes receive the multiple data block from the storage management node, utilize the multiple data
Block recombinates to obtain the file to be stored.
6. a kind of file memory method based on block chain characterized by comprising
The storage management node that file stores network receives the file to be stored of the file management nodes from block chain network;
The file to be stored received is divided into multiple data blocks by the storage management node, and by the multiple data
Block is stored respectively in multiple memory nodes of the file storage network;
The storage management node is based on the multiple data block and generates the file to be stored in file storage network
Storage index, and by the storage index feed back to the file management nodes so that the file management nodes will described in
Storage index is stored in the block chain network.
7. file memory method according to claim 6, which is characterized in that
The storage management node is based on the multiple data block and generates the file to be stored in file storage network
Storage index, comprising:
The storage management node carries out the multiple data block corresponding multiple data block cryptographic Hash are calculated respectively;
File cryptographic Hash corresponding with the file to be stored is calculated based on the multiple data block cryptographic Hash;
The file to be stored is constituted using the multiple data block cryptographic Hash and the file cryptographic Hash to store in the file
Storage index in network.
8. file memory method according to claim 7, which is characterized in that
It is described that file cryptographic Hash corresponding with the file to be stored is calculated based on the multiple data block cryptographic Hash, it wraps
It includes:
The multiple data block cryptographic Hash is arranged by the stripe sequence of corresponding the multiple data block, constitutes cryptographic Hash
Array;
Hash calculation is carried out to the cryptographic Hash array and obtains final hash value, enabling the final hash value is with described wait store
The corresponding file cryptographic Hash of file.
9. a kind of electronic equipment, which is characterized in that including memory interconnected and processor, wherein
The memory is used to store the computer instruction that the processor executes;
The processor is used to run the computer instruction of the memory storage, to realize that claim 1-5 is any one
The corresponding steps or claim 6-8 that the file management nodes of the block chain network in file memory method described in execute
The corresponding steps that the storage management node of file storage network in file memory method described in any one executes.
10. a kind of document storage system based on block chain, which is characterized in that including the block chain network being in communication with each other and file
Store network, wherein include at least file management nodes in the block chain network, include at least in the file storage network
Storage management node;
The file management nodes require the corresponding step in file memory method described in 1-5 any one for perform claim
Suddenly, the storage management node requires the correspondence step in file memory method described in 6-8 any one for perform claim.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910238716.8A CN110032545A (en) | 2019-03-27 | 2019-03-27 | File memory method, system and electronic equipment based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910238716.8A CN110032545A (en) | 2019-03-27 | 2019-03-27 | File memory method, system and electronic equipment based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110032545A true CN110032545A (en) | 2019-07-19 |
Family
ID=67236738
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910238716.8A Pending CN110032545A (en) | 2019-03-27 | 2019-03-27 | File memory method, system and electronic equipment based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110032545A (en) |
Cited By (30)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535833A (en) * | 2019-08-07 | 2019-12-03 | 中国石油大学(北京) | A kind of data sharing control method based on block chain |
CN110647503A (en) * | 2019-10-09 | 2020-01-03 | 重庆特斯联智慧科技股份有限公司 | Distributed storage method and device |
CN110781155A (en) * | 2019-10-18 | 2020-02-11 | 赛尔网络有限公司 | Data storage reading method, system, equipment and medium based on IPFS |
CN110990486A (en) * | 2019-11-29 | 2020-04-10 | 北京有名知行科技有限公司 | Block link evidence issuing and storing method and device based on network data interaction |
CN111061698A (en) * | 2019-12-30 | 2020-04-24 | 语联网(武汉)信息技术有限公司 | Storage method and device of Ether house contract data |
CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | File storage method, terminal and storage medium |
CN111125023A (en) * | 2019-11-15 | 2020-05-08 | 北京十分科技有限公司 | File auditing, auditing control and publishing method and corresponding device |
CN111209262A (en) * | 2020-01-10 | 2020-05-29 | 浪潮天元通信信息系统有限公司 | Large-scale distributed safe storage system based on block chain |
CN111310238A (en) * | 2020-02-12 | 2020-06-19 | 腾讯科技(深圳)有限公司 | File management method and device |
CN111414434A (en) * | 2020-05-20 | 2020-07-14 | 毕红伟 | Block chain-based data transaction management network, transaction device and storage medium |
CN111414648A (en) * | 2020-03-04 | 2020-07-14 | 传神语联网网络科技股份有限公司 | Corpus authentication method and apparatus |
CN111541753A (en) * | 2020-04-16 | 2020-08-14 | 深圳市网心科技有限公司 | Distributed storage system, method, computer device and medium for block chain data |
CN111600720A (en) * | 2020-05-20 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and readable storage medium |
CN111681723A (en) * | 2020-04-27 | 2020-09-18 | 山东浪潮通软信息科技有限公司 | Health information management method, equipment and medium based on block chain |
CN111882260A (en) * | 2020-06-15 | 2020-11-03 | 合肥维天运通信息科技股份有限公司 | Logistics data disclosure method and system based on block chain and IPFS |
CN111950025A (en) * | 2020-08-21 | 2020-11-17 | 安徽高山科技有限公司 | File distributed storage method based on block chain intelligent contract |
CN112084164A (en) * | 2020-09-16 | 2020-12-15 | 厦门市美亚柏科信息安全研究所有限公司 | Data evidence storing method and system based on block chain and interplanetary file system |
CN112347040A (en) * | 2020-09-30 | 2021-02-09 | 宇龙计算机通信科技(深圳)有限公司 | File management method, device, storage medium and terminal |
CN112581305A (en) * | 2019-09-29 | 2021-03-30 | 国网重庆市电力公司 | System and method for checking and accepting section of transformer substation maintenance site based on block chain |
CN112667746A (en) * | 2020-12-30 | 2021-04-16 | 浙江甲骨文超级码科技股份有限公司 | Block chain based data storage method and equipment, electronic device and storage equipment |
CN112667592A (en) * | 2020-12-24 | 2021-04-16 | 平安科技(深圳)有限公司 | Data storage method and device, computer equipment and storage medium |
CN112800455A (en) * | 2019-11-13 | 2021-05-14 | 源源通科技(青岛)有限公司 | Distributed data storage system, set-top box equipment and data storage method |
CN113094334A (en) * | 2021-03-22 | 2021-07-09 | 四块科技(天津)有限公司 | Digital service method, device, equipment and storage medium based on distributed storage |
CN113254767A (en) * | 2021-05-24 | 2021-08-13 | 深圳和锐网络科技有限公司 | Big data searching method and device, computer equipment and storage medium |
CN113282562A (en) * | 2021-05-07 | 2021-08-20 | 范佳媛 | File management method and system based on private chain |
WO2022028484A1 (en) * | 2020-08-04 | 2022-02-10 | 中国人民银行数字货币研究所 | File sharing method, apparatus, and system |
CN114254150A (en) * | 2022-03-01 | 2022-03-29 | 天津安锐捷技术有限公司 | Distributed video storage system and storage method based on block chain |
CN114374706A (en) * | 2022-01-11 | 2022-04-19 | 北京易智时代数字科技有限公司 | Content security management method based on distributed architecture |
CN114599036A (en) * | 2022-05-09 | 2022-06-07 | 北京乐开科技有限责任公司 | Multi-user-participated NAS file security operation method and system |
CN114880692A (en) * | 2022-07-05 | 2022-08-09 | 浙江数秦科技有限公司 | Loan contract evidence-saving method based on block chain |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108062202A (en) * | 2017-12-15 | 2018-05-22 | 中链科技有限公司 | A kind of file block storage method and system |
US20180285479A1 (en) * | 2017-04-03 | 2018-10-04 | Superna Inc. | Scalable audit analytics |
CN109376122A (en) * | 2018-09-25 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of file management method, system and block chain node device and storage medium |
CN109409122A (en) * | 2018-09-13 | 2019-03-01 | 远光软件股份有限公司 | File memory method and its electronic equipment, storage medium |
CN109491968A (en) * | 2018-11-13 | 2019-03-19 | 浙江鲸腾网络科技有限公司 | A kind of document handling method, device, equipment and computer readable storage medium |
CN109491965A (en) * | 2018-09-13 | 2019-03-19 | 远光软件股份有限公司 | The storage method and its network and electronic equipment of purchase sale of electricity contract |
-
2019
- 2019-03-27 CN CN201910238716.8A patent/CN110032545A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180285479A1 (en) * | 2017-04-03 | 2018-10-04 | Superna Inc. | Scalable audit analytics |
CN108062202A (en) * | 2017-12-15 | 2018-05-22 | 中链科技有限公司 | A kind of file block storage method and system |
CN109409122A (en) * | 2018-09-13 | 2019-03-01 | 远光软件股份有限公司 | File memory method and its electronic equipment, storage medium |
CN109491965A (en) * | 2018-09-13 | 2019-03-19 | 远光软件股份有限公司 | The storage method and its network and electronic equipment of purchase sale of electricity contract |
CN109376122A (en) * | 2018-09-25 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of file management method, system and block chain node device and storage medium |
CN109491968A (en) * | 2018-11-13 | 2019-03-19 | 浙江鲸腾网络科技有限公司 | A kind of document handling method, device, equipment and computer readable storage medium |
Non-Patent Citations (2)
Title |
---|
李小燕: "网络可信身份认证技术演变史及发展趋势研究", 《网络空间安全》, vol. 09, no. 11 * |
苏宣瑞 等: "一种基于区块链的身份识别技术", 《中兴通讯技术》 * |
Cited By (44)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110535833A (en) * | 2019-08-07 | 2019-12-03 | 中国石油大学(北京) | A kind of data sharing control method based on block chain |
CN110535833B (en) * | 2019-08-07 | 2020-06-09 | 中国石油大学(北京) | Data sharing control method based on block chain |
CN112581305A (en) * | 2019-09-29 | 2021-03-30 | 国网重庆市电力公司 | System and method for checking and accepting section of transformer substation maintenance site based on block chain |
CN110647503A (en) * | 2019-10-09 | 2020-01-03 | 重庆特斯联智慧科技股份有限公司 | Distributed storage method and device |
CN110781155A (en) * | 2019-10-18 | 2020-02-11 | 赛尔网络有限公司 | Data storage reading method, system, equipment and medium based on IPFS |
CN110781155B (en) * | 2019-10-18 | 2022-06-24 | 赛尔网络有限公司 | Data storage reading method, system, equipment and medium based on IPFS |
CN111104386A (en) * | 2019-11-04 | 2020-05-05 | 北京海益同展信息科技有限公司 | File storage method, terminal and storage medium |
CN111104386B (en) * | 2019-11-04 | 2023-09-01 | 京东科技信息技术有限公司 | File storage method, terminal and storage medium |
CN112800455A (en) * | 2019-11-13 | 2021-05-14 | 源源通科技(青岛)有限公司 | Distributed data storage system, set-top box equipment and data storage method |
CN111125023A (en) * | 2019-11-15 | 2020-05-08 | 北京十分科技有限公司 | File auditing, auditing control and publishing method and corresponding device |
CN110990486A (en) * | 2019-11-29 | 2020-04-10 | 北京有名知行科技有限公司 | Block link evidence issuing and storing method and device based on network data interaction |
CN111061698A (en) * | 2019-12-30 | 2020-04-24 | 语联网(武汉)信息技术有限公司 | Storage method and device of Ether house contract data |
CN111061698B (en) * | 2019-12-30 | 2023-09-05 | 语联网(武汉)信息技术有限公司 | Method and device for storing Ethernet contract data |
CN111209262B (en) * | 2020-01-10 | 2023-06-16 | 浪潮通信信息系统有限公司 | Large-scale distributed secure storage system based on block chain |
CN111209262A (en) * | 2020-01-10 | 2020-05-29 | 浪潮天元通信信息系统有限公司 | Large-scale distributed safe storage system based on block chain |
CN111310238B (en) * | 2020-02-12 | 2024-05-14 | 腾讯科技(深圳)有限公司 | File management method and device |
CN111310238A (en) * | 2020-02-12 | 2020-06-19 | 腾讯科技(深圳)有限公司 | File management method and device |
CN111414648A (en) * | 2020-03-04 | 2020-07-14 | 传神语联网网络科技股份有限公司 | Corpus authentication method and apparatus |
CN111414648B (en) * | 2020-03-04 | 2023-05-12 | 传神语联网网络科技股份有限公司 | Corpus authentication method and device |
CN111541753A (en) * | 2020-04-16 | 2020-08-14 | 深圳市网心科技有限公司 | Distributed storage system, method, computer device and medium for block chain data |
CN111541753B (en) * | 2020-04-16 | 2024-02-27 | 深圳市迅雷网络技术有限公司 | Distributed storage system, method, computer device and medium for block chain data |
CN111681723A (en) * | 2020-04-27 | 2020-09-18 | 山东浪潮通软信息科技有限公司 | Health information management method, equipment and medium based on block chain |
CN111600720A (en) * | 2020-05-20 | 2020-08-28 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and readable storage medium |
CN111414434A (en) * | 2020-05-20 | 2020-07-14 | 毕红伟 | Block chain-based data transaction management network, transaction device and storage medium |
CN111600720B (en) * | 2020-05-20 | 2021-09-28 | 腾讯科技(深圳)有限公司 | Data processing method, device and equipment based on block chain and readable storage medium |
CN111882260A (en) * | 2020-06-15 | 2020-11-03 | 合肥维天运通信息科技股份有限公司 | Logistics data disclosure method and system based on block chain and IPFS |
US12086107B2 (en) | 2020-08-04 | 2024-09-10 | Digital Currency Institute, The People's Bank Of China | File sharing method, apparatus, and system |
WO2022028484A1 (en) * | 2020-08-04 | 2022-02-10 | 中国人民银行数字货币研究所 | File sharing method, apparatus, and system |
CN111950025A (en) * | 2020-08-21 | 2020-11-17 | 安徽高山科技有限公司 | File distributed storage method based on block chain intelligent contract |
CN112084164A (en) * | 2020-09-16 | 2020-12-15 | 厦门市美亚柏科信息安全研究所有限公司 | Data evidence storing method and system based on block chain and interplanetary file system |
CN112347040A (en) * | 2020-09-30 | 2021-02-09 | 宇龙计算机通信科技(深圳)有限公司 | File management method, device, storage medium and terminal |
CN112667592B (en) * | 2020-12-24 | 2024-05-07 | 平安科技(深圳)有限公司 | Data storage method, device, computer equipment and storage medium |
CN112667592A (en) * | 2020-12-24 | 2021-04-16 | 平安科技(深圳)有限公司 | Data storage method and device, computer equipment and storage medium |
CN112667746A (en) * | 2020-12-30 | 2021-04-16 | 浙江甲骨文超级码科技股份有限公司 | Block chain based data storage method and equipment, electronic device and storage equipment |
CN113094334A (en) * | 2021-03-22 | 2021-07-09 | 四块科技(天津)有限公司 | Digital service method, device, equipment and storage medium based on distributed storage |
CN113282562A (en) * | 2021-05-07 | 2021-08-20 | 范佳媛 | File management method and system based on private chain |
CN113282562B (en) * | 2021-05-07 | 2023-12-26 | 范佳媛 | File management method and system based on private chain |
CN113254767A (en) * | 2021-05-24 | 2021-08-13 | 深圳和锐网络科技有限公司 | Big data searching method and device, computer equipment and storage medium |
CN114374706A (en) * | 2022-01-11 | 2022-04-19 | 北京易智时代数字科技有限公司 | Content security management method based on distributed architecture |
CN114374706B (en) * | 2022-01-11 | 2024-05-28 | 北京易智时代数字科技有限公司 | Content security management method based on distributed architecture |
CN114254150A (en) * | 2022-03-01 | 2022-03-29 | 天津安锐捷技术有限公司 | Distributed video storage system and storage method based on block chain |
CN114599036B (en) * | 2022-05-09 | 2022-08-05 | 北京乐开科技有限责任公司 | Multi-user-participated NAS file security operation method and system |
CN114599036A (en) * | 2022-05-09 | 2022-06-07 | 北京乐开科技有限责任公司 | Multi-user-participated NAS file security operation method and system |
CN114880692A (en) * | 2022-07-05 | 2022-08-09 | 浙江数秦科技有限公司 | Loan contract evidence-saving method based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110032545A (en) | File memory method, system and electronic equipment based on block chain | |
CN109450910B (en) | Data sharing method based on block chain, data sharing network and electronic equipment | |
CN109409122B (en) | File storage method, electronic device and storage medium | |
CN109525671B (en) | Block chain-based data storage method, electronic device and storage medium | |
Liang et al. | Provchain: A blockchain-based data provenance architecture in cloud environment with enhanced privacy and availability | |
EP3070630B1 (en) | Data system and method | |
CN109951490A (en) | Webpage integrity assurance, system and electronic equipment based on block chain | |
CN109040271B (en) | Network equipment integrity protection method under distributed environment | |
CN115210741B (en) | Partially ordered blockchain | |
US20190036895A1 (en) | Data distribution over nodal elements | |
CN102170440B (en) | Method suitable for safely migrating data between storage clouds | |
CN111881206B (en) | Multi-layer image coding for data blocks | |
US12105823B2 (en) | Protecting sensitive data | |
CN111444277B (en) | Anti-terrorism information cooperative sharing platform and method based on blockchain technology | |
CN109472164A (en) | The verification method and its network and electronic equipment of contract dataset | |
CN114128214B (en) | Security layer for configuring blockchains | |
CN112749969B (en) | Data processing method and device, computer equipment and storage medium | |
JP2023504492A (en) | Efficient threshold storage of data objects | |
CN109491965A (en) | The storage method and its network and electronic equipment of purchase sale of electricity contract | |
CN112241919A (en) | Multi-domain blockchain network with data flow control | |
AU2019320957B2 (en) | Managing trust points in ledger systems | |
CN116941265A (en) | Blockchain network identity management using SSI | |
Ulybyshev et al. | (WIP) blockhub: Blockchain-based software development system for untrusted environments | |
Li et al. | Deduplication with blockchain for secure cloud storage | |
CN113947394A (en) | Block chain-based fair payment method for deletable duplicate data in cloud storage |
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: 20190719 |
|
RJ01 | Rejection of invention patent application after publication |