

{"id":18373,"date":"2018-06-18T06:06:49","date_gmt":"2018-06-18T06:06:49","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=18373"},"modified":"2022-04-19T17:57:58","modified_gmt":"2022-04-19T12:27:58","slug":"ipfs-blockchain","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/","title":{"rendered":"How to Share File in IPFS Blockchain | IPFS Tutorial"},"content":{"rendered":"<p>IPFS stands for Interplanetary File System. As cosmic as that name sounds, it is basically a file-sharing system that can be leveraged to more efficiently store and share large files. If you are familiar with open source contributions and technologies like Git or Github, then IPFS is quite like Git as it allows you to store files and track edits over a network. However, it is not exactly a blockchain.<\/p>\n<h3>How does IPFS work?<\/h3>\n<p>IPFS can be rightly called as the <strong>Hard drive for blockchain<\/strong>. It is a storage system that facilitates direct interaction via a secure and global <strong>peer-to-peer<\/strong> network. Thus, it enables something like a new web.<\/p>\n<p>It was introduced in 2016, and allows users to share files and information without barriers. The most unique thing is, that unlike many technologies the IPFS system works best with large files that need a higher bandwidth.<\/p>\n<p>Another reason for its popularity is because it is designed to operate over a multitude of protocols like FTP and HTTPS. It stores data using a <strong>distributed hash table<\/strong>, once the hash is obtained, we ask the peer network for the user who has the content located in that hash, and we download directly from the node that has the required data.<\/p>\n<p>This mechanism increases security and creates a good control system. In this system, only those with the hash can access the content.<\/p>\n<h3>Why IPFS?<\/h3>\n<p>The existing internet is built on a number of protocols to manage data transfer over the network. All existing applications are built using these protocols. <strong>HTTP (HyperText Transfer Protocol)<\/strong> invented in 1991 is quite like the backbone of the existing web. It\u2019s job is to transfer requests from a user to a website.<\/p>\n<p>However, HTTP ceases to work when it comes to broken links (links that are unable to connect to the concerned websites because the content has been deleted, or blocked, etc), Moreover, HTTP works in a way that a lot of our way is handed over to the websites we visit giving them a lot of power and information which might be misused against us.<\/p>\n<p>Hence, IPFS stands as a revolutionary alternative that seeks to make a permanent and decentralised web instead of the centralised one.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/why-ipfs.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109056\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/why-ipfs.webp\" alt=\"why ipfs\" width=\"540\" height=\"484\" \/><\/a><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/need-of-ipfs.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-109057\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/need-of-ipfs.webp\" alt=\"need of ipfs\" width=\"720\" height=\"251\" \/><\/a><\/p>\n<h3>Sharing a File \u2013 IPFS Blockchain<\/h3>\n<p>Let us try to understand the mechanism using an example<\/p>\n<p>Imagine you want to share a pdf file to IPFS, you will put it into the operating directory. Next, to feature this file you will command the IPFS to generate a hash for the file, this offers it to the IPFS network. To share this particular file with anyone connected to the network, you will now just have to share the hash and they can duplicate the PDF.<\/p>\n<h3>Asymmetric IPFS Encryption<\/h3>\n<p>This encryption mechanism adds an additional layer of security to the files. The files are encrypted using a key and any malicious party will not be able to access the files without the desired key.<\/p>\n<p>So imagine that before uploading the PDF on the network, you decide to encrypt it using your friend, Tom\u2019s public key. Whenever Tom wishes to retrieve the file from the network, he will enter the hash, and then decrypt the file using his non-public key. Since nobody else has access to Tom\u2019s non-public key, nobody else will be able to decrypt the file and it\u2019ll be safe!<\/p>\n<h3>IPFS and Blockchain<\/h3>\n<p><strong>Blockchain<\/strong> is a decentralized peer-to-peer network that provides immutability and thus, is the best choice to support traceability of data on a distributed file system like IPFS.<\/p>\n<p>IPFS and blockchains share a similar structure and work well together. To understand it well, imagine it like IPFS would connect all different blockchain quite like how the internet connects all websites. It might as well act like a backbone structure for the new web. Like we link one page to another using a <strong>link,<\/strong> a link can be placed in Ethereum in order to link to some other network.<\/p>\n<p>Hence, the future of IPFS and blockchain is quite closely related and they might be integrated to generate a consolidated engine of decentralised finance and applications.<\/p>\n<h3>Uses of IPFS<\/h3>\n<p>Look at the many ways IPFS can help you.<\/p>\n<p><strong>1. Archivists<\/strong>: With IPFS, you can store archival data with deduplication, clustered persistence, and high performance &#8211; enabling future generations to access the world&#8217;s information.<\/p>\n<p><strong>2. Service Providers<\/strong>: Due to its use of peer-to-peer content delivery, IPFS can help you reduce bandwidth costs.<\/p>\n<p><strong>3. Researchers:<\/strong> Using IPFS to store large datasets can improve performance and enable decentralised archiving when you use them for distributing or working with large datasets.<\/p>\n<p><strong>4. Blockchain Developers<\/strong>: It allows you to store large files off-chain and create immutable, permanent links in transactions, securing and timestamping content without having to store it on-chain.<\/p>\n<p><strong>5. Content Creators<\/strong>: IPFS gives creators the tools to build and share on the decentralised web-like minting NFTs or delivering free content.<\/p>\n<p><strong>6. Offline Users<\/strong>: Poor internet infrastructure is hampered by high-latency networks. Peer-to-peer IPFS offers resilient access to data independent of latency or backbone connectivity.<\/p>\n<h3>Advantages of IPFS<\/h3>\n<p>1. No need for servers to host websites. The data will be directly delivered by IPFS and pulled from the blockchain<\/p>\n<p>2. Safe social networks as the information will be available to only those whom you give the permission<\/p>\n<p>3. Uncensored communication without any intermediaries<\/p>\n<p>4. No more account registration! Your private keys will be the only account needed as an identity for websites.<\/p>\n<h3>Who is using IPFS?<\/h3>\n<p><strong>1. Microsoft ION<\/strong>: It is a digital identity system built on Bitcoin and IPFS. It allows the creation of a secure digital identity system that can work globally.<\/p>\n<p><strong>2. Wikipedia uso IPFS<\/strong>: It is exactly like the main wikipedia website with permission to access wikipedia from areas where it is censored.<\/p>\n<p><strong>3. Filecoin<\/strong>: Cooperative storage cloud that operates on IPFS<\/p>\n<p><strong>4. Opera Para Android<\/strong>: allows mobile users to access data on the IPFS network.<\/p>\n<p><strong>5. Brave<\/strong>: A unique search engine that uses IPFS to host the decentralised store.<\/p>\n<h3>Conclusion<\/h3>\n<p>In this article after discussing what IPFS actually is and how it works, we learnt how to share a file on this blockchain. We also learnt about asymmetric IPFS encryption, and how to install it. This was followed by a discussion on how IPFS can be useful and what advantages it has to offer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>IPFS stands for Interplanetary File System. As cosmic as that name sounds, it is basically a file-sharing system that can be leveraged to more efficiently store and share large files. If you are familiar&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":109055,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[2025,2061,7296,7297,7298,7299,7300,7301,7302,7303,7304,15772],"class_list":["post-18373","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blockchain","tag-blockchain","tag-blockchain-ipfs","tag-ipfs-and-blockchain","tag-ipfs-blockchain","tag-ipfs-ethereum","tag-ipfs-ico","tag-ipfs-network","tag-ipfs-security","tag-ipfs-token","tag-ipfs-tutorial","tag-ipfs-with-blockchain","tag-what-is-ipfs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Share File in IPFS Blockchain | IPFS Tutorial - DataFlair<\/title>\n<meta name=\"description\" content=\"IPFS Blockchain tutorial: what is IPFS, its advantages, uses, working and need, sharing a file in IPFS network, IPFS security, etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Share File in IPFS Blockchain | IPFS Tutorial - DataFlair\" \/>\n<meta property=\"og:description\" content=\"IPFS Blockchain tutorial: what is IPFS, its advantages, uses, working and need, sharing a file in IPFS network, IPFS security, etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-06-18T06:06:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-04-19T12:27:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Share File in IPFS Blockchain | IPFS Tutorial - DataFlair","description":"IPFS Blockchain tutorial: what is IPFS, its advantages, uses, working and need, sharing a file in IPFS network, IPFS security, etc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/","og_locale":"en_US","og_type":"article","og_title":"How to Share File in IPFS Blockchain | IPFS Tutorial - DataFlair","og_description":"IPFS Blockchain tutorial: what is IPFS, its advantages, uses, working and need, sharing a file in IPFS network, IPFS security, etc.","og_url":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-06-18T06:06:49+00:00","article_modified_time":"2022-04-19T12:27:58+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"How to Share File in IPFS Blockchain | IPFS Tutorial","datePublished":"2018-06-18T06:06:49+00:00","dateModified":"2022-04-19T12:27:58+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/"},"wordCount":1050,"commentCount":1,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp","keywords":["blockchain","Blockchain IPFS","IPFS and Blockchain'","IPFS Blockchain","IPFS ethereum","IPFS ico","IPFS network","IPFS security","IPFS token","IPFS tutorial","IPFS with Blockchain","what is IPFS"],"articleSection":["Blockchain Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/","url":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/","name":"How to Share File in IPFS Blockchain | IPFS Tutorial - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp","datePublished":"2018-06-18T06:06:49+00:00","dateModified":"2022-04-19T12:27:58+00:00","description":"IPFS Blockchain tutorial: what is IPFS, its advantages, uses, working and need, sharing a file in IPFS network, IPFS security, etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/06\/ipfs-blockchain.webp","width":1200,"height":628,"caption":"ipfs blockchain"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/ipfs-blockchain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Blockchain Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/blockchain\/"},{"@type":"ListItem","position":3,"name":"How to Share File in IPFS Blockchain | IPFS Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18373","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=18373"}],"version-history":[{"count":7,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18373\/revisions"}],"predecessor-version":[{"id":109058,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/18373\/revisions\/109058"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/109055"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=18373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=18373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=18373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}