"html":"<p>IPFS is now integrated into the Ocean Protocol stack, allowing you to take advantage of decentralized asset file hosting.</p>\n<hr>\n<blockquote>\n<p>This article was originally posted <a href=\"https://blog.oceanprotocol.com/ocean-ipfs-integration-store-asset-files-43c623c356d7\">on Medium in the Ocean Protocol blog</a>.</p>\n</blockquote>\n<hr>\n<h2 id=\"-going-decentralized\"><a href=\"#-going-decentralized\" aria-label=\" going decentralized permalink\" class=\"anchor\"><span>#</span></a>✨ Going Decentralized</h2>\n<p>With Ocean Protocol, you can use centralized storage services like S3, Azure Storage, or your own On-Premise storage to store and retrieve your asset files through <a href=\"https://docs.oceanprotocol.com/concepts/components/#osmosis-drivers\">Osmosis drivers in Brizo</a>.</p>\n<p>But storing asset files in a centralized service poses multiple problems:</p>\n<ul>\n<li>one entity controls the data</li>\n<li>one entity is legally responsible for all stored data</li>\n<li>creates a single point of failure</li>\n<li>if service goes offline, asset files can’t be consumed</li>\n<li>opening up possibilities of censorship by the entity running the service, or the service itself</li>\n<li>if files are moved to another location within the same service, existing URLs break</li>\n</ul>\n<p>Initially created to store and efficiently move scientific data sets, the <a href=\"https://ipfs.io/\">InterPlanetary File System (IPFS)</a> solves all those issues with its goal of transforming the vastly centralized web into a distributed peer-to-peer network.</p>\n<p>Files are distributed among multiple nodes, eliminating the single point of failure, legal, and censorship issues. By using content-based instead of location-based addressing of files, URLs won’t break if files are moved.</p>\n<p>So we defined <a href=\"https://github.com/oceanprotocol/OEPs/tree/master/15\">OEP-15</a> to make the <code>ipfs://</code> protocol a first-class citizen in the Ocean Protocol stack, allowing you to store asset files on IPFS, and use their native IPFS URLs during the publish process.</p>\n<ul>\n<li><a href=\"https://github.com/oceanprotocol/OEPs/tree/master/15\"><strong>OEP-15: oceanprotocol/OEPs</strong></a></li>\n</ul>\n<p>In short, every component in the Ocean Protocol stack now supports publishing and consuming of asset files stored in IPFS which includes support for native IPFS URLs, referencing files with their Content Identifiers (CIDs).</p>\n<h2 id=\"️-ipfs-in-commons-marketplace\"><a href=\"#%EF%B8%8F-ipfs-in-commons-marketplace\" aria-label=\"️ ipfs in commons marketplace permalink\" class=\"anchor\"><span>#</span></a>⛲️ IPFS in Commons Marketplace</h2>\n<p>Every file stored on IPFS is public by default, so it made perfect sense using this in our <a href=\"https://commons.oceanprotocol.com\">Commons Marketplace</a> first. We went through <a href=\"https://github.com/oceanprotocol/commons/pull/191\">multiple prototypes</a> to end up with our final setup.</p>\n<p>During the publish flow you will find an extended <em>Files</em> section for adding a file from an existing URL, and for adding a local file from your device to IPFS.</p>\n<p><figure class=\"gatsby-resp-image-figure\" style=\"\">\n <span\n class=\"gatsby-resp-image-wrapper\"\n style=\"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 630px;\"\n >\n <a\n class=\"gatsby-resp-image-link\"\n href=\"/static/5ec4122379d5c270cd7d899b02d8512e/67be7/add-url.png\"\n style=\"display: block\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n <span\n class=\"gatsby-resp-image-background-image\"\n style=\"padding-bottom:49.59128065395095%;position:relative;bottom:0;left:0;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAIAAAA7N+mxAAAACXBIWXMAAAsSAAALEgHS3X78AAABK0lEQVQoz5VR207CQBDl/79FXww8aMSEmGBiwpsKLeX+AtKWYvc+lzpbML4Y1Mns7OzMnpzZsx1mVkpZY5t/GhF1GuZaqfL44QNY55W1LgTjvLFOGzn4S2AkaoipMmgDOggHBZVGF4gYpSfdC+DYRwQfGm5rEonP+Y8YZnGxCJbNO7+ab
"excerpt":"IPFS is now integrated into the Ocean Protocol stack, allowing you to take advantage of decentralized asset file hosting. This article was originally posted on Medium in the Ocean Protocol blog. ✨ Going Decentralized With Ocean Protocol, you can use…",
"frontmatter":{
"title":"Ocean Protocol and IPFS, Sitting In The Merkle Tree",