Server-less & domain-less websites updatable via torrents and bitcoin blockchain.
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:
1DhDyqB4xgDWjZzfbYGeutqdqBhSF7tGt4is searched for the latest outgoing transaction containing
OP_RETURNscript. Inside the script there is a torrent infohash of
webpage.htmlis downloaded from torrent via webtorrent and displayed.
To perform serverless updates, torrent of the updated
webpage.html is created and its infohash is inserted into new bitcoin transaction sent from
index.html to your PC and open it from
localhost. It will still work and receive updates.
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.
It will be possible to build complex serverless anonymous e-commerce websites using bitcoin for payments.
Proof of concept, just for fun. Works in chrome, firefox and opera.
To create your own distributed webpage, take a look at web2web gateway.