Blockchain File Sharing via Concurrent Compression and Linked Lists
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing file sharing methods on blockchain face inefficiencies due to high network resource usage with large files and security risks when using centralized databases.
Innovation Solution
A method involving file compression into packages, concurrent on-chain transmission, and a one-way linked list data structure on the blockchain to improve efficiency and security, where files are compressed and encrypted, and data blocks are formed using hash values to facilitate secure sharing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If all shared files are put on chain as transactions and broadcast to realize sharing, then file sharing is achieved, but network resource usage becomes too high when the number of files is large, leading to decreased on-chain efficiency
Solution Approach 1:
The patent divides files into multiple blocks, with each block containing a limited number of files. Instead of broadcasting all files in a single transaction, the system creates multiple smaller transactions for different blocks. This segmentation reduces the size of each transaction, thereby lowering network resource consumption and improving on-chain efficiency while still achieving complete file sharing across the blockchain network.
2Reliability
If files are saved in a centralized database with electronic storage certificates on chain, then file sharing is achieved, but security risks arise when files are of high security requirements
Solution Approach 1:
The patent extracts the actual file data from the blockchain transactions and stores it in centralized storage. Only the hash values of the files are placed on the blockchain. This extraction approach maintains the security benefits of blockchain (immutability and verification) while eliminating the security risks associated with storing sensitive file data directly on the distributed ledger. The centralized storage can implement appropriate security measures for high-security files.
3Productivity
If multiple files are compressed into file packages and transmitted concurrently on chain, then file sharing efficiency is improved, but the complexity of data block generation and management increases
Solution Approach 1:
The patent combines multiple files into compressed file packages before creating data blocks. By merging files at the compression level, the system reduces the total volume of data that needs to be processed and transmitted. This merging approach improves file sharing efficiency by reducing network bandwidth consumption and transaction sizes, while the standardized compression and block generation processes help manage the complexity of handling multiple files.
Data Source
AI summary
A file sharing method, apparatus, and system, mainly relate to the technical field of computers. The method comprises: obtaining a file to be shared; concurrently transmitting the shared file compression packages onto a blockchain; forming data blocks according to a compressed package file name and a hash value thereof, wherein the data blocks comprise the hash value of a previous data block; using the hash value of a last data block as a root hash value; and according to the root hash value, obtaining a file comprised in the last data block, and then obtaining each file compression package in a blockchain indicated by the root hash value. By compressing a plurality of files into file packages, the present application partially overcomes the technical problem that the burden of a network resource is too high due to a large number of files; the file on-chain and sharing efficiency is improved by performing concurrent on-chain on each file compression package; and a one-way linked list data structure on the blockchain is used to save and share the file, thereby improving the security of the file.


