I was wondering has there been anything built that utilizes the blockchain as a database storage system either in Bitcoin or another Alt? Say I run the CMS Wordpress and I have a bunch of users. I want these user records which contain their name/phone/email/address sit on the blockchain and retrievable via the blockchain. It could be encrypted or not. These records can be retrieved within the CMS without the need to store it anywhere on the web server thereby replacing MYSQL. Well not replacing mysql completely, but only store selective data that is important.
Does anyone have something like this yet?
I know it can kind of be done on the Bitcoin Blockchain using OP_RETURN. But that only fits 40bytes at the moment. It's going to goto 80bytes eventually as it seems. Or is there another Alt more suited for this use case? One issue is redundancy, Bitcoin would have the most redundancy as its the most distributed with over 6000 nodes. Other alts could very well die and you'll lose all your data if they dont get more nodes up.
I've dealt with MySQL databases before and sometimes they can grow to become really large. I once had a phpBB database take up 1 GB. Blockchain bloating could be a real problem. Datacoin (
link) was an altcoin that served a similar function (storing raw data) and it failed for many reasons, but blockchain bloating was definitely one of them.
And what incentive would nodes have to host this database anyway?
isn't there a pruning setup where you can prune the data after a certain time? say the blockchain can only hold 1-2 gb of data for 1 month and then it deletes it and recycles the storage. thats one way to reduce the bloat.
You would need to find a way to selectively prune some data whilst retaining other types of data. Otherwise, you would have things like blog posts, comments, user accounts, etc. disappear after a certain length of time depending on how often it's pruned. This could probably have some uses but it's not really something that most people would want for their blog/forum/whatever.
It can be developed as a "blogchain" that chain's main purpose is to publish blog posts.
Let's say If I steal someone's blog post on this chain; it'll reject me so I won't be able to post it. Authorship can be verified via public address signing etc.
iThenticate like tools is also needed.
Ps: I've given this example because of mysql & wordpress (blog) relation.
Conclusion, yes it can be done.
I proposed a similar idea about putting forums, imageboards, textboards, BBS systems, microblogs, etc. into a blockchain
here. The website-on-a-blockchain idea works best for sites which have low storage requirements and are regularly pruned.
Ps: I've given this example because of mysql & wordpress (blog) relation.
This is off-topic, but I feel like it is unfortunate that Wordpress was built on top of MySQL because it is a very inefficient technology stack based on what's available today. It would have been more appropriate to have built Wordpress on top of a noSQL document database such as CouchDB or MongoDB. Unfortunately, when Wordpress was first designed noSQL databases did not exist.
Back on topic, MySQL is just not just a storage system - it is a relational database. With a relational database system you expect things like records, tables, indexes, primary keys, constraints, yadayadayada ... How are you going to implement these features on top of the blockchain?
Doesn't WordPress also support SQLite as well?