PlanetFlare – 平面闪光区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,PlanetFlare – 平面闪光区块链毕设代写 是一篇很好的国外资料

PlanetFlare

PlanetFlare - 平面闪光

Contributors: Raphael Koh, Richard Liu, Jashan Shewakramani

🏆 HackFS Top 10 Finalist 🏆

  • Finalist demo video
  • Demo video

Description

With the price of storage decreasing at a much more rapid pace than network bandwidth/speed, there is a huge opportunity to leverage this cheap storage to increase page load times. With IPFS, we can reduce the impact that conglomerates have on the CDN market and empower the people to use their storage space as a CDN to earn passive income. The cheaper storage gets, the more attractive and lucrative a decentralized CDN becomes.

Planetflare is a platform that creates this retrieval marketplace by enabling anyone with a computer to serve assets as a CDN and get paid for it. Content publishers (e.g. Netflix) can host their assets on Planetflare and bid for CDN availability by specifying pricing This open market drives the cost of content distribution down. This also enables CDNs to be more globally distributed as we are no longer limited by data centres. If you want to request a piece of content from Botswana, a provider 2 blocks down could already be caching content for you.

As a publisher, hosting content using Planetflare is as easy as uploading your assets on the Publisher dashboard to a Textile Bucket. A bid (or bounty) in our ERC20 token, PlanetFlare Coin (or PFC), is specified for the distribution of that content and committed to the chain. Integrating Planetflare into your website is seamless; it’s as easy as injecting a custom script into your frontend code! The custom script also handles rewarding the Provider that served your cached assets.

Anyone can serve as a Planetflare Provider by downloading and running the Planetflare Provider node. This low barrier to entry encourages strong competition. The Provider can choose to either query the chain for the most lucrative bounties or choose to listen in on incoming requests from peers. The Provider node allows customization of strategies so that the nodes with the best strategies will most likely be the ones getting rewarded by Publishers. Strategies can become as complex as setting up a machine learning model on AWS that the Provider node can query to decide on their caching strategy!

Credits to Michelle Liang for the amazing Planetflare logo designs!

How it’s made

This project consists of 3 components:

  1. Provider (serves assets) The Provider node is a custom wrapper around IPFS and Libp2p with a dashboard made in React. The backend IPFS node and the dashboard communicate over Socket.io. The node also communicates to the ethereum chain via Metamask and Web3. The Provider node allows the user to create custom caching strategies and listens in on incoming requests from the DHT and Bitswap (via the corresponding libp2p protocols). This allows users to create dynamic strategies that depend on statistics, such as frequency of incoming requested data.

PlanetFlare - 平面闪光

  1. Client (queries for assets) For the Client’s webpage to use assets from Planetflare, they just have to install a custom JavaScript script into their webpage. This creates an in-browser IPFS node that queries for IPFS content in the webpage. Additionally, we are using a custom forked version of IPFS in which we are querying the Bitswap ledger to figure out which Provider served us content so we can reward them.

  2. Publisher (uploads assets) The Publisher node is an IPFS node with a dashboard in React.js upload assets via the Publisher dashboard to Textile buckets. Upon uploading to a bucket, the Publisher then creates a bounty for that bucket on-chain. The Publisher also exposes an endpoint to listen in on token submissions by Providers and rewards them accordingly via payment channels.

Running end-to-end flow

  1. Start up local chain: smart-contract/run-local-node.sh.
  2. Deploy PFC contract: smart-contract/deploy-contract.sh.
  3. Start Publisher server: cd publisher && npm start.
  4. Start Publisher UI: cd publisher-ui && npm start and go to http://localhost:3000.
  5. Upload data to Textile buckets in Publisher UI.
  6. Start up Provide node: cd provider && npm start.
  7. Go to http://localhost:5000 to access Provider UI.
  8. Start IPFS node.
  9. Open up publisher/index.html.
  10. In the Provider UI, you should see the receipt of a new token in the top-right.
  11. Click on the button and click on “Submit Tokens”.
  12. Get paid!

PlanetFlare

作者:Raphael Koh,Richard Liu,Jashan Shewakramani

🏆 入围前10名🏆

随着存储价格以比网络带宽/速度更快的速度下降,利用这种廉价存储来增加页面加载时间的机会非常巨大。有了IPFS,我们可以减少企业集团对CDN市场的影响,并使人们能够将其存储空间用作CDN来赚取被动收入。存储越便宜,分散式CDN就越有吸引力和利润。

  • 最终入围演示视频
  • 演示视频

描述

Planetflare是一个创建这个检索市场的平台,它使任何拥有计算机的人都可以将资产作为CDN服务并获得报酬。内容发布商(如Netflix)可以将其资产托管在Planetflare上,并通过指定定价来竞购CDN可用性这一开放市场降低了内容分发的成本。这也使得cdn能够更全球化地分布,因为我们不再受数据中心的限制。如果你想从博茨瓦纳请求一段内容,2个街区以外的提供商可能已经在为你缓存内容。

作为一个发布者,使用Planetflare托管内容就像将您的资产上载到publisher仪表板上的纺织桶一样简单。我们的ERC20代币PlanetFlare Coin(或PFC)中的出价(或赏金)被指定用于该内容的分发并提交给链。将Planetflare集成到您的网站是无缝的;这就像在前端代码中注入自定义脚本一样简单!自定义脚本还处理对为缓存资产提供服务的提供者的奖励。

任何人都可以通过下载并运行Planetflare Provider节点来充当Planetflare提供者。这种低门槛的进入鼓励了激烈的竞争。提供者可以选择查询链中最有利可图的奖金,也可以选择监听来自对等方的传入请求。Provider节点允许定制策略,因此具有最佳策略的节点最有可能获得发布者的奖励。策略可以变得非常复杂,就像在AWS上建立一个机器学习模型,提供者节点可以查询这个模型来决定它们的缓存策略!

这归功于Michelle Liang的惊人Planetflare徽标设计!

此项目由3个组件组成:

如何实现

PlanetFlare - 平面闪光

  1. 提供者(服务资产)提供者节点是IPFS和Libp2p的自定义包装器,带有React中的仪表板。后端IPFS节点和仪表板通过插座.io. 节点还通过Metamask和Web3与以太坊eth链通信。Provider节点允许用户创建自定义缓存策略,并监听来自DHT和Bitswap的传入请求(通过相应的libp2p协议)。这允许用户创建依赖于统计信息的动态策略,例如传入请求数据的频率。

客户端(资产查询)要使用Planetflare的资产,他们只需在其网页中安装一个自定义的JavaScript脚本。这将创建一个浏览器内IPFS节点,用于查询网页中的IPFS内容。此外,我们正在使用一个自定义的分叉版本的IPFS,在这个版本中,我们查询Bitswap分类账,以确定哪个提供商为我们提供内容,以便我们可以奖励他们。

  1. 客户端(查询资产)要使用Planetflare的资产,客户只需在其网页中安装一个自定义的JavaScript脚本。这将创建一个浏览器内IPFS节点,用于查询网页中的IPFS内容。此外,我们正在使用一个自定义的分叉版本的IPFS,在这个版本中,我们查询Bitswap分类账,以确定哪个提供商为我们提供内容,以便我们可以奖励他们。
  2. Publisher(上载资产)Publisher节点是一个IPFS节点,其中包含一个仪表板React.js公司通过发布者仪表板将资产上传到纺织桶。上传到一个bucket后,发布者就为这个bucket在链上创建一个悬赏。发布者还公开了一个端点来监听提供者提交的令牌,并通过支付渠道相应地奖励他们。

运行端到端流

  1. 启动本地连锁:智能合约/本地运营-节点.sh.
  2. 部署PFC合约:智能合约/部署-合同.sh.
  3. 启动发布服务器:cd Publisher&npm启动。
  4. 启动Publisher UI:cd Publisher UI&npm启动并转到http://localhost:3000。
  5. 将数据上载到Publisher UI中的纺织桶。
  6. 启动提供节点:cd提供程序和npm启动。
  7. 转到http://localhost:5000以访问提供程序UI。
  8. 启动IPFS节点。
  9. 打开publisher/索引.html.
  10. 在提供者UI中,您应该在右上角看到新令牌的收据。
  11. 单击按钮并单击“提交令牌”。
  12. 获得报酬!在

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/16767.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 !
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » PlanetFlare – 平面闪光区块链毕设代写

提供最优质的资源集合

立即查看 了解详情