A smart contract is a self-executing program stored on a blockchain that automatically carries out the terms of an agreement when its conditions are met — no bank, no lawyer and no middleman needed to enforce it. Once deployed, the code runs exactly as written, every time, for anyone who interacts with it.
If that sounds abstract, think of a vending machine. You put in the right coins,...