Javatpoint Logo
Javatpoint Logo

Blockchain Vs. Database

Blockchain

A Blockchain is a database or a ledger that stores information in a data structure called blocks. It is based on distributed ledger technology which can be used between parties that don't trust each other with data. It is so because adding something to blockchain requires verification from other users.

A blockchain keeps information permanently in uniform sized blocks. Each block stores the hashed information from the previous block to provide cryptographic security. The blockchain hashing uses SHA256 which is a one-way hash function. The hashes of previous blocks that goes all the way back to the very first block produced in the blockchain called a "genesis block." A blockchain data structure is in the form of a Merkle Tree, which is used as an efficient way to verify data.

Databases

A database is a kind of central ledger where the administrator manages everything. Here the administrator provides rights to read, write, update, or delete operation. Since it is centralized in nature, their maintenance is easy, and output is high. But it also has a drawback which when corrupted can compromise the entire data and can even change the ownership of digital records.

A database uses a client-server network architecture. Here database administrator has rights to make changes in any part of the data and its structure.

Blockchain Vs Database
SN Blockchain Database
1. Blockchain is decentralized because there is no admin or in-charge. Database is centralized because it has admins and in-charge.
2. Blockchain is permissionless because it can be accessed by anyone. Database is permissioned because it can be accessed only by entities who have rights to access.
3. Blockchains are slow. Databases are fast.
4. It has a history of records and ownership of digital records. It has no history of records and ownership of records.
5. Blockchain is fully confidential. Database is not fully confidential.
6. Blockchain has only Insert operation. Database has Create, Read, Update, and Delete operation.
7. It is a fully robust technology. It is not entirely robust technology.
8. Disintermediation is allowed with blockchain. Disintermediation is not allowed with the database.
9. Anyone with the right proof of work can write on the blockchain. Only entities entitled to read or write can do so.





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA