On July 6, 2020, Filecoin officially launched the Filecoin tutorial to verify the storage on Filecoin. It provides a beginner-friendly, code-free experience with Filecoin’s proof system and explores how Proof of Replication (PoRep), Proof of Storage (PoSt), and zkSNARKs make it possible to trust each other in an incentivized distributed storage system. Next, we start learning the second lesson. Verifying Storage on Filecoin | Lesson 2 of 6 Preparing and Transferring Data 1. Prepare the data to be stored Before a system file (such as puppy.gif) can be stored on the Filecoin network, it must first be converted into a Filecoin Piece. In the first phase of this conversion, the system files are chunked together with UnixFS to create an IPLD DAG (directed acyclic graph) . You can learn more about DAGs (a form of merkle tree) in our decentralized data structures tutorial. The payload CID (content identifier) of this IPLD DAG is the same as the IPFS CID and represents the root of the DAG. The IPLD DAG is then serialized into a CAR file and bit-filled to make a Filecoin Piece. The work has a unique work CID (content identifier), also known as CommP (work commitment). Since the payload CID and fragment CID are cryptographic hashes of the data itself, they are unique and having the same CID guarantees that the content is identical. The same IPLD DAG will produce the same payload CID, and the same fragment will produce the same fragment CID, no matter who stores or retrieves them. 2. Negotiate storage transactions and transfer data When clients negotiate storage deals with miners, they hire them to store blocks of data, which could be a whole or partial file. Miners store these pieces from one or more clients in sectors, the basic unit of storage used by Filecoin. Sectors vary in size, and clients can store a maximum size of data per transaction. A CID (Content Identifier) is packaged with other transaction parameters to create a transaction proposal. The transaction CID contains information about the data itself, in the form of a block CID, the identity of the miner and client, and other important transaction details. The client sends this transaction proposal to the miner who agrees to store their data. After the miner confirms it, the client will transfer its data to the miner. Once the miner has the data and verifies that it matches the CID recorded in the transaction proposal, they publish the transaction proposal on Filecoin's blockchain and commit both parties to the transaction. |
Judging from the shape of the mouth, people with ...
Rage Commentary : According to news reports, UBS ...
Coincheck, one of Japan's largest cryptocurre...
It is reported that South Korea's anti-money ...
Some people have small noses, some have big noses...
From a person's palm, we can see a person'...
The length of the philtrum should be moderate Fro...
In fact, many people know the importance of facia...
Marriage is one of the most important things in o...
Some people have been working locally for many ye...
Moles can be found all over the body, and a woman...
Is your marriage happy? People with clear and str...
Despite some high-profile developments in the Bit...
Is it good for a man to have a peach blossom face...
What does it mean if there are many chain pattern...