Title: How to host a website in bitcoin transaction? Post by: Fellane on May 28, 2019, 12:56:14 PM I was looking for a way to host a simple html page inside bitcoin transaction but found nothing.
I know, that I can insert data in bitcoin transaction using op_return. As far as I know there is a 40 or 80 bytes limit. Is there any way to host a simple html page in several bitcoin transactions? Let's say I have 1kb html page and I need to insert it to bitcoin blockchain. So I have to use several bitcoin transactions because of limit. But how I can view this html page if it's inside several bitcoin transactions? What is your thoughts about it? Is it at least possible? Title: Re: How to host a website in bitcoin transaction? Post by: LeGaulois on May 28, 2019, 09:06:56 PM It's possible with Ethereum. Someone posted a 'how to' in this section long ago, I don't remember how but I tried and it worked. I'm unable to find his topic again, nor I know what query to tell you to search but I know it's possible.
It's just visible by browsers, not by bot crawlers, etc. Title: Re: How to host a website in bitcoin transaction? Post by: Coding Enthusiast on May 29, 2019, 04:28:54 AM There is a way to do this with bitcoin but it requires combination of two technologies: Bitcoin's scripting language (specifically OP_Return) and Torrent network. This method does not need any servers or domains. The general idea is this:
1. You build your website, it can be a simple "Hello world" page to a complex e-commerce website with user registration,... 2. Make a torrent out of it and get its 20 byte hash (this is simply the hash that you insert in utorrent to download the torrent file) 3. Create a bitcoin address that will belong to your website. Send a transaction to this address and include the hash from previous step in its output with an OP_Return. 4. Now everyone who wants to visit your website has to look at that address, they simply check its last transaction and extract its OP_Return output to get the new hash. Then they download the website using that hash via torrent network by using something like webtorrent (https://webtorrent.io/). Ref: https://github.com/elendirx/web2web Title: Re: How to host a website in bitcoin transaction? Post by: Piggy on May 30, 2019, 07:56:52 AM As an alternative to torrent you can also think to use a IPFS https://ipfs.io/ to host the actual page.
Anyway i agree to store just a link to the data, whatever blockchain you plan to use. |