Smart Contract vs dApp
People use smart contract and dApp as if they were the same thing, and they are not. A smart contract is one program on a blockchain. It holds the rules and the money. A dApp is the whole app a person uses: a web page, a wallet and one or more contracts behind them. The contracts cannot change, but the web page can be faked.
Smart Contract
A program kept on a blockchain. It runs its own rules, the same for all.
A smart contract is a program that lives on a blockchain at its own address. It holds code and data, and it runs when someone sends it a transaction. Its rules run just as written, and no one can stop them halfway. Once it is out, its code most often cannot be changed or deleted. It cannot see the outside world, so it gets things like prices from a helper called an oracle.
Decentralized App (dApp)
An app whose back end is smart contracts on a blockchain. No one firm runs it.
A decentralized app, or dApp, is an app whose back end is a smart contract on a blockchain. The front end looks like a normal web page or phone app. When you press a button, your wallet signs a transaction and sends it to the contract. The contract does the work and stores the result on the chain. No single company runs the back end, so nobody can quietly change your data.
In one line
- Smart Contract
- A program kept on a blockchain. It runs its own rules, the same for all.
- Decentralized App (dApp)
- An app whose back end is smart contracts on a blockchain. No one firm runs it.