Differentiating Blockchain Databases from Conventional Databases

In this demonstration, we simulate product purchases using a database and blockchain. Users first add products by entering the product name, price, and available stock. Then, they select and purchase products, after which a transaction receipt is generated. The purchased data is stored in the database, and an encrypted copy is recorded on the blockchain. Users can edit the database data to observe that it can be altered, while the blockchain data remains secure. Finally, the integrity of the database data can be checked by comparing it with the encrypted blockchain data, showing whether the data is valid or has been tampered with.

Click the "Add Products" button to create a new item by providing the product name, price, and available stock.

conventional database

Click the "Buy" button to select a product and proceed with the purchase.

conventional database

Successfully purchased products are added to the database, and an encrypted copy of the data is stored on the blockchain.

conventional database

You can edit the data stored in the database, showing that database data can be altered, while data stored on the blockchain remains immutable.

conventional database

After editing, save the updated data in the database.

conventional database

Click the "Check" button to ensure the integrity of the database by comparing it with the encrypted data on the blockchain.

conventional database

If the data is valid, a confirmation will be shown. Otherwise, it indicates that the database data has been altered.

conventional database