elendirx/web2web
关于
由种子和区块链驱动的 P2P 网络。
商业与金融实测星标增长
- 24小时
- -1
- 7天
- 0
- 15天
- -1
- 1个月
- -5
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文web2web
Server-less & domain-less websites updatable via torrents and bitcoin blockchain.
Why
Websites get seized by losing control over a webserver or a domain. If we replace both the webserver and the domain with torrents and blockchain then there's nothing left to seize.
How It Works
This repo contains two HTML files:
index.htmlis responsible for loading the webpage from torrent,webpage.htmlis the actual webpage.
When you open index.html in the browser (live demo), here's what happens:
- Bitcoin address
1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4is searched for the latest outgoing transaction containingOP_RETURNscript. Inside the script there is a torrent infohash ofwebpage.html. webpage.htmlis downloaded from torrent via webtorrent and displayed.
How Is It Updated
To perform serverless updates, torrent of the updated webpage.html is created and its infohash is inserted into new bitcoin transaction sent from 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 address.
How Is It Domainless
Save the index.html to your PC and open it from localhost. It will still work and receive updates.
What Next
User Accounts
Users will be able to sign up by sending small amount of bitcoin to the 1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4 bitcoin address.
Then they can update their content by inserting torrent infohashes into transactions sent from their addresses.
E-commerce
It will be possible to build complex serverless anonymous e-commerce websites using bitcoin for payments.
Project Status
Proof of concept, just for fun. Works in chrome, firefox and opera.
To create your own distributed webpage, take a look at web2web gateway.
探索相关项目
加载中…