Smart contract
Is a vending machine the ancestor of smart contracts?
Yes, and Nick Szabo coined the concept in the 1990s. You insert a coin, the machine dispenses the can. The agreement executes automatically, with no seller, no trust needed, and no recourse. A smart contract applies the same logic, but on a blockchain.