We previously compared blockchains with databases and analyzed their respective properties to evaluate their suitability before selecting one as our storage mechanism. We have assumed that a blockchain can store similar information that can be inserted into a database. Although it is possible to insert any data into a blockchain, it is not the preferred storage mechanism for static data. In this section, we will list out a few of the constraints on storing data on a blockchain.
What can we store on a blockchain?
Storing data as transactions
The data on a blockchain is stored in the form of atomic events called transactions. In a cryptocurrency such as Bitcoin, transactions contain scripts that help to transfer assets. However...