What is smart contract?

smart contract is a computer protocol intended to digitally facilitate, verify, or enforce the negotiation or performance of a contractSmart contracts allow the performance of credible transactions without third parties.

Smart contracts help you exchange money, property, shares, or anything of value in a transparent, conflict-free way while avoiding the services of a middleman.

The best way to describe smart contracts is to compare the technology to a vending machine. Ordinarily, you would go to a lawyer or a notary, pay them, and wait while you get the document. With smart contracts, you simply drop a bitcoin into the vending machine (i.e. ledger), and your escrow, driver’s license, or whatever drops into your account. More so, smart contracts not only define the rules and penalties around an agreement in the same way that a traditional contract does, but also automatically enforce those obligations.

As Vitalik Buterin, the CEO of Ethereum (the pioneer of smart contracts in the form in which they exist now) explained, in a smart contract approach, an asset or currency is transferred into a program, and

The program runs this code and at some point it automatically validates a condition and it automatically determines whether the asset should go to one person or back to the other person, or whether it should be immediately refunded to the person who sent it or some combination thereof.

In the meantime, the decentralized ledger also stores and replicates the document which gives it a certain security and immutability.