by function_seven · 4y ago · 0 comments
Yes, I know this isn’t strictly “append only”, but it still gives the ability to prevent silent updates and silent deletes. Any record that’s deleted must be replaced with something that indicates that it was deleted.
If you know you can trust all your peers to act in good faith, then you might as well just use a regular database as none of your peers will edit old records due to being good actors.
There's a chain for sure, but nothing that allows it to be decentralized, or 100% immutable, etc.
Deleting a document revision in QLDB does not actually delete it, but rather moves the last known revision into a shadow history table that accompanies every table in QLDB. The full document change history lookup has to accommodate in the code path a fallback to the history table when a document revision can't be located in the main data entity table. If no document revision exists in either table, it has never existed in the database.
Bonus: use a committing AEAD mode and use the previous record as AEAD when writing the record.
You can keep the ciphertext in the ledger forever. Zeroing out the wrapped key makes it unretrievable.