13

https://en.bitcoin.it/wiki/Bitcoin-Powered_Database

As far I know, the Bitcoin blockchain is pretty much the only data structure that is both global and tamper-proof.

global - There is one global instance of the blockchain (up to forks ... which are then resolved). tamper-proof - If a block enters the blockchain, after 6+ confirmations this block can't feasibly be faked or altered.

A Bitcoin-powered database would be an API over the blockchain, that would expose a subset of the usual CRUD database operations. In fact, it would be an append-only data structure, because nothing can ever be really deleted from the blockchain - so only CREATE and READ operations will be implemented. Object Versioning will be used to emulate updates and deletions.

Have there been previous attempts to create such a database? I have seen the MerkleWeb proposal, but I haven't really understood it, so I'm not sure if it answers my question.

Chris Moore
  • 14,825
  • 6
  • 66
  • 87
ripper234
  • 26,550
  • 30
  • 111
  • 246
  • 2
    Doesn't namecoin count? It is basically a distributed key value store. –  Jun 17 '12 at 10:40
  • @BenReeves - Hmm, I'm not sure, for two reasons - 1. You have to keep paying to get your data stored, unlike Bitcoin (for good or bad). 2. Could you distinguish a record created five years ago and renewed yearly from a record created yesterday? If not, that's not good enough for this purpose. I believe there isn't a direct API based on Namecoin that offers this. Perhaps it would be easier to write such an API over Namecoin than over Bitcoin. – ripper234 Jun 17 '12 at 10:49
  • 1
    @ripper: Every namecoin op is stored in the (namecoin) blockchain just like bitcoin. so you do not have to pay to get your data stored but only to keep control over a name/value pair. Looking at the chain it is possible to determine all previous ops. – kermit Jun 24 '12 at 14:52

2 Answers2

2

This is it - the CryptoSphere.

It uses some Bitcoin concepts, and might support paying for storage using Bitcoins. I believe that "merge-mining it" using the Bitcoin blockchain would be possible (it's too soon to tell, the design is preliminary).

ripper234
  • 26,550
  • 30
  • 111
  • 246
1

Namecoin is more or less what you're asking for.

GDR
  • 11
  • 1
  • Namecoin can be the basis of what I'm looking for ... but does it have high level DB-like API? – ripper234 Jul 13 '12 at 09:39
  • 1
    Hi GDR! One-line answers are usually not very helpful to other readers. Try to expand the answer to explain a little bit about Namecoin and why it is what OP is asking for. – D.H. Jul 13 '12 at 11:33