I have been mulling something over and would like to get some input.
I would like to make a serverless webpage using the blockchain + bittorrent.
Let's assume I have a web site with an HTML, some css and a few images compressed into a .zip file of 1Mb.
I then create a .torrent of that zip file, which includes a hash of the file's parts, and start seeding the file. Assume the .torrent file is 200 bytes in size.
I then create a Bitcoin transaction from address 1WEBaj42k2j23lk23nk23jlk2n1kj to any address.
I pay the transaction fee and include an OP_RETURN with 80 bytes from the .torrent with a preceding number like 1/3.
Then I send another transaction from the same address with another 80 bytes with a preceeding number 2/3, etc.
So now there is a series of OP_RETURNs from address 1WEBaj42k2j23lk23nk23jlk2n1kj that can be referenced from any Bitcoin node that tracks OP_RETURNs.
Now I create a browser extension that accepts btctp:/1WEBaj42k2j23lk23nk23jlk2n1kj as an input which then goes to that address and gets its last series of OP_RETURNs.
It puts together the .torrent file and connects as a bittorrent client to download the .zip file. The extension then extracts the contents of the .zip file and displays the web page.
This would prevent DDoS attacks. It would prevent hacks of your server. It would allow people behind censoring firewalls like China to get information and allow anyone to post simple content without the need for a hosting service.
And you are paying the miners in transaction fees. You pay the miners for larger .torrents so they are compensated and you pay for any updates you make, all via transaction fees.
Thoughts?
Could u not store the 200 bytes as part of the message field using a smart currency like Bitshares or NXT? and then rather then using a bitcoin address you use a bitshares or nxt address for the browser extension?
Prefix the message with something since u can't include a special op code