Lesson: Turn a File into a Tree of Hashes
Goals
Steps
Step 1: Download the sample file and add it to IPFS
$ ipfs add tree-in-cosmos.jpg
added QmWNj1pTSjbauDHpdyg5HQ26vYcNWnubg1JehmwAE9NnU9Step 2:
ipfs ls -v QmWNj1pTSjbauDHpdyg5HQ26vYcNWnubg1JehmwAE9NnU9
Hash Size Name
QmPHPs1P3JaWi53q5qqiNauPhiTqa3S1mbszcVPHKGNWRh 262158
QmPCuqUTNb21VDqtp5b8VsNzKEMtUsZCCVsEUBrjhERRSR 262158
QmS7zrNSHEt5GpcaKrwdbnv1nckBreUxWnLaV4qivjaNr3 262158
QmQQhY1syuqo9Sq6wLFAupHBEeqfB8jNnzYUSgZGARJrYa 76151 Step 3: Explore The Hash Tree
Step 4: Read the content back out of IPFS
Step 5: Examine the blocks individually
Step 6: Read the Contents of a sub-block
Step 7: Assemble the Pieces Manually
Bonus Steps
Explanation
Next Steps
最后更新于
