Deal Verification
Last updated
Was this helpful?
Last updated
Was this helpful?
Deals and file inclusion can be verified using the following steps.
the successful return of calling complete
(i.e. the call doesnβt revert) means that the dealβs proof is verified successfully by the smart contract and the mapping of the deals between cid and (miner_id, deal_id) are updated in the smart contract
You can call the complete function located here:
0x4015c3E5453d38Df71539C0F7440603C69784d7a
to verify the successful inclusion of your in the live filecoin deal. Code for this smart contract can be found
Submit your proof details, specifically: proofSubtree, proofIndex, and verifierData.
Complete function would emit event with two things: "commPa" and "sizePa". Think of these as your file's unique fingerprints.
These fingerprints (pieceCID and pieceSize) might look like regular text. You'll need to change them into a code-like format, known as hex, before you compare.
This verifier data is like a mixed salad of your file combined with others. The first step confirmed that the salad has the right ingredients.
Now, it's time to be certain that the main ingredient in the salad is indeed your file. Do this by grabbing your file's unique PieceCid and comparing it with the verifier data given.
You're almost done! You've just ensured your file is part of a bigger bundle handed to a miner.
Need more peace of mind? Head on over to . Here, make sure the dealId
you received is live π