Do any immutable open source databases exist?
Amazon Quantum Ledger Database
161–170 of 183 posts
Re: Amazon Quantum Ledger Database
#162Earlier quoted context omitted.
Your data modelling has to be GDPR compliant not your database.
How do you delete user data from an immutable store? You get into cryptography at that point and then some edge cases make it not so simple.
Re: Amazon Quantum Ledger Database
#163Do any immutable open source databases exist?
Re: Amazon Quantum Ledger Database
#164Having our own ledger means we can cheaply do internal transfers, micro rewards, and other incentives. Doing the bookkeeping correctly and in a tamper proof way is of course important for us, which is why we built our own ledger database to ensure we don't end up with corrupted data (either through bugs or malicious activity).
I use content hashes as the id that include the id of the previous ledger entry and the key data stored in each row. The core design is pretty easy (it's basically a linked list) but the devil is in the details with this stuff since you indeed need to worry about auditing and making sure you don't end up losing transactions.
Additional headaches include dealing with concurrent transactions and the fact that mysql does not do serializable transactions (at least not in sane way). Each row should only have 1 successor meaning that every new row involves looking up the previous row, and using it's id as a parent id. So we have a select and an insert happening in a transaction. We have a simple db constraint enforcing the parent is referred only once. We retry transactions when this constraint gets violated. This does actually happen when two concurrent transactions decide to use the same parent id. If transactions were serializable, this would not happen and the second transaction would end up using the id of the first.
Another of the gotchas is that data migrations are kind of hard/impossible in an immutable data store. The only way to do it would be to effectively recreate a new database with new content hashes. So there are some things that I'd like to change that I can't actually change because it would break the content hashes. But by and large, this design is working quite well for us so far.
So, in short, it's not rocket science but hard enough that having a well supported product that does this is worth having. We're actually considering open sourcing it at some point since it seems there are quite many projects out there that use a ledger primarily to have some tamper resistant immutable and auditable log of transactions.
Re: Amazon Quantum Ledger Database
#165Earlier quoted context omitted.
That's a good question! If your keys leaked, you'd probably have to assume you lost all of the data up to that point. To secure the data going forward, you'd need to generate a second key per user for all of the future data. Well, and hopefully shore up the security problems! I agree, though, that an immutable ledger like this complicates things in a way that you-shouldn't-mutate-but-can datastores do not.
I think it's worse than just losing the data. If you operate a public cryptography ledger with users data in EU and do it under some company name, you won't be able to comply with the "right to be forgotten" or how it's called. I'm currently working on this problem in application to blockchains. The plan ATM is to implement cryptographic snapshots of the data, where the old transactions are erased but their proof is…
Re: Amazon Quantum Ledger Database
#166Earlier quoted context omitted.
What’s the advantage over a centralized system?
You have many vendors that handle the product. The farm, multiple distributors, and transportation companies. Having a consolidated/consistent view of transactions from the full supply chain relative to tangible product could be genuinely helpful for reducing errors that could be consequential from a food safety perspective. It's unlikely to stop cheating since many of these food vendors will almost certain being hum…
Re: Amazon Quantum Ledger Database
#167Re: Amazon Quantum Ledger Database
#168Re: Amazon Quantum Ledger Database
#169Earlier quoted context omitted.
It's still too early for most people to understand how amazing the concept around MakerDAO and DAI actually is. They will, but it will take a bit of time.
Been hearing about it but must admit I don't fully understand it. Would you mind a sentence or two on why the concept is so amazing?
Re: Amazon Quantum Ledger Database
#170I'm pretty sure this is what most people actually want when they say they want a blockchain, they just don't know it yet. It's got all the useful database features with none of the "well uh let's distribute it over people's computers and let people mine coins to support it" complexity, which adds nothing to 99% of usecases besides silly ICO potential.
That problem could potentially be mitigated by doing best-of-three or best-of-five with multiple trusted parties.