In transactions involving currency, you can’t really create digital money with a traditional web application. The code could be changed by the application developers at any time. The data could be manipulated by anyone with access to the database.
This means that whoever controls the money could arbitrarily change your balance and steal your funds!
For these reasons, we don’t want to build a centralized web application to handle money. Instead, we want to use the blockchain.
This will guarantee that noone can change the code of the application or manipulate the database. I can rest assured that our money works in a predictable way, and that our funds can’t be stolen. In this DApp, all of the code is stored in “smart contracts” which are immutable programs that run on the blockchain.
All of the data is stored on the public ledger, which is also immutable. Any time we add new data to the blockchain, it will be permanent publicly verifiable. I have created a fictional fictional cryptocurrency called "Dapp Token" together, which can be purchased with Ether, the native cryptocurrency of the Ethereum blockchain.
We can buy and sell tokens through the interface.
.
Discussion