I changed webpage.html and tried it myself, it works! Webtorrent is awesome! But I found no instructions on how to host my
- download this repo
- edit
webpage.htmland make at least a modification - download Webtorrent: https://webtorrent.io (or another client that supports websocket)
- create a new torrent (on webtorrent drag the file onto it) containing just
webpage.html - get the torrent hash (on webtorrent you can right click on the entry in the list and select copy magnet link or copy instant.io link, on the magnet link the hash will be
magnet:?xt=urn:btih:HERE&dn=..., this is valid for any magnet link, on the instant.io link you can find the hash after the#sign.) - go onto http://blockchainpen.com, note your bitcoin address in the top-right corner
- deposit a very tiny amount of bitcoins to it (more than
0.1mbtc, less than a1mbtcsuggested, millibits, 0.001 BTC, see extra info to get the private key to be able to sweep your wallet afterwards) and refresh the page - paste your torrent hash into your funded blockchainpen.com page and write the message to the blockchain
- copy your blockchainpen bitcoin address
- edit
index.htmland change thebtcAddressvalue from the existing one to yours - drop the
index.htmlpage onto your browser or host it somewhere like on github pages - call some friends so they will seed your file or put it on <joystream.co> (incentivized seeding w/ bitcoin)
- enjoy!
Server-less & domain-less websites updatable via torrents and bitcoin blockchain.
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.
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.
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.
Save the 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.