A detailed overview of Filecoin: what it is, why it is chosen, how it works and FAQs
IPFSCN中文社区
2021-04-28 10:49
本文约3659字,阅读全文需要约15分钟
Distributed storage​As an important part of Web3.0, the importance of IPFS is self-evident.

distributed storageAs an important part of Web3.0, the importance of IPFS is self-evident.

secondary title

Category 1: What is Filecoin?

Filecoin is a peer-to-peer network for storing files with built-in economic incentives to ensure reliable storage of files over time.
Miners in the FIlecoin network can obtain FIL by providing storage for customers. On the contrary, customers can spend FIL to hire miners to store or distribute data. Filecoin includes blockchain and native cryptocurrency (FIL). Storage miners earn FIL by storing files, and Filecoin's blockchain records transactions to send and receive FIL, along with proofs from storage miners that they stored files correctly.
for users
Filecoin enables users to store their files at very competitive prices and verify that their files are stored correctly.

Users can choose their preferred compromise between cost, redundancy, and speed by choosing the miner that best suits their storage needs, and applications implementing Filecoin can negotiate storage with any miner on the network. Unlike centralized storage systems, Filecoin distributed storage does not require implementing different APIs for each provider. Users can at any time verify that their files were stored correctly by looking at proofs on the Filecoin blockchain.

for storage providers

Filecoin enables storage providers to sell their storage on the open market.
Storage providers are people and organizations that run miners and earn Filecoin Tokens. A miner can be any networked computer with spare disk space, or a dedicated system with large amounts of storage built specifically for Filecoin.

Once storage providers implement the Filecoin protocol, they will have access to the entire marketplace of Filecoin users. Providers do not need to design their own storage APIs or promote their products themselves, because this is handled by Filecoin's protocol and network. Filecoin effectively eliminates barriers to entry and breaks the pain points of centralized storage.

What's new in Web3

Web3 is the next era of the Internet. Web3 is a movement in the field of software development that is transforming centralized applications into distributed protocols. Applications built on the web3 architecture do not have to have a single point of control, but can eliminate centralized control. Web3 is an open protocol. world, which allows users to take ownership and take back control of their data.
secondary title

Category 2: How Filecoin works

Filecoin node

Filecoin nodes refer to globally distributed running servers that maintain the Filecoin network. They synchronize the Filecoin blockchain and verify the messages in each block. Once applied, they provide a global state. Nodes can manage Filecoin wallets and receive FIL on them.
Filecoin nodes can also publish different types of messages to the network through broadcasting. For example, a client can publish a message to send FIL from one address to another. Nodes can propose storage and retrieval transactions to Filecoin miners and pay fees for them when executed.

In addition, nodes can also participate in the search contract and provide users with specified documents to obtain FIL. Currently, the Filecoin team is developing more node roles, such as nodes that promote network self-healing.

Filecoin miners

Customers need to send the file information that needs to be stored and a small amount of tokens to the storage market for quotation. Storage miners submit inquiries, and competition among miners can provide low-cost storage. A consensus on storage is reached between clients and miners to complete the pairing process.

After the supply and demand parties reach a deal, the customer sends the file to the storage miner, the miner adds the file to the disk partition, the partition is encapsulated by encryption, and the verification information is sent to the blockchain.

After the miners store the files in their own storage space of the miner node, the miners continue to prove that they are honestly storing the client's files through space-time proof and replication proof. The fee paid by the client to the miner is paid in installments. As time goes by, the miner will not only receive the FIL income paid by the client, but also receive block rewards from the network.

miner type

The Filecoin network will have multiple types of miners:
  • Storage miners are responsible for storing files and data on the network.

  • Retrieval miners, responsible for providing fast lanes to retrieve files.

  • Repair miners, to be implemented.

Storage Miners are the heart of the network. They earn Filecoin by storing data for clients and calculating cryptographic proofs to verify storage across time. The probability of earning block rewards and transaction fees is proportional to the amount of storage miners contribute to the Filecoin network.

trade

trade

Filecoin has two main types of transactions: storage transactions and retrieval transactions.

A storage transaction is an agreement between a client and a storage miner to store some data in the network. Once the transaction has started, and the miner has received the data storage, it will repeatedly prove to the chain that it is still storing the data according to the agreement so that it can collect rewards. Otherwise, miners will be punished and lose FIL.
A retrieval transaction is an agreement between a client and a retrieval miner to extract data stored on the network (hopefully in a fast, reliable way). Unlike storage transactions, these are implemented through off-chain transactions that use payment channels to incrementally pay for received data.
gas fee
Gas was originally implemented on the Ethereum blockchain to measure the computing and storage resources consumed by messages. GAS is a way to measure the resources consumed by a message. The GAS fee consumed by a message directly affects the cost that the sender must pay for it to be included in a new block by miners.
secondary title

Category 3: Why choose Filecoin

open market

In Filecoin, file storage and retrieval transactions need to be negotiated on the open market, and anyone can join the Filecoin network without permission. Running miners only requires an Internet connection and spare disk space to participate in the Filecoin network. By lowering the barriers to entry, Filecoin can create a truly decentralized Internet.

competitive price

The price of storage and retrieval is determined by supply and demand, not by enterprise pricing departments. Filecoin offers reliable storage at very competitive prices, and miners compete based on their storage, reliability, and speed, not through marketing or locking in users.

reliable storage

self-healing

self-healing

secondary title

Category 4: Comparing Filecoin

Filecoin vs. Amazon S3, Google Cloud Storage

secondary title

Category Five: Filecoin Frequently Asked Questions

Will storing data on Filecoin be cheaper than other centralized cloud services?

Filecoin has created a highly competitive market for data storage. There will be many miners on the network offering many prices instead of one fixed price. Officials expect that Filecoin's permissionless model and low barriers to entry will lead to some very effective operating mechanisms and low-cost storage solutions.

What can I do if I accidentally lost a sector?

If the user loses the data itself, there will be no way to recover it and the user's reward will be cut. However, if the data itself is recoverable (for example, the user just missed the WindowPoSt), then the recovery process will be able to regain the sector.

Why Filecoin mining works best on AMD?

Currently, Filecoin's Proof of Replication (PoRep) tends to run on AMD processors. See the description of the Filecoin seal for more information. More precisely, it runs much slower on Intel CPUs. It's extremely competitive with some ARM processors (like the ones in newer Samsung phones), but they lack RAM to seal larger sectors. The main reason we see this advantage on AMD processors is due to their implementation of the SHA hardware instruction.

Which is better for miners, Lotus or Venus?

Lotus is the main reference implementation of the Filecoin protocol. At this stage, we recommend that most miners use Lotus to participate in the Filecoin network.

How fast is retrieval from the Filecoin network?

If you are retrieving data from IPFS or a remote fixed layer such as FPS, the retrieval should take on the order of milliseconds in the worst case. Recent tests retrieved from the Filecoin network directly show that sealed sectors holding data take about 1 hour to unseal. From department unsealing to data delivery, the best implementation estimate is 1-5 hours. If you need to retrieve data faster for your application, it is recommended that users build storage on Powergate or FPS.

In the process of data storage, what kind of punishment mechanism will be imposed if data is lost or cannot be accessed? What impact will it have on server cluster operators?

It will lead to mortgage losses, and at the same time clear effective storage and computing power to zero, and will also affect the reputation of server cluster operators, causing a great adverse impact on server cluster operators.

After learning the knowledge points, hurry up and click to read and bookmark it!

With the continuous evolution of blockchain technology, the ever-improving ecology of IPFS&Filecoin has attracted many developers in the encryption field, and distributed storage will also play an increasingly important role in the upcoming Web3.0 era.

IPFSCN中文社区
作者文库