Did you know that a blockchain and database are two different things? Many consider blockchain similar to a database but it is much more than that.
A blockchain is a form of a database, a distributed database. Let’s talk about the difference and similarity between a database and a blockchain.
What is a blockchain?
A blockchain is a database or a ledger that is distributed. It is a DLT (distributed ledger technology) that the world had not seen before it was introduced to us by Satoshi Nakamoto’s creation of Bitcoin (BTC) in 2009. The underlying technology behind Bitcoin is ‘the blockchain’.
A blockchain is a distributed ledger that can be used between parties that don’t trust each other with data.
It is so because adding something to the blockchain requires works to be done.
For example, in case of Bitcoin blockchain, blocks are added to the chain in every 10 minutes by the miners with cryptographic proofs and timestamps. But let’s not forget that this process makes blockchains very slow.
These cryptographic proofs and timestamps along with proof of work ensure that no one can edit that data without putting a significant amount of work. Moreover, adding transactions with timestamp creates an immutable history which can be verified by anyone.
Through a blockchain, the provenance of digital records becomes easy and transparent. One can see when a digital record was created (origin), ownership of records with timestamps, and its present status, like in the Bitcoin blockchain.
On the Bitcoin blockchain, you can actually see the origin of a particular BTC, and how many times it was transacted between different addresses, and which address actually owns that BTC.
This type of distributed ledger or database can be very helpful between parties that don’t trust each other and yet want to transact with one another in a fair and non-centralized way.
Lastly, in the blockchain architecture, anyone can write digital records to the blockchain by putting a significant amount of work called proof-of-work, so there is no centralized agency for writing on a blockchain.
What is a database?
Databases are a kind of central ledger where you trust the administrator to manage it well.
Of course, the database administrator gives provides rights to read or write, unlike blockchain where anyone can do so by doing the significant amount work in a correct way.
But like blockchain, modern databases can store history and different versions of data but to an extent with the help of a centralized trusted entity.
And because they are centralized in nature, their maintenance is easy and their output is high. But this also brings in the drawback of trusting a centralized entity which when corrupted can compromise the entire data and can even change the ownership of digital records.
In such a system it is easy to pirate the digital records and hence cannot solve problems like double spending.
There is no need to keep all the previous versions of the ledger because we all trust the centralized authority by default and they ought to act fair.
Conclusion
Both types of ledgers (blockchain and databases) can be used for different purposes. For example, wherever we need provenance and immutability, we can use the blockchain. When we need high performance and confidentiality, we can use traditional databases.