WO2021098277A1 - 区块链文件存取方法、装置、计算机设备及存储介质 - Google Patents

区块链文件存取方法、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2021098277A1
WO2021098277A1 PCT/CN2020/105414 CN2020105414W WO2021098277A1 WO 2021098277 A1 WO2021098277 A1 WO 2021098277A1 CN 2020105414 W CN2020105414 W CN 2020105414W WO 2021098277 A1 WO2021098277 A1 WO 2021098277A1
Authority
WO
WIPO (PCT)
Prior art keywords
file
information
stored
target
ledger information
Prior art date
Application number
PCT/CN2020/105414
Other languages
English (en)
French (fr)
Inventor
何万涛
宦鹏飞
鲁睿
杨扬
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2021098277A1 publication Critical patent/WO2021098277A1/zh

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/11File system administration, e.g. details of archiving or snapshots
    • G06F16/113Details of archiving
    • 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/18File system types
    • G06F16/182Distributed file systems
    • G06F16/1824Distributed file systems implemented using Network-attached Storage [NAS] architecture
    • G06F16/183Provision of network file services by network file servers, e.g. by using NFS, CIFS
    • 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

Definitions

  • This application relates to the field of blockchain technology, and in particular to a blockchain file access method, device, computer equipment and storage medium.
  • the embodiments of the present application provide a blockchain file access method, device, computer equipment, and storage medium, aiming to solve the problem that the blockchain technology in the prior art method cannot easily store large files.
  • an embodiment of the present application provides a blockchain file access method, which includes:
  • the file to be stored is obtained, the file to be stored is stored in the cloud storage server according to the preset file storage model, and the ledger information corresponding to the file to be stored is obtained;
  • the ledger information that matches the information retrieval request in the blockchain network is used as the target ledger information
  • the target file is fed back to the user.
  • an embodiment of the present application provides a blockchain file access device, which includes:
  • the ledger information acquiring unit is configured to, if a user's file storage request is received, acquire the file to be stored, store the file to be stored to the cloud storage server according to a preset file storage model, and obtain the ledger corresponding to the file to be stored information;
  • the ledger information sending unit is configured to send the ledger information to the blockchain network according to preset broadcast rules to store the ledger information
  • the ledger information retrieval unit is configured to, if a user's information retrieval request is received, use ledger information matching the information retrieval request in the blockchain network as target ledger information;
  • the target file obtaining unit is configured to obtain a file in the cloud storage server corresponding to the target account book information as a target file according to the storage path information in the target account book information;
  • the target file feedback unit is configured to feed back the target file to the user.
  • an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer
  • the program implements the blockchain file access method described in the first aspect.
  • the embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the above-mentioned first On the one hand, the blockchain file access method.
  • the embodiments of the present application provide a blockchain file access method, device, computer equipment, and storage medium.
  • the user's files to be stored are stored in the cloud storage server and the corresponding ledger information is generated, and the ledger information is sent to the blockchain network for storage. If a user information retrieval request is received, the user information will be retrieved from the blockchain network. Obtain the target ledger information that matches the information retrieval request, and obtain the target file corresponding to the target ledger information and feed it back to the user.
  • large files can be conveniently stored and read based on the blockchain network, which solves the problem that traditional blockchain networks cannot easily store large files due to storage capacity limitations.
  • FIG. 1 is a schematic flowchart of a blockchain file access method provided by an embodiment of the application
  • FIG. 2 is a schematic diagram of an application scenario of a blockchain file access method provided by an embodiment of the application
  • FIG. 3 is a schematic diagram of a sub-flow of a blockchain file access method provided by an embodiment of the application
  • FIG. 4 is a schematic diagram of another process of a blockchain file access method provided by an embodiment of the application.
  • FIG. 5 is a schematic diagram of another process of a blockchain file access method provided by an embodiment of the application.
  • FIG. 6 is a schematic diagram of another sub-flow of the blockchain file access method provided by an embodiment of the application.
  • FIG. 7 is a schematic block diagram of a block chain file access device provided by an embodiment of the application.
  • FIG. 8 is a schematic block diagram of a subunit of the blockchain file access device provided by an embodiment of the application.
  • FIG. 9 is another schematic block diagram of the blockchain file access device provided by an embodiment of the application.
  • FIG. 10 is another schematic block diagram of a blockchain file access device provided by an embodiment of the application.
  • FIG. 11 is a schematic block diagram of another subunit of the blockchain file access device provided by an embodiment of the application.
  • FIG. 12 is a schematic block diagram of a computer device provided by an embodiment of this application.
  • FIG. 1 is a schematic flowchart of a blockchain file access method provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario of a blockchain file access method provided by an embodiment of the present application.
  • the blockchain file access method is applied to the user terminal 10.
  • the method is executed by application software installed in the user terminal 10.
  • the cloud storage server 20 and the blockchain network 30 realize data by establishing a network connection with the user terminal 10. Transmission of information.
  • the user terminal 10 is a terminal device used to implement the blockchain file access method to store and read large files, such as a desktop computer, a notebook computer, a tablet computer or a mobile phone, etc.
  • the cloud storage server 20 is used to A server side that obtains and stores files sent by the user terminal 10, the blockchain network 30 is a terminal network composed of multiple terminal devices on the Internet based on smart contracts.
  • FIG. 2 only shows that one user terminal 10 communicates with the cloud storage server 20 and the blockchain network 30 for information transmission. In practical applications, the blockchain network 30 and the cloud storage server 20 can also communicate with multiple user terminals 10 Simultaneously carry out information transmission.
  • the method includes steps S110 to S150.
  • S110 If a file storage request from a user is received, obtain a file to be stored, store the file to be stored in a cloud storage server according to a preset file storage model, and obtain ledger information corresponding to the file to be stored.
  • the file storage request is the request information input by the user to store the corresponding file to be stored.
  • the file to be stored is stored in the above-mentioned user terminal.
  • the file storage request contains the pointing information corresponding to the file to be stored, such as the file of the file to be stored. Name, storage path stored in the user terminal and other information.
  • the file storage model is the model used to store the files to be stored.
  • the file storage model specifically includes summary information generation rules and cloud storage nodes.
  • the files to be stored can be files in any format, including but not limited to text information, pictures, and audio. Files, video files, compressed packages, documents and applications.
  • the summary information generation rules are used to generate summary information related to files.
  • the cloud storage node is the node information corresponding to the cloud storage server.
  • the generated ledger information can be stored in a distributed manner in the blockchain network. Including summary information and storage path information of the file to be stored.
  • step S110 includes sub-steps S111, S112, and S113.
  • the summary information corresponding to the file to be stored is generated.
  • the rules for generating summary information can be implemented by hashing. Specifically, the basic information corresponding to the file to be stored is obtained.
  • the basic information includes the file name, file format, file specification and modification time, etc.
  • the file specification is the storage occupied by the file The size of the space, and the modification time is the time information of the last modification to the file content.
  • the basic information of the file to be stored is hashed according to the digest information generation rules to obtain the corresponding summary information, where the hash operation is a secure hash Algorithm 256.
  • Hash (basic information) summary information, that is, after the basic information of the file to be stored is hashed, a summary information will be obtained.
  • SHA256 secure hash Algorithm 256
  • Algorithm 256 will generate a 32-byte length data, and SHA256 always treats the information as a bit string.
  • Hash file name: ABC, file format: JPG image file, file size: 133KB, modification time: 2019-05-01/14:40:40
  • D15CB76F11D5478A D15CB76F11D5478A.
  • the cloud storage node is the node information of the corresponding cloud storage server. Through the cloud storage node, the file to be stored can be sent to the corresponding cloud storage server for storage.
  • the storage path information is the storage address of the file to be stored in the cloud storage server.
  • the upper limit of the storage capacity of each blockchain node in the traditional blockchain network is small (1MB-10MB).
  • the blockchain node is the specific storage space allocated for storing ledger information in each user terminal. If the blockchain network cannot store large files, a cloud storage server can be set up to store large files.
  • the cloud storage server can be a public server set up in the enterprise that can be accessed by all user terminals; for the application scenario of a consortium chain
  • the cloud storage server can be a NAS network disk set on the Internet that can be accessed by all user terminals.
  • the user terminal sends the file to be stored to the cloud storage server, and the cloud storage server stores the file to be stored and feeds back the corresponding storage path information to the user terminal.
  • the storage path information corresponding to a certain file to be stored is shown in Table 1.
  • the summary information and the storage path information are used as the ledger information of the file to be stored.
  • the obtained summary information and storage path information are all text information, and the storage space occupied is very small. Therefore, the summary information and storage path information can be combined and stored as the ledger information of the file to be stored.
  • the ledger information obtained by merging the summary information and storage path information of the file to be stored is: D15CB76F11D5478A; /171.62.33.01/folder01/ABC.JPG.
  • S120 Send the ledger information to the blockchain network according to a preset broadcast rule to store the ledger information.
  • the ledger information is sent to the blockchain network according to preset broadcast rules to store the ledger information.
  • the blockchain network contains a huge number of blockchain nodes.
  • the ledger information needs to be broadcast to the blockchain network through broadcast rules to realize the storage of ledger information in the district In the blockchain node of the blockchain network.
  • the broadcast rule includes multiple node addresses, and each node address corresponds to a blockchain node in the blockchain network.
  • the specific steps include: sending the ledger information to the blockchain node corresponding to the node address in the blockchain network according to the node address in the broadcast rule, so as to store the ledger information in the In the blockchain network.
  • the node address in the broadcast rule can be the IP address corresponding to the blockchain node preset by the user, or the historical blockchain recorded in the user terminal that has transmitted data information between the blockchain nodes corresponding to the current user terminal The IP address corresponding to the node.
  • the ledger information is broadcast according to the broadcast rules, the ledger information is backed up and stored in multiple blockchain nodes. If the ledger information stored in a blockchain node is modified, it can be backed up and stored in other blockchain nodes The multiple ledger information of the verifies the modified ledger information to prevent the ledger information stored in any blockchain node from being tampered with.
  • step S120a is included before step S120.
  • S120a Store the ledger information in a local blockchain node in the user terminal.
  • the ledger information is stored in the local blockchain node in the user terminal.
  • Each blockchain node in the blockchain network corresponds to a user terminal, so the user currently used by the user
  • the terminal also corresponds to a blockchain node in the blockchain network.
  • the blockchain node that stores the ledger information in the current user terminal does not need to transmit data information through the network, so this process does not involve the transmission of ledger information.
  • the ledger information matching the information retrieval request in the blockchain network is used as the target ledger information.
  • the information retrieval request includes the file name and file type corresponding to the file that the user needs to obtain.
  • the storage path information of each ledger information includes the file name and file type of the corresponding file.
  • the stored ledger information can be retrieved to obtain ledger information matching the information retrieval request.
  • the ledger information stored in the corresponding blockchain node of the current user terminal can be retrieved through an information retrieval request, so that ledger information matching the information retrieval request is used as the target ledger information.
  • the information retrieval request can also be broadcast to other blockchain nodes in the blockchain network, and the backup ledger information fed back by other blockchain nodes can be obtained, and the retrieved target can be verified according to the backup ledger information.
  • the ledger information is verified. If the verification is passed, the target ledger information is processed in the next step, and if the verification is not passed, the user is notified that the target ledger information is incorrect.
  • the file corresponding to the target account book information in the cloud storage server as a target file according to the storage path information in the target account book information.
  • Each account book information contains summary information and storage path information of the corresponding file.
  • the corresponding file in the cloud storage server can be obtained according to the storage path information contained therein to obtain the target file.
  • the target file is fed back to the user, so as to obtain the corresponding target file through the user terminal and provide feedback to the user of the user terminal.
  • steps S151 and S152 are further included before step S150.
  • the summary information generation rule can be used to verify whether the target file is consistent with the target ledger information. If the verification result is yes, it indicates the target The file has not been tampered with; if the verification result is no, it indicates that the target file has been tampered with. At this time, a prompt message that the target file has been tampered can be fed back to the user.
  • the security of the files stored in the cloud storage server can be ensured, and the problem of insufficient file security caused by the modification of the file can be avoided.
  • step S151 includes sub-steps S1511 and S1512.
  • the to-be-verified summary information corresponding to the target file is generated according to the summary information generation rule.
  • the basic information of the target file is obtained, and the obtained basic information is hashed according to the summary information generation rules to obtain the corresponding summary information to be verified.
  • the basic information includes the file name, file format, and file specification.
  • the specific method for generating the summary information to be verified is the same as the method for generating the summary information in the above steps, and the details are not repeated here.
  • the methods for generating the summary information to be verified and the summary information are the same, if the two pieces of basic information of the same file are the same, the results obtained by hashing the two pieces of basic information are the same Therefore, based on the verification result of whether the summary information in the target ledger information is consistent with the summary information to be verified, it can be judged whether the target file is modified. If the obtained target file is modified, even if the file name, file format, The file specifications and other information have not changed, and the modification time of the target file will definitely change. After the same hash calculation is performed, the corresponding summary information to be verified must be inconsistent with the summary information in the corresponding target ledger information, that is, The verification result must be no.
  • step S150 If the verification result is yes, the target file is fed back to the user, that is, step S150 is continued. If the verification result is passed, it indicates that the target file stored in the cloud storage server has not been modified, and the target file is safe and reliable, and the target file can be fed back to the user. If the verification result is not passed, it indicates that the target file stored in the cloud storage server has been modified, and the target file is at risk. The user can be notified that the target file has been modified by prompting the user.
  • the user's files to be stored are stored in the cloud storage server according to the preset file storage model, and the corresponding ledger information is generated, and the ledger information is sent to the blockchain
  • the network stores, if a user information retrieval request is received, the target ledger information matching the information retrieval request is obtained from the blockchain network, and the target document corresponding to the target ledger information is obtained and fed back to the user.
  • the embodiment of the present application also provides a blockchain file access device, which is used to execute any embodiment of the aforementioned blockchain file access method.
  • a blockchain file access device which is used to execute any embodiment of the aforementioned blockchain file access method.
  • FIG. 7, is a schematic block diagram of a blockchain file access device provided by an embodiment of the present application.
  • the blockchain file access device can be configured in the user terminal 10.
  • the blockchain file access device 100 includes a ledger information acquisition unit 110, a ledger information sending unit 120, a ledger information retrieval unit 130, a target file acquisition unit 140, and a target file feedback unit 150.
  • the ledger information obtaining unit 110 is configured to obtain a file to be stored if a file storage request from a user is received, store the file to be stored in the cloud storage server according to a preset file storage model, and obtain the file corresponding to the file to be stored Ledger information.
  • the ledger information acquiring unit 110 includes sub-units: a summary information generating unit 111, a file storage unit 112, and a document ledger information acquiring unit 113.
  • the summary information generating unit 111 is configured to generate summary information corresponding to the file to be stored according to the summary information generation rule.
  • the file storage unit 112 is configured to send the file to be stored to a cloud storage server corresponding to the cloud storage node according to the cloud storage node and record the storage path information of the file to be stored.
  • the document ledger information acquiring unit 113 is configured to use the summary information and the storage path information as ledger information of the file to be stored.
  • the ledger information sending unit 120 is configured to send the ledger information to the blockchain network according to preset broadcast rules to store the ledger information.
  • the blockchain file access device 100 further includes a subunit: a local storage unit 120a for ledger information.
  • the ledger information local storage unit 120a is configured to store the ledger information in a local blockchain node in the user terminal.
  • the ledger information retrieval unit 130 is configured to, if a user's information retrieval request is received, use ledger information matching the information retrieval request in the blockchain network as target ledger information.
  • the target file obtaining unit 140 is configured to obtain a file corresponding to the target account book information in the cloud storage server as a target file according to the storage path information in the target account book information.
  • the target file feedback unit 150 is configured to feed back the target file to the user.
  • the blockchain file access device 100 further includes sub-units: a target file verification unit 151 and a feedback execution unit 152.
  • the target file verification unit 151 is configured to verify whether the target file is consistent with the target ledger information according to the summary information generation rule to obtain a verification result.
  • the target file verification unit 151 includes sub-units: a summary information acquisition unit 1511 to be verified and a summary information verification unit 1512 to be verified.
  • the to-be-verified summary information acquiring unit 1511 is configured to generate the to-be-verified summary information corresponding to the target file according to the summary information generation rule.
  • the to-be-verified summary information verification unit 1512 is configured to verify whether the to-be-verified summary information is consistent with the summary information in the target ledger information to obtain a verification result.
  • the feedback execution unit 152 is configured to feed back the target file to the user if the verification result is yes.
  • the blockchain file access device provided in the embodiment of the present application is used to implement the above blockchain file access method, and according to a preset file storage model, the user's to-be-stored file is stored to the cloud storage server and the corresponding ledger is generated Information, the ledger information is sent to the blockchain network for storage, if a user information retrieval request is received, the target ledger information that matches the information retrieval request is obtained from the blockchain network, and the target file corresponding to the target ledger information is obtained Feedback to users.
  • the above-mentioned block chain file access device can be implemented in the form of a computer program, and the computer program can be run on a computer device as shown in FIG. 12.
  • FIG. 12 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected through a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the processor 502 can execute the blockchain file access method.
  • the processor 502 is used to provide computing and control capabilities, and support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503.
  • the processor 502 can execute the blockchain file access method.
  • the network interface 505 is used for network communication, such as providing data information transmission.
  • the structure shown in FIG. 12 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied.
  • the specific computer device 500 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
  • the processor 502 is configured to run a computer program 5032 stored in the memory, so as to implement the corresponding function in the above-mentioned blockchain file access method.
  • the embodiment of the computer device shown in FIG. 12 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or less components than those shown in the figure. Or some parts are combined, or different parts are arranged.
  • the computer device may only include a memory and a processor. In such an embodiment, the structures and functions of the memory and the processor are consistent with the embodiment shown in FIG. 12, and will not be repeated here.
  • the processor 502 may be a central processing unit (Central Processing Unit, CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor.
  • a computer-readable storage medium may be a non-volatile computer-readable storage medium, or may be a volatile computer-readable storage medium.
  • the computer-readable storage medium stores a computer program, where the computer program implements the steps included in the above-mentioned blockchain file access method when the computer program is executed by a processor.
  • the disclosed equipment, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods, or the units with the same function may be combined into one. Units, for example, multiple units or components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present application.
  • the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the read storage medium includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned computer-readable storage media include: U disk, mobile hard disk, Read-Only Memory (ROM, Read-Only Memory), magnetic disk or optical disk and other media that can store program codes.

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

一种区块链文件存取方法、装置、计算机设备及存储介质,所述方法包括:根据预置的文件存储模型将用户的待存储文件存储至云存储服务器并生成对应的账本信息,将账本信息发送至区块链网络进行存储,若接收到用户信息检索请求,从区块链网络中获取与信息检索请求相匹配的目标账本信息,并获取与目标账本信息对应的目标文件反馈至用户。该方法基于云存储技术,属于区块链技术领域,可基于区块链网络方便地对大文件进行存储及读取,解决了传统区块链网络因存储容量限制而无法方便存储大文件的问题。

Description

区块链文件存取方法、装置、计算机设备及存储介质
本申请要求于2019年11月21日提交中国专利局、申请号为201911150248.5,发明名称为“区块链文件存取方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及区块链技术领域,尤其涉及一种区块链文件存取方法、装置、计算机设备及存储介质。
背景技术
基于区块链网络可方便对信息进行存储,且具有不可篡改的优点,由于每一区块中所存储的信息需广播至其他区块中进行存储,为避免所需进行广播的数据量过大造成区块链网络的数据传输拥堵,需为每一区块设置存储容量上限。发明人发现传统区块链网络在对数据进行存储时受限于区块的存储容量上限,仅能对文字信息进行存储,而无法对超出存储容量上限的文件进行存储。因而,现有的基于区块链技术对信息进行存储的方法存在无法对大文件进行方便存储的问题。
发明内容
本申请实施例提供了一种区块链文件存取方法、装置、计算机设备及存储介质,旨在解决现有技术方法中的区块链技术存在无法对大文件进行方便存储的问题。
第一方面,本申请实施例提供了一种区块链文件存取方法,其包括:
若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件;
将所述目标文件反馈至所述用户。
第二方面,本申请实施例提供了一种区块链文件存取装置,其包括:
账本信息获取单元,用于若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
账本信息发送单元,用于根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
账本信息检索单元,用于若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
目标文件获取单元,用于根据所述目标账本信息中的存储路径信息获取所述云存储服务 器中与所述目标账本信息对应的文件作为目标文件;
目标文件反馈单元,用于将所述目标文件反馈至所述用户。
第三方面,本申请实施例又提供了一种计算机设备,其包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面所述的区块链文件存取方法。
第四方面,本申请实施例还提供了一种计算机可读存储介质,其中所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行上述第一方面所述的区块链文件存取方法。
本申请实施例提供了一种区块链文件存取方法、装置、计算机设备及存储介质。根据预置的文件存储模型将用户的待存储文件存储至云存储服务器并生成对应的账本信息,将账本信息发送至区块链网络进行存储,若接收到用户信息检索请求,从区块链网络中获取与信息检索请求相匹配的目标账本信息,并获取与目标账本信息对应的目标文件反馈至用户。通过上述方法,可基于区块链网络方便地对大文件进行存储及读取,解决了传统区块链网络因存储容量限制而无法方便存储大文件的问题。
附图说明
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的区块链文件存取方法的流程示意图;
图2为本申请实施例提供的区块链文件存取方法的应用场景示意图;
图3为本申请实施例提供的区块链文件存取方法的子流程示意图;
图4为本申请实施例提供的区块链文件存取方法的另一流程示意图;
图5为本申请实施例提供的区块链文件存取方法的另一流程示意图;
图6为本申请实施例提供的区块链文件存取方法的另一子流程示意图;
图7为本申请实施例提供的区块链文件存取装置的示意性框图;
图8为本申请实施例提供的区块链文件存取装置的子单元示意性框图;
图9为本申请实施例提供的区块链文件存取装置的另一示意性框图;
图10为本申请实施例提供的区块链文件存取装置的另一示意性框图;
图11为本申请实施例提供的区块链文件存取装置的另一子单元示意性框图;
图12为本申请实施例提供的计算机设备的示意性框图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”和“包含”指示所描述 特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
请参阅图1,图1是本申请实施例提供的区块链文件存取方法的流程示意图;图2为本申请实施例提供的区块链文件存取方法的应用场景示意图。该区块链文件存取方法应用于用户终端10中,该方法通过安装于用户终端10中的应用软件进行执行,云存储服务器20及区块链网络30通过与用户终端10建立网络连接实现数据信息的传输。用户终端10即是用于执行区块链文件存取方法以实现对大文件进行存储及读取的终端设备,例如台式电脑、笔记本电脑、平板电脑或手机等,云存储服务器20即是用于获取用户终端10所发送的文件并进行存储的服务器端,区块链网络30即是互联网中多台终端设备基于智能合约所组成的终端网络。图2中仅仅示意出一台用户终端10与云存储服务器20及区块链网络30进行信息传输,在实际应用中,该区块链网络30及云存储服务器20也可与多台用户终端10同时进行信息传输。
如图1所示,该方法包括步骤S110~S150。
S110、若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息。
若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息。文件存储请求即是用户所输入的对对应待存储文件进行存储的请求信息,待存储文件存储于上述用户终端中,文件存储请求中包含与待存储文件对应的指向信息,例如待存储文件的文件名称、存储于用户终端的存储路径等信息。文件存储模型即是用于对待存储文件进行存储的模型,文件存储模型中具体包括摘要信息生成规则及云存储节点,待存储文件可以是任意格式的文件,包括但不限于文字信息、图片、音频文件、视频文件、压缩包、文档及应用程序。摘要信息生成规则即是用于生成与文件相关的摘要信息,云存储节点即是对应云存储服务器的节点信息,区块链网络中即可对所生成的账本信息进行分布式存储,账本信息中包括待存储文件的摘要信息及存储路径信息。
在一实施例中,如图3所示,步骤S110包括子步骤S111、S112和S113。
S111、根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息。
根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息。摘要信息生成规则即可通过哈希运算实现,具体的,获取与待存储文件对应的基本信息,基本信息包括文件名称、文件格式、文件规格及修改时间等,文件规格即是该文件所占用存储空间的大小,修改时间即是最近一次对文件内容进行修改的时间信息,根据摘要信息生成规则对待存储文件的基本信息进行哈希运算即得到对应的摘要信息,其中,哈希运算为安全散列算法256。
在本实施例中,即Hash(基本信息)=摘要信息,即对待存储文件的基本信息进行哈希运算后会得到一个摘要信息,对于任意长度(按bit计算)的信息,SHA256(安全散列算法256)都会产生一个32个字节长度数据,SHA256始终把信息当成一个位(bit)字符串来处理。当用户终端接收到文件的时候,这个摘要信息可以用来验证数据是否发生改变,即验证所接收文件的完整性。
例如,Hash(文件名称:ABC,文件格式:JPG图片文件,文件规格:133KB,修改时间:2019-05-01/14:40:40)=D15CB76F11D5478A。
S112、根据所述云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息。
根据预置的云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息。云存储节点即是对应云存储服务器的节点信息,通过云存储节点即可将待存储文件发送至对应云存储服务器进行存储,存储路径信息即为待存储文件存储于云存储服务器中的存储地址,传统的区块链网络中每一区块链节点的存储容量上限较小(1MB-10MB),区块链节点即是每一用户终端中为存储账本信息所分配的特定存储空间,为解决传统区块链网络无法对大文件进行存储的问题,可设置云存储服务器对大文件进行存储。具体的,对于私有链这一应用场景,例如大型企业内部构建的区块链网络,云存储服务器可以是企业中所设置的可供所有用户终端进行访问的公共服务器;对于联盟链这一应用场景,例如多个企业共同构建的区块链网络,云存储服务器可以是互联网中所设置的可供所有用户终端进行访问的NAS网盘。用户终端将待存储文件发送至云存储服务器,云存储服务器对待存储文件进行存储并向用户终端反馈对应的存储路径信息。
例如,某一待存储文件对应的存储路径信息如表1所示。
文件名称 存储路径信息
ABC /171.62.33.01/folder01/ABC.JPG
表1
S113、将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。
将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。所得到的摘要信息及存储路径信息均为文字信息,所占用的存储空间极小,因此可将摘要信息及存储路径信息合并后作为待存储文件的账本信息进行存储。
例如,对上述待存储文件的摘要信息及存储路径信息进行合并所得到的账本信息为:D15CB76F11D5478A;/171.62.33.01/folder01/ABC.JPG。
S120、根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储。
根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储。区块链网络中包含巨量的区块链节点,为实现对所得到的账本信息进行分布式存储,需通过广播规则将该账本信息广播至区块链网络,以实现将账本信息存储于区块链网络的区块链节点中。具体的,广播规则中包括多个节点地址,每一节点地址对应区块链网络中的一个区块链 节点。
具体的步骤包括:根据所述广播规则中的节点地址将所述账本信息发送至所述区块链网络中与所述节点地址对应的区块链节点,以将所述账本信息存储于所述区块链网络中。广播规则中的节点地址可为用户预先设置的区块链节点对应的IP地址,或该用户终端中所记录的与当前用户终端对应区块链节点之间已进行数据信息传输的历史区块链节点对应的IP地址。根据广播规则对账本信息进行广播后,该账本信息在多个区块链节点中备份存储,若某一区块链节点中存储的账本信息被修改即可通过其他区块链节点中所备份存储的多个账本信息对被修改的账本信息进行验证,以避免存储于任一区块链节点中的账本信息被篡改。
在一实施例中,如图4所示,步骤S120之前包括步骤S120a。
S120a、将所述账本信息存储于所述用户终端中的本地区块链节点中。
将所述账本信息存储于所述用户终端中的本地区块链节点中。在对账本信息进行存储时,首先可将账本信息存储于当前用户终端本地的区块链节点中,区块链网络中每一区块链节点对应一台用户终端,则用户当前所使用的用户终端亦对应区块链网络中的一个区块链节点,将账本信息存储于当前用户终端的区块链节点无需通过网络进行数据信息的传输,因此该过程不涉及对账本信息的发送。
S130、若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息。
若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息。信息检索请求中包含用户所需获取的文件对应的文件名称及文件类型,每一账本信息的存储路径信息中均包含相应文件的文件名称及文件类型,基于信息检索请求中所包含的信息对所存储的账本信息进行检索即可得到与该信息检索请求相匹配的账本信息。具体的,可通过信息检索请求对当前用户终端对应区块链节点中所存储的账本信息进行检索,以将与信息检索请求相匹配的账本信息作为目标账本信息。在获取目标账本信息过程中,还可将信息检索请求广播至区块链网络中其他区块链节点,并获取其他区块链节点所反馈的备份账本信息,根据备份账本信息对检索到的目标账本信息进行验证,若验证通过则对该目标账本信息进行下一步处理,若验证不通过则向用户反馈目标账本信息有误的提示信息。
S140、根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件。
根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件。每一账本信息中均包含相应文件的摘要信息及存储路径信息,获取目标账本信息后即可根据其中所包含的存储路径信息获取云存储服务器中对应的文件,以得到目标文件。
S150、将所述目标文件反馈至所述用户。
将所述目标文件反馈至所述用户,以实现通过用户终端获取对应的目标文件并向用户终端的使用者进行反馈。
在一实施例中,如图5所示,步骤S150之前还包括步骤S151和S152。
S151、根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果。
根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果。为确保云存储服务器中所存储的文件未被篡改,在将目标文件反馈至用户之前,可通过摘要信息生成规则对目标文件是否与目标账本信息一致进行验证,若验证结果为是,则表明目标文件未被篡改;若验证结果为否,则表明目标文件已发生篡改,此时可向用户反馈目标文件已被篡改的提示信息。通过该验证过程即可确保存储于云存储服务器中文件的安全性,避免因文件被修改导致文件安全性不足的问题。
在一实施例中,如图6所示,步骤S151包括子步骤S1511和S1512。
S1511、根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息。
根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息。具体的,获取目标文件的基本信息,并根据摘要信息生成规则对所获取到的基本信息进行哈希运算,以得到对应的待验证摘要信息,其中,基本信息包括文件名称、文件格式、文件规格及修改时间等,生成待验证摘要信息的具体方法与上述步骤中生成摘要信息的方法相同,在此不作赘述。
S1512、对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。
对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。具体的,获取目标账本信息中的摘要信息,由于生成待验证摘要信息及摘要信息的方法相同,若同一文件的两份基本信息相同,则对两份基本信息进行哈希运算所得到的结果相同,因此可基于目标账本信息中的摘要信息与待验证摘要信息是否一致的验证结果,判断目标文件是否被修改,若所获取到的目标文件被修改,即使该目标文件的文件名称、文件格式、文件规格等信息未发生变更,目标文件的修改时间一定会变更,则通过相同的哈希运算进行计算后,对应得到的待验证摘要信息与相应目标账本信息中的摘要信息一定不一致,也即是验证结果一定为否。
S152、若所述验证结果为是,将所述目标文件反馈至所述用户。
若所述验证结果为是,将所述目标文件反馈至所述用户,也即是继续执行步骤S150。若验证结果为通过,则表明存储于云存储服务器中的目标文件未被修改,该目标文件安全可靠,即可将目标文件反馈至用户。若验证结果为不通过,则表明存储于云存储服务器中的目标文件已被修改,该目标文件存在风险,可向用户反馈目标文件被修改的提示信息,以对用户进行提示。
在本申请实施例所提供的区块链文件存取方法中,根据预置的文件存储模型将用户的待存储文件存储至云存储服务器并生成对应的账本信息,将账本信息发送至区块链网络进行存储,若接收到用户信息检索请求,从区块链网络中获取与信息检索请求相匹配的目标账本信息,并获取与目标账本信息对应的目标文件反馈至用户。通过上述方法,可基于区块链网络方便地对大文件进行存储及读取,解决了传统区块链网络因存储容量限制而无法方便存储大 文件的问题。
本申请实施例还提供一种区块链文件存取装置,该区块链文件存取装置用于执行前述区块链文件存取方法的任一实施例。具体地,请参阅图7,图7是本申请实施例提供的区块链文件存取装置的示意性框图。该区块链文件存取装置可以配置于用户终端10中。
如图7所示,区块链文件存取装置100包括账本信息获取单元110、账本信息发送单元120、账本信息检索单元130、目标文件获取单元140和目标文件反馈单元150。
账本信息获取单元110,用于若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息。
其他发明实施例中,如图8所示,所述账本信息获取单元110包括子单元:摘要信息生成单元111、文件存储单元112和文件账本信息获取单元113。
摘要信息生成单元111,用于根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息。
文件存储单元112,用于根据所述云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息。
文件账本信息获取单元113,用于将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。
账本信息发送单元120,用于根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储。
其他发明实施例中,如图9所示,所述区块链文件存取装置100还包括子单元:账本信息本地存储单元120a。
账本信息本地存储单元120a,用于将所述账本信息存储于所述用户终端中的本地区块链节点中。
账本信息检索单元130,用于若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息。
目标文件获取单元140,用于根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件。
目标文件反馈单元150,用于将所述目标文件反馈至所述用户。
其他发明实施例中,如图10所示,所述区块链文件存取装置100还包括子单元:目标文件验证单元151和反馈执行单元152。
目标文件验证单元151,用于根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果。
其他发明实施例中,如图11所示,所述目标文件验证单元151包括子单元:待验证摘要信息获取单元1511和待验证摘要信息验证单元1512。
待验证摘要信息获取单元1511,用于根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息。
待验证摘要信息验证单元1512,用于对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。
反馈执行单元152,用于若所述验证结果为是,将所述目标文件反馈至所述用户。
在本申请实施例所提供的区块链文件存取装置用于执行上述区块链文件存取方法,根据预置的文件存储模型将用户的待存储文件存储至云存储服务器并生成对应的账本信息,将账本信息发送至区块链网络进行存储,若接收到用户信息检索请求,从区块链网络中获取与信息检索请求相匹配的目标账本信息,并获取与目标账本信息对应的目标文件反馈至用户。通过上述方法,可基于区块链网络方便地对大文件进行存储及读取,解决了传统区块链网络因存储容量限制而无法方便存储大文件的问题。
上述区块链文件存取装置可以实现为计算机程序的形式,该计算机程序可以在如图12所示的计算机设备上运行。
请参阅图12,图12是本申请实施例提供的计算机设备的示意性框图。
参阅图12,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。
该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计算机程序5032被执行时,可使得处理器502执行区块链文件存取方法。
该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。
该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行区块链文件存取方法。
该网络接口505用于进行网络通信,如提供数据信息的传输等。本领域技术人员可以理解,图12中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现上述的区块链文件存取方法中对应的功能。
本领域技术人员可以理解,图12中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图12所示实施例一致,在此不再赘述。
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
在本申请的另一实施例中提供计算机可读存储介质。该计算机可读存储介质可以为非易失性的计算机可读存储介质,也可以是易失性的计算机可读存储介质。该计算机可读存储介质存储有计算机程序,其中计算机程序被处理器执行时实现上述的区块链文件存取方法中所包含的步骤。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的设备、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为逻辑功能划分,实际实现时可以有另外的划分方式,也可以将具有相同功能的单元集合成一个单元,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个计算机可读存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的计算机可读存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (20)

  1. 一种区块链文件存取方法,包括:
    若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
    根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
    若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
    根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件;
    将所述目标文件反馈至所述用户。
  2. 根据权利要求1所述的区块链文件存取方法,其中,所述文件存储模型包括摘要信息生成规则及云存储节点,所述根据预置的文件存储模型对所述待存储文件进行存储并获取与所述待存储文件对应的账本信息,包括:
    根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息;
    根据所述云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息;
    将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。
  3. 根据权利要求1所述的区块链文件存取方法,其中,所述根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储之前,还包括:
    将所述账本信息存储于所述用户终端中的本地区块链节点中。
  4. 根据权利要求2所述的区块链文件存取方法,其中,还包括:
    根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果;
    若所述验证结果为是,将所述目标文件反馈至所述用户。
  5. 根据权利要求4所述的区块链文件存取方法,其中,所述根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果,包括:
    根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息;
    对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。
  6. 根据权利要求1所述的区块链文件存取方法,其中,所述云存储服务器为互联网中所设置的可供所有所述用户终端进行访问的NAS网盘。
  7. 根据权利要求1所述的区块链文件存取方法,其中,所述云存储服务器为企业中所设置的可供所有所述用户终端进行访问的公共服务器。
  8. 一种区块链文件存取装置,其中,包括:
    账本信息获取单元,用于若接收到用户的文件存储请求,获取待存储文件,根据预置的 文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
    账本信息发送单元,用于根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
    账本信息检索单元,用于若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
    目标文件获取单元,用于根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件;
    目标文件反馈单元,用于将所述目标文件反馈至所述用户。
  9. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:
    若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
    根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
    若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
    根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件;
    将所述目标文件反馈至所述用户。
  10. 根据权利要求9所述的计算机设备,其中,所述文件存储模型包括摘要信息生成规则及云存储节点,所述根据预置的文件存储模型对所述待存储文件进行存储并获取与所述待存储文件对应的账本信息,包括:
    根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息;
    根据所述云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息;
    将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。
  11. 根据权利要求9所述的计算机设备,其中,所述根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储之前,还包括:
    将所述账本信息存储于所述用户终端中的本地区块链节点中。
  12. 根据权利要求10所述的计算机设备,其中,还包括:
    根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果;
    若所述验证结果为是,将所述目标文件反馈至所述用户。
  13. 根据权利要求12所述的计算机设备,其中,所述根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果,包括:
    根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息;
    对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。
  14. 根据权利要求9所述的计算机设备,其中,所述云存储服务器为互联网中所设置的可供所有所述用户终端进行访问的NAS网盘。
  15. 根据权利要求9所述的计算机设备,其中,所述云存储服务器为企业中所设置的可供所有所述用户终端进行访问的公共服务器。
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机程序,所述计算机程序当被处理器执行时使所述处理器执行以下操作:
    若接收到用户的文件存储请求,获取待存储文件,根据预置的文件存储模型将所述待存储文件存储至云存储服务器并获取与所述待存储文件对应的账本信息;
    根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储;
    若接收到用户的信息检索请求,将所述区块链网络中与所述信息检索请求相匹配的账本信息作为目标账本信息;
    根据所述目标账本信息中的存储路径信息获取所述云存储服务器中与所述目标账本信息对应的文件作为目标文件;
    将所述目标文件反馈至所述用户。
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述文件存储模型包括摘要信息生成规则及云存储节点,所述根据预置的文件存储模型对所述待存储文件进行存储并获取与所述待存储文件对应的账本信息,包括:
    根据所述摘要信息生成规则生成与所述待存储文件对应的摘要信息;
    根据所述云存储节点将所述待存储文件发送至与所述云存储节点对应的云存储服务器并记录所述待存储文件的存储路径信息;
    将所述摘要信息及所述存储路径信息作为所述待存储文件的账本信息。
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述根据预置的广播规则将所述账本信息发送至区块链网络以对所述账本信息进行存储之前,还包括:
    将所述账本信息存储于所述用户终端中的本地区块链节点中。
  19. 根据权利要求17所述的计算机可读存储介质,其中,还包括:
    根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果;
    若所述验证结果为是,将所述目标文件反馈至所述用户。
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述根据所述摘要信息生成规则对所述目标文件是否与所述目标账本信息一致进行验证以得到验证结果,包括:
    根据所述摘要信息生成规则生成与所述目标文件对应的待验证摘要信息;
    对所述待验证摘要信息是否与所述目标账本信息中的摘要信息一致进行验证以得到验证结果。
PCT/CN2020/105414 2019-11-21 2020-07-29 区块链文件存取方法、装置、计算机设备及存储介质 WO2021098277A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911150248.5 2019-11-21
CN201911150248.5A CN111159100A (zh) 2019-11-21 2019-11-21 区块链文件存取方法、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2021098277A1 true WO2021098277A1 (zh) 2021-05-27

Family

ID=70556109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105414 WO2021098277A1 (zh) 2019-11-21 2020-07-29 区块链文件存取方法、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN111159100A (zh)
WO (1) WO2021098277A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159100A (zh) * 2019-11-21 2020-05-15 深圳壹账通智能科技有限公司 区块链文件存取方法、装置、计算机设备及存储介质
CN113259449A (zh) * 2021-05-27 2021-08-13 四块科技(深圳)有限公司 分布式存储方法、装置、设备及存储介质
CN113572790B (zh) * 2021-09-18 2022-01-25 深圳时空云科技有限公司 私密信息的分布式处理方法与装置
CN114157435B (zh) * 2021-12-02 2024-05-17 贵州黔驰信息股份有限公司 一种基于区块链技术的文档处理方法、装置和客户端

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273410A (zh) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 基于区块链的分布式存储
CN109522270A (zh) * 2018-10-19 2019-03-26 平安科技(深圳)有限公司 基于区块链的文件存读方法、电子装置及可读存储介质
CN109583899A (zh) * 2018-12-20 2019-04-05 鸿秦(北京)科技有限公司 基于云存储服务器的数据存储管理方法及系统
CN109768987A (zh) * 2019-02-26 2019-05-17 重庆邮电大学 一种基于区块链的数据文件安全隐私存储和分享方法
CN111159100A (zh) * 2019-11-21 2020-05-15 深圳壹账通智能科技有限公司 区块链文件存取方法、装置、计算机设备及存储介质

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110347689A (zh) * 2019-07-12 2019-10-18 全链通有限公司 数据存储方法、设备及计算机可读存储介质
CN110365766A (zh) * 2019-07-12 2019-10-22 全链通有限公司 基于区块链的云存储方法、设备及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273410A (zh) * 2017-05-03 2017-10-20 上海点融信息科技有限责任公司 基于区块链的分布式存储
CN109522270A (zh) * 2018-10-19 2019-03-26 平安科技(深圳)有限公司 基于区块链的文件存读方法、电子装置及可读存储介质
CN109583899A (zh) * 2018-12-20 2019-04-05 鸿秦(北京)科技有限公司 基于云存储服务器的数据存储管理方法及系统
CN109768987A (zh) * 2019-02-26 2019-05-17 重庆邮电大学 一种基于区块链的数据文件安全隐私存储和分享方法
CN111159100A (zh) * 2019-11-21 2020-05-15 深圳壹账通智能科技有限公司 区块链文件存取方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
CN111159100A (zh) 2020-05-15

Similar Documents

Publication Publication Date Title
WO2021098277A1 (zh) 区块链文件存取方法、装置、计算机设备及存储介质
US11960486B2 (en) Systems and methods for secure file management via an aggregation of cloud storage services
US11558450B2 (en) Systems and methods for aggregation of cloud storage
US11818211B2 (en) Aggregation and management among a plurality of storage providers
US10264072B2 (en) Systems and methods for processing-based file distribution in an aggregation of cloud storage services
US20190306240A1 (en) Systems and methods for third-party policy-based file distribution in an aggregation of cloud storage services
CN108234539B (zh) 一种文件上传、下载、传输方法及装置
US9116626B2 (en) Failsafe directory file system in a dispersed storage network
US8112477B2 (en) Content identification for peer-to-peer content retrieval
WO2019075978A1 (zh) 数据传输方法、装置、计算机设备和存储介质
US9602626B2 (en) Enabling peer-to-peer content retrieval in HTTP
US8924439B2 (en) System for and method of partial file hashing
US20150046565A1 (en) System and method for archiving messages
US10387663B2 (en) System, a method and a computer readable medium for transmitting an electronic file
CN108566421A (zh) 一种基于网络附属存储器的网络式分布方法及系统
US10838660B2 (en) Identifying and processing predefined dispersed storage network workflows

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20890474

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 290922)

122 Ep: pct application non-entry in european phase

Ref document number: 20890474

Country of ref document: EP

Kind code of ref document: A1