TEC-007
Smart Contract
/smɑːt ˈkɒn.trækt/ · also: self-executing contract, on-chain program
noun · Protocol · Programmable Blockchain
Smart ContractsCore
1. A self-executing program stored on a blockchain whose terms are directly written in code. Smart contracts automatically enforce and execute predefined conditions when triggered by transactions, without requiring intermediaries. Once deployed, the code is immutable and executes deterministically across all nodes in the network.
2. The term was coined by cryptographer and legal scholar Nick Szabo in 1994 — predating Bitcoin by 15 years. Szabo's canonical example was a vending machine: a mechanical device that automatically executes a contract (dispense item) upon receiving the correct input (payment), without requiring a trusted third party.
LEGAL NOTE: Smart contracts are not "contracts" in the traditional legal sense in most jurisdictions — they are code that may or may not implement legally enforceable agreements. The legal enforceability of smart contract outputs varies significantly by jurisdiction. Several U.S. states (Arizona, Tennessee, Wyoming) have passed legislation recognizing smart contracts as legally enforceable, while most jurisdictions have not yet addressed the question directly.
IMMUTABILITY RISK: The immutability of deployed smart contracts is a double-edged sword. While it prevents unauthorized modification, it also means bugs and vulnerabilities cannot be patched without deploying an entirely new contract. The 2016 DAO hack exploited a reentrancy vulnerability in an immutable smart contract, resulting in the loss of 3.6 million ETH.
See also: Ethereum Virtual Machine · The DAO Hack · Smart Contract Law