Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

EOS Code Analysis IPFS distributed File system with 3 EOS Storage Mechanism

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

EOS uses the IPFS distributed file system as the underlying storage. IPFS is a distributed file system that is addressable, point-to-point, and transmitted over the http protocol. IPFS uses content-addressable addressing technology, that is, it is retrieved by the contents of the file rather than the network address of the file. To put it simply, the hash operation is performed on the contents of the file, and the hash value is saved in the local database as the file name, so as long as the file content remains the same, the file name remains the same.

The node running IPFS is both a client and a server. The client sends the file name to the server and requests to download the file. The server will look for the corresponding file in the database according to the file name, and then send the file to the client. When the file download is completed, the client will hash the file content and compare the hash value with the file name to determine the integrity of the file.

Because the file is saved on a remote node, IPFS itself cannot guarantee that the contents of the file are always accessible, for example, the file is deleted or the remote node denies access. Therefore, there needs to be a set of perfect incentive mechanism to encourage server nodes to provide stable and efficient storage services. For example, in the Filecoin system, users need to pay a fee to the server node for each upload and download of files. However, this payment model will cause the rejection of some users, after all, watching the money out of their pockets, and once users forget to renew, the file may be deleted.

How block producers make a profit

IPFS itself does not guarantee that the contents of the file are always accessible, for example, the file is deleted or the remote node denies access. Therefore, it is necessary to have a perfect incentive mechanism to encourage block producers to provide stable and efficient storage services.

The business model of EOS storage is different from the pay-per-time model of general cloud storage providers, such as Amazon S3. Users who own TOK can use EOS storage service for free. When users upload files, the TOK they hold will be locked on the chunk chain through a smart contract. These TOK cannot be traded or are locked repeatedly. When the user deletes the file, the TOK is automatically released, and then the user can resell the TOK or lock it next time. If the price of TOK remains the same, the user is equivalent to using EOS storage service for free. In fact, TOK will issue an additional 5% every year to the block producer as a contribution reward, so the TOK held by the user will continue to depreciate (assuming the TOK price remains the same), which is equivalent to paying the user the interest generated by holding the TOK as the service fee to the block producer.

Click to follow

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

  • Canvas drawing example of angular

    Example of angular: run the following code

    © 2024 shulou.com SLNews company. All rights reserved.

    12
    Report