CN110874347A - Trusted file storage system based on micro-service architecture - Google Patents

Trusted file storage system based on micro-service architecture Download PDF

Info

Publication number
CN110874347A
CN110874347A CN201911080411.5A CN201911080411A CN110874347A CN 110874347 A CN110874347 A CN 110874347A CN 201911080411 A CN201911080411 A CN 201911080411A CN 110874347 A CN110874347 A CN 110874347A
Authority
CN
China
Prior art keywords
file
hash
description information
service unit
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911080411.5A
Other languages
Chinese (zh)
Inventor
陈敏健
李伟
邱炜伟
尹可挺
李启雷
梁秀波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qulian Technology Co Ltd
Original Assignee
Hangzhou Qulian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qulian Technology Co Ltd filed Critical Hangzhou Qulian Technology Co Ltd
Priority to CN201911080411.5A priority Critical patent/CN110874347A/en
Publication of CN110874347A publication Critical patent/CN110874347A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a trusted file storage system based on a micro-service architecture, wherein a file storage service unit is used for providing a file storage function, a unique hash can be generated according to file contents after the file is successfully stored, a meta-information storage service unit is used for providing a meta-information storage function and storing the hash and other description information of the file, and the trusted file storage system uploads the hash and other description information of the file to a block chain for ensuring the credibility of file storage. The credible file storage system combines the advantages of micro services and a block chain, the micro services comprise file storage services and meta information storage services, a file storage service unit can store large files and ensure that file hash cannot be repeated, the meta information storage services can store file hash and description information, the system expansion capability is improved, the block chain ensures that the file hash and the description information cannot be tampered, and the problem that file storage is incredible is solved.

Description

Trusted file storage system based on micro-service architecture
Technical Field
The invention relates to the technical field of micro-services, block chains and file storage, in particular to a trusted file storage system based on a micro-service architecture.
Background
Trusted file storage is a novel architecture in the current internet system, and the traditional file storage system cannot guarantee the file storage to be trusted.
Conventional file storage systems store files on servers of an enterprise, and the files may be modified without being discovered, and the credibility of the files cannot be guaranteed. Files can be stored in the block chain by using the block chain, so that the credibility of the files can be ensured, but the block size of the block chain is limited, and the low performance of the block chain can be caused by storing large files.
In order to solve the problem that the performance is low due to the fact that a blockchain stores large files, the blockchain does not store the large files, but stores the large files under the chain and only stores unique file identification and file description information. By adopting the micro-service architecture, the functions required by the system can be separated, each service is concentrated on the functions required to be provided, the development difficulty is reduced, the development efficiency is improved, the system stability is enhanced, and reasonable distribution is performed according to the difference of the resources required by each service.
Based on the micro-service architecture, the block chain and the file storage technology, the expansibility of the micro-service architecture and the credibility of the block chain technology can be exerted, and an extensible credible file storage system is created. Data credibility cannot be guaranteed only by using the microservice architecture, and efficient storage cannot be expanded only by using the block chain.
Disclosure of Invention
The invention aims to provide a trusted file storage system based on a micro-service architecture aiming at the defects of a micro-service architecture storage system and a block chain technology, the method combines the advantages of the micro-service architecture and the trusted storage, and simultaneously can improve the service capability by adding service nodes, avoid service faults or insufficient service capability and realize trusted, efficient and stable storage, and the specific scheme is as follows:
a credible file storage system based on micro service architecture comprises a file storage service unit, a meta-information storage service unit and a block chain use service unit;
the file storage service unit is used for storing files and generating file hash according to the file contents;
the meta information storage service unit is used for storing file hash and file description information; after the file hash and the file description information are successfully stored, returning the file hash and the file description information to a user, and signing the file hash and the file description information by the user; the description information of the file comprises a file name and a file size.
And the block chain use service unit is used for uploading the file hash and the description information of the file stored in the meta-information storage service unit to the block chain.
Further, in the block chain usage service unit, uploading the file hash and the description information of the file to the block chain specifically includes the following steps:
(1) the blockchain using service unit receives the file hash, the file description information and the signature of the user on the file hash and the file description information which need to be recorded in the blockchain;
(2) the block chain uses the service unit to check whether the signature belongs to the correct user; if not, the upload is terminated.
(3) The block chain uses the service unit to access the intelligent contract on the block chain, and uploads the file hash, the description information of the file and the user address to the block chain;
(4) and the block chain records the file hash, the file description information and the user address uploaded by the user.
Further, in the step (2), the blockchain uses the service unit to verify the signature by using an SM2 elliptic curve public key cryptography algorithm.
The invention has the following beneficial effects:
the trusted file storage system based on the micro-service architecture fully combines the credibility of the block chain, the expansibility of the micro-service architecture and the high efficiency of the traditional storage system, and improves the storage efficiency of trusted files. The file is stored on a storage system and generates a unique hash. Due to the adoption of the micro-service architecture, the expansion can be conveniently carried out, and the system performance is improved. Finally, the system stores the unique hash of the corresponding file and the file description information on the blockchain. The system greatly improves the file storage efficiency while meeting the credibility, and provides a solid foundation for credibly storing a large number of files.
Drawings
FIG. 1 is an architectural diagram of a trusted file storage system based on a microservice architecture;
fig. 2 is a storage file flow diagram of a trusted file storage system based on a microservice architecture.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings and preferred embodiments, and the objects and effects of the present invention will become more apparent, and the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, the trusted file storage system based on microservice architecture according to the present invention is schematically illustrated in architecture, and the trusted file storage system mainly involves several roles of a file storage service unit, a meta-information storage service unit, and a block chain use service unit.
The file storage service unit is used for storing files and generating file hash according to the file contents;
the meta information storage service unit is used for storing file hash and file description information; after the file hash and the file description information are successfully stored, returning the file hash and the file description information to a user, and signing the file hash and the file description information by the user; the description information of the file comprises a file name and a file size.
And the block chain use service unit is used for uploading the file hash and the description information of the file stored in the meta-information storage service unit to the block chain. As a backup, it is guaranteed that the file information cannot be tampered with.
When a certain file stored in the trusted file storage system is called, the file storage service unit regenerates the file hash for the file, and if the regenerated new file hash is inconsistent with the original file hash, the file is indicated to be tampered and is not trusted. By means of the system, the files that can be called are guaranteed to be authentic.
In addition, as shown in fig. 1, the trusted file storage system is based on a micro-service architecture, and can also improve service capability by adding a service node, thereby avoiding service failure or insufficient service capability. The trusted file storage system based on the micro-service architecture fully combines the credibility of the block chain, the expansibility of the micro-service architecture and the high efficiency of the traditional storage system, and improves the storage efficiency of trusted files.
Preferably, as shown in fig. 2, in the block chain using service, uploading the file hash and the description information of the file to the block chain specifically includes the following steps:
(1) the blockchain using service unit receives the file hash, the file description information and the signature of the user on the file hash and the file description information which need to be recorded in the blockchain;
(2) the block chain uses the service unit to check whether the signature belongs to the correct user; if not, the upload is terminated. Prevent someone from maliciously attacking.
(3) The block chain uses the service unit to access the intelligent contract on the block chain, and uploads the file hash, the description information of the file and the user address to the block chain;
(4) and the block chain records the file hash, the file description information and the user address uploaded by the user.
Preferably, in the step (2), the blockchain uses the service unit to verify the signature by using an SM2 elliptic curve public key cryptography algorithm.
It will be understood by those skilled in the art that the foregoing is only a preferred embodiment of the present invention, and is not intended to limit the invention, and although the invention has been described in detail with reference to the foregoing examples, it will be apparent to those skilled in the art that various changes in the form and details of the embodiments may be made and equivalents may be substituted for elements thereof. All modifications, equivalents and the like which come within the spirit and principle of the invention are intended to be included within the scope of the invention.

Claims (3)

1. A credible file storage system based on micro service architecture is characterized in that the system comprises a file storage service unit, a meta information storage service unit and a block chain use service unit;
the file storage service unit is used for storing files and generating file hash according to the file contents;
the meta information storage service unit is used for storing file hash and file description information; after the file hash and the file description information are successfully stored, returning the file hash and the file description information to a user, and signing the file hash and the file description information by the user; the description information of the file comprises a file name and a file size.
And the block chain use service unit is used for uploading the file hash and the description information of the file stored in the meta-information storage service unit to the block chain.
2. The trusted file storage system based on the microservice architecture as claimed in claim 1, wherein the step of uploading the file hash and the description information of the file to the blockchain in the blockchain using service specifically comprises the steps of:
(1) the blockchain using service unit receives the file hash, the file description information and the signature of the user on the file hash and the file description information which need to be recorded in the blockchain;
(2) the block chain uses the service unit to check whether the signature belongs to the correct user; if not, the upload is terminated.
(3) The block chain uses the service unit to access the intelligent contract on the block chain, and uploads the file hash, the description information of the file and the user address to the block chain;
(4) and the block chain records the file hash, the file description information and the user address uploaded by the user.
3. The trusted file storage system based on microservice architecture of claim 2, wherein in step (2), the blockchain uses the service unit to verify the signature by using SM2 elliptic curve public key cryptography.
CN201911080411.5A 2019-11-07 2019-11-07 Trusted file storage system based on micro-service architecture Pending CN110874347A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911080411.5A CN110874347A (en) 2019-11-07 2019-11-07 Trusted file storage system based on micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911080411.5A CN110874347A (en) 2019-11-07 2019-11-07 Trusted file storage system based on micro-service architecture

Publications (1)

Publication Number Publication Date
CN110874347A true CN110874347A (en) 2020-03-10

Family

ID=69717134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911080411.5A Pending CN110874347A (en) 2019-11-07 2019-11-07 Trusted file storage system based on micro-service architecture

Country Status (1)

Country Link
CN (1) CN110874347A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222303A (en) * 2017-05-11 2017-09-29 暨南大学 Digital publishing rights traceability system building method based on block chain and cloud platform
CN109243548A (en) * 2018-08-22 2019-01-18 广东工业大学 A kind of medical data platform based on block chain technology
CN109617903A (en) * 2018-12-29 2019-04-12 杭州趣链科技有限公司 A kind of trusted file storage system and method based on IPFS and block chain
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222303A (en) * 2017-05-11 2017-09-29 暨南大学 Digital publishing rights traceability system building method based on block chain and cloud platform
CN109243548A (en) * 2018-08-22 2019-01-18 广东工业大学 A kind of medical data platform based on block chain technology
CN109617903A (en) * 2018-12-29 2019-04-12 杭州趣链科技有限公司 A kind of trusted file storage system and method based on IPFS and block chain
CN110138733A (en) * 2019-04-03 2019-08-16 华南理工大学 Object storage system based on block chain is credible to deposit card and access right control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)梅兰妮·斯万: "《区块链新经济蓝图及导读》", 新星出版社, pages: 73 *

Similar Documents

Publication Publication Date Title
CN107193490B (en) Distributed data storage system and method based on block chain
CN110061838B (en) Decentralized storage system for DNS resource records and implementation method thereof
CN109617903A (en) A kind of trusted file storage system and method based on IPFS and block chain
CN103944981B (en) Cloud storage system and implement method based on erasure code technological improvement
CN109194646B (en) Safety authentication data access method based on block chain
KR102412024B1 (en) Indexing and recovery of encoded blockchain data
KR102396737B1 (en) Prioritize storage of shared blockchain data
KR102363271B1 (en) Data security of shared blockchain data storage based on error correction codes
CN111095218B (en) Method, system and device for storing shared block chain data based on error correction coding
US20210303633A1 (en) Shard hashing
WO2011033174A1 (en) Method and a storage server for data redundancy
CN111651525A (en) Block chain data storage method and device
CN114915404A (en) Block chain data storage extension model construction method for Internet of things
CN110928690B (en) Method for synchronizing and verifying block chain data in 5G network environment
CN111913978A (en) Block deleting method, device and system
CN113536956B (en) Method for detecting multimedia data tampering
CN108810112A (en) A kind of node synchronization method and device of market surpervision block catenary system
CN104219198A (en) Tamper-proofing method of WebApp
CN103559279A (en) Cloud storage acceleration method and device
CN111917761B (en) Data security protection method based on block chain cloud computing
CN113986143A (en) Block chain log storage-oriented high-reliability low-overhead data storage method
CN113127562A (en) Low-redundancy block chain data storage and retrieval method and system
CN115859362A (en) Data storage system, method, device and medium based on block chain side chain
CN106027638A (en) Hadoop data distribution method based on hybrid coding
AU2019321746A1 (en) Dynamic blockchain data storage based on error correction code

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